/* カーペットショップクレール 新サイト（B案：あたたかい暮らし） */
:root {
  --cream: #fff8f0; --cream-2: #fdf0e3; --white: #fff;
  --terra: #c2603f; --terra-dark: #9c4528; --peach: #f6d8c8; --peach-2: #fbe9df;
  --ink: #3b2f2a; --muted: #7d6a60; --line: #f0dccb; --green: #5f7f4f;
  --radius: 20px; --radius-sm: 12px;
  --round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Meiryo", sans-serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.85; }
img { max-width: 100%; height: auto; }
a { color: var(--terra-dark); text-underline-offset: 3px; }
a:hover { color: var(--terra); }
h1, h2, h3, h4 { font-family: var(--round); font-weight: 700; line-height: 1.45; color: var(--ink); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--white); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }

/* ボタン */
.btn { display: inline-block; font-family: var(--round); font-weight: 700; text-decoration: none; text-align: center;
  border-radius: 999px; padding: 12px 28px; font-size: 16px; line-height: 1.4; border: 2px solid var(--terra); }
.btn-main { background: var(--terra); color: #fff; }
.btn-main:hover { background: var(--terra-dark); border-color: var(--terra-dark); color: #fff; }
.btn-sub { background: var(--white); color: var(--terra-dark); }
.btn-sub:hover { background: var(--peach-2); color: var(--terra-dark); }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 240, .96); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { font-family: var(--round); font-weight: 700; font-size: 20px; color: var(--terra); text-decoration: none; line-height: 1.25; white-space: nowrap; }
.logo-sub { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .05em; }
.gnav { display: flex; gap: 6px; align-items: center; }
.gnav a { font-family: var(--round); font-weight: 500; font-size: 14px; color: var(--ink); text-decoration: none;
  padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); white-space: nowrap; }
.gnav a:hover { border-color: var(--terra); color: var(--terra-dark); }
.gnav .gnav-cta { background: var(--terra); color: #fff; border-color: var(--terra); }
.gnav .gnav-cta:hover { background: var(--terra-dark); color: #fff; }
.mnav { display: none; }
@media (max-width: 1080px) {
  .gnav { display: none; }
  .mnav { display: block; }
  .mnav summary { list-style: none; cursor: pointer; font-family: var(--round); font-weight: 700; font-size: 13px; color: var(--terra-dark);
    background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; display: flex; align-items: center; gap: 8px; }
  .mnav { flex-shrink: 0; }
  .mnav summary { white-space: nowrap; }
  .mnav summary::-webkit-details-marker { display: none; }
  .mnav summary span, .mnav summary span::before, .mnav summary span::after { display: block; width: 16px; height: 2px; background: var(--terra); border-radius: 2px; position: relative; }
  .mnav summary span::before, .mnav summary span::after { content: ""; position: absolute; left: 0; }
  .mnav summary span::before { top: -5px; } .mnav summary span::after { top: 5px; }
  .mnav nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px; max-height: calc(100vh - 68px); overflow-y: auto; }
  .mnav .mnav-main { display: block; font-family: var(--round); font-weight: 700; padding: 10px 0; }
  .mnav .mnav-h { margin: 12px 0 4px; font-family: var(--round); font-weight: 700; color: var(--muted); font-size: 13px; }
  .mnav ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
  .mnav li a { display: block; padding: 6px 0; font-size: 14px; color: var(--ink); text-decoration: none; }
  .mnav .btn { display: block; margin-top: 12px; }
}

/* パンくず */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 14px auto 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { color: var(--muted); }

/* ページの見出し */
.page-head { padding-top: 24px; padding-bottom: 8px; }
.kicker { margin: 0; font-family: var(--round); font-weight: 700; color: var(--terra); font-size: 14px; }
.page-head h1 { font-size: clamp(26px, 4vw, 36px); margin: 4px 0 12px; }
.page-head .lead { font-size: 17px; max-width: 820px; margin: 0; color: var(--ink); }

/* 本文と目次 */
.article-body { padding-top: 24px; padding-bottom: 24px; }
.article-body.has-toc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.toc { position: sticky; top: 88px; background: var(--white); border-radius: var(--radius); padding: 18px 20px; font-size: 14px; }
.toc-h { margin: 0 0 8px; font-family: var(--round); font-weight: 700; color: var(--terra-dark); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; line-height: 1.5; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--terra); text-decoration: underline; }
@media (max-width: 860px) {
  .article-body.has-toc { display: block; }
  .toc { position: static; margin-bottom: 24px; }
}
.prose { max-width: 800px; min-width: 0; }
.prose > section, .prose > .sec { margin-bottom: 44px; }
.prose h2 { font-size: 25px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 3px solid var(--peach); }
.prose h3 { font-size: 19px; margin: 28px 0 10px; padding-left: 12px; border-left: 5px solid var(--terra); border-radius: 0; }
.prose h4 { font-size: 16px; margin: 20px 0 6px; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin: 4px 0; }
.prose .icon-list, .prose .steps, .prose .chips, .prose .card-grid { padding-left: 0; }
.prose figure { margin: 20px 0; }
.prose figure img { border-radius: var(--radius-sm); display: block; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.prose strong { background: linear-gradient(transparent 62%, var(--peach) 62%); font-weight: 700; }
.updated { font-size: 13px; color: var(--muted); margin-top: 32px; }

/* 本文の部品 */
.point { background: var(--white); border: 2px solid var(--peach); border-radius: var(--radius); padding: 18px 22px; margin: 20px 0; }
.point > :last-child { margin-bottom: 0; }
.point-h { font-family: var(--round); font-weight: 700; color: var(--terra-dark); margin: 0 0 6px !important; }
.note { background: var(--cream-2); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 14px; margin: 16px 0; }
.note > :last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: start; margin: 20px 0; }
.split.rev { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.split img { border-radius: var(--radius-sm); display: block; width: 100%; }
.split > :last-child > :last-child { margin-bottom: 0; }
@media (max-width: 640px) { .split, .split.rev { grid-template-columns: 1fr; } }
.tbl-wrap { overflow-x: auto; margin: 16px 0; border-radius: var(--radius-sm); background: var(--white); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl thead th { background: var(--peach-2); font-family: var(--round); }
.tbl tbody th { background: var(--cream-2); white-space: nowrap; font-weight: 700; }
.tbl tr:last-child > * { border-bottom: 0; }
.steps { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; counter-reset: step; }
.steps > li { background: var(--white); border-radius: var(--radius); padding: 16px 20px 16px 68px; position: relative; counter-increment: step; }
.steps > li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--peach); color: var(--terra-dark); font-family: var(--round); font-weight: 700; display: grid; place-items: center; }
.steps b { font-family: var(--round); display: block; }
.chips { list-style: none; padding: 0; margin: 12px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  font-size: 14px; text-decoration: none; color: var(--terra-dark); font-family: var(--round); font-weight: 500; }
.chips a:hover { border-color: var(--terra); }
.chips a::after { content: " ›"; }
.go { display: inline-block; font-family: var(--round); font-weight: 700; text-decoration: none; margin: 4px 0 12px; }
.go::after { content: " ›"; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.pros-cons > div { background: var(--white); border-radius: var(--radius-sm); padding: 14px 18px; }
.pros-cons h3, .pros-cons h4 { margin: 0 0 6px; padding: 0; border: 0; font-size: 17px; }
.pros-cons ul { margin: 0; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }

/* アイコン付きの一覧（色・表示マーク） */
.icon-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.icon-list > li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start; background: var(--white); border-radius: var(--radius-sm); padding: 14px 16px; }
.icon-list .icon-badge { width: 72px; height: 72px; border-radius: 10px; background: var(--peach); color: var(--terra-dark); font-family: var(--round); font-weight: 700; font-size: 12px; line-height: 1.3; display: grid; place-items: center; text-align: center; }
.icon-list img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; display: block; }
.icon-list h3, .icon-list h4 { margin: 0 0 4px !important; padding: 0 !important; border: 0 !important; font-size: 17px; }
.icon-list p { margin: 0 0 6px; font-size: 15px; }
.icon-list p:last-child { margin-bottom: 0; }

/* カード */
.card-grid { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { display: block; background: var(--white); border-radius: var(--radius); overflow: hidden; height: 100%; }
.card-link { text-decoration: none; color: var(--ink); padding: 18px 20px; border: 2px solid transparent; }
.card-link:hover { border-color: var(--peach); color: var(--ink); }
.card-link b { display: block; font-family: var(--round); font-size: 17px; margin-bottom: 4px; color: var(--terra-dark); }
.card-link small { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; }
.card-photo { text-decoration: none; color: var(--ink); }
.card-photo .ph { aspect-ratio: 4 / 3; background: var(--peach-2); }
.card-photo .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-photo .cb { padding: 14px 18px 18px; }
.card-photo b { display: block; font-family: var(--round); font-size: 17px; }
.card-photo small { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 2px; }
.card-photo:hover b { color: var(--terra-dark); }

/* よくある質問 */
.faq details { background: var(--white); border-radius: var(--radius-sm); margin: 10px 0; padding: 0 18px; }
.faq summary { cursor: pointer; font-family: var(--round); font-weight: 700; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--terra); margin-right: 8px; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 20px; color: var(--terra); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 14px; }
.faq details > div > :last-child { margin-bottom: 0; }

/* あわせて読みたい・相談の帯 */
.related { padding-top: 8px; padding-bottom: 40px; }
.related h2 { font-size: 22px; }
.cta-band { background: var(--peach-2); padding: 44px 0; }
.cta-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.cta-band h2 { font-size: 24px; margin: 0 0 8px; }
.cta-band p { margin: 0; }
.cta-btns { display: grid; gap: 10px; }
.cta-tel { font-size: 14px; text-align: center; }
.cta-tel a { font-family: var(--round); font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; margin-left: 6px; }
.cta-tel small { display: block; color: var(--muted); }
@media (max-width: 760px) { .cta-in { grid-template-columns: 1fr; } }

/* フッター */
.site-footer { background: var(--ink); color: #f3e7dc; padding: 40px 0 16px; font-size: 14px; }
.site-footer a { color: #f3e7dc; }
.footer-in { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
.footer-shop .logo { color: #fff; margin: 0 0 8px; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.footer-nav .fh { font-family: var(--round); font-weight: 700; color: #fff; margin: 0 0 6px; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin: 3px 0; line-height: 1.5; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.copy { text-align: center; color: #bba99c; font-size: 12px; margin: 32px 0 0; }
@media (max-width: 760px) { .footer-in { grid-template-columns: 1fr; } }

/* トップページ */
.hero { margin: 16px auto 0; max-width: 1120px; padding: 0 16px; }
.hero-in { position: relative; border-radius: 28px; overflow: hidden; min-height: 440px; display: flex; align-items: flex-end; }
/* 写真の上寄りを見せる（家族の顔が切れないように） */
.hero-in > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 10%; }
/* 写真の中央の子どもに重ならない幅 */
.hero-text { position: relative; background: var(--cream); border-radius: 22px; margin: 28px; padding: 26px 28px; max-width: 440px; }
.hero-text h1 { font-size: clamp(26px, 3.6vw, 34px); margin: 0 0 10px; }
.hero-text h1 .nb { display: inline-block; }
.hero-text p { margin: 0 0 18px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 480px) {
  .logo { font-size: 17px; }
  .logo-sub { font-size: 10px; }
}
@media (max-width: 640px) {
  .hero-in { min-height: 0; display: block; }
  .hero-in > img { position: static; height: 220px; }
  .hero-text { margin: -40px 12px 0; padding: 22px 20px; }
}
.home-sec { padding: 52px 0 8px; }
.home-sec > .wrap > h2 { font-size: clamp(22px, 3vw, 28px); text-align: center; margin: 0 0 6px; }
.home-sec .sub { text-align: center; color: var(--muted); margin: 0 0 24px; }
.home-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.home-steps li { background: var(--white); border-radius: var(--radius); padding: 22px 18px; text-align: center; counter-increment: step; }
.home-steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--peach); color: var(--terra-dark); font-family: var(--round); font-weight: 700; font-size: 20px; }
.home-steps b { display: block; font-family: var(--round); font-size: 17px; }
.home-steps small { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 4px; }
.home-steps a { font-size: 14px; }
@media (max-width: 860px) { .home-steps { grid-template-columns: 1fr 1fr; } }
.makers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0; }
.makers a { display: block; background: var(--white); border-radius: 999px; padding: 10px 22px; font-family: var(--round); font-weight: 700; text-decoration: none; color: var(--ink); }
.makers a:hover { color: var(--terra-dark); }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.reasons li { background: var(--white); border-radius: var(--radius); padding: 22px; }
.reasons b { font-family: var(--round); font-size: 18px; display: block; margin-bottom: 6px; color: var(--terra-dark); }
.reasons p { margin: 0; font-size: 15px; }
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } }
