/* ============================================================
   オールオン4カフェ — 共通スタイル v2
   デスクトップ/モバイル最適化版。
   温かみのあるカフェ風。読者層（50〜70代中心）に合わせて
   文字大きめ・行間広め・高コントラスト・タップ領域44px以上。
   クラス名は v1 互換。ヘッダーのみ新マークアップ
   （#nav-open + .nav-toggle）が必要 — 旧ヘッダーのままでも
   従来通り折り返し表示され、壊れません。
   ============================================================ */

:root {
  --bg: #faf6ef;
  --bg-card: #ffffff;
  --bg-accent: #f3e9d8;
  --bg-accent-green: #e6ecdf;
  --bg-accent-warm: #f6e3d7;
  --ink: #3b3128;
  --ink-soft: #6b5d4f;
  --brand: #a8552f;      /* テラコッタ */
  --brand-dark: #7e3d1f;
  --brand-soft: #e7c9b3;
  --green: #5c7350;      /* オリーブ（安心・ケア系の差し色） */
  --line: #e5dbc9;
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1080px;
  --maxw-text: 46rem;    /* 本文の読みやすい行長 */
  --shadow-soft: 0 8px 24px rgba(120, 80, 40, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid var(--brand-soft);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- ヘッダー ---------- */

.site-header {
  background: rgba(250, 246, 239, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.55rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  position: relative;
}

.site-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
  white-space: nowrap;
}

.site-logo .logo-mark { font-size: 1.45rem; }

.site-logo .logo-cafe { color: var(--brand); }

#nav-open {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.nav-toggle { display: none; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover { background: var(--bg-accent); color: var(--brand-dark); }

.site-nav a.active { background: var(--brand); color: #fff; }

/* モバイル: ハンバーガーメニュー（新ヘッダーの場合のみ） */
@media (max-width: 880px) {
  .header-inner { flex-wrap: nowrap; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--brand-dark);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  #nav-open:checked + .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  #nav-open:checked + .nav-toggle span:nth-child(2) { opacity: 0; }
  #nav-open:checked + .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  #nav-open:focus-visible + .nav-toggle {
    outline: 3px solid var(--brand-soft);
    outline-offset: 2px;
  }

  /* 旧ヘッダー（トグルなし）は従来通り折り返し表示 */
  .header-inner:has(.nav-toggle) .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 32px rgba(59, 49, 40, 0.14);
    padding: 0.8rem 1.2rem 1.2rem;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .header-inner:has(#nav-open:checked) .site-nav { display: grid; }

  .header-inner:has(.nav-toggle) .site-nav a {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px;
    min-height: 52px;
    padding: 0.4rem 0.9rem;
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    white-space: normal;
    line-height: 1.4;
  }

  .header-inner:has(.nav-toggle) .site-nav a.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
  }
}

/* ---------- ヒーロー ---------- */

.hero {
  background: linear-gradient(160deg, var(--bg-accent), var(--bg) 70%);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 1.2rem;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.65rem, 2.6vw, 2.4rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 1.1rem;
}

.hero h1 .accent { color: var(--brand); }

.hero p.lead {
  max-width: 34rem;
  margin: 0 0 1.8rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.hero-illust {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(120, 80, 40, 0.18);
}

@media (max-width: 880px) {
  .hero { padding: 2.2rem 1.2rem 2.6rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-illust { max-width: 560px; }
}

/* ---------- レイアウト ---------- */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.8rem 1.2rem 4.5rem;
}

.page-title { margin-bottom: 0.4rem; font-size: 1.9rem; line-height: 1.5; }

.page-title-note { color: var(--ink-soft); margin-bottom: 2.2rem; max-width: var(--maxw-text); }

section { margin-bottom: 3rem; }

/* 広い画面でも本文の行長を読みやすく保つ */
section > p, main > p { max-width: var(--maxw-text); }

h2 {
  font-size: 1.5rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 5px solid var(--brand);
}

h3 { font-size: 1.15rem; margin: 1.6rem 0 0.6rem; color: var(--brand-dark); }

p { margin-bottom: 1rem; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }

li { margin-bottom: 0.4rem; }

strong { color: var(--brand-dark); }

/* ---------- カード ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

a.card::after {
  content: "→";
  position: absolute;
  top: 1.35rem;
  right: 1.3rem;
  font-weight: 700;
  color: var(--brand-soft);
  transition: color 0.15s ease, transform 0.15s ease;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--brand-soft);
  color: var(--ink);
}

a.card:hover::after { color: var(--brand); transform: translateX(3px); }

.card .card-emoji {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  background: var(--bg-accent);
  border-radius: 16px;
  margin-bottom: 0.8rem;
}

.card:nth-child(3n+2) .card-emoji { background: var(--bg-accent-green); }
.card:nth-child(3n) .card-emoji { background: var(--bg-accent-warm); }

.card h3 { margin: 0 0 0.4rem; font-size: 1.12rem; }

.card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; line-height: 1.75; }

@media (max-width: 880px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; gap: 0.8rem; }

  /* モバイルは横並びのコンパクトなカードでスクロール量を抑える */
  .card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    align-items: start;
    padding: 1.05rem 2.4rem 1.05rem 1.05rem;
  }

  .card .card-emoji {
    grid-row: 1 / span 2;
    width: 48px;
    height: 48px;
    font-size: 1.45rem;
    margin: 0;
  }

  .card h3 { grid-column: 2; font-size: 1.05rem; }

  .card p { grid-column: 2; font-size: 0.9rem; }

  a.card::after { top: 50%; right: 0.95rem; transform: translateY(-50%); }

  a.card:hover { transform: none; }
}

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.9rem 2.2rem;
  min-height: 52px;
  font-size: 1.02rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.btn:hover { background: var(--brand-dark); color: #fff; }

.btn.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.btn.btn-outline:hover { background: var(--brand); color: #fff; }

@media (max-width: 600px) {
  .btn { width: 100%; max-width: 420px; }
}

/* ---------- FAQ ---------- */

details.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  max-width: var(--maxw-text);
  overflow: hidden;
}

details.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  min-height: 56px;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  transition: background 0.15s ease;
}

details.faq-item summary:hover { background: #fbf6ee; }

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::before {
  content: "Q";
  flex-shrink: 0;
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 700;
}

details.faq-item summary::after {
  content: "＋";
  margin-left: auto;
  padding-left: 0.7rem;
  color: var(--brand);
  flex-shrink: 0;
}

details.faq-item[open] summary::after { content: "－"; }

details.faq-item .faq-answer {
  padding: 0.9rem 1.3rem 1.2rem 3rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
}

@media (max-width: 600px) {
  details.faq-item .faq-answer { padding-left: 1.25rem; }
}

/* ---------- 注意書き・コールアウト ---------- */

.note {
  background: var(--bg-accent);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 1.5rem 0;
  max-width: var(--maxw-text);
}

.note.note-important { border-left: 5px solid var(--brand); }

.note.note-care { border-left: 5px solid var(--green); }

/* ---------- テーブル ---------- */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
}

th, td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
}

th { background: var(--bg-accent); white-space: nowrap; }

@media (max-width: 640px) {
  .table-wrap::before {
    content: "※ 表は横にスクロールできます";
    display: block;
    position: sticky;
    left: 0;
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin-bottom: 0.35rem;
  }

  table { font-size: 0.88rem; }

  th, td { padding: 0.55rem 0.7rem; }
}

/* ---------- 体験記 ---------- */

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0 1rem;
}

.tag {
  background: var(--bg-accent);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 0.15rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
}

blockquote {
  border-left: 4px solid var(--brand-soft);
  padding: 0.2rem 0 0.2rem 1.2rem;
  margin: 1.2rem 0;
  color: var(--ink-soft);
  max-width: var(--maxw-text);
}

/* ---------- フッター ---------- */

.site-footer {
  background: var(--ink);
  color: #d9cfc4;
  padding: 2.5rem 1.2rem;
  font-size: 0.9rem;
}

.footer-inner { max-width: var(--maxw); margin: 0 auto; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.1rem 1.4rem;
  margin-bottom: 1.4rem;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: #d9cfc4;
  text-decoration: none;
  display: inline-block;
  padding: 0.45rem 0;
}

.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer-disclaimer { color: #a2968a; font-size: 0.85rem; line-height: 1.8; max-width: var(--maxw-text); }

.footer-copy { margin-top: 1.2rem; color: #a2968a; }

@media (max-width: 600px) {
  .footer-nav { grid-template-columns: 1fr 1fr; }
}

/* ---------- レスポンシブ（全体） ---------- */

@media (max-width: 640px) {
  body { font-size: 17px; }
  main { padding: 2rem 1.2rem 3.5rem; }
  .page-title { font-size: 1.55rem; }
  h2 { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- 画像 ---------- */

.page-illust {
  display: block;
  width: 100%;
  max-width: var(--maxw-text);
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 0 0 1.5rem;
}
