@charset "UTF-8";
/* =========================================================
   HANABI不動産  style.css（Bデザイン）
   ---------------------------------------------------------
   白とライトグレーを基調に、細い罫線と太いサンセリフの英字見出しで
   すっきり見せるデザイン。色は相談メニューごとの差し色にだけ使います。
   ★ 差し色は :root の --c-buy / --c-sell / --c-invest で変更できます。
   ========================================================= */

:root {
  --c-ink: #202020;          /* 文字色 */
  --c-muted: #6f6f6f;        /* 補足の文字 */
  --c-line: #e2e2e2;         /* 罫線 */
  --c-gray: #f6f6f4;         /* 面のグレー */
  --c-white: #fff;

  --c-buy: #f37977;          /* 購入：コーラル（HANABIのメインカラー） */
  --c-sell: #e7a93a;         /* 売却：ゴールド */
  --c-invest: #2a9074;       /* 投資：グリーン */
  --c-accent: var(--c-buy);  /* リンク・強調 */
  --c-gold: #c99a3a;         /* ロゴの金色 */
  --c-line-green: #06c755;   /* LINE */

  --f-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-jp: "Inter", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --rail: 72px;              /* 右レールの幅 */
  --inner: min(1200px, calc(100% - 96px));
  --sec-space: clamp(110px, 12vw, 180px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --soft: cubic-bezier(.25, .8, .25, 1); /* ホバー用のゆっくりしたイージング */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* hidden 属性を display 指定より優先（閉じたメニューが透明なまま画面を覆い、クリックを奪うのを防ぐ） */
[hidden] { display: none !important; }
html { background: var(--c-white); scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; } /* ページ内スクロールは js/main.js の softScrollTo で全ブラウザ共通の速さに */
body {
  margin: 0; padding-right: var(--rail); overflow-x: hidden;
  background: var(--c-white); color: var(--c-ink);
  font-family: var(--f-jp); font-size: 15px; font-weight: 400; line-height: 1.9; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: #c27d16; color: #fff; } /* 文字を選択した時の色：ロゴのオレンジ */
:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.arw { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: translate .4s var(--ease); }

/* スクロールで静かにフェードイン */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- 共通パーツ ---------- */
/* 枠線の四角いリンク（矢印つき） */
.box-link {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  position: relative; isolation: isolate; overflow: hidden;
  min-width: 200px; padding: 13px 16px 13px 20px; border: 1px solid var(--c-ink); background: var(--c-white);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; line-height: 1.4;
  transition: color .5s var(--soft), border-color .5s var(--soft), transform .5s var(--soft), box-shadow .5s var(--soft);
}
/* ホバー・キーボード操作：左から色がゆっくり満ちる */
.box-link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c-ink); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--soft); }
.box-link:focus-visible { color: var(--c-white); }
@media (hover: hover) { .box-link:hover { color: var(--c-white); } }
@media (hover: hover) { .box-link:hover { box-shadow: 0 10px 24px rgba(32, 32, 32, .12); } }
.box-link:focus-visible::before { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) { .box-link:hover::before { transform: scaleX(1); transform-origin: left; } }
.box-link .arw { transition: translate .5s var(--soft); }
@media (hover: hover) { .box-link:hover .arw { translate: 4px 0; } }
.box-link.is-ghost { border-color: var(--c-line); }

/* セクション見出し：大きな英字＋小さな日本語 */
.sec { width: var(--inner); margin: 0 auto; padding-top: var(--sec-space); }
.sec-head { display: grid; gap: 6px; }
.sec-en { font: 800 clamp(40px, 5.4vw, 72px)/1 var(--f-en); letter-spacing: -.03em; }
.sec-jp { font-size: 15px; font-weight: 700; letter-spacing: .12em; line-height: 1.7; }
h2.sec-jp { font-size: clamp(18px, 1.8vw, 22px); }
.sec-sub { display: flex; align-items: center; gap: 12px; margin-top: 8px; color: var(--c-muted); font: 600 12px/1.4 var(--f-en); letter-spacing: .2em; }
.sec-sub::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.sec-desc { color: var(--c-muted); font-size: 14px; }
.sec-head-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 40px; }
.sec-head + .sec-desc { margin-top: 22px; }

.breadcrumb { color: var(--c-muted); font: 500 12px/1 var(--f-en); letter-spacing: .1em; }
.breadcrumb a { color: var(--c-ink); }
.tag { display: inline-block; padding: 2px 10px; border: 1px solid currentColor; font: 700 11px/1.6 var(--f-en); letter-spacing: .14em; }

/* ---------- 右レール（画面右端に固定） ---------- */
.rail {
  /* iOS の fixed のずれを避けるため sticky。流れの中では高さ0扱いにして、body の右余白（--rail）に収める */
  position: sticky; top: 0; z-index: 120; display: grid; grid-template-rows: auto 1fr auto; justify-items: center;
  height: 100vh; height: 100svh; margin: 0 calc(var(--rail) * -1) -100vh auto; margin-bottom: -100svh;
  width: var(--rail); padding: 26px 0 28px; border-left: 1px solid var(--c-line); background: var(--c-white);
}
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.menu-dots { display: grid; grid-template-columns: repeat(3, 4px); gap: 4px; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.menu-dots i { width: 4px; height: 4px; background: var(--c-ink); transition: transform .4s var(--ease), opacity .3s; }
.menu-btn[aria-expanded="true"] .menu-dots i:nth-child(odd) { transform: scale(1.4); }
.menu-btn[aria-expanded="true"] .menu-dots i:nth-child(even) { opacity: 0; }
/* ホバー：ドットの集まりが45°回転し、左上から右下へ波のように弾む */
@media (hover: hover) { .menu-btn[aria-expanded="false"]:hover .menu-dots { transform: rotate(45deg); } }
@media (hover: hover) { .menu-btn[aria-expanded="false"]:hover .menu-dots i { animation: dotWave 1.1s cubic-bezier(.34, 1.56, .64, 1) infinite; animation-delay: calc(var(--d, 0) * 90ms); } }
.menu-dots i:nth-child(2), .menu-dots i:nth-child(4) { --d: 1; }
.menu-dots i:nth-child(3), .menu-dots i:nth-child(5), .menu-dots i:nth-child(7) { --d: 2; }
.menu-dots i:nth-child(6), .menu-dots i:nth-child(8) { --d: 3; }
.menu-dots i:nth-child(9) { --d: 4; }
@keyframes dotWave {
  0%, 60%, 100% { transform: scale(1); background: var(--c-ink); }
  25% { transform: scale(1.7); background: var(--c-accent); }
}
.rail-brand { align-self: center; writing-mode: vertical-rl; color: var(--c-muted); font: 700 11px/1 var(--f-en); letter-spacing: .4em; }
.rail-links { display: grid; gap: 18px; }
.rail-links a { display: grid; place-items: center; width: 32px; height: 32px; }
@media (hover: hover) { .rail-links a:hover { color: var(--c-accent); } }
.rail-links svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }

/* ---------- ヘッダー ---------- */
/* ヘッダー（ロゴ・電話・お問い合わせ）は上部に固定。スクロール中は隠れ、止まると現れる（js/main.js の .is-hidden）
   少しスクロールした後は、白の半透明の下地を敷く（.is-scrolled） */
.site-header { position: sticky; top: 0; z-index: 105; display: flex; align-items: flex-start; justify-content: space-between; height: 94px; margin-bottom: -94px; padding: 0 0 0 clamp(24px, 4vw, 56px); pointer-events: none; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0 0 auto 0; z-index: -1; height: 64px; transition: background-color .45s var(--soft); } /* スクロール後の白い帯 */
.site-header.is-hidden { opacity: 0; transform: translateY(-100%); }
.site-header.is-hidden > * { pointer-events: none; }
html.is-scrolled .site-header::before { background: rgba(255, 255, 255, .9); } /* backdrop-filter は Safari で表示が乱れやすいので使わない */
/* ロゴ：スクロール後は小さくして、ヘッダーの高さ（64px）にそろえる */
.brand { display: block; padding-top: 26px; pointer-events: auto; transition: padding .45s var(--soft); }
.brand img { width: auto; height: 68px; transition: height .45s var(--soft), opacity .5s var(--soft); }
html.is-scrolled .brand { padding-top: 9px; padding-bottom: 9px; }
html.is-scrolled .brand img { height: 46px; }
.header-actions { display: flex; align-items: stretch; height: 64px; pointer-events: auto; }
/* スクロール中は隠し、止まったら再び表示（js/main.js で .is-hidden を付け外し） */
.header-tel { display: grid; align-content: center; padding: 0 24px; background: rgba(255, 255, 255, .92); transition: background-color .45s var(--soft); font: 700 22px/1.1 var(--f-en); letter-spacing: .02em; }
html.is-scrolled .header-tel { background-color: transparent; } /* ヘッダー全体に下地があるので重ねない */
.header-tel small { color: var(--c-muted); font-size: 11px; letter-spacing: .2em; }
.header-contact { display: grid; place-items: center; padding: 0 30px; background: var(--c-ink); color: var(--c-white); font-size: 13px; font-weight: 700; letter-spacing: .1em; }

/* ---------- メニュー（全画面） ---------- */
.site-menu { position: fixed; inset: -240px var(--rail) 0 0; z-index: 115; display: grid; grid-template-rows: 1fr auto; padding: 350px clamp(24px, 6vw, 96px) 48px; overflow-y: auto; overscroll-behavior: contain; background: var(--c-white); opacity: 0; filter: blur(8px); transition: opacity .5s var(--soft), filter .5s var(--soft); }
.site-menu.is-open { opacity: 1; filter: blur(0); transition-duration: .8s; }
/* メニューを開くと、項目が下からふわっと順番に現れる（閉じる時はまとめて消える） */
.site-menu li, .site-menu-foot { opacity: 0; translate: 0 18px; transition: opacity .3s var(--soft), translate .3s var(--soft); }
.site-menu.is-open li, .site-menu.is-open .site-menu-foot { opacity: 1; translate: 0 0; transition-duration: .8s; transition-delay: calc(.15s + var(--i, 0) * 60ms); }
.site-menu li:nth-child(2) { --i: 1; } .site-menu li:nth-child(3) { --i: 2; } .site-menu li:nth-child(4) { --i: 3; }
.site-menu li:nth-child(5) { --i: 4; } .site-menu li:nth-child(6) { --i: 5; } .site-menu li:nth-child(7) { --i: 6; }
.site-menu li:nth-child(8) { --i: 7; }
.site-menu ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 60px; border-top: 1px solid var(--c-line); }
.site-menu li a { display: grid; gap: 2px; padding: 20px 0; border-bottom: 1px solid var(--c-line); font-size: 18px; font-weight: 700; letter-spacing: .08em; transition: padding .6s var(--soft), color .5s var(--soft); }
.site-menu li a small { color: var(--c-muted); font: 700 11px/1 var(--f-en); letter-spacing: .24em; }
.site-menu li a[aria-current="page"] { padding-left: 12px; color: var(--c-accent); }
@media (hover: hover) { .site-menu li a:hover { padding-left: 12px; color: var(--c-accent); } }
.site-menu-foot { --i: 8; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 56px; margin-top: 40px; }
.site-menu-foot a { display: grid; font: 800 28px/1.2 var(--f-en); }
.site-menu-foot .menu-line { color: var(--c-line-green); font: 700 22px/1.4 var(--f-jp); letter-spacing: .06em; }
.site-menu-foot small { color: var(--c-muted); font: 500 13px/1.8 var(--f-jp); letter-spacing: .02em; }

/* =========================================================
   トップページ
   ========================================================= */
/* ---------- ヒーロー ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: clamp(680px, 58vw, 980px); margin-bottom: clamp(40px, 5vw, 80px); }
.hero-copy { position: relative; z-index: 2; align-self: end; padding: 120px 0 clamp(16px, 2vw, 32px) clamp(24px, 4vw, 56px); } /* 文字のかたまりはヒーローの下寄せ（ボタンが写真の下端近くにそろう） */
.hero-en { font: 800 clamp(38px, 4.5vw, 82px)/.95 var(--f-en); letter-spacing: -.04em; }
.hero-title { margin-top: 30px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: .12em; line-height: 1.5; }
.hero-lead { margin-top: 8px; color: var(--c-muted); font-size: 14px; letter-spacing: .14em; }
.hero-copy .box-link { margin-top: 40px; }
.hero-panel { position: relative; align-self: stretch; }
.hero-slides { position: relative; height: 100%; min-height: 420px; overflow: hidden; background: var(--c-gray); }
.hero-slide { position: absolute; inset: 0; z-index: 0; background: center / cover no-repeat; opacity: 0; transform: scale(1.06); transition: opacity 2.4s cubic-bezier(.4, 0, .2, 1), transform 0s 2.4s; }
.hero-slide.is-active { z-index: 2; opacity: 1; transform: scale(1); transition: opacity 2.4s cubic-bezier(.4, 0, .2, 1), transform 9s linear; }
.hero-slide.is-prev { z-index: 1; opacity: 1; transform: scale(1); transition: opacity 0s, transform 9s linear; }
.hero-slide-1 { background-image: url("../images/hero-home-02.webp"); background-position: 78% center; } /* 建物が右寄りの画像 */
/* 2枚目以降はページの読み込み後に取得（js/main.js が .is-ready を付ける）→ 最初の表示を軽く */
.hero-slide-3 { background-position: center 60%; }
.hero-slide-4, .hero-slide-5 { background-position: center 62%; }
.hero-slides.is-ready .hero-slide-2 { background-image: url("../images/hero-home.webp"); }
.hero-slides.is-ready .hero-slide-3 { background-image: url("../images/watercolor/top-new-build.webp"); }
.hero-slides.is-ready .hero-slide-4 { background-image: url("../images/watercolor/top-used-home-02.webp"); }
.hero-slides.is-ready .hero-slide-5 { background-image: url("../images/watercolor/top-older-apartment-02.webp"); }
.hero-dots { position: absolute; right: 30px; top: 50%; z-index: 3; display: grid; gap: 10px; translate: 0 -50%; }
.hero-dots li { width: 6px; height: 6px; background: #c9c9c9; box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); transition: background .4s, transform .4s; }
.hero-dots li.is-active { background: var(--c-ink); transform: scale(1.3); }

/* ---------- 私たちの想い ---------- */
.mission-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(40px, 7vw, 110px); margin-top: 60px; }
.mission-title { display: grid; font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1.5; letter-spacing: .08em; }
.mission-copy > p { margin-top: 24px; color: #3f3f3f; }
.mission-copy .box-link { margin-top: 36px; }
/* 2枚は同じ大きさ（幅 9/12・比率 1.45）。下の写真は右へずらし、上の写真の右下に少しだけ重ねる */
.mission-photos { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); }
.mission-photos img { width: 100%; height: 100%; object-fit: cover; }
.mission-photo-a, .mission-photo-b { aspect-ratio: 1.45; }
.mission-photo-a { grid-column: 1 / 10; grid-row: 1; }
.mission-photo-b { position: relative; grid-column: 4 / 13; grid-row: 2; margin-top: -12%; border: 8px solid var(--c-white); }


/* 企業理念 */
.philosophy { width: var(--inner); margin: var(--sec-space) auto 0; }
.philosophy-inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 10px 50px; padding: 50px 0; border-top: 1px solid var(--c-ink); border-bottom: 1px solid var(--c-line); }
.philosophy-label { grid-column: 1; color: var(--c-muted); font: 700 12px/1.4 var(--f-en); letter-spacing: .24em; }
.philosophy-title { grid-column: 1; font-size: 22px; font-weight: 700; letter-spacing: .14em; }
.philosophy-text { grid-column: 2; grid-row: 1 / 3; font-size: clamp(17px, 1.7vw, 22px); font-weight: 700; line-height: 2; letter-spacing: .06em; }

/* ---------- 相談メニュー（色付きタイル） ---------- */
.pickup-title { margin-top: 18px; font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; letter-spacing: .1em; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 40px); margin-top: 50px; }
.tile { position: relative; display: grid; grid-template-rows: 1fr auto; min-height: 520px; overflow: hidden; color: var(--c-white); }
.tile-img { position: absolute; inset: 0; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
@media (hover: hover) { .tile:hover .tile-img img { transform: scale(1.05); } }
.tile-body { position: relative; grid-row: 2; display: grid; gap: 1px; width: min(90%, 330px); padding: 10px 48px 10px 20px; } /* 写真を隠しすぎないよう低めに */
.tile-buy .tile-img img { object-position: 85% 50%; } /* 建物が右寄りの画像なので、右側を優先して見せる */
.tile-buy .tile-body { background: var(--c-buy); }
.tile-sell .tile-body { background: var(--c-sell); }
.tile-invest .tile-body { background: var(--c-invest); }
.tile-tag { font: 800 12px/1 var(--f-en); letter-spacing: .24em; opacity: .9; }
.tile-body strong { font-size: 18px; line-height: 1.45; letter-spacing: .08em; }
.tile-body small { font-size: 12px; line-height: 1.5; opacity: .95; }
.tile-body .arw { position: absolute; top: 50%; right: 18px; width: 22px; height: 22px; margin-top: -11px; }
@media (hover: hover) { .tile:hover .tile-body .arw { translate: 5px 0; } }

/* ---------- 購入・売却・投資 ---------- */
.svc-list { display: grid; margin-top: 60px; border-top: 1px solid var(--c-ink); }
.svc-row { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); padding: 50px 0; border-bottom: 1px solid var(--c-line); }
.svc-img { aspect-ratio: 1.5; overflow: hidden; background: var(--c-gray); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-text h3 { font-size: 24px; font-weight: 700; letter-spacing: .1em; }
.svc-text > p { margin-top: 12px; color: #3f3f3f; }
.check-list { display: grid; margin: 20px 0 30px; border-top: 1px solid var(--c-line); }
.check-list li { position: relative; padding: 11px 0 11px 26px; border-bottom: 1px solid var(--c-line); font-size: 14px; font-weight: 500; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 8px; height: 8px; background: var(--c-ink); translate: 0 -50%; }

/* ---------- お客様の声（横スクロール） ---------- */
.voice-scroller { margin: 50px calc(50% - 50vw + var(--rail) / 2) 0 0; }
.voice-track { --card: clamp(270px, 24vw, 330px); display: grid; grid-auto-flow: column; grid-auto-columns: var(--card); gap: 28px; overflow-x: auto; padding: 0 calc(100% - var(--card)) 14px 0; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--c-ink) var(--c-line); cursor: grab; user-select: none; }
.voice-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.voice-track.is-dragging .voice-card { pointer-events: none; }
.voice-track img { -webkit-user-drag: none; }
.voice-card { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 16px 12px; scroll-snap-align: start; }
.voice-img { grid-column: 1 / 3; aspect-ratio: 1.35; overflow: hidden; }
.voice-img img { width: 100%; height: 100%; object-fit: cover; } /* 画像はカードと同じ比率（1.35）なので切り抜きなし */
.voice-tag { grid-column: 1; writing-mode: vertical-rl; font: 800 12px/1 var(--f-en); letter-spacing: .3em; }
.voice-buy .voice-tag { color: var(--c-buy); } .voice-sell .voice-tag { color: var(--c-sell); } .voice-invest .voice-tag { color: var(--c-invest); }
.voice-body { grid-column: 2; display: grid; align-content: start; gap: 10px; }
.voice-text { font-size: 14px; line-height: 1.95; }
.voice-name { padding-top: 12px; border-top: 1px solid var(--c-line); font-size: 13px; font-weight: 700; }
.voice-name small { display: block; color: var(--c-muted); font-size: 11px; font-weight: 500; }
.scroller-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 16px; margin-top: 26px; }
.voice-note { margin-right: auto; color: var(--c-muted); font-size: 12px; letter-spacing: .04em; } /* 左端に注記、右に前後ボタン */
.nav-btn { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--c-ink); background: var(--c-white); cursor: pointer; }
@media (hover: hover) { .nav-btn:hover { background: var(--c-ink); color: var(--c-white); } }
.nav-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scroller-count { min-width: 70px; text-align: center; color: var(--c-muted); font: 600 13px/1 var(--f-en); letter-spacing: .1em; }
.scroller-count b { color: var(--c-ink); }

/* ---------- NEWS ---------- */
.news-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 100px); }
.news-head { display: grid; align-content: start; gap: 6px; }
.news-head .box-link { justify-self: start; margin-top: 28px; }
.news-list { border-top: 1px solid var(--c-ink); }
.news-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 6px 24px; padding: 24px 10px; border-bottom: 1px solid var(--c-line); }
.news-meta { display: flex; align-items: center; gap: 14px; font: 600 13px/1.6 var(--f-en); }
.news-cat { color: var(--c-muted); font-family: var(--f-jp); font-size: 12px; font-weight: 500; }
.news-title { font-size: 14px; font-weight: 500; }
.news-tag { display: inline-block; margin-right: 12px; padding: 1px 8px; border: 1px solid var(--c-ink); font-size: 11px; font-weight: 700; vertical-align: 1px; }

/* ---------- 店舗紹介 ---------- */
/* 店舗の写真4枚を2列で並べる（3:2の横長）。クリックで拡大 */
.space-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px) clamp(12px, 2vw, 28px); margin-top: 50px; }
.space-open img { width: 100%; aspect-ratio: 1.5; object-fit: cover; background: var(--c-gray); transition: transform 1.2s var(--soft); }
@media (hover: hover) { .space-open:hover img { transform: scale(1.04); } }
.space-item figcaption { margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; }
/* 写真をクリックで拡大（モーダル） */
.space-open { display: block; width: 100%; padding: 0; border: 0; overflow: hidden; background: none; cursor: zoom-in; }
.space-open:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; }
.photo-modal { width: min(92vw, calc((100vh - 120px) * 1.5), 1080px); width: min(92vw, calc((100svh - 120px) * 1.5), 1080px); max-width: none; max-height: none; padding: 0; border: 0; background: none; overflow: visible; }
.photo-modal::backdrop { background: rgba(20, 20, 20, .82); }
.photo-modal[open] { animation: modalIn .45s var(--ease); }
.photo-modal[open]::backdrop { animation: backdropIn .45s ease; }
.photo-modal-img { width: 100%; aspect-ratio: 1.5; object-fit: cover; background-color: var(--c-gray); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.photo-modal-close { position: absolute; top: -52px; right: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .6); background: none; color: var(--c-white); cursor: pointer; transition: background .3s, color .3s; }
.photo-modal-close:focus-visible { background: var(--c-white); color: var(--c-ink); outline: none; }
@media (hover: hover) { .photo-modal-close:hover { background: var(--c-white); color: var(--c-ink); outline: none; } }
.photo-modal-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@keyframes modalIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }
.space-message { margin-top: 70px; padding-top: 40px; border-top: 1px solid var(--c-line); font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; letter-spacing: .1em; line-height: 1.8; }

/* ---------- お問い合わせ（全ページ共通） ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 70px); margin-top: 50px; }
.contact-ways { display: grid; align-content: start; gap: 16px; }
.way { position: relative; display: grid; gap: 4px; padding: 26px 28px; border: 1px solid var(--c-line); }
@media (hover: hover) { .way:hover { border-color: var(--c-ink); transform: translateY(-4px); box-shadow: 0 14px 30px rgba(32, 32, 32, .08); } }
.way-en { font: 800 12px/1 var(--f-en); letter-spacing: .24em; }
.way-tel .way-en { color: var(--c-buy); }
.way-line .way-en { color: var(--c-line-green); }
.way strong { font: 800 clamp(26px, 2.6vw, 34px)/1.2 var(--f-en); letter-spacing: -.01em; }
.way-line strong { font-family: var(--f-jp); font-size: 20px; font-weight: 700; }
.way small { color: var(--c-muted); font-size: 12px; }
.way .arw { position: absolute; right: 22px; top: 50%; translate: 0 -50%; }
@media (hover: hover) { .way:hover .arw { translate: 5px -50%; } }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; padding: clamp(28px, 4vw, 48px); background: var(--c-gray); }
.form-status { grid-column: 1 / -1; font-size: 16px; font-weight: 700; letter-spacing: .1em; }
.contact-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: 0; background: var(--c-white); font-size: 15px; font-weight: 400; transition: border-color .3s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--c-ink); outline: none; }
.contact-form select { -webkit-appearance: none; appearance: none; background: var(--c-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23202020' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
.contact-form input, .contact-form textarea { -webkit-appearance: none; appearance: none; }
.contact-form textarea { resize: vertical; }
.message-field { grid-column: 1 / -1; }
.form-honeypot { position: absolute !important; left: -9999px; }
.form-note { grid-column: 1 / -1; color: var(--c-muted); font-size: 12px; }
.form-note a { color: var(--c-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.form-feedback { grid-column: 1 / -1; font-size: 13px; font-weight: 700; }
.form-feedback:empty { display: none; }
.form-feedback.is-success { color: var(--c-invest); }
.form-feedback.is-error { color: #c4423f; }
.btn-submit { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 18px; padding: 16px 26px; border: 0; background: var(--c-ink); color: var(--c-white); font-size: 14px; font-weight: 700; letter-spacing: .1em; cursor: pointer; }
.btn-submit:disabled { opacity: .6; cursor: wait; }
.btn-submit .btn-circle { order: 2; display: grid; }
.btn-submit .btn-circle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- アクセス ---------- */
.access-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 70px); align-items: start; }
.access-text { display: grid; align-content: start; gap: 6px; }
.access-name { margin-top: 30px; font: 800 18px/1.4 var(--f-en); letter-spacing: .06em; }
.access-addr { color: #3f3f3f; font-size: 14px; }
.access-text .box-link { justify-self: start; margin-top: 26px; }
.access-map { aspect-ratio: 1.5; border: 1px solid var(--c-line); }
.access-map iframe { display: block; width: 100%; height: 100%; border: 0; } /* 通常のカラー表示 */

/* ---------- クロージング ---------- */
.closing { position: relative; display: grid; justify-items: center; gap: 22px; margin-top: var(--sec-space); padding: clamp(130px, 14vw, 200px) 16px 90px; overflow: hidden; background: var(--c-white); text-align: center; }
.closing-text { font-size: clamp(15px, 1.4vw, 18px); font-weight: 700; letter-spacing: .2em; }
.closing-logo { width: clamp(140px, 14vw, 190px); }

/* ---------- フッター ---------- */
.site-footer { position: relative; padding: 70px clamp(24px, 4vw, 56px) 30px; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 50px; }
.footer-logo { width: auto; height: 56px; transition: opacity .5s var(--soft); }
.footer-name { margin-top: 18px; font-weight: 700; letter-spacing: .1em; }
.footer-info { display: grid; gap: 4px; margin-top: 10px; color: var(--c-muted); font-size: 12px; line-height: 1.8; }
.footer-info a { color: var(--c-ink); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } /* ヘッダーメニューと同じ項目を2つのまとまりで */
.footer-nav div { display: grid; align-content: start; gap: 6px; }
.footer-nav p { margin-bottom: 6px; color: var(--c-muted); font-size: 12px; letter-spacing: .1em; }
.footer-nav a { font-size: 16px; font-weight: 700; letter-spacing: .06em; }
@media (hover: hover) { .footer-nav a:hover { color: var(--c-accent); } }
.footer-bottom { display: flex; align-items: center; gap: 24px; margin-top: 60px; padding: 22px 64px 0 0; border-top: 1px solid var(--c-line); } /* 右端は固定の「TOPへ戻る」ボタンの分を空ける */
.copyright { color: var(--c-muted); font: 500 11px/1 var(--f-en); letter-spacing: .1em; }
.footer-privacy { margin-left: auto; font-size: 12px; font-weight: 700; }
/* TOPへ戻る：画面右下に固定。少しスクロールしてから現れる（js/main.js が .is-shown を付ける） */
.pagetop { position: fixed; right: calc(var(--rail) + 24px); bottom: 24px; z-index: 105; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--c-ink); background: var(--c-white); opacity: 0; visibility: hidden; translate: 0 12px; transition: opacity .5s var(--soft), translate .5s var(--soft), visibility 0s .5s, background .5s var(--soft), color .5s var(--soft), box-shadow .5s var(--soft); }
.pagetop.is-shown { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
@media (hover: hover) { .pagetop:hover { background: var(--c-ink); color: var(--c-white); } }
.pagetop svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.mobile-cta { display: none; }
.ios-top-strip { display: none; }

/* =========================================================
   下層ページ
   ========================================================= */
.page-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 40px clamp(40px, 6vw, 90px); width: var(--inner); margin: 0 auto; padding-top: 150px; }
.page-head-copy { position: relative; z-index: 1; }
.page-en { margin-top: 36px; font: 800 clamp(44px, 6vw, 92px)/.95 var(--f-en); letter-spacing: -.04em; }
.page-eyebrow { display: flex; align-items: center; gap: 12px; margin-top: 26px; color: var(--c-muted); font: 700 12px/1 var(--f-en); letter-spacing: .26em; }
.page-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.page-head h1 { margin-top: 12px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: .12em; line-height: 1.5; }
.page-lead-title { margin-top: 30px; font-size: clamp(16px, 1.5vw, 19px); font-weight: 700; line-height: 1.8; } /* 文字だけで見せる（左の縦線の飾りは使わない） */
.page-lead { margin-top: 14px; color: #3f3f3f; font-size: 14px; }
.page-visual { align-self: start; margin-top: 70px; aspect-ratio: 1.25; overflow: hidden; box-shadow: 24px 24px 0 var(--c-gray); }
.page-visual img { width: 100%; height: 100%; object-fit: cover; }

/* このページの内容（目次） */
.page-index { grid-column: 1 / -1; display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 16px 40px; padding: 26px 32px; border: 1px solid var(--c-line); }
.page-index p { font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.page-index ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 30px; }
.page-index a { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.page-index a::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--c-ink); transition: background .3s; }
@media (hover: hover) { .page-index a:hover { color: var(--c-accent); } }
@media (hover: hover) { .page-index a:hover::before { background: var(--c-accent); } }

/* 縦書きの見出し＋本文 */
.vsec { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 80px); width: var(--inner); margin: var(--sec-space) auto 0; padding-top: 50px; border-top: 1px solid var(--c-ink); }
.vsec-title { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: flex-start; gap: 10px; }
.vsec-title h2 { writing-mode: vertical-rl; font-size: 22px; font-weight: 700; letter-spacing: .16em; line-height: 1.4; }
.vsec-en { writing-mode: vertical-rl; color: var(--c-muted); font: 800 13px/1 var(--f-en); letter-spacing: .24em; }
.vsec-body { display: grid; align-content: start; gap: 18px; max-width: 860px; font-size: 15px; line-height: 2.05; }
.vsec-catch { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; line-height: 1.7; letter-spacing: .08em; }
.wide-visual { width: var(--inner); margin: var(--sec-space) auto 0; aspect-ratio: 2.6; overflow: hidden; }
.wide-visual img { width: 100%; height: 100%; object-fit: cover; }
.investment-page .wide-visual img { object-position: center 40%; }

/* サポート内容のリスト */
.detail-points { display: grid; margin-top: 10px; border-top: 1px solid var(--c-line); counter-reset: pt; }
.detail-points li { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.detail-points li span { font: 800 20px/1 var(--f-en); letter-spacing: -.02em; }
.buy-page .detail-points li span { color: var(--c-buy); }
.sell-page .detail-points li span { color: var(--c-sell); }
.investment-page .detail-points li span { color: var(--c-invest); }
.detail-points li strong { font-size: 15px; font-weight: 700; }

/* ご相談の流れ */
/* 流れ（ステップ）：番号の丸を線と矢印でつなぎ、左から右へ進むフローに */
.sub-steps { --step-c: var(--c-accent); --dot: 58px; --step-gap: 26px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 var(--step-gap); margin-top: 22px; }
.buy-page .sub-steps { --step-c: var(--c-buy); }
.sell-page .sub-steps { --step-c: var(--c-sell); }
.investment-page .sub-steps { --step-c: var(--c-invest); }
.sub-step { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 16px; }
.sub-step-num { position: relative; z-index: 1; display: grid; place-content: center; justify-items: center; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--step-c); color: var(--c-white); font: 800 20px/1 var(--f-en); letter-spacing: 0; }
.sub-step-num::before { content: "STEP"; margin-bottom: 3px; font-size: 8px; font-weight: 700; letter-spacing: .18em; opacity: .9; }
/* 次のステップへの線と矢印 */
.sub-step:not(:last-child)::after { content: ""; position: absolute; top: calc(var(--dot) / 2 - 1px); left: calc(var(--dot) + 8px); right: calc(var(--step-gap) * -1 + 6px); height: 2px; background: repeating-linear-gradient(90deg, var(--step-c) 0 6px, transparent 6px 11px); opacity: .55; }
.sub-step:not(:last-child)::before { content: ""; position: absolute; top: calc(var(--dot) / 2 - 5px); right: calc(var(--step-gap) * -1 + 7px); width: 10px; height: 10px; border-top: 2px solid var(--step-c); border-right: 2px solid var(--step-c); rotate: 45deg; }
.sub-step > div { padding: 18px 18px 20px; border-top: 3px solid var(--step-c); background: var(--c-gray); }
.sub-step h3 { font-size: 16px; font-weight: 700; line-height: 1.6; letter-spacing: .06em; }
.sub-step p { margin-top: 6px; color: var(--c-muted); font-size: 13px; line-height: 1.85; }
/* 幅が狭いときは縦のフローに（丸の下に線と矢印） */
@media (max-width: 1100px) {
  .sub-steps { --step-gap: 22px; grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); gap: var(--step-gap) 0; }
  .sub-step { grid-template-columns: var(--dot) minmax(0, 1fr); grid-template-rows: none; align-items: start; gap: 0 18px; }
  .sub-step:not(:last-child)::after { top: calc(var(--dot) + 8px); bottom: calc(var(--step-gap) * -1 + 6px); left: calc(var(--dot) / 2 - 1px); right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--step-c) 0 6px, transparent 6px 11px); }
  .sub-step:not(:last-child)::before { top: auto; bottom: calc(var(--step-gap) * -1 + 7px); left: calc(var(--dot) / 2 - 5px); right: auto; rotate: 135deg; }
  .sub-step > div { border-top: 0; } /* 縦並びの時は左の縦線の飾りは付けない */
}
.sub-cta { display: grid; gap: 22px; margin-top: 20px; padding: 36px clamp(24px, 4vw, 44px); background: var(--c-ink); color: var(--c-white); }
.sub-cta-title { font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; line-height: 1.7; letter-spacing: .08em; }
.sub-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; }
.sub-cta .btn-pill { display: inline-flex; align-items: center; gap: 18px; padding: 14px 22px; background: var(--c-white); color: var(--c-ink); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
@media (hover: hover) { .sub-cta .btn-pill:hover { background: var(--c-accent); color: var(--c-white); } }
.sub-cta .btn-circle { order: 2; display: grid; }
.sub-cta .btn-circle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sub-cta-tel { display: grid; font: 800 28px/1.1 var(--f-en); }
.sub-cta-tel small { color: rgba(255, 255, 255, .6); font-size: 10px; letter-spacing: .24em; }

/* 大切にしていること */
.values-list { display: grid; border-top: 1px solid var(--c-line); }
.value-card { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px 20px; padding: 28px 0; border-bottom: 1px solid var(--c-line); }
.value-num { grid-row: 1 / 4; font: 800 34px/1 var(--f-en); letter-spacing: -.03em; color: var(--c-accent); }
.value-card:nth-child(2) .value-num { color: var(--c-sell); }
.value-card:nth-child(3) .value-num { color: var(--c-invest); }
.value-card:nth-child(4) .value-num { color: var(--c-gold); }
.value-en { color: var(--c-muted); font: 700 12px/1.4 var(--f-en); letter-spacing: .18em; }
.value-card h3 { font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; line-height: 1.6; letter-spacing: .08em; }
.value-card h3 + p { margin-top: 6px; color: #3f3f3f; font-size: 14px; }

/* 代表メッセージ */
.representative { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: 10px; }
.representative-photo { position: sticky; top: 90px; display: grid; gap: 12px; }
.staff-placeholder { display: grid; place-content: center; justify-items: center; aspect-ratio: .82; background: var(--c-gray); text-align: center; }
.staff-placeholder span { font: 800 26px/1 var(--f-en); letter-spacing: .2em; }
.staff-placeholder small { margin-top: 8px; color: var(--c-muted); font-size: 12px; }
.representative-photo figcaption { color: var(--c-muted); font: 700 11px/1 var(--f-en); letter-spacing: .26em; }
.representative-copy .role { color: var(--c-accent); font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.representative-copy h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: .14em; }
.representative-copy h3 small { color: var(--c-muted); font: 700 13px/1 var(--f-en); letter-spacing: .24em; }
.representative-message { display: grid; gap: 18px; margin-top: 22px; font-size: 15px; line-height: 2.1; }
.representative-quote { font-size: 18px; font-weight: 700; } /* 太字・大きめの文字だけで強調（線や背景の飾りなし） */
.representative-signature { display: grid; justify-items: end; margin-top: 30px; }
.representative-signature span { color: var(--c-muted); font-size: 12px; }
.representative-signature strong { font-size: 17px; letter-spacing: .14em; }

/* 会社概要の表 */
.company-list { border-top: 1px solid var(--c-line); }
.company-list > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.company-list dt { color: var(--c-muted); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.company-list dd a { font-weight: 700; }

/* その他のご相談：色の帯 */
.bands { display: grid; gap: clamp(16px, 2vw, 28px); }
.band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); min-height: 230px; color: var(--c-white); overflow: hidden; }
.band-buy { background: var(--c-buy); } .band-sell { background: var(--c-sell); } .band-invest { background: var(--c-invest); }
.band-text { display: grid; align-content: center; gap: 6px; padding: 30px clamp(22px, 3vw, 40px); }
.band-tag { font: 800 12px/1 var(--f-en); letter-spacing: .26em; opacity: .85; }
.band strong { font-size: 22px; letter-spacing: .1em; }
.band em { font-size: 13px; font-style: normal; line-height: 1.8; opacity: .95; }
.band-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .5); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
@media (hover: hover) { .band:hover .band-more .arw { translate: 5px 0; } }
.band-img { position: relative; overflow: hidden; }
.band-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transition: transform 1.2s var(--ease); }
@media (hover: hover) { .band:hover .band-img img { transform: scale(1.05); } }
.band-cta { margin-top: 30px; }

/* プライバシーポリシー */
.policy { width: var(--inner); margin: var(--sec-space) auto 0; padding-top: 50px; border-top: 1px solid var(--c-ink); }
.policy-body { max-width: 860px; margin-left: auto; font-size: 15px; line-height: 2; }
a[href^="tel:"] { white-space: nowrap; } /* 電話番号は途中で改行しない */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.policy-lead { padding-bottom: 30px; border-bottom: 1px solid var(--c-line); }
.policy-body h3 { margin-top: 44px; font-size: 18px; font-weight: 700; letter-spacing: .06em; }
.policy-body h3 + p, .policy-body p + p, .policy-body p + ul, .policy-body p + ol, .policy-body ul + p { margin-top: 12px; }
.policy-body ul, .policy-body ol { display: grid; gap: 6px; padding-left: 1.4em; }
.policy-body ul { list-style: square; }
.policy-body ol { list-style: decimal; }
.policy-contact { padding: 22px 26px; background: var(--c-gray); }
.policy-body a { text-decoration: underline; text-underline-offset: 3px; }
.policy-body a[href^="tel:"] { text-decoration: none; font-weight: 700; }
.policy-date { margin-top: 50px; color: var(--c-muted); font-size: 13px; text-align: right; }

/* 404 */
.error-head { grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(90px, 10vw, 150px); } /* 下にお問い合わせ等を置かないので、フッターとの間を広めに */
.error-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.error-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 50px; border-top: 1px solid var(--c-line); }
.error-links a { display: flex; align-items: center; gap: 14px; padding: 18px 4px; border-bottom: 1px solid var(--c-line); font-weight: 700; }
.error-links .arw { margin-left: auto; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 900px) {
  :root { --rail: 0px; --inner: calc(100% - 40px); --sec-space: 100px; }
  html { scroll-padding-top: 64px; }
  body { padding-bottom: 76px; font-size: 14px; }
  /* レールは上部の帯に */
  /* iOS（Safari・LINE など）は position: fixed の上端要素が画面の途中にずれる不具合があるため、SPの上部の帯は sticky で固定する */
  .rail { margin: 0; background: rgba(255, 255, 255, .92); grid-template-rows: none; grid-template-columns: minmax(0, 1fr); align-items: center; justify-items: end; width: 100%; height: 60px; padding: 0 4px; border-left: 0; border-bottom: 1px solid var(--c-line); }
  .rail-brand, .rail-links { display: none; }
  /* メニューボタン：大きめにして、上部の帯の右端・上下中央に */
  .menu-btn { width: 56px; height: 56px; }
  .menu-dots { grid-template-columns: repeat(3, 5px); gap: 5px; }
  .menu-dots i { width: 5px; height: 5px; }
  .site-header { width: calc(100% - 64px); height: 60px; margin: -60px 0 0; z-index: 125; padding: 0 0 0 14px; } /* .rail の上に重ねる */
  .brand, html.is-scrolled .brand { margin-top: 6px; padding: 0; }
  .brand img, html.is-scrolled .brand img { height: 48px; }
  .pagetop { right: 16px; bottom: 76px; }
  .header-actions { height: 60px; }
  .header-tel { display: none; }
  .header-contact { padding: 0 18px; font-size: 12px; }
  /* SP：ヘッダーのお問い合わせはスクロール中も隠さず常に表示 */
  .site-header.is-hidden { opacity: 1; transform: none; }
  .site-header.is-hidden > * { pointer-events: auto; }
  /* iPhone の Safari は、画面上端にある position: fixed の要素の色をアドレスバーの背景に使う。
     ヘッダーは iOS の不具合対策で sticky のため、白い fixed の細い帯を別に置く（js/main.js が .ios-top-strip を追加）。
     帯の下に隠れないよう、iOS ではロゴとボタンを上から12px空ける */
  .ios-top-strip { position: fixed; top: 0; right: 0; left: 0; z-index: 130; display: block; height: 12px; background: var(--c-white); }
  @supports (-webkit-touch-callout: none) {
    .rail { background: var(--c-white); }
    .brand, html.is-scrolled .brand { margin-top: 12px; }
    .brand img, html.is-scrolled .brand img { height: 40px; }
    .header-actions { height: 40px; margin-top: 12px; }
  }
  html.is-scrolled .site-header::before { background: none; }
  .site-menu ul { grid-template-columns: minmax(0, 1fr); }
  /* SP：メニュー項目を詰めて、すべてが1画面に収まるように */
  .site-menu { inset: -240px 0 0 0; padding: 316px 20px 24px; } /* 上に長く伸ばし、iOS で fixed がずれても後ろのページが見えないように */
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; } /* 16px未満だと iOS が入力時に画面を拡大して崩れる */
  .site-menu li a { grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 0 12px; padding: 13px 0; font-size: 15px; line-height: 1.5; }
  .site-menu-foot { gap: 14px 32px; margin-top: 20px; }
  .site-menu-foot a { font-size: 22px; }
  .site-menu-foot .menu-line { font-size: 18px; }
  /* メニューを開いている間は下部の固定ボタン（電話・LINE・お問い合わせ）を隠す */
  html.is-menu-open .mobile-cta { display: none; }

  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-panel { grid-row: 1; padding: 0; } /* SP：写真は左右とも画面いっぱい */
  .hero-slides { min-height: 0; aspect-ratio: 1.3; }
  .hero-slide-1 { background-position: center 85%; } /* 横長の枠では建物が入る高さを優先 */
  .hero-dots { right: 12px; }
  .hero-copy { padding: 36px 20px 80px; }

  .sec-head-row, .mission-grid, .svc-row, .news-grid, .contact-grid, .access-grid, .philosophy-inner, .footer-main, .page-head, .representative { grid-template-columns: minmax(0, 1fr); }
  .philosophy-text { grid-column: 1; grid-row: auto; margin-top: 16px; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .tile { min-height: 380px; }
  .voice-scroller { margin-right: -20px; }
  .voice-note { flex: 1 0 100%; } /* SP：注記は1行使い、前後ボタンはその下にまとめる */
  .news-item { grid-template-columns: minmax(0, 1fr); }
  .contact-form { grid-template-columns: minmax(0, 1fr); padding: 24px 18px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-wrap: wrap; }
  .copyright { order: 3; width: 100%; }

  .page-head { padding-top: 40px; }
  .page-visual { grid-row: 1; margin-top: 0; box-shadow: 12px 12px 0 var(--c-gray); }
  .page-index { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .page-lead br { display: none; }
  .vsec { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 34px; }
  #philosophy .vsec-catch { font-size: min(18px, calc((100vw - 40px) / 19)); } /* 企業理念：「価値を提供し、」の途中で折り返さない大きさに */
  .vsec-title { flex-direction: column; gap: 4px; }
  .vsec-title h2, .vsec-en { writing-mode: horizontal-tb; }
  .wide-visual { aspect-ratio: 1.6; }
  .representative-photo { position: static; max-width: 300px; }
  .bands { gap: 20px; }
  .band { grid-template-columns: minmax(0, 1fr); }
  .band-img { height: 180px; grid-row: 1; }
  .company-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .error-links { grid-template-columns: minmax(0, 1fr); }

  .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 130; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--c-line); background: var(--c-white); }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 60px; font-size: 12px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
  .mobile-cta svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
  .mobile-cta a + a { border-left: 1px solid var(--c-line); }
  .mobile-cta a:nth-child(1) { color: var(--c-buy); }
  .mobile-cta a:nth-child(2) { color: var(--c-line-green); }
  .mobile-cta a:nth-child(3) { background: var(--c-ink); color: var(--c-white); }
}

@media (max-width: 560px) {
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .page-index ul { grid-template-columns: minmax(0, 1fr); }
  .box-link { min-width: 0; }
}
/* 幅の狭いスマホ：下部固定ボタンはアイコンを文字の上に置いて収める */
@media (max-width: 374px) {
  .hero-en, .sec-en, .page-en { font-size: 11vw; } /* 長い英字見出しが画面からはみ出さないように */
  .mobile-cta a { flex-direction: column; gap: 3px; font-size: 11px; letter-spacing: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; translate: none; }
}

/* =========================================================
   ホバーアニメーション（ふわっと）
   ゆっくりしたイージングで、色が満ちる・カードが少し浮く・線が伸びる
   ========================================================= */
/* 文字リンク：下線が左から伸びる */
.footer-nav a, .page-index a, .footer-privacy, .breadcrumb a, .footer-info a, .site-menu-foot a {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: color .5s var(--soft), background-size .6s var(--soft), padding .5s var(--soft);
}
@media (hover: hover) { .footer-nav a:hover, .page-index a:hover, .footer-privacy:hover, .breadcrumb a:hover, .footer-info a:hover, .site-menu-foot a:hover { background-size: 100% 1px; } }
.footer-nav a, .page-index a { justify-self: start; }

/* カード・タイル：ふわっと浮いて、影がやわらかく出る */
.tile, .band, .way, .voice-card, .news-item { transition: transform .6s var(--soft), box-shadow .6s var(--soft), border-color .5s var(--soft), background-color .5s var(--soft); }
@media (hover: hover) { .tile:hover, .band:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(32, 32, 32, .16); } }
@media (hover: hover) { .voice-card:hover { transform: translateY(-6px); } }
.voice-card .voice-img img, .page-visual img, .wide-visual img { transition: transform 1.2s var(--soft), filter .8s var(--soft); }
@media (hover: hover) { .voice-card:hover .voice-img img, .page-visual:hover img, .wide-visual:hover img { transform: scale(1.04); } }
@media (hover: hover) { .news-item:hover { background-color: var(--c-gray); } }

/* ボタン類 */
.header-contact, .nav-btn, .btn-submit, .sub-cta .btn-pill, .menu-btn, .rail-links a, .mobile-cta a { transition: background .5s var(--soft), color .5s var(--soft), transform .5s var(--soft), box-shadow .5s var(--soft), opacity .5s var(--soft); }
@media (hover: hover) { .nav-btn:hover, .pagetop:hover, .btn-submit:hover, .sub-cta .btn-pill:hover { box-shadow: 0 10px 22px rgba(32, 32, 32, .14); } }
@media (hover: hover) { .brand:hover img { opacity: .7; } }
.mobile-cta a:active { opacity: .7; }

/* 濃い色のボタン：左から差し色がゆっくり流れ込む（.box-link と同じ動き） */
.header-contact, .btn-submit { position: relative; isolation: isolate; overflow: hidden; }
.header-contact::before, .btn-submit::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c-accent); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--soft); }
.header-contact:focus-visible::before, .btn-submit:focus-visible::before { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) { .header-contact:hover::before, .btn-submit:hover:not(:disabled)::before { transform: scaleX(1); transform-origin: left; } }


/* =========================================================
   初回ローディング・ページ遷移
   ========================================================= */
/* ローディング：下から花火が打ち上がり → ロゴの中心でパッと開いて全体に広がる → 屋根と窓が現れる */
.loader { display: none; }
html.is-loading .loader { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px; background: var(--c-white); animation: loaderFailsafe .6s 7s forwards; }
html.is-loading body { overflow: hidden; }
html.is-loading body > :not(.loader) { opacity: 0; animation: contentFailsafe .6s 7s forwards; }
.loader .hanabi-logo { width: min(180px, 44vw); height: auto; overflow: visible; }
.loader .lg-roof { clip-path: inset(0 50% 0 50%); animation: lgWipe .6s cubic-bezier(.65, 0, .35, 1) 1.3s forwards; }
.loader .lg-window { opacity: 0; animation: lgFade .4s ease 1.7s forwards; }
/* 打ち上げ：光の玉が尾を引きながら下から上昇し、減速して消える */
.loader .lg-shell { opacity: 0; transform: translateY(200px); animation: lgLaunch .8s cubic-bezier(.33, .55, .45, 1) .2s forwards; }
.loader .lg-flash { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); animation: lgFlash .5s ease-out .95s forwards; }
/* 開花の火花：中心から全方向へ大きく飛び散り、少し垂れながら消える */
.loader .lg-sparks circle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: lgSpark 1.2s cubic-bezier(.12, .8, .3, 1) forwards; animation-delay: calc(.95s + var(--i) * 25ms); }
@keyframes lgSpark { 0% { opacity: 1; transform: translate(0, 0) scale(1.4); } 60% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 28px)) scale(.4); } }
/* 開花：線と粒がロゴの中心から外側へ一気に広がる */
.loader .lg-ray { opacity: 0; transform-box: view-box; transform-origin: 189px 130px; transform: scale(.1); animation: lgBurst .75s cubic-bezier(.16, 1, .3, 1) forwards; animation-delay: calc(.95s + var(--i) * 12ms); }
.loader .lg-dot { opacity: 0; transform-box: view-box; transform-origin: 189px 130px; transform: scale(.2); animation: lgBurst .9s cubic-bezier(.16, 1, .3, 1) forwards; animation-delay: calc(1.05s + var(--i) * 15ms); }
@keyframes lgWipe { to { clip-path: inset(0 0 0 0); } }
@keyframes lgLaunch { 0% { opacity: 0; transform: translateY(200px); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(0); } }
@keyframes lgFlash { 0% { opacity: 0; transform: scale(0); } 25% { opacity: .7; } 100% { opacity: 0; transform: scale(3.2); } }
@keyframes lgBurst { 0% { opacity: 0; transform: scale(.1); } 55% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes lgFade { to { opacity: 1; } }
@keyframes loaderFailsafe { to { opacity: 0; visibility: hidden; } }
@keyframes contentFailsafe { to { opacity: 1; } }
/* 終わり：ローディングが消え、サイトがふわっと現れる */
html.is-loaded .loader { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
html.is-loaded body > :not(.loader) { opacity: 1; filter: none; transition: opacity 1.2s ease .2s, filter 1.2s ease .2s; }
html.is-loading:not(.is-loaded) body > :not(.loader) { filter: blur(6px); }

/* ページ遷移：表示時はふわっと現れ、移動時はふわっと消える */
html.js body { animation: pageIn .8s ease backwards; } /* backwards：終了後は opacity を保持しない（移動時のフェードを妨げない） */
html.is-leaving body { opacity: 0; transition: opacity .4s ease; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   フッター上部の波線（境界線のSVGアニメーション）
   ========================================================= */
.footer-wave { position: absolute; top: -20px; left: 0; right: 0; height: 40px; overflow: hidden; pointer-events: none; }
.footer-wave-line { position: absolute; top: 0; left: 0; width: 200%; height: 100%; fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; animation: footerWave 26s linear infinite; }
.footer-wave-line path { vector-effect: non-scaling-stroke; }
.fw-1 { stroke: var(--c-buy); opacity: .75; }
.fw-2 { stroke: var(--c-sell); opacity: .6; animation-duration: 38s; animation-direction: reverse; }
.fw-3 { stroke: var(--c-invest); opacity: .45; animation-duration: 20s; }
@keyframes footerWave { to { transform: translateX(-50%); } }

/* =========================================================
   クロージング：ロゴのまわりに花火が打ち上がる（js/main.js の canvas）
   ========================================================= */
.closing > :not(.closing-fireworks) { position: relative; z-index: 1; }
.closing-fireworks { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }

/* お問い合わせフォーム：必須の表示 */
.form-status small { display: block; margin-top: 4px; color: var(--c-muted); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.field-label { display: flex; align-items: center; gap: 8px; }
.req { padding: 2px 7px; background: var(--c-accent); color: var(--c-white); font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .08em; }
.contact-form select:invalid { color: var(--c-muted); }


/* フッターのロゴ：ホームへのリンク */
.footer-home { display: inline-block; }
@media (hover: hover) { .footer-home:hover .footer-logo { opacity: .7; } }

/* ---------- サイトマップ ---------- */
.sitemap { width: var(--inner); margin: var(--sec-space) auto 0; padding-top: 50px; border-top: 1px solid var(--c-ink); }
.sitemap-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); max-width: 960px; margin-left: auto; }
.sitemap-list > li { padding: 22px 0; border-bottom: 1px solid var(--c-line); }
.sitemap-list > li > a { font-size: 18px; font-weight: 700; letter-spacing: .06em; }
.sitemap-list ul { display: grid; gap: 4px; margin-top: 10px; }
.sitemap-list ul a { position: relative; padding-left: 18px; color: #3f3f3f; font-size: 14px; }
.sitemap-list ul a::before { content: ""; position: absolute; left: 2px; top: 50%; width: 8px; height: 1px; background: currentColor; }
.sitemap-list a { transition: color .4s var(--soft); }
@media (hover: hover) { .sitemap-list a:hover { color: var(--c-accent); } }
.footer-sitemap { margin-left: 0; }
@media (max-width: 900px) {
  .sitemap-list { grid-template-columns: minmax(0, 1fr); }
}
