/* ===== Base ===== */
:root{
  --bg:#f3f5f7;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:rgba(17,24,39,0.12);
  --accent:#0f172a;   /* navy */
  --accent2:#2563eb;  /* blue */
  --gold:#c9a24d;
  --gold-dark:#b08b3c;
  --gold-bg:#fff8e6;
  --radius:16px;
  --shadow:0 10px 30px rgba(17,24,39,0.10);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.7;
}

a{ color:inherit; text-decoration:none; }
.wrap{ max-width:980px; margin:0 auto; padding:20px; }

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.section{ padding:18px; margin-top:18px; }
.muted{ color:var(--muted); }
.small{ font-size:12px; font-weight:700; }

.h1{ font-size:34px; line-height:1.2; margin:10px 0 12px; }
.h2{ font-size:22px; margin:0 0 10px; }
.h3{ font-size:16px; margin:0 0 8px; }
.lead{ margin:0 0 14px; }

.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid var(--gold);
  background: var(--gold-bg);
  color:#5a460f;
  font-weight:800;
  cursor:pointer;
  transition:transform .08s ease, border-color .08s ease;
}
.btn:hover{
  transform:translateY(-1px);
  border-color: var(--gold-dark);
  background:#fff1cc;
}
  color:#fff;
  border-color:transparent;
}

.box{
  padding:14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
}

.actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }

.list{ margin:0; padding-left:18px; }
.list li{ margin:6px 0; }

/* ===== Header ===== */
.site-header{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter:saturate(1.2) blur(10px);
  background:rgba(243,245,247,0.75);
  border-bottom:1px solid rgba(17,24,39,0.08);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-top:10px;
  padding-bottom:10px;
  min-height:56px;
}
.brand{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:900;
  letter-spacing:0.2px;
}
.brand-name{ font-size:14px; }

.logo-img{
  width:40px;
  height:40px;
  object-fit:contain;
  display:block;
  flex-shrink:0;
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav-link{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
  color:var(--muted);
  font-weight:800;
  font-size:13px;
}
.nav-link:hover{
  border-color:rgba(17,24,39,0.12);
  background:#fff;
  color:var(--accent);
}

/* =========================================================
   HERO (統合版 / hero-grid構造専用)
   HTML:
<section class="card hero">
  <h1 class="h1">何から整えるか、もう迷わない。</h1>
  <p class="lead">
    情報に振り回されず、自分に合う選択ができるように案内します。
  </p>
</section>


   ========================================================= */
/* ===== HERO (for current HTML structure) ===== */

.hero{
  /* サイズ：でかすぎ防止 */
  min-height: 52vh;

  /* 背景画像 */
  background-image: url("../img/hero-grooming.jpg");
  background-size: cover;
  background-position: center right;

  /* レイアウト */
  position: relative;
  overflow: hidden;

  /* 文字を右に寄せる */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;

  /* 内側余白 */
  padding: 3.5rem 2rem;
}

/* 右側に文字を置くので、右を白くして読みやすく */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to left,
    rgba(255,255,255,0.92),
    rgba(255,255,255,0.60),
    rgba(255,255,255,0.12)
  );
  pointer-events:none;
}

/* hero内のテキストを“ガラスカード”化（画像の中に文字を入れる） */
.hero > .badge,
.hero > .h1,
.hero > .lead{
  position: relative; /* ::beforeより前に出す */
  width: min(560px, 100%);
}

.hero > .badge{
  align-self: flex-start; /* バッジだけ少し左に見せたいなら */
  margin-bottom: 10px;
}

.hero > .h1,
.hero > .lead{
  padding: 0; /* いったんリセット */
  margin: 0;
}

/* まとめてカード背景を作るため、見出しにラッパーがない場合はleadに背景を持たせると崩れやすい。
   なので、Hero全体に"コピー枠"を作る：疑似カード */
.hero{
  /* コピー枠の見た目 */
}
.hero::after{
  content:"";
  position:absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: min(560px, calc(100% - 4rem));
  height: auto;
  padding: 0; /* ダミー */
  border-radius: 16px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(17,24,39,0.10);
  backdrop-filter: blur(8px);
  z-index: 0;
  /* 高さは内容に合わせられないので、ここは使わない方が良い */
  display:none;
}

/* ↑上のafter案は“高さ自動”できないので無効化してる。
   代わりに、ラッパー（hero-copy）をHTMLに1個足すのが最も安定。
   でも「HTMLそのまま」でやるなら、次の方法が一番シンプル： */

/* badge/h1/leadをまとめて囲むための簡易ラッパーがない場合、
   hero自体に薄い背景を置くのではなく、h1/leadに背景を付けて一体感を作る */
.hero > .h1,
.hero > .lead{
  background: rgba(255,255,255,0.74);
  border-left: 1px solid rgba(17,24,39,0.10);
  border-right: 1px solid rgba(17,24,39,0.10);
  padding: 14px 16px;
}

.hero > .h1{
  border-top: 1px solid rgba(17,24,39,0.10);
  border-radius: 16px 16px 0 0;
  color:#0f172a;
  font-weight: 800;
  line-height: 1.15;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
}

.hero > .lead{
  border-bottom: 1px solid rgba(17,24,39,0.10);
  border-radius: 0 0 16px 16px;
  color: rgba(15,23,42,0.78);
  margin-top: -8px; /* つなぎ目を自然に */
}

/* バッジも同じカードの上に載せる */
.hero > .badge{
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(17,24,39,0.10);
  backdrop-filter: blur(8px);
}

/* スマホ */
@media (max-width: 680px){
  .hero{
    min-height: auto;
    align-items: center;
    padding: 2.5rem 1.25rem;
    background-position: center;
  }
  .hero::before{
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0.92),
      rgba(255,255,255,0.72)
    );
  }
  .hero > .badge,
  .hero > .h1,
  .hero > .lead{
    width: 100%;
  }
}

/* ===== Category Section ===== */
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}

.cards-grid{
  display:grid;
  gap:12px;
  margin-top:12px;
}
@media (min-width: 860px){
  .cards-grid{ grid-template-columns:repeat(3, 1fr); }
}

.cat-card{
  padding:14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  transition:transform .08s ease, border-color .08s ease;
  min-height:160px;
}
.cat-card:hover{
  transform:translateY(-2px);
  border-color:rgba(37,99,235,0.35);
}

.cat-meta{
  display:flex;
  gap:8px;
  align-items:center;
  margin-bottom:8px;
  flex-wrap:wrap;
}
.pill{
  font-size:12px;
  font-weight:900;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(37,99,235,0.06);
  color:var(--accent2);
}

/* ===== Mini grid (3 boxes) ===== */
.mini-grid{
  display:grid;
  gap:12px;
  margin-top:12px;
}
@media (min-width: 860px){
  .mini-grid{ grid-template-columns:repeat(3,1fr); }
}

/* =========================
   NAVI：清潔感チェック
   ========================= */
.check-form { margin-top: 12px; }

.check-list{
  margin: 0;
  padding-left: 18px;
}

.check-item{
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.check-item:first-child{ border-top: 0; }

.check-q{
  margin: 0 0 10px;
  line-height: 1.5;
}

.check-choice{
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  margin: 8px 0;
  cursor: pointer;
}

.check-choice input{ margin-right: 8px; }

.check-actions{
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.check-result{ margin-top: 14px; }
.check-result:empty{ display: none; }

.card-in-card{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 14px;
}

/* ===== Category HERO (コンパクト) ===== */
.page-hero { padding: 24px 24px; }
.page-hero-title { font-size: 1.6rem; }
.page-hero-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 8px;
}
.page-hero-sub {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

/* ===== このカテゴリの考え方（注釈レベル） ===== */
#guide { padding: 20px; }
#guide .h2 { font-size: 1.05rem; margin-bottom: 8px; }
#guide .mini-grid { gap: 8px; }
#guide .box { padding: 10px 12px; }
#guide .h3 { font-size: 0.85rem; }
#guide .muted { font-size: 0.75rem; line-height: 1.45; }

.ad-note{
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: rgba(0,0,0,.02);
}

/* ===== Product Grid ===== */
.product-grid{
  display:grid;
  gap:12px;
}

.product-card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:14px 14px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  background:#fff;
}

.product-meta .h3{ margin:6px 0 6px; }
.product-meta .small{ margin-top:8px; }

.product-actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
}

/* スマホの購入導線 */
@media (max-width: 680px){
  .product-card{ flex-direction:column; }
  .product-actions{ width:100%; }
  .btn{ width:100%; }
}

/* ===== Category Navi Cards ===== */
.category-grid{ display:grid; gap:14px; }

.category-card{
  display:block;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.08);
  text-decoration:none;
  background:#fff;
}

.category-card:hover{ background: rgba(0,0,0,.02); }

.category-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}

.category-cta{
  font-size:.8rem;
  opacity:.7;
  white-space:nowrap;
}

#category-navi .h3{ margin: 0 0 6px; }

/* ===== Footer ===== */
.site-footer{
  max-width:980px;
  margin:18px auto 30px; /* ← auto を必ず入れる */
  padding:16px;
  border:1px solid rgba(17,24,39,0.10);
  border-radius:16px;
  background:#fff;
  color:var(--muted);
  font-size:13px;
}

}
.footer-title{
  font-weight:900;
  color:var(--accent);
  margin-bottom:6px;
}
.footer-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:10px 0 12px;
}
.footer-links a{
  text-decoration:underline;
  text-underline-offset:3px;
}
/* PCだけ、全体の横幅を少し広げる */
@media (min-width: 1024px) {
  .wrap {
    max-width: 1100px;
  }
}
.hero-wide {
  max-width: none;
  width: 100%;
}

