/* トップページ（2026-11-06 作り直し）。色・書体はこれまでのサイト（紺・金・明朝）を引き継ぐ */
:root {
  --navy: #16283c;
  --navy-deep: #0f1d2c;
  --gold: #b98a2f;
  --gold-2: #a37723;
  --gold-soft: #f3ead8;
  --gold-light: #e5cc95;
  --paper: #f6f4ef;
  --ink: #1d2430;
  --muted: #5d6573;
  --line: #e3dfd5;
  --white: #fff;
  --serif: "Noto Serif JP", serif;
  --sans: "Noto Sans JP", system-ui, sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2 {
  font-family: var(--serif); font-weight: 600; letter-spacing: .02em; margin: 0;
  /* 見出しは文節で折り返す（1〜2文字だけ次の行に落ちるのを防ぐ） */
  word-break: auto-phrase; text-wrap: balance;
}
p { margin: 0; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.sp { display: none; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; letter-spacing: .04em;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-2); }
.btn-line-w { border: 1.5px solid rgba(255, 255, 255, .8); color: var(--white); }
.btn-line-w:hover { background: var(--white); color: var(--navy); }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: 14px; }
.btn-lg { min-height: 60px; padding: 0 36px; font-size: 16px; }

/* ヘッダー */
.hd {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.hd-in { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: .06em;
  text-decoration: none; color: var(--navy);
}
.brand span { font-size: 15px; margin-left: 2px; }
.hd-nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; }
.hd-nav a { text-decoration: none; color: var(--muted); }
.hd-nav a:hover { color: var(--navy); }

/* ===== 最初の画面：スクロールで「不動産 → データ → AI」と移る ===== */
.fv { --p: 0; position: relative; height: 300vh; background: var(--navy-deep); color: var(--white); }
.fv-sticky { position: sticky; top: 64px; height: calc(100vh - 64px); overflow: hidden; }
.fv-layer { position: absolute; inset: 0; }
.fv-layer img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
/* 写真はゆっくり寄り、データの線の絵に重ね替わる */
.fv-photo { transform: scale(calc(1.12 - var(--p) * .12)); transform-origin: 60% 55%; }
.fv-data { opacity: clamp(0, calc((var(--p) - .22) * 4), 1); transform: scale(calc(1.12 - var(--p) * .12)); transform-origin: 60% 55%; }
.fv-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15, 29, 44, .9) 0%, rgba(15, 29, 44, .62) 46%, rgba(15, 29, 44, .1) 100%);
}
.fv-inner {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
}
.fv-tag { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255, 255, 255, .75); letter-spacing: .04em; }
.fv-tag span {
  padding: 4px 12px; border: 1px solid rgba(229, 204, 149, .7); border-radius: 999px;
  color: var(--gold-light); font-weight: 700; letter-spacing: .12em;
}
.fv h1 { margin-top: 18px; font-size: clamp(26px, 2.9vw, 40px); line-height: 1.5; color: var(--white); }
.fv-steps { position: relative; margin-top: 24px; min-height: 6.6em; max-width: 34em; }
.fv-step {
  position: absolute; inset: 0 auto auto 0; font-size: 15px; line-height: 1.85; color: rgba(255, 255, 255, .86);
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s;
}
.fv-step b { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 13px; letter-spacing: .14em; color: var(--gold-light); }
.fv[data-stage="0"] .fv-step[data-step="0"],
.fv[data-stage="1"] .fv-step[data-step="1"],
.fv[data-stage="2"] .fv-step[data-step="2"] { opacity: 1; transform: none; }
.fv-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* 分析の例（AI の段で出てくる） */
.fv-panel {
  opacity: clamp(0, calc((var(--p) - .55) * 5), 1);
  transform: translateY(calc((1 - clamp(0, calc((var(--p) - .55) * 5), 1)) * 40px));
}
.ai-panel {
  margin: 0; border-radius: 14px; overflow: hidden;
  background: rgba(15, 29, 44, .78); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px); box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.ai-panel-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ai-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.ai-panel-bar p { margin-left: 10px; font-size: 12px; color: rgba(255, 255, 255, .7); letter-spacing: .06em; }
.ai-live { margin-left: 8px; padding: 1px 8px; border-radius: 4px; background: rgba(217, 189, 131, .2); color: var(--gold-light); font-size: 11px; }
.ai-panel-body { padding: 18px 20px 16px; }
.ai-target { font-size: 12px; color: rgba(255, 255, 255, .7); }
.ai-target b { margin-right: 10px; font-family: var(--serif); font-size: 17px; color: var(--white); font-weight: 600; }
.ai-chart { display: block; width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.ai-band { fill: rgba(217, 189, 131, .14); stroke: rgba(217, 189, 131, .5); stroke-dasharray: 3 3; }
.ai-band-label { fill: var(--gold-light); font-size: 13px; text-anchor: middle; }
.ai-axis { stroke: rgba(255, 255, 255, .25); }
.ai-ticks text { fill: rgba(255, 255, 255, .5); font-size: 13px; }
.ai-pt { fill: var(--gold); stroke: var(--navy-deep); stroke-width: 2; }
.ai-comment {
  margin-top: 12px; padding: 10px 12px; border-radius: 8px;
  background: rgba(217, 189, 131, .1); border-left: 2px solid var(--gold);
  font-size: 13px; line-height: 1.75; color: rgba(255, 255, 255, .9);
}
.ai-comment::before { content: "AIのコメント　"; color: var(--gold-light); font-weight: 700; }
.ai-src { margin-top: 8px; font-size: 10px; color: rgba(255, 255, 255, .45); }

/* 段階の目印とスクロールの案内 */
.fv-progress {
  position: absolute; z-index: 3; right: 28px; top: 50%; transform: translateY(-50%);
  list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 12px; letter-spacing: .12em;
}
.fv-progress li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .45); transition: color .4s; }
.fv-progress li::before { content: ""; width: 18px; height: 2px; background: currentColor; transition: width .4s; }
.fv[data-stage="0"] .fv-progress [data-step="0"],
.fv[data-stage="1"] .fv-progress [data-step="1"],
.fv[data-stage="2"] .fv-progress [data-step="2"] { color: var(--gold-light); }
.fv[data-stage="0"] .fv-progress [data-step="0"]::before,
.fv[data-stage="1"] .fv-progress [data-step="1"]::before,
.fv[data-stage="2"] .fv-progress [data-step="2"]::before { width: 34px; }
.fv-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .3em; color: rgba(255, 255, 255, .6);
  opacity: calc(1 - var(--p) * 4);
}
.fv-hint::after { content: ""; display: block; width: 1px; height: 28px; margin: 8px auto 0; background: rgba(255, 255, 255, .5); }

/* 動きを減らす設定のときは、スクロールで止めずに最後の段階を最初から見せる */
.fv-static { height: auto; }
.fv-static .fv-sticky { position: relative; top: 0; height: auto; min-height: calc(100vh - 64px); padding: 64px 0; }
.fv-static .fv-step { position: static; opacity: 1; transform: none; margin-bottom: 10px; }
.fv-static .fv-steps { min-height: 0; }
.fv-static .fv-hint, .fv-static .fv-progress { display: none; }

/* ===== 共通の段 ===== */
.sec { padding: 104px 0; }
.sec-paper { background: var(--paper); }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.num {
  font-family: var(--serif); font-size: 14px; color: var(--gold-2); letter-spacing: .1em;
  display: flex; align-items: center; gap: 12px;
}
.num::after { content: ""; width: 40px; height: 1px; background: var(--gold); }
.sec-head h2, .agent h2 { margin-top: 14px; font-size: clamp(26px, 3vw, 36px); line-height: 1.5; color: var(--navy); }
.sec-head > p:last-child:not(.num) { margin-top: 18px; color: var(--muted); }

/* 現場で見てきた課題と、AIでの解き方 */
.ai-issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ai-issues li {
  display: grid; grid-template-columns: 56px 1fr 1fr;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white);
}
.ai-issue-num {
  display: grid; place-items: center; background: var(--navy); color: var(--gold-light);
  font-family: var(--serif); font-size: 18px; letter-spacing: .06em;
}
.ai-issue-q, .ai-issue-a { padding: 24px 26px; }
.ai-issue-a { position: relative; background: var(--gold-soft); }
.ai-issue-a::before {
  content: "→"; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold); color: var(--white); font-size: 14px; font-weight: 700;
}
.ai-issue-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.ai-issue-a .ai-issue-label { color: var(--gold-2); }
.ai-issue-title {
  margin: 6px 0 8px; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--navy); line-height: 1.5;
  word-break: auto-phrase; text-wrap: balance;
}
.ai-issue-q > p:last-child, .ai-issue-a > p:last-child { font-size: 14px; color: var(--muted); line-height: 1.8; }
.ai-note { margin-top: 24px; font-size: 14px; color: var(--muted); }

/* 売却・購入 */
.lead-card {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: center;
  margin-bottom: 20px; padding: 26px 30px; border-radius: var(--radius);
  background: var(--navy); color: var(--white); text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.lead-card:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(22, 40, 60, .2); }
.lead-card-label { grid-column: 1; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--gold-light); }
.lead-card-title { grid-column: 1; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.lead-card-desc { grid-column: 1; font-size: 14px; color: rgba(255, 255, 255, .78); }
.lead-card-go {
  grid-column: 2; grid-row: 1 / span 3; padding: 14px 28px; border-radius: 999px;
  background: var(--gold); font-weight: 700; font-size: 15px; white-space: nowrap;
}
.lead-card-go::after { content: " →"; }
.link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.link-grid-3 { grid-template-columns: repeat(3, 1fr); }
.link-card {
  display: flex; flex-direction: column; text-decoration: none; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.link-card:hover { box-shadow: 0 14px 36px rgba(22, 40, 60, .12); transform: translateY(-2px); }
.link-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.link-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.link-card-title { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--navy); line-height: 1.5; }
.link-card-title::after { content: " →"; color: var(--gold); }
.link-card-desc { font-size: 13px; line-height: 1.75; color: var(--muted); }
.sub-links { margin-top: 24px; font-size: 14px; color: var(--muted); }
.sub-links a { margin-left: 10px; color: var(--navy); font-weight: 700; }

/* これまでに作ってきたサービス */
.sec-dark { background: var(--navy-deep); color: var(--white); }
.sec-dark .sec-head h2 { color: var(--white); }
.sec-dark .sec-head > p:last-child:not(.num) { color: rgba(255, 255, 255, .72); }
.sec-dark .num { color: var(--gold-light); }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.app-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--white);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); overflow: hidden;
  transition: background-color .2s, transform .2s;
}
.app-card:hover { background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.app-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.app-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; }
.app-for { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--gold-light); }
.app-title { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.45; }
.app-desc { font-size: 13px; line-height: 1.75; color: rgba(255, 255, 255, .75); }
.app-go { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--gold-light); }
.app-go::after { content: " →"; }

/* 不動産コラム */
.col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.col-card {
  display: flex; flex-direction: column; text-decoration: none; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.col-card:hover { box-shadow: 0 14px 36px rgba(22, 40, 60, .12); transform: translateY(-2px); }
.col-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper); }
.col-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; }
.col-meta { font-size: 12px; color: var(--muted); }
.col-meta span { margin-right: 10px; padding: 1px 8px; border-radius: 4px; background: var(--gold-soft); color: var(--gold-2); font-weight: 700; }
.col-title { font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.6; color: var(--navy); }

/* 自己紹介 */
.agent { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; }
.agent-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.agent-name { margin: 24px 0 14px; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--navy); }
.agent-name span { margin-left: 12px; font-size: 13px; color: var(--muted); font-family: var(--sans); font-weight: 400; }
.agent-text > p:not(.num):not(.agent-name) { color: var(--muted); }
.agent-text > p + p:not(.agent-name) { margin-top: 12px; }
.agent-meta { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.agent-meta li { font-size: 12px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--white); }
.agent-text .agent-license { margin-top: 14px; font-size: 12px; }

/* 相談 */
.contact { background: var(--navy); color: var(--white); padding: 96px 0; text-align: center; }
.contact h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.5; }
.contact > .wrap > p { margin-top: 16px; color: rgba(255, 255, 255, .78); }
.contact-cta { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contact .contact-note { margin: 28px auto 0; max-width: 36em; font-size: 13px; color: rgba(255, 255, 255, .62); }
.contact-note a { color: var(--gold-light); }

/* フッター */
.ft { background: var(--navy-deep); color: rgba(255, 255, 255, .66); font-size: 13px; padding: 48px 0 24px; }
.ft-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.ft-brand { font-family: var(--serif); font-size: 16px; color: var(--white); margin-bottom: 8px; }
.ft-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ft-links a { text-decoration: none; }
.ft-links a:hover { color: var(--white); }
.ft-copy { text-align: center; margin-top: 40px; font-size: 12px; }

/* タブレット */
@media (max-width: 960px) {
  .hd-nav { display: none; }
  .hd-in .btn { margin-left: auto; }
  .fv-inner { grid-template-columns: 1fr; align-content: center; gap: 28px; }
  .fv-panel { max-width: 460px; }
  .fv-progress { right: 16px; }
  .link-grid { grid-template-columns: 1fr 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .col-grid { grid-template-columns: 1fr 1fr; }
  .agent { grid-template-columns: 300px 1fr; gap: 40px; }
}

/* スマホ */
@media (max-width: 760px) {
  .ai-issues li { grid-template-columns: 1fr; }
  .ai-issue-num { justify-items: start; padding: 8px 20px; font-size: 15px; }
  .ai-issue-q, .ai-issue-a { padding: 20px; }
  .ai-issue-a::before { content: "↓"; left: 20px; top: -14px; transform: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { width: calc(100% - 32px); }
  .sp { display: inline; }
  .pc { display: none; }
  .brand { font-size: 17px; }
  .hd-in { height: 58px; }
  .fv { height: 260vh; }
  .fv-sticky { top: 58px; height: calc(100svh - 58px); }
  .fv-shade { background: linear-gradient(180deg, rgba(15, 29, 44, .55) 0%, rgba(15, 29, 44, .88) 60%); }
  .fv-inner { align-content: end; padding-bottom: 72px; }
  .fv h1 { font-size: 26px; }
  .fv-step { font-size: 14px; }
  .fv-steps { min-height: 8.6em; }
  .fv-cta .btn { flex: 1 1 100%; min-height: 48px; }
  .fv-panel { display: none; }
  .fv-progress { top: auto; bottom: 20px; right: 16px; transform: none; display: flex; gap: 12px; font-size: 11px; }
  .fv-progress li::before { width: 10px; }
  .fv[data-stage] .fv-progress li::before { width: 10px; }
  .fv-hint { left: 16px; transform: none; bottom: 18px; }
  .fv-hint::after { display: none; }
  .sec { padding: 72px 0; }
  .sec-head { margin-bottom: 32px; }
  .lead-card { grid-template-columns: 1fr; padding: 22px 20px; }
  .lead-card-go { grid-column: 1; grid-row: auto; margin-top: 12px; text-align: center; }
  .link-grid, .link-grid-3 { grid-template-columns: 1fr; }
  .link-card { flex-direction: row; }
  .link-card img { width: 38%; aspect-ratio: auto; }
  .link-card-body { padding: 12px 14px; }
  .link-card-title { font-size: 15px; }
  .sub-links a { display: inline-block; margin: 6px 12px 0 0; }
  .col-grid { grid-template-columns: 1fr; }
  .agent { grid-template-columns: 1fr; gap: 28px; }
  .agent-photo { max-width: 320px; }
  .contact { padding: 72px 0; }
  .contact .btn-lg { width: 100%; padding: 0 20px; }
}
