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

/* ---------- 1. トークン(案件ごとに必ず引き直す) ---------- */
:root {
  /* 色: ワン・ステップ不動産 — 深藍(信頼)×生成り×焦がしオレンジ(行動) */
  --color-bg: #f6f3ee;          /* 地(生成り) */
  --color-surface: #ffffff;     /* 面 */
  --color-text: #33322e;        /* 本文(墨) */
  --color-muted: #77726a;       /* 補助テキスト */
  --color-navy: #2b4a6f;        /* 深藍(見出し・パネル) */
  --color-navy-deep: #223c5a;   /* 深藍の濃 */
  --color-accent: #b06622;      /* 焦がしオレンジ(CTA。白文字4.5:1確保) */
  --color-accent-ink: #ffffff;  /* accent上の文字色 */
  --color-line: #dfd9cf;        /* 罫線 */

  /* タイポ: 太ゴシック見出し(誠実×現代的)×読みやすい本文 */
  --font-display: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-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: 0px;               /* 直角(標準方針) */

  /* 階層: 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・英単語のはみ出し事故防止 */
}

p, li, dd { text-wrap: pretty; }    /* 最終行1〜2文字残りの改行事故防止 */

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;
}
/* すりガラスは疑似要素に持たせる。ヘッダー本体にbackdrop-filterを付けると
   中の全画面ナビ(position:fixed)の基準がヘッダー自身になり、スクロール後に
   メニューが数十pxの帯に潰れる(iPhone実機で発生した罠。pitfalls.md 9参照) */
.site-header::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled {
  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; }

/* ============================================================
   7. ページ固有: ワン・ステップ不動産(p-home)
   ============================================================ */

.sp-only { display: inline; }
@media (min-width: 768px) { .sp-only { display: none; } }

/* 改行事故防止+文節折り返し */
p, li, dd { text-wrap: pretty; }
.section-head__title, .worry__closing, .cta-final__title { text-wrap: balance; }
.hero__title, .hero__lead, .section-head__title, .worry__closing,
.cta-final__title { word-break: auto-phrase; }

@media (max-width: 767px) {
  body { padding-bottom: 64px; }
}

h1, h2, h3 { font-weight: 700; letter-spacing: 0.03em; }

/* ---- ヘッダー(常時白地。紺ヒーローの上でもロゴが見えるように) ---- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}
.site-header__logo { text-decoration: none; line-height: 1.2; }
.site-header__logo-main {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--color-navy);
}
.site-header__logo-sub {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}
.header-tel {
  display: block;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  text-decoration: none;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
}
.header-tel span { display: block; font-size: 10px; letter-spacing: 0.1em; }
.header-tel:hover { opacity: 0.85; }

/* ---- ヒーロー(スプリット型) ---- */
.p-home .hero {
  display: grid;
  min-height: 92svh;
  padding: 0;
  align-items: stretch;
}
@media (min-width: 768px) {
  .p-home .hero { grid-template-columns: 1.05fr 1fr; }
}
.hero__panel {
  background: var(--color-navy);
  color: #f6f3ee;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--space) * 16) clamp(24px, 5vw, 72px) calc(var(--space) * 8);
}
.hero__place {
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #a8c2de;
}
.p-home .hero__title {
  margin-top: calc(var(--space) * 3);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.4;
  color: #ffffff;
}
.p-home .hero__lead {
  margin-top: calc(var(--space) * 3);
  max-width: 32em;
  color: #e8e2d8;
  font-size: 15px;
}
.hero__cta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: calc(var(--space) * 2.5);
  margin-top: calc(var(--space) * 5);
}
.hero__photo {
  position: relative;
  margin: 0;
  min-height: 320px;
}
.hero__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__photo figcaption {
  position: absolute;
  left: 0; bottom: 0;
  background: rgba(43, 74, 111, 0.88);
  color: #f6f3ee;
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 8px 18px;
}
@media (max-width: 767px) {
  .p-home .hero { min-height: auto; }
  .hero__panel { padding-top: calc(var(--space) * 14); }
  .hero__photo { min-height: 46vw; }
  .hero__photo img { position: static; height: auto; aspect-ratio: 3 / 2; }
}

/* ---- 電話ボタン(主役CTA) ---- */
.tel-button {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  text-decoration: none;
  padding: 14px 32px;
  text-align: center;
  line-height: 1.3;
  transition: background 0.3s;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.tel-button:hover { background: #99551a; opacity: 1; }
.tel-button__label { display: block; font-size: 12px; letter-spacing: 0.16em; font-weight: 700; }
.tel-button__number {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.tel-button__hours { display: block; font-size: 11px; opacity: 0.9; margin-top: 2px; }
.tel-button--large { padding: 18px 44px; }

.button--ghost-light {
  background: transparent;
  color: #f6f3ee;
  border: 1px solid rgba(246, 243, 238, 0.55);
  padding: 14px 30px;
  font-size: 14px;
}
.button--ghost-light:hover { border-color: #fff; color: #fff; opacity: 1; }

/* ---- セクション見出し ---- */
.section-head__en {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  font-weight: 700;
}
.section-head__title { color: var(--color-navy); }

/* ---- お悩み ---- */
.worry__list {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: calc(var(--space) * 0.5) calc(var(--space) * 4);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding-block: calc(var(--space) * 3);
}
@media (min-width: 768px) { .worry__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .worry__list { grid-template-columns: 1fr 1fr 1fr; } }
.worry__list li {
  font-size: 15px;
  position: relative;
  padding: 10px 0 10px 24px;
  font-weight: 500;
}
.worry__list li::before {
  content: "";
  position: absolute; left: 4px; top: 50%;
  width: 8px; height: 8px;
  background: var(--color-accent);
  transform: translateY(-50%);
}
.worry__closing {
  text-align: center;
  margin-top: calc(var(--space) * 5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.6vw, 24px);
  line-height: 1.9;
  color: var(--color-navy);
}

/* ---- 選ばれる理由 ---- */
.reason { background: var(--color-surface); }
.reason__list {
  list-style: none; padding: 0;
  display: grid; gap: 0 calc(var(--space) * 8);
}
@media (min-width: 768px) { .reason__list { grid-template-columns: repeat(2, 1fr); } }
.reason__list li {
  border-top: 2px solid var(--color-navy);
  padding: calc(var(--space) * 3.5) 4px calc(var(--space) * 4);
}
.reason__num {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  font-weight: 700;
}
.reason__list h3 { margin-top: 6px; font-size: 20px; color: var(--color-navy); }
.reason__list p { margin-top: 8px; font-size: 14px; color: var(--color-muted); }

/* ---- 代表メッセージ ---- */
.message {
  background: var(--color-navy);
  color: #eef2f7;
}
.message .section-head__en { color: #c9a87e; }
.message .section-head__title { color: #ffffff; }
.message__body p { margin-top: calc(var(--space) * 2.5); line-height: 2.1; }
.message__body p:first-child { margin-top: 0; }
.message__sign {
  margin-top: calc(var(--space) * 4);
  text-align: right;
  font-size: 13px;
  color: #a8c2de;
}
.message__sign strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  color: #ffffff;
  margin-top: 4px;
  letter-spacing: 0.1em;
}

/* ---- 相談の流れ(STEP階段・シグネチャー) ---- */
.flow__list {
  list-style: none; padding: 0;
  display: grid;
  gap: calc(var(--space) * 2);
  counter-reset: step;
}
.flow__step {
  background: var(--color-surface);
  border-left: 4px solid var(--color-navy);
  padding: calc(var(--space) * 3) calc(var(--space) * 4);
}
/* PC: 一歩ずつ右下へ降りていく階段レイアウト */
@media (min-width: 768px) {
  .flow__step { width: 62%; }
  .flow__step:nth-child(1) { margin-left: 0; }
  .flow__step:nth-child(2) { margin-left: 12%; }
  .flow__step:nth-child(3) { margin-left: 24%; }
  .flow__step:nth-child(4) { margin-left: 38%; border-left-color: var(--color-accent); }
}
.flow__num {
  font-size: 12px;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--color-accent);
}
.flow__step h3 { margin-top: 4px; font-size: 19px; color: var(--color-navy); }
.flow__step p { margin-top: 6px; font-size: 14px; color: var(--color-muted); }

/* ---- 対応できる物件・状況 ---- */
.cases { background: var(--color-surface); }
.cases__list {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: calc(var(--space) * 1.5);
}
.cases__list li {
  border: 1px solid var(--color-navy);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
}
.cases__note { margin-top: calc(var(--space) * 3); font-size: 12px; color: var(--color-muted); }

/* ---- お客様の声 ---- */
.voice__cards {
  list-style: none; padding: 0;
  display: grid; gap: calc(var(--space) * 3);
}
.voice__card {
  border-left: 2px solid var(--color-line);
  padding: calc(var(--space) * 1) calc(var(--space) * 3.5);
  position: relative;
}
.voice__card::before {
  content: "“";
  position: absolute; top: -6px; left: 10px;
  font-family: Georgia, serif;
  font-size: 40px;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.65;
}
.voice__text { font-size: 14px; padding-left: calc(var(--space) * 2); line-height: 2; }
.voice__meta {
  margin-top: calc(var(--space) * 1.5);
  padding-left: calc(var(--space) * 2);
  font-size: 12px;
  color: var(--color-muted);
}
.voice__note { margin-top: calc(var(--space) * 3); font-size: 12px; color: var(--color-muted); }
.voice__note a { color: var(--color-muted); }

/* ---- 会社概要・アクセス ---- */
.access__grid { display: grid; gap: calc(var(--space) * 5); }
@media (min-width: 768px) { .access__grid { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.access__list {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding: 0 4px;
  margin: 0;
}
.access__list > div {
  display: grid; grid-template-columns: 8em 1fr; gap: calc(var(--space) * 2);
  padding: calc(var(--space) * 2.25) 0;
}
.access__list > div + div { border-top: 1px solid var(--color-line); }
.access__list dt { font-weight: 700; font-size: 14px; color: var(--color-navy); }
.access__list dd { margin: 0; font-size: 14px; }
.access__list dd a { color: var(--color-text); font-weight: 700; text-decoration: none; }
@media (max-width: 480px) {
  .access__list > div { grid-template-columns: 1fr; gap: 2px; }
}
.access__side { display: grid; gap: calc(var(--space) * 3); }
.access__photo { margin: 0; position: relative; }
.access__photo img { width: 100%; height: clamp(220px, 30vw, 340px); object-fit: cover; object-position: center 65%; }
.access__photo figcaption {
  position: absolute; left: 0; bottom: 0;
  background: rgba(43, 74, 111, 0.88);
  color: #f6f3ee;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 6px 14px;
}
.access__map iframe { width: 100%; height: 300px; }

/* ---- 関連事業 ---- */
.related { padding-block: calc(var(--section-pad) * 0.5); }
.related .section-head { margin-bottom: calc(var(--space) * 3); }

/* ---- 最終CTA ---- */
.cta-final {
  background: var(--color-navy-deep);
  color: #eef2f7;
}
.cta-final__en {
  font-size: 13px;
  letter-spacing: 0.34em;
  color: #c9a87e;
  text-transform: uppercase;
  font-weight: 700;
}
.cta-final__title {
  font-size: clamp(26px, 4.2vw, 40px);
  color: #ffffff;
  margin-top: calc(var(--space) * 2);
}
.cta-final p { margin-top: calc(var(--space) * 3); opacity: 0.92; }
.cta-final__buttons {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: calc(var(--space) * 2.5);
  margin-top: calc(var(--space) * 5);
}

/* ---- フッター ---- */
.site-footer__inner { display: grid; gap: calc(var(--space) * 2); }

/* ---- SP下部固定バー ---- */
.fixed-cta { display: none; }
@media (max-width: 767px) {
  .fixed-cta {
    display: grid;
    grid-template-columns: 2.4fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: var(--z-modal);
    background: var(--color-surface);
    border-top: 1px solid var(--color-line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .fixed-cta__item {
    display: grid; place-content: center;
    padding: 10px 4px;
    font-size: 12px; font-weight: 700;
    text-decoration: none;
    text-align: center;
    color: var(--color-navy);
  }
  .fixed-cta__item--tel {
    background: var(--color-accent);
    color: var(--color-accent-ink);
    font-size: 16px;
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.25;
  }
  .fixed-cta__item--tel span { display: block; font-size: 10px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.1em; }
  .motion-stop { bottom: 76px; }
}
