/*
 * 紹介のページ（kinniroad.jp）の見た目。色は、アプリ（web/app/globals.css）と同じ金色とティール。
 * スマホで見やすいことを、いちばんに（左右の余白は 16px から）。
 */
:root {
  --gold: #e8a317;
  --gold-deep: #c98a0e;
  --gold-light: #ffd65c;
  --text-dark: #4a3a10;
  --text-sub: #7a6a3a;
  --accent: #3f8f8a;
  --accent-deep: #2f6f6b;
  --accent-pale: #eefaf8;
  --bg: #fbf6e6;
  --bg-mint: #eaf3d6;
  --surface: #fffef9;
  --line: #eadfbf;
  --font-rounded: "Kosugi Maru", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-body: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); }
h1, h2, h3 { font-family: var(--font-rounded); line-height: 1.45; margin: 0; font-weight: 400; }
p { margin: 0 0 0.9em; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* ---------- 上と下 ---------- */
/* スマホ（820px より狭いとき）は、ロゴと右上の 3 本線のメニュー。押すと、ページの一覧が下に開く（2026-10-27 に依頼者が決定） */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 246, 230, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding-top: 6px; padding-bottom: 6px; }
.brand img { width: 190px; height: auto; }
.site-nav { display: flex; gap: 4px 14px; font-size: 14px; }
.site-nav a { color: var(--text-dark); text-decoration: none; padding: 4px 0; }
.site-nav a[aria-current="page"] { color: var(--gold-deep); font-weight: 700; border-bottom: 2px solid var(--gold); }

.menu-btn { display: none; width: 46px; height: 46px; border: none; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(74, 58, 16, 0.12); cursor: pointer; padding: 0; position: relative; flex-shrink: 0; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2.5px; border-radius: 2px; background: var(--text-dark); transition: transform 0.2s, opacity 0.2s, top 0.2s; }
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 22px; }
.menu-btn span:nth-child(3) { top: 29px; }
.site-header.open .menu-btn span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.site-header.open .menu-btn span:nth-child(2) { opacity: 0; }
.site-header.open .menu-btn span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 819px) {
  .menu-btn { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 6px 16px 14px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(74, 58, 16, 0.12);
  }
  .site-header.open .site-nav { display: flex; }
  .site-nav a { font-size: 16.5px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a[aria-current="page"] { border-bottom: 1px solid var(--line); background: #fff6dc; border-radius: 10px; padding-left: 12px; }
}
@media (min-width: 820px) { .brand img { width: 220px; } }

.site-footer { background: #3d3417; color: #f6eccb; padding: 36px 0 28px; margin-top: 24px; font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; }
.footer-nav a { color: #f6eccb; }
.company { color: #d9cda6; line-height: 1.8; }
.copy { color: #a99d78; font-size: 12.5px; margin: 0; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 28px; border-radius: 999px;
  font-family: var(--font-rounded); font-size: 17px; text-decoration: none; text-align: center;
}
@media (max-width: 360px) { .btn { padding: 12px 18px; font-size: 15.5px; } }
.btn-primary { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #4a3205; box-shadow: 0 6px 16px rgba(201, 138, 14, 0.35); }
.btn-secondary { background: #fff; color: var(--accent-deep); border: 2px solid var(--accent); }
.btn-disabled { opacity: 0.7; cursor: default; box-shadow: none; }
.btn-wide { width: 100%; max-width: 360px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- 最初の画面 ---------- */
.hero { background: radial-gradient(ellipse at 70% 30%, #fff3c4 0%, var(--bg) 60%); padding: 40px 0 32px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 820px) {
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; }
  .hero { padding: 64px 0 56px; }
  .hero-inner > :first-child { padding-top: 56px; } /* 見出しは、絵の上のほうにそろえる（まん中だと下がって見えるため。2026-10-27 に依頼者の希望） */
}
.hero h1 { font-size: clamp(32px, 8vw, 52px); color: var(--gold-deep); letter-spacing: 0.04em; }
.hero h1.h1-groups { font-size: clamp(24px, 7vw, 40px); letter-spacing: 0.02em; } /* 団体のページの見出し。ことばの切れ目でだけ改行する（.nb） */
.hero h1.one-line { font-size: clamp(24px, 7.6vw, 44px); letter-spacing: 0.02em; white-space: nowrap; } /* トップの「にっぽんをきんいろに。」は 1 行（幅 320px のスマホでも収まる大きさ） */
.hero-cta { display: flex; justify-content: center; margin-top: 22px; }
.hero .lead { font-size: 17px; margin-top: 14px; }
.nb { display: inline-block; } /* 文の切れ目でだけ改行する（スマホで、ことばの途中で折れないように） */
.hero-art { display: block; margin: 0 auto; border-radius: 28px; overflow: hidden; box-shadow: 0 14px 34px rgba(201, 138, 14, 0.22); width: 100%; max-width: 460px; justify-self: center; }

/* ---------- アプリの画面 ---------- */
.screens { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 70%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 16px; margin: 0 -16px; -webkit-overflow-scrolling: touch; }
@media (min-width: 760px) { .screens { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 4px 0 0; } }
.screen { margin: 0; scroll-snap-align: center; text-align: center; }
.phone { background: #2b2410; border-radius: 34px; padding: 10px; box-shadow: 0 14px 30px rgba(74, 58, 16, 0.25); max-width: 260px; margin: 0 auto; }
.phone img { border-radius: 25px; width: 100%; aspect-ratio: 780 / 1564; object-fit: cover; object-position: top; } /* 高さをそろえる（ホームの写真だけ、上の確認用の行を切り落としてあるので短い） */
.screen figcaption { margin-top: 14px; }
.screen strong { display: block; font-family: var(--font-rounded); font-weight: 400; font-size: 18px; color: var(--accent-deep); }
.screen span { font-size: 14.5px; color: var(--text-sub); }
.swipe-hint { text-align: center; font-size: 13px; color: var(--text-sub); margin: 0; }
@media (min-width: 760px) { .swipe-hint { display: none; } }

/* ---------- 段 ---------- */
.section { padding: 48px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.mint { background: var(--bg-mint); }
.section h2 { font-size: clamp(22px, 5.4vw, 30px); text-align: center; margin-bottom: 10px; }
.section .section-lead { text-align: center; color: var(--text-sub); max-width: 640px; margin: 0 auto 28px; }
.eyebrow { display: block; text-align: center; color: var(--accent); font-family: var(--font-rounded); font-size: 17px; letter-spacing: 0.1em; margin-bottom: 8px; }
@media (min-width: 820px) { .eyebrow { font-size: 18.5px; } }

.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .cards.two { grid-template-columns: repeat(2, 1fr); } .cards.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
.card { background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 6px 18px rgba(63, 143, 138, 0.12); }
.card h3 { font-size: 18.5px; color: var(--accent-deep); margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { font-size: 30px; line-height: 1; margin-bottom: 8px; }

.voices { display: grid; gap: 12px; max-width: 720px; margin: 0 auto; }
.voice { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
.voice::before { content: "💭"; font-size: 22px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } .split.reverse > :first-child { order: 2; } }
.split img { width: 100%; border-radius: 24px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1); max-width: 440px; margin: 0 auto; }

.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 640px; margin: 20px auto 0; }
@media (min-width: 640px) { .types { grid-template-columns: repeat(6, 1fr); } }
.types figure { margin: 0; text-align: center; font-size: 13px; }
.types img { border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.types figcaption { margin-top: 4px; }

.steps { counter-reset: step; display: grid; gap: 14px; max-width: 720px; margin: 0 auto; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; background: #fff; border-radius: 18px; padding: 16px 18px 16px 64px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #fff; font-family: var(--font-rounded); font-size: 18px; display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; color: var(--accent-deep); }

.mission { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 24px; padding: 28px 22px; box-shadow: 0 10px 26px rgba(201, 138, 14, 0.15); }
.mission h2 { color: var(--gold-deep); }

.cta { text-align: center; }
.free-hero { margin: 18px auto 8px; }
.cta .free-yen { font-family: var(--font-rounded); font-size: 76px; line-height: 1; color: var(--gold-deep); margin: 0 0 8px; text-shadow: 0 4px 0 #ffe9a8; }
.free-yen span { font-size: 30px; margin-left: 4px; }
.cta .free-hero p:last-child { font-size: 17.5px; color: var(--text-dark); }
.free-list { list-style: none; padding: 0; margin: 18px auto 18px; max-width: 640px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .free-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.free-list li { background: #fff; border-radius: 14px; padding: 12px 10px; box-shadow: 0 3px 10px rgba(63, 143, 138, 0.1); font-size: 15px; }
.free-list li::before { content: "無料"; display: block; width: fit-content; margin: 0 auto 4px; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 10px; font-size: 12.5px; }
.cta p { color: var(--text-sub); }
.newcomer { text-align: center; font-size: 14.5px; color: var(--text-sub); padding: 20px 16px 4px; }

/* ---------- 料金 ---------- */
.price-card { background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 6px 18px rgba(63, 143, 138, 0.12); }
.price-card h3 { font-size: 20px; color: var(--accent-deep); margin-bottom: 4px; }
.price-card .who { color: var(--text-sub); font-size: 14.5px; }
.price { font-family: var(--font-rounded); font-size: 30px; color: var(--gold-deep); margin: 8px 0 2px; }
.price small { font-size: 15px; color: var(--text-dark); }
.check { list-style: none; padding: 0; margin: 12px 0 0; }
.check li { padding-left: 1.6em; position: relative; margin-bottom: 6px; }
.check li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: #fff; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: #fff6dc; font-weight: 700; }
td.num { text-align: right; white-space: nowrap; }
td:first-child { white-space: nowrap; } /* 人数の列は折らない */
.free-badge { display: inline-block; background: var(--accent-pale); color: var(--accent-deep); border-radius: 999px; padding: 2px 12px; font-size: 14px; }
.note { font-size: 14px; color: var(--text-sub); }

/* ---------- 文書（規約など）・よくある質問 ---------- */
.page-head { padding: 36px 0 8px; }
.page-head h1 { font-size: clamp(24px, 6vw, 34px); color: var(--gold-deep); }
.page-head p { color: var(--text-sub); margin-top: 8px; }
.doc { background: #fff; border-radius: 20px; padding: 24px 18px; box-shadow: 0 6px 16px rgba(63, 143, 138, 0.1); font-size: 15px; overflow-wrap: anywhere; }
.doc h2 { font-size: 19px; margin: 1.4em 0 0.5em; }
.doc h3 { font-size: 16.5px; color: var(--accent-deep); margin: 1.4em 0 0.4em; }
.doc ol, .doc ul { padding-left: 1.4em; margin: 0 0 0.9em; }
.doc li { margin-bottom: 0.3em; }
.doc hr { border: none; border-top: 1px solid var(--line); margin: 1.4em 0; }

.faq-cat { margin-bottom: 28px; }
.faq-cat h2 { font-size: 19px; margin-bottom: 10px; color: var(--accent-deep); text-align: left; }
.faq-item { background: #fff; border-radius: 14px; margin-bottom: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.faq-item summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; position: relative; padding-right: 40px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; position: absolute; right: 16px; top: 14px; color: var(--gold-deep); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 16px 14px; margin: 0; font-size: 15px; }

.contact-box { background: #fff; border-radius: 20px; padding: 22px; box-shadow: 0 6px 16px rgba(63, 143, 138, 0.1); }
.contact-box dl { margin: 0; }
.contact-box dt { font-weight: 700; color: var(--accent-deep); margin-top: 12px; }
.contact-box dt:first-child { margin-top: 0; }
.contact-box dd { margin: 2px 0 0; font-size: 18px; }
.contact-box dd small { display: block; font-size: 14px; color: var(--text-sub); }
