/* ほどけの森（自主制作・架空のサービス）
   配色・書体は構成案 §3-2 で自作。実在サイトの配色値は使っていない。 */

:root {
  --bg: #F7F3EA;        /* 生成り */
  --mist: #E6ECE3;      /* 霧の緑 */
  --moss: #4E6A4A;      /* 苔の緑（文字用・生成りに対し AA） */
  --moss-soft: #5F7A5B; /* 苔の緑（装飾用） */
  --clay: #A35E3F;      /* 素焼きのテラコッタ（CTA・白文字に対し AA） */
  --clay-dark: #8A4C31;
  --ink: #34352F;       /* 墨 */
  --ink-soft: #5B5C55;
  --white: #FFFDF8;
  --line: #D9D3C4;
  --radius: 20px;
  --shadow: 0 8px 24px rgba(52, 53, 47, 0.08);
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --latin: "Cormorant Garamond", serif;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--moss); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.5; margin: 0; }
p { margin: 0; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }

/* 0. 架空サービスの表示帯（線6） */
.fiction-bar {
  background: var(--moss);
  color: var(--white);
  font-size: 12px;
  text-align: center;
  padding: 6px 16px;
  line-height: 1.6;
}

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.brand span { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.header-nav { display: none; gap: 28px; font-size: 14px; }
.header-nav a { color: var(--ink-soft); text-decoration: none; }
.header-nav a:hover { color: var(--moss); }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--clay); color: var(--white);
  font-weight: 700; text-decoration: none; letter-spacing: 0.08em;
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 16px 32px; font-size: 16px; font-family: var(--sans);
  box-shadow: 0 6px 16px rgba(163, 94, 63, 0.25);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--clay-dark); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--moss-soft); outline-offset: 3px; }
.btn--small { padding: 9px 18px; font-size: 13px; box-shadow: none; }
.btn-note { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }

/* 写真スロット（素材差し替え前は自作のグラデ＋模様で表示） */
.photo {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    url("leaf-pattern.svg") repeat,
    radial-gradient(circle at 30% 20%, #FBF6EA 0%, #DDE5D6 55%, #C8D4C2 100%);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo[data-empty]::after {
  content: attr(data-empty);
  position: absolute; right: 12px; bottom: 10px;
  font-size: 11px; color: var(--ink-soft); background: rgba(255,253,248,.8);
  padding: 2px 8px; border-radius: 999px;
}

/* セクション共通 */
section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.eyebrow {
  display: block; font-family: var(--latin); font-style: italic;
  font-size: 18px; color: var(--moss-soft); letter-spacing: 0.12em; margin-bottom: 6px;
}
.section-head h2 { font-size: clamp(24px, 5.4vw, 32px); }
.section-head p { margin-top: 14px; color: var(--ink-soft); }
.bg-mist { background: var(--mist); }
.bg-pattern { background: url("leaf-pattern.svg") repeat, var(--bg); }

/* 1. ヒーロー */
.hero { padding: 40px 0 72px; }
.hero .container { display: grid; gap: 32px; }
.hero-copy h1 { font-size: clamp(30px, 8vw, 50px); letter-spacing: 0.08em; }
.hero-copy h1 em { font-style: normal; color: var(--moss); }
.hero-lead { margin: 20px 0 28px; color: var(--ink-soft); }
.hero .photo { aspect-ratio: 4 / 3; }

/* 2. 共感カード */
.cards { display: grid; gap: 16px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; }
.empathy-answer {
  text-align: center; margin-top: 40px; font-family: var(--serif);
  font-size: clamp(18px, 4.6vw, 22px); color: var(--moss);
}

/* 3. できること */
.features { display: grid; gap: 20px; }
.feature { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.feature .photo { border-radius: 0; aspect-ratio: 16 / 10; }
.feature-body { padding: 24px; }
.feature-icon { width: 44px; height: 44px; margin-bottom: 10px; color: var(--moss-soft); }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--ink-soft); }

/* 4. 1週間 */
.week { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.week li {
  display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 16px;
  background: var(--white); border-radius: 16px; padding: 14px 18px;
}
.week .day {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mist); color: var(--moss); font-family: var(--serif); font-weight: 600;
}
.week li.is-off .day { background: transparent; border: 1px dashed var(--line); color: var(--ink-soft); }
.week strong { display: block; font-size: 15px; }
.week small { color: var(--ink-soft); font-size: 13px; }

/* 5. ナビゲーター */
.navigators { display: grid; gap: 20px; }
.navigator { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start;
  background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.navigator svg { width: 96px; height: 96px; }
.navigator .role { font-size: 13px; color: var(--moss); }
.navigator h3 { font-size: 20px; margin-bottom: 8px; }
.navigator p { font-size: 15px; color: var(--ink-soft); }

/* 6. 声 */
.voices { display: grid; gap: 16px; }
.voice { margin: 0; background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative; }
.voice::before {
  content: "“"; position: absolute; top: -6px; left: 18px;
  font-family: var(--latin); font-size: 64px; color: var(--mist); line-height: 1;
}
.voice p { position: relative; font-size: 15px; }
.voice footer { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.fiction-note { display: inline-block; margin-top: 6px; font-size: 11px; color: var(--clay); }

/* 7. 料金 */
.price-card {
  max-width: 520px; margin-inline: auto; text-align: center;
  background: var(--white); border-radius: 28px; padding: 40px 24px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.price-badge { display: inline-block; background: var(--mist); color: var(--moss); font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.price { font-family: var(--serif); font-size: 44px; margin: 14px 0 0; color: var(--ink); }
.price small { font-size: 16px; color: var(--ink-soft); }
.price-list { list-style: none; padding: 0; margin: 20px 0 28px; text-align: left; display: inline-grid; gap: 6px; font-size: 15px; }
.price-list li::before { content: "・"; color: var(--moss-soft); }
.price-foot { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

/* 8. ステップ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 24px; position: relative; counter-increment: step; }
.steps li::before {
  content: "STEP " counter(step);
  font-family: var(--latin); font-style: italic; color: var(--moss-soft); font-size: 16px; letter-spacing: .1em;
}
.steps h3 { font-size: 18px; margin: 4px 0 6px; }
.steps p { font-size: 15px; color: var(--ink-soft); }

/* 9. FAQ */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: 16px; padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--moss-soft); border-bottom: 2px solid var(--moss-soft);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); font-size: 15px; }

/* 10. 最後のCTA */
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(24px, 6vw, 34px); margin-bottom: 16px; }
.final-cta p { color: var(--ink-soft); margin-bottom: 28px; }

/* 11. フッター */
.site-footer { background: #2F3A2D; color: #E8E6DD; padding: 48px 0 32px; font-size: 13px; }
.footer-links { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: #E8E6DD; }
.footer-note { border-top: 1px solid rgba(232,230,221,.2); padding-top: 20px; line-height: 1.8; opacity: .85; }

/* 下層（ダミーページ）共通 */
.sub-page { padding: 48px 0 80px; }
.sub-page .container { max-width: 760px; }
.sub-page h1 { font-size: clamp(24px, 6vw, 32px); margin-bottom: 24px; }
.sub-page h2 { font-size: 19px; margin: 32px 0 8px; }
.sub-page p, .sub-page li { color: var(--ink-soft); font-size: 15px; }
.dummy-notice {
  background: #FBEDE4; border: 1px solid #E7C3AE; color: var(--clay-dark);
  border-radius: 12px; padding: 14px 18px; font-size: 14px; margin-bottom: 28px;
}
.dummy-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--white); }
.dummy-table th, .dummy-table td { border: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
.dummy-table th { width: 34%; background: var(--mist); font-weight: 700; }
.form { display: grid; gap: 18px; background: var(--white); padding: 28px 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.form input, .form select {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
}
.form .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.form-result { display: none; background: var(--mist); color: var(--moss); padding: 16px; border-radius: 12px; font-weight: 700; }
.form-result.is-shown { display: block; }
.back-link { display: inline-block; margin-top: 32px; }

/* ふわっと表示 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* PC */
@media (min-width: 768px) {
  section { padding: 112px 0; }
  .header-nav { display: flex; }
  .hero { padding: 64px 0 104px; }
  .hero .container { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 56px; }
  .cards, .voices, .features { grid-template-columns: repeat(3, 1fr); }
  .navigators { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .week { grid-template-columns: repeat(7, 1fr); }
  .week li { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 20px 10px; }
}
