@charset "UTF-8";
/* ============================================================
   style.css — スターター基盤
   構成: 1.トークン → 2.リセット/ベース → 3.レイアウト
        → 4.コンポーネント → 5.モーション → 6.停止ポリシー
   触り方は TEMPLATE-GUIDE.md 参照。トークン以外の削除は慎重に。
   ============================================================ */

/* ---------- 1. トークン(案件ごとに必ず引き直す) ---------- */
:root {
  /* 色: プレースホルダ。納品時にこのままは禁止 */
  --color-bg: #f7f5f0;          /* 地 */
  --color-surface: #ffffff;     /* 面(カード・フォーム) */
  --color-text: #1c1b18;        /* 本文 */
  --color-muted: #6d6a61;       /* 補助テキスト */
  --color-accent: #b4552d;      /* 主張色(CTA・強調) */
  --color-accent-ink: #ffffff;  /* accent上の文字色(コントラスト4.5:1確保) */
  --color-line: #d8d4c8;        /* 罫線 */

  /* タイポ: フォント読み込み(HTML head)とセットで変える */
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  /* 型: 8px系。値を変えても系は守る */
  --space: 8px;
  --section-pad: clamp(64px, 12vw, 140px);
  --container: 1120px;
  --container-narrow: 760px;
  --radius: 2px;

  /* 階層: z-indexは必ずこの変数経由 */
  --z-header: 100;
  --z-nav: 200;
  --z-modal: 1000;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.8s;
}

/* ---------- 2. リセット/ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.9;                 /* 日本語本文の床 */
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;          /* 長いURL・英単語のはみ出し事故防止 */
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }
a:hover { opacity: 0.7; transition: opacity 0.3s; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.4;                 /* 見出しは本文より詰める */
  letter-spacing: 0.04em;
}

/* ---------- 3. レイアウト ---------- */
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(var(--container-narrow), 100% - 48px); margin-inline: auto; }

.section { padding-block: var(--section-pad); }
.section--tight { padding-block: calc(var(--section-pad) * 0.6); }

/* セクション見出しの型(シグネチャーに差し替える前提の仮デザイン) */
.section-head { margin-bottom: calc(var(--space) * 7); }
.section-head__en {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: calc(var(--space) * 2);
}
.section-head__title { font-size: clamp(28px, 4.5vw, 44px); }

/* ---------- 4. コンポーネント ---------- */

/* ヘッダー */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px clamp(20px, 4vw, 48px);
  transition: background 0.4s, box-shadow 0.4s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--color-line);
}
.site-header__logo { font-family: var(--font-display); font-size: 20px; text-decoration: none; }

.global-nav ul { display: flex; gap: calc(var(--space) * 4); list-style: none; padding: 0; }
.global-nav a { text-decoration: none; font-size: 14px; letter-spacing: 0.08em; }
.global-nav a[aria-current="page"] {
  color: var(--color-accent);
  border-bottom: 1px solid currentColor;
}

/* ハンバーガー(SP) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;           /* タップ領域44px確保 */
  background: none; border: none; cursor: pointer;
  position: relative; z-index: calc(var(--z-nav) + 1);
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; margin: 5px auto;
  background: var(--color-text); transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .global-nav {
    position: fixed; inset: 0; z-index: var(--z-nav);
    background: var(--color-bg);
    display: grid; place-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
  }
  .global-nav.is-open { opacity: 1; visibility: visible; }
  .global-nav ul { flex-direction: column; text-align: center; gap: calc(var(--space) * 4); }
  .global-nav a { font-size: 20px; }
}

/* ヒーロー(トップ) */
.hero {
  min-height: 100svh;                  /* svh: モバイルのアドレスバー事故防止 */
  display: flex; align-items: flex-end;
  padding: var(--section-pad) 0 calc(var(--space) * 10);
}
.hero__title {
  font-size: clamp(40px, 8vw, 96px);
  line-height: 1.25;
}
.hero__lead { margin-top: calc(var(--space) * 4); max-width: 34em; color: var(--color-muted); }

/* 下層ページヘッダー */
.page-header { padding: calc(var(--section-pad) * 1.2) 0 calc(var(--section-pad) * 0.5); }
.page-header__en {
  font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--color-accent);
}
.page-header__title { font-size: clamp(32px, 5vw, 56px); margin-top: calc(var(--space) * 1); }

.breadcrumb { padding-block: calc(var(--space) * 2); font-size: 12px; color: var(--color-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.6em; list-style: none; padding: 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.6em; }
.breadcrumb a { text-decoration: none; }

/* ボタン */
.button {
  display: inline-block;
  padding: 16px 44px;
  background: var(--color-accent); color: var(--color-accent-ink);
  border: 1px solid var(--color-accent); border-radius: var(--radius);
  font-size: 15px; letter-spacing: 0.08em; text-decoration: none;
  cursor: pointer; transition: background 0.3s, color 0.3s;
}
.button:hover { background: transparent; color: var(--color-accent); opacity: 1; }
.button:disabled { opacity: 0.5; cursor: wait; }

/* フォーム */
.form { display: grid; gap: calc(var(--space) * 4); }
.form__field { display: grid; gap: calc(var(--space) * 1); }
.form__field label { font-size: 14px; font-weight: 600; }
.form__field .required { color: var(--color-accent); font-size: 12px; margin-left: 0.5em; }
.form input, .form textarea {
  font: inherit; padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-line); border-radius: var(--radius);
}
.form input:focus, .form textarea:focus { border-color: var(--color-accent); outline: none; }
.form [aria-invalid="true"] { border-color: #c0392b; }
.form__error { color: #c0392b; font-size: 13px; min-height: 1.2em; }
.form__hp { position: absolute; left: -9999px; }  /* ハニーポット: 削除禁止 */

/* フッター */
.site-footer {
  padding: calc(var(--space) * 8) 0 calc(var(--space) * 4);
  border-top: 1px solid var(--color-line);
  font-size: 13px; color: var(--color-muted);
}

/* ---------- 5. モーション基盤 ---------- */
/* JSが .is-inview を付ける。演出を変えるならこのクラスのtransform/opacityだけ触る */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}
.js-reveal.is-inview { opacity: 1; transform: none; }
.js-reveal[data-delay="1"] { transition-delay: 0.1s; }
.js-reveal[data-delay="2"] { transition-delay: 0.2s; }
.js-reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ---------- 6. モーション停止(SKILL.mdのポリシー実装。削除禁止) ---------- */
.motion-stop {
  display: none;
  position: fixed; right: 16px; bottom: 16px; z-index: var(--z-modal);
  padding: 10px 16px; font-size: 12px;
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: 999px; cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .motion-stop { display: block; }     /* reduced-motion環境にだけボタンを出す */
}
html.is-motion-off .js-reveal,
html.is-motion-off *[class] {
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
}
html.is-motion-off .js-reveal { opacity: 1; transform: none; }

/* Machi Tsumu landing page */
:root {
  --color-bg: #f9fbf7;
  --color-surface: #fff;
  --color-text: #172c2a;
  --color-muted: #546765;
  --color-accent: #315f4b;
  --color-accent-ink: #fff;
  --color-line: #d5e1d8;
  --font-display: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --container: 1200px;
  --section-pad: clamp(76px, 10vw, 138px);
  --radius: 4px;
}
html { scroll-padding-top: 82px; }
body { letter-spacing: 0; }
h1, h2, h3 { letter-spacing: 0; }
.skip-link { position: fixed; left: 10px; top: -80px; z-index: 1000; padding: 10px 16px; background: #fff; }
.skip-link:focus { top: 10px; }
.site-header { color: #17353a; padding: 15px clamp(22px, 5vw, 78px); }
.site-header.is-scrolled { background: rgba(249,251,247,.94); }
.site-header__logo { font-family: var(--font-display); font-size: 18px; font-weight: 700; white-space: nowrap; }
.logo-mark { color: #b57738; }
.global-nav ul { gap: clamp(18px, 3vw, 44px); }
.global-nav a { font-weight: 600; }
.hero { min-height: min(780px, 92svh); position: relative; overflow: hidden; display: flex; align-items: flex-start; padding: clamp(145px, 15vw, 210px) 0 95px; background: #a5c9e5; }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 84%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(236,245,245,.76) 0%, rgba(239,248,247,.53) 33%, transparent 71%); pointer-events: none; }
.hero__content { position: relative; z-index: 1; }
.hero__eyebrow, .section-kicker { color: #306252; font-size: 12px; font-weight: 700; margin-bottom: 20px; }
.hero__eyebrow { display: inline-block; padding: 5px 10px; background: rgba(255,255,255,.8); border-left: 2px solid #b78343; }
.hero h1 { font-size: clamp(35px, 5.6vw, 73px); line-height: 1.35; max-width: 720px; color: #16313a; text-shadow: 0 1px 16px rgba(255,255,255,.55); }
.hero__lead { font-size: clamp(15px, 1.4vw, 19px); color: #203f43; font-weight: 600; margin: 27px 0 29px; line-height: 2; }
.hero .button { box-shadow: 0 5px 0 rgba(19,47,37,.22); }
.hero .button:hover { background: #244a3b; color: #fff; }
.hero__bottom { position: absolute; z-index: 1; bottom: 22px; right: 5vw; color: #fff; font-size: 10px; font-weight: 700; text-shadow: 0 1px 4px #153337; }
.section-kicker { letter-spacing: .17em; }
.intro { background: #fff; text-align: center; }
.intro h2, .modes h2, .world h2, .discover h2, .faq h2, .closing h2 { font-size: clamp(28px, 3.5vw, 46px); line-height: 1.5; }
.section-intro { margin: 23px auto 0; color: var(--color-muted); }
.mobile-only { display: none; }
.journey-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(20px,4vw,60px); list-style: none; padding: 0; margin-top: 70px; }
.journey-steps li { position: relative; display: flex; flex-direction: column; align-items: center; }
.journey-steps li:not(:last-child)::after { content: "→"; position: absolute; right: calc(-1 * clamp(20px,4vw,60px) / 2 - 9px); top: 80px; color: #a4854f; font-size: 24px; }
.step-number { color: #a17439; font: 700 12px var(--font-body); }
.step-illustration, .journey-steps img { width: min(100%, 260px); height: 150px; margin: 14px auto 15px; object-fit: cover; border-bottom: 1px solid #b7c8b6; }
.step-illustration { display: grid; place-items: center; font-family: var(--font-display); font-size: 90px; color: #526f63; background: #eaf2e9; }
.step-illustration--travel { background: #e0eceb; color: #427e80; }
.journey-steps h3 { font-size: 22px; }
.journey-steps p { max-width: 24ch; color: var(--color-muted); font-size: 14px; margin-top: 9px; }
.modes { background: #edf5f0; }
.modes__head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; }
.modes__head > p { max-width: 350px; color: var(--color-muted); }
.mode-layout { display: grid; grid-template-columns: minmax(280px,.88fr) 1.12fr; grid-template-rows: auto 1fr; gap: 0 54px; align-items: start; }
.mode-switcher { grid-column: 1; display: flex; border-bottom: 1px solid #9eb8aa; }
.mode-switcher button { flex: 1; padding: 15px 4px; border: 0; background: none; color: #546e62; font: 600 14px var(--font-body); cursor: pointer; border-bottom: 3px solid transparent; }
.mode-switcher button[aria-selected="true"] { color: #235b44; border-bottom-color: #235b44; }
.mode-detail { grid-column: 1; padding: 35px 0 0; }
.mode-detail__label { color: #658476; font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.mode-detail h3 { font-size: clamp(22px,2.6vw,32px); margin: 12px 0; }
.mode-detail > p:not(.mode-detail__label) { color: var(--color-muted); max-width: 32ch; }
.mode-detail__time { display: block; font: 600 clamp(54px,7vw,86px) var(--font-display); color: #315f4b; line-height: 1.25; margin-top: 22px; }
.mode-detail__note { display: block; color: var(--color-muted); font-size: 11px; }
.mode-visual { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; position: relative; min-height: 440px; overflow: hidden; }
.mode-visual img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: center; }
.mode-visual figcaption { position: absolute; bottom: 16px; left: 16px; right: 16px; padding: 7px 12px; background: rgba(255,255,255,.9); color: #345846; font-size: 12px; }
.world { background: #fff; }
.world__grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(45px,7vw,100px); }
.world__copy p:not(.section-kicker) { color: var(--color-muted); margin-top: 22px; max-width: 34ch; }
.world__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.world__art figcaption { color: #627268; font-size: 12px; margin-top: 9px; }
.discover { background: #e7f0e9; }
.discover__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: center; }
.discover__grid > div:first-child > p:last-child { max-width: 42ch; margin-top: 26px; color: var(--color-muted); }
.discover__quote { border-left: 1px solid #a6c3b2; padding: 28px 0 28px 55px; }
.discover__quote span { color: #a5793a; }
.discover__quote p { font: 600 clamp(25px,3vw,40px)/1.65 var(--font-display); margin: 14px 0 20px; }
.discover__quote small { color: var(--color-muted); }
.faq { background: #fff; }
.faq h2 { margin-bottom: 40px; }
.faq details { border-top: 1px solid var(--color-line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--color-line); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 23px; font-weight: 400; color: #315f4b; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--color-muted); margin: 15px 40px 0 0; }
.closing { position: relative; min-height: 410px; overflow: hidden; display: flex; align-items: center; }
.closing > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(244,250,247,.91), rgba(244,250,247,.43) 55%, transparent); }
.closing__content { position: relative; z-index: 1; }
.closing__content > p:not(.section-kicker) { margin: 18px 0; font-weight: 600; }
.closing__content a { font-weight: 700; color: #235b44; text-underline-offset: 5px; }
.site-footer { background: #f9fbf7; padding: 22px 0; }
.site-footer .container { display: flex; justify-content: space-between; gap: 20px; }
@media (max-width: 767px) {
  .site-header { padding: 9px 18px; }
  .nav-toggle { background: rgba(255,255,255,.85); }
  .global-nav { background: #f9fbf7; }
  .hero { min-height: 86svh; padding: 115px 0 52px; }
  .hero__art { object-position: center 70%; }
  .hero::after { background: linear-gradient(180deg, rgba(239,247,247,.91) 0%, rgba(239,247,247,.74) 28%, transparent 70%); }
  .hero h1 { font-size: clamp(32px,9vw,48px); }
  .hero__lead { margin: 14px 0 18px; }
  .hero__bottom { display: none; }
  .mobile-only { display: initial; }
  .journey-steps { grid-template-columns: 1fr; gap: 48px; margin-top: 45px; }
  .journey-steps li:not(:last-child)::after { right: auto; top: auto; bottom: -46px; transform: rotate(90deg); }
  .step-illustration, .journey-steps img { height: 130px; width: min(100%,250px); }
  .modes__head { display: block; }
  .modes__head > p { margin-top: 18px; }
  .mode-layout, .world__grid, .discover__grid { display: grid; grid-template-columns: 1fr; gap: 0; }
  .mode-visual { grid-column: 1; grid-row: auto; min-height: 360px; margin-top: 30px; }
  .mode-detail { padding-top: 24px; }
  .world__art { margin-top: 35px; }
  .discover__quote { margin-top: 35px; padding-left: 25px; }
  .closing { min-height: 410px; }
  .closing::after { background: rgba(244,250,247,.68); }
}
