/* ==========================================================================
   マーク株式会社 コーポレートサイト
   --------------------------------------------------------------------------
   白ベース・ゴシック太字・角丸。緑（--green）は電話ボタン、アイコン、
   現在ページのナビ表示、リンクのホバーにだけ使い、面では塗らない。
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --tint: #F3F6F4;          /* 交互セクション・タイルの下地（ごく薄い灰緑） */
  --ink: #16211B;
  --ink-2: #5C6661;
  --ink-3: #9AA39E;
  --line: #E3E8E5;
  --green: #1F7A4D;
  --green-dark: #17603C;
  --green-tint: #E6F3EB;    /* アイコンの丸・ホバー用 */
  --photo-bg: #E6EAE8;

  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  --num: "Manrope", "Zen Kaku Gothic New", sans-serif;

  --max: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;
  --section: clamp(64px, 8vw, 104px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
}

/* Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.9;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
time { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 767px) { .br-pc { display: none; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -100px;
  padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 8px; z-index: 100;
}
.skip:focus { top: 12px; }

/* Type --------------------------------------------------------------- */
h1, h2, h3 { font-weight: 700; line-height: 1.4; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.15rem; }
.num { font-family: var(--num); font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: 1.1rem; }
.muted { color: var(--ink-2); }

.link {
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.28em;
  text-decoration-color: var(--line); transition: text-decoration-color .2s ease, color .2s ease;
}
.link:hover { color: var(--green); text-decoration-color: var(--green); }

/* Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); }
.btn__icon { width: 18px; height: 18px; flex: none; }
.btn .num { font-size: 1.1em; }

/* Layout ------------------------------------------------------------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }

.sec-head { margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head p { margin-top: 8px; color: var(--ink-2); }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Header ------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__name { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; line-height: 1; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 2px; font-size: 0.95rem; font-weight: 500; color: var(--ink-2);
  transition: color .2s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__ext { width: 11px; height: 11px; color: var(--ink-3); }
.nav__cta { margin-left: 8px; }
.nav__cta .btn { min-height: 44px; padding: 0 22px; font-size: 0.95rem; }

.menu-btn { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; border-radius: 10px; }
.menu-btn span {
  position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero --------------------------------------------------------------- */
.hero {
  position: relative; display: flex; flex-direction: column;
  min-height: max(560px, calc(100svh - var(--header-h)));
  background: linear-gradient(180deg, #E4EEEA 0%, #F1F6F4 48%, #FAFCFB 100%);
  overflow: hidden;
}
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity 1.5s ease; }
.hero::before { background: linear-gradient(180deg, rgba(150,150,200,0) 0%, rgba(206,166,196,.45) 55%, rgba(246,180,138,.85) 100%); opacity: calc(var(--dusk, 0) * (1 - var(--night, 0))); }
.hero::after { background: linear-gradient(180deg, #111A33 0%, #1F2B52 50%, #3A4775 100%); opacity: var(--night, 0); }
/* 背景が空の色で変わるので、文字のまわりに背景側の色をうっすら敷いて読みやすくする */
.hero__title, .hero__lead { transition: color 1.2s ease, text-shadow 1.2s ease; }
.hero__lead { text-shadow: 0 0 2px rgba(255,255,255,.8), 0 0 8px rgba(255,255,255,.5); }
.hero.is-night .hero__title { color: #fff; text-shadow: 0 1px 3px rgba(10,16,38,.35), 0 2px 14px rgba(10,16,38,.3); }
.hero.is-night .hero__lead { color: #fff; text-shadow: 0 1px 2px rgba(10,16,38,.5), 0 0 8px rgba(10,16,38,.35); }
.hero.is-night .btn--ghost { border-color: rgba(255,255,255,.4); }
.hero__text { position: relative; z-index: 2; padding-top: clamp(40px, 11svh, 128px); }
.hero__title {
  font-size: clamp(2.3rem, min(5.6vw, 10svh), 4.6rem); line-height: 1.22; letter-spacing: 0.01em;
}
.hero__title .ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .ln > span { display: block; transform: translateY(105%); transition: transform 1.1s cubic-bezier(.2,.75,.2,1); }
.hero__title .ln + .ln > span { transition-delay: .12s; }
.hero__title .num { font-size: 1.04em; }
.is-ready .hero__title .ln > span { transform: none; }
.hero__lead { margin-top: 22px; font-size: 1.1rem; font-weight: 500; color: #2B3530; max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fade { opacity: 0; transform: translateY(12px); transition: opacity .9s ease .45s, transform .9s ease .45s; }
.fade + .fade { transition-delay: .6s; }
.is-ready .fade { opacity: 1; transform: none; }

.hero__scene {
  position: relative; z-index: 1; flex: 1 0 auto;
  min-height: clamp(220px, 24vw, 380px);
  margin-top: clamp(-150px, -7vw, -20px);
}
.hero__scene > svg { position: absolute; inset: 0; overflow: visible; }
/* 昼の光。絵の上端で切れないよう、絵より上にはみ出して描く */
.hero__scene::before {
  content: ""; position: absolute; left: 0; right: 0; top: -70%; height: 140%; pointer-events: none;
  background: radial-gradient(ellipse 90% 50% at 12% 50%, rgba(255,251,238,.9), rgba(255,251,238,0));
  opacity: calc((1 - var(--night, 0)) * (1 - var(--dusk, 0)));
}

/* Skyline（js/skyline.js が生成する SVG） ------------------------------- */
/* --dusk（夕焼け 0〜1）と --night（夜 0〜1）は .hero に js が設定する */
.sk { display: block; width: 100%; height: 100%; }
/* 読み込み時は絵全体を一度だけふわっと出す（ビルごとの動きは付けない） */
.sk--hero, .page-head__scene > .sk { animation: skIn .8s ease both; }

/* 空 */
.sk-dusk { opacity: calc(var(--dusk, 0) * (1 - var(--night, 0) * .7)); }
.sk-sunwrap { opacity: calc(var(--dusk, 0) * (1 - var(--night, 0))); }
.sk-sun { fill: #FBB27F; }
.sk-stars path { fill: #fff; }
.sk-stars { opacity: calc(var(--night, 0) * .9); }
.sk-moon circle { fill: #FFF1CC; }
.sk-moon { opacity: var(--night, 0); }
.sk-cloudwrap { opacity: calc(1 - var(--night, 0) * .7); }
.sk-cloud { animation: skDrift var(--dur, 90s) ease-in-out infinite alternate; }
.cl-hi { fill: #FFFFFF; }
.cl-sh { fill: #D9E5E3; }
.sk-stratus path { fill: none; stroke: #F8C6B0; stroke-width: 3; stroke-linecap: round; }
.sk-stratus { opacity: calc(var(--dusk, 0) * (1 - var(--night, 0)) * .8); }

/* 山 */
.sk-mtn { transform: translateY(calc(var(--p, 0) * 40px)); }
.mt-far { fill: #CBDAD6; }
.mt-near { fill: #B1C6BF; }
.mt-line { fill: none; stroke: #E4ECE9; stroke-width: 1.4; }
.mt-line2 { fill: none; stroke: #C6D6D0; stroke-width: 1.2; }
.mt-ant { fill: none; stroke: #9DB0AA; stroke-width: 1.2; }
.sk-haze { opacity: calc(1 - var(--night, 0) * .8); }

/* ビル（奥・中・手前） */
.sk-l1 { transform: translateY(calc(var(--p, 0) * 16px)); }
.sk-l1 .bd { fill: #BDCCC8; }
.sk-l1 .sh { fill: #B2C2BE; }
.sk-l1 .ant { stroke: #A9BAB5; }
.sk-l2 .bd { fill: #A1B4AE; }
.sk-l2 .sh { fill: #90A49E; }
.sk-l2 .ant { stroke: #8FA29C; }
.sk-l3 .bd { fill: #7C908A; }
.sk-l3 .sh { fill: #6D817B; }
.ant { fill: none; stroke-width: 1.1; }
.sk-draw { fill: none; }

/* ポートタワー */
.sk-tower .sk-draw { stroke: #C8372D; stroke-linecap: round; stroke-linejoin: round; }
.sk-tower .fr { stroke-width: 1; }
.sk-tower .bk { stroke-width: .7; opacity: .28; }
.sk-tower .ol { stroke-width: 1.6; }
.sk-tower .rg { stroke-width: 1; }
.tw-red { fill: #C8372D; }
.tw-win { fill: #5D6E79; }
.tw-mast { fill: none; stroke: #5E6B67; stroke-width: 1.4; }
.tw-base { fill: #EEF1EE; stroke: #A6B5B0; stroke-width: .8; }
.tw-base-l { fill: none; stroke: #9AABA5; stroke-width: 1.2; stroke-dasharray: 3 2; }

/* ホテルオークラ */
.ok-f { fill: #EFEDE6; }
.ok-s { fill: #CFCBC0; }
.ok-fl { fill: none; stroke: #E0DDD3; stroke-width: .8; }
.ok-fin { fill: none; stroke: #D6D2C7; stroke-width: .9; }
.ok-sign { fill: #56645F; }

/* 海洋博物館 */
.mu-b { fill: #8EA9AF; }
.mu-t { fill: #F4F7F6; }
.mu-g { fill: none; stroke: #B7CCD0; stroke-width: 1; stroke-dasharray: 5 3; }
.sk-museum .mu-net { stroke: #FFFFFF; stroke-width: .9; }
.sk-museum .mu-crest { stroke: #FFFFFF; stroke-width: 1.8; }
.mu-shadow { transform: translate(1.3px, 1px); }
.mu-shadow .sk-draw { stroke: #6F837D; stroke-width: 1; opacity: .55; }

/* オリエンタルホテル */
.or-f { fill: #F3F4F0; stroke: #BAC4BF; stroke-width: .7; }
.or-l { fill: none; stroke: #9FB0AB; stroke-width: 1.4; }

/* 観覧車 */
.sk-spin { transform-box: view-box; animation: skSpin 90s linear infinite; }
.wh-leg { fill: none; stroke: #7C8F89; stroke-width: 2.4; }
.wh-base { fill: #E9EEEB; stroke: #A6B5B0; stroke-width: .7; }
.wh-rim { fill: none; stroke: #899C96; stroke-width: 1.8; }
.wh-rim2 { fill: none; stroke: #A7B7B2; stroke-width: .8; }
.wh-sp { fill: none; stroke: #A7B7B2; stroke-width: .7; }
.wh-hub { fill: #7C8F89; }
.wh-g0 { fill: #E8A9A0; } .wh-g1 { fill: #9FC2E4; } .wh-g2 { fill: #F1D08E; } .wh-g3 { fill: #A9D1AE; }

/* 木・岸壁 */
.tr-sh { fill: #7E9A82; }
.tr-hi { fill: #97B39A; }
.sk-quay { fill: #55645F; }
.qy-hl { fill: none; stroke: #A9B8B3; stroke-width: 1; }
.qy-rail { fill: none; stroke: #6C7B77; stroke-width: .8; }
.qy-lamp { fill: none; stroke: #5E6D69; stroke-width: 1.1; }

/* 海 */
.sk-reflect { opacity: .34; }
.sk-horizon { fill: none; stroke: #fff; stroke-width: 1.2; opacity: .55; }
.sk-wave { fill: none; stroke: #fff; stroke-linecap: round; animation: skWave var(--dur, 16s) linear infinite; }
.sk-glint { fill: none; stroke: #fff; stroke-width: 1.2; stroke-linecap: round; opacity: calc(.6 * (1 - var(--night, 0) * .7)); animation: skGlint var(--dur, 8s) ease-in-out infinite alternate; }
.sk-glint--b { animation-direction: alternate-reverse; }

/* 船 */
.sk-ship { animation: skSail var(--dur, 90s) linear infinite; animation-delay: var(--d, 0s); }
.sk-ship--rev { animation-direction: reverse; }
.sk-bob { transform-box: fill-box; transform-origin: 50% 100%; animation: skBob 4s ease-in-out infinite alternate; }
.fe-hull { fill: #2F3B45; }
.fe-boot { fill: none; stroke: #B8403A; stroke-width: 1.8; }
.fe-deck { fill: #F7FAF8; stroke: #6B7A76; stroke-width: .6; }
.fe-win { fill: #56646B; }
.fe-lit { fill: #FFE0A3; opacity: var(--night, 0); }
.fe-fun { fill: #F7FAF8; stroke: #6B7A76; stroke-width: .6; }
.fe-band { fill: #1F7A4D; }
.fe-mast { fill: none; stroke: #55635F; stroke-width: 1; }
.fe-wake { fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: round; opacity: .75; }
.fe-foam { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.sb-hull { fill: #F7FAF8; stroke: #6B7A76; stroke-width: .6; }
.sb-sail { fill: #FFFFFF; stroke: #B7C4BF; stroke-width: .6; }
.sb-jib { fill: #EEF3F1; stroke: #B7C4BF; stroke-width: .6; }

/* 夜 */
.sk-night { mix-blend-mode: multiply; opacity: calc(var(--night, 0) * .74 + var(--dusk, 0) * .18); }
.sk-lights { opacity: max(var(--night, 0), calc(var(--dusk, 0) * .3)); }
.sk-glow { filter: url(#skGlowF); }
.lt-slope { fill: #FFD592; }
.lt-slope2 { fill: #DCEBFF; }
.lt-far { fill: #FFE2A8; opacity: .7; }
.lt-win { fill: #FFDFA0; }
.lt-sign { fill: #FFF3D6; }
.lt-lamp { fill: #FFE7B3; }
.lt-tower { fill: none; stroke: #FF6B55; stroke-width: 1.1; }
.lt-towerwin { fill: #FFD9A0; }
.lt-museum { fill: none; stroke: #D8EDFF; stroke-width: .8; }
.lt-blink { fill: #FF4D40; animation: skBlink 2.4s steps(1) infinite; }
.lt-anchor { fill: none; stroke: #FFE2A0; stroke-width: 2.4; stroke-linecap: round; }
.lt-anchor circle { fill: none; }
.wl-0 { stroke: #FF7B6B; } .wl-1 { stroke: #FFC56B; } .wl-2 { stroke: #FFF07A; }
.wl-3 { stroke: #7BE0A0; } .wl-4 { stroke: #7BC8FF; } .wl-5 { stroke: #C79BFF; }
.sk-lights [class^="wl-"] { fill: none; stroke-width: 1.2; }
.wl-rim { fill: none; stroke: #FFE9C2; stroke-width: 1.6; }
.sk-shimmer { animation: skShimmer 1.6s ease-in-out infinite alternate; }
.rf-warm, .rf-red, .rf-cool { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.rf-warm { stroke: #FFD592; opacity: .6; }
.rf-red { stroke: #FF6B55; opacity: .7; }
.rf-cool { stroke: #D8EDFF; opacity: .6; }

/* カモメ（昼だけ） */
.sk-gulls { opacity: calc(1 - var(--night, 0)); }
.sk-fly { animation: skFly 140s linear infinite; animation-delay: -40s; }
.sk-flap { fill: none; stroke: #4B5C56; stroke-width: 1.4; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 100%; animation: skFlap .9s ease-in-out infinite; animation-delay: var(--d, 0s); }

.sk.is-paused * { animation-play-state: paused !important; }

/* 下層ページ見出し・フッターの帯（単色寄り） */
.sk--mini .sk-l1 .bd, .sk--mini .sk-l1 .sh { fill: #DFE7E3; }
.sk--mini .sk-l2 .bd, .sk--mini .sk-l2 .sh { fill: #D3DDD8; }
.sk--mini .sk-l3 .bd, .sk--mini .sk-l3 .sh { fill: #C6D3CD; }
.sk--mini .ok-f, .sk--mini .ok-s, .sk--mini .ok-sign { fill: #C9D5D0; }
.sk--mini .or-f { fill: #fff; stroke: #BCCAC4; }
.sk--mini .mu-b, .sk--mini .mu-t { fill: #C9D5D0; }
.sk--mini .sk-museum .mu-net, .sk--mini .sk-museum .mu-crest { stroke: #AFC0B9; stroke-width: .9; }
.sk--mini .sk-tower .ol { stroke-width: 1.3; }
.sk--mini .sk-tower .fr { stroke-width: .8; }
.sk--mini .tw-base { fill: #DFE7E3; stroke: none; }
.sk--mini .tw-mast { stroke: #AFC0B9; }
.sk--mini .wh-leg, .sk--mini .wh-rim, .sk--mini .wh-sp { stroke: #BCCAC4; }
.sk--mini .wh-base { fill: #DFE7E3; stroke: none; }
.sk--mini [class^="wh-g"] { fill: #D3DDD8; }
.sk--mini .wh-hub { fill: #BCCAC4; }
.sk--mini .sk-quay { fill: #C9D6D0; }
.sk--foot .sk-l1 .bd, .sk--foot .sk-l1 .sh { fill: #F0F3F1; }
.sk--foot .sk-l2 .bd, .sk--foot .sk-l2 .sh { fill: #E8EDEA; }
.sk--foot .sk-l3 .bd, .sk--foot .sk-l3 .sh, .sk--foot .ok-f, .sk--foot .ok-s, .sk--foot .ok-sign, .sk--foot .mu-b, .sk--foot .mu-t { fill: #E1E8E4; }
.sk--foot .sk-tower .sk-draw, .sk--foot .sk-museum .sk-draw { stroke: #CCD7D2; }
.sk--foot .tw-red { fill: #CCD7D2; }
.sk--foot .sk-quay { fill: var(--line); }
.sk--static * { animation: none !important; }

@keyframes skIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes skWave { to { stroke-dashoffset: var(--len, -200); } }
@keyframes skGlint { from { transform: translateX(-10px); } to { transform: translateX(10px); } }
@keyframes skShimmer { from { transform: translateX(-1.5px); opacity: .85; } to { transform: translateX(1.5px); opacity: 1; } }
@keyframes skDrift { from { transform: translateX(-60px); } to { transform: translateX(60px); } }
@keyframes skSail { from { transform: translateX(-1100px); } to { transform: translateX(900px); } }
@keyframes skSpin { to { transform: rotate(360deg); } }
@keyframes skBob { from { transform: rotate(-2.5deg) translateY(0); } to { transform: rotate(2.5deg) translateY(1px); } }
@keyframes skTwinkle { from { fill-opacity: 1; } to { fill-opacity: .15; } }
@keyframes skBlink { 0% { opacity: 1; } 50% { opacity: .15; } }
@keyframes skFly { from { transform: translateX(-200px); } to { transform: translateX(1800px); } }
@keyframes skFlap { 50% { transform: scaleY(.3); } }
.sk-twinkle { animation: skTwinkle var(--dur, 3s) ease-in-out infinite alternate; }

/* Stats -------------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.stats__item { padding: clamp(24px, 3vw, 36px) clamp(16px, 2vw, 28px); }
.stats__item + .stats__item { border-left: 1px solid var(--line); }
.stats__item dt { font-size: 0.9rem; color: var(--ink-2); }
.stats__item dd { margin-top: 4px; font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.1; }
.stats__item dd small { font-family: var(--sans); font-weight: 700; font-size: 0.4em; margin-left: 4px; }
.stats__item--text dd { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; padding-top: 12px; line-height: 1.5; }

/* Scroll reveal ------------------------------------------------------ */
.js .js-in { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.75,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .js-in.in-view { opacity: 1; transform: none; }

/* あゆみ（トップ） ---------------------------------------------------- */
.ayumi { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.ayumi::before, .ayumi::after {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 2px; background: var(--line);
}
.ayumi::after { background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 1.8s cubic-bezier(.45,0,.2,1); }
.ayumi.in-view::after { transform: scaleX(1); }
.ayumi li { position: relative; z-index: 1; padding-top: 34px; }
.ayumi li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink-3);
  transition: border-color .4s ease, background-color .4s ease; transition-delay: calc(var(--i, 0) * .35s + .2s);
}
.ayumi.in-view li::before { border-color: var(--green); }
.ayumi.in-view li:last-child::before { background: var(--green); }
.ayumi__y { display: block; font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1.1; }
.ayumi li p { margin-top: 8px; color: var(--ink-2); font-size: 0.95rem; line-height: 1.7; }
.js .ayumi li { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; transition-delay: calc(var(--i, 0) * .35s + .15s); }
.js .ayumi.in-view li { opacity: 1; transform: none; }

/* About block (top) --------------------------------------------------- */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.about__text p + p { margin-top: 1.2em; }
.facts { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 28px; }
.facts__row {
  display: grid; grid-template-columns: minmax(120px, 160px) 1fr; gap: 4px 20px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.facts__row:last-child { border-bottom: 0; }
.facts__row dt { color: var(--ink-2); font-size: 0.92rem; }
.facts__row dd { font-weight: 500; }
.more { margin-top: 24px; }

/* Services ----------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.services__item {
  padding: 30px 28px 30px; border-radius: var(--r-md);
  background: var(--tint);
  transition: background-color .3s ease;
}
.services__item:hover { background: var(--green-tint); }
.services__item:hover .services__icon { background: var(--green); color: #fff; }
.services__icon { transition: background-color .3s ease, color .3s ease; }
.services__icon {
  width: 48px; height: 48px; border-radius: 12px; background: #fff; color: var(--green);
  display: grid; place-items: center; margin-bottom: 20px;
}
.services__icon svg { width: 24px; height: 24px; }
.services__item h3 { margin-bottom: 8px; }
.services__item p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.8; }

/* News --------------------------------------------------------------- */
.news { border-top: 1px solid var(--line); }
.news__item {
  display: grid; grid-template-columns: 10em 1fr; gap: 6px 24px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.news__item time { font-family: var(--num); font-weight: 500; color: var(--ink-2); }

/* Access ------------------------------------------------------------- */
.access { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.access__figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); background: var(--photo-bg); }
.addr { font-style: normal; }
.addr__name { font-weight: 700; font-size: 1.25rem; margin-bottom: 8px; }
.addr__tel { display: inline-block; margin-top: 10px; font-size: 2rem; line-height: 1.2; }
.addr__tel:hover { color: var(--green); }
.addr dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin-top: 20px; }
.addr dt { color: var(--ink-2); font-size: 0.92rem; }
.addr .btn { margin-top: 24px; }

.map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--r-lg); background: var(--photo-bg); }

/* Sub-page header ---------------------------------------------------- */
.page-head { padding-top: clamp(48px, 7vw, 80px); background: linear-gradient(180deg, #EAF1EE 0%, #FFFFFF 100%); }
.page-head__scene { position: relative; height: clamp(72px, 9vw, 124px); margin-top: clamp(28px, 4vw, 48px); }
.page-head__scene > svg, .footer__sky > svg { position: absolute; inset: 0; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: 0.01em; }
.page-head p { margin-top: 10px; color: var(--ink-2); font-size: 1.05rem; }

/* Two-column: heading left, content right ----------------------------- */
.side { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 3fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; }
.side__note { margin-top: 8px; color: var(--ink-2); font-size: 0.95rem; }

/* Spec table (会社概要) ---------------------------------------------- */
.spec { border-top: 1px solid var(--line); }
.spec__row { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 6px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.spec__row dt { color: var(--ink-2); font-size: 0.95rem; padding-top: 2px; }
.spec__row dd { font-weight: 500; }
.spec__row dd p + p { margin-top: 2px; }

/* Timeline (沿革) ----------------------------------------------------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline__item { position: relative; display: grid; grid-template-columns: minmax(150px, 200px) 1fr; gap: 4px 24px; padding: 0 0 32px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -28px; top: 9px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink-3);
}
.timeline__item:last-child::before { background: var(--green); border-color: var(--green); }
.timeline__item time { font-family: var(--num); font-weight: 700; font-size: 1.1rem; line-height: 1.5; }
.timeline__item time small { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.8rem; color: var(--ink-2); }
.timeline__item p + p { margin-top: 2px; }

/* Plain lists (取引銀行・加入団体) ----------------------------------- */
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.cols li { padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 500; }

/* Staff -------------------------------------------------------------- */
.message { max-width: 44em; }
.message p + p { margin-top: 1em; }
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.person { padding: 28px; border-radius: var(--r-md); background: var(--tint); display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.person:has(> .person__photo) { grid-template-columns: 96px 1fr; }
.person__photo {
  width: 96px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #fff;
  display: grid; place-items: center; border: 1px solid var(--line);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__photo span { font-weight: 700; font-size: 1.3rem; color: var(--ink-2); letter-spacing: 0.05em; }
.person__role { color: var(--ink-2); font-size: 0.9rem; }
.person__name { font-size: 1.35rem; margin: 2px 0 12px; }
.person__text p + p { margin-top: 0.8em; }
.person__text { font-size: 0.97rem; }
.person__link { margin-top: 16px; }

/* Form (お問い合わせ) -------------------------------------------------- */
.form { max-width: 40em; display: grid; gap: 24px; }
.form__row label { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 700; font-size: 0.95rem; }
.form__req, .form__opt { padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; line-height: 1.6; }
.form__req { background: var(--green-tint); color: var(--green-dark); }
.form__opt { background: var(--tint); color: var(--ink-2); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  display: block; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); font: inherit; line-height: 1.6; transition: border-color .2s ease;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green); outline: none; }
.form textarea { min-height: 180px; resize: vertical; }
.form__agree { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.form__agree input { width: 18px; height: 18px; margin: 7px 0 0; flex: none; accent-color: var(--green); }
.form__actions .btn { min-width: 200px; }
.form__msg { padding: 14px 18px; border-radius: var(--r-sm); background: var(--tint); font-size: 0.95rem; }
.form__msg.is-error { background: #FBECEA; color: #8A2A1F; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form button[disabled] { opacity: .6; cursor: wait; }

/* Privacy ------------------------------------------------------------ */
.policy { max-width: 44em; }
.policy__intro { margin-bottom: 40px; }
.policy__item + .policy__item { margin-top: 32px; }
.policy__item h2 { font-size: 1.2rem; margin-bottom: 8px; }
.policy__item h2 span { display: inline-block; min-width: 2em; font-family: var(--num); color: var(--green); }
.policy__item p + p { margin-top: 0.6em; }
.policy__date { margin-top: 48px; color: var(--ink-2); font-size: 0.9rem; }

/* CTA band ----------------------------------------------------------- */
.cta { padding-block: clamp(48px, 6vw, 72px); }
.cta__box {
  background: var(--tint); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta__box h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.cta__box p { margin-top: 6px; color: var(--ink-2); }
.cta__tel { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cta__tel small { font-size: 0.85rem; color: var(--ink-2); }

/* Footer ------------------------------------------------------------- */
.footer { padding-bottom: 32px; }
.footer__sky { position: relative; height: clamp(56px, 7vw, 96px); margin-bottom: clamp(40px, 5vw, 56px); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px clamp(32px, 5vw, 64px); }
.footer__brand .brand { margin-bottom: 18px; }
.footer__addr { font-style: normal; font-size: 0.95rem; color: var(--ink-2); line-height: 1.9; }
.footer__tel { font-family: var(--num); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.footer__h { font-weight: 700; font-size: 0.9rem; margin-bottom: 12px; }
.footer__list li + li { margin-top: 8px; }
.footer__list a { display: inline-flex; align-items: center; gap: 5px; font-size: 0.95rem; color: var(--ink-2); }
.footer__list a:hover { color: var(--green); }
.footer__bottom {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: 0.85rem; color: var(--ink-3);
}

/* Responsive --------------------------------------------------------- */
@media (max-width: 1023px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  .ayumi { grid-template-columns: 1fr; gap: 0; padding-left: 36px; }
  .ayumi::before, .ayumi::after { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .ayumi::after { transform: scaleY(0); transform-origin: top; }
  .ayumi.in-view::after { transform: scaleY(1); }
  .ayumi li { padding: 0 0 28px; }
  .ayumi li::before { left: -36px; top: 8px; }
  .ayumi li:last-child { padding-bottom: 0; }
  .ayumi__y { font-size: 1.6rem; }
  .about, .access { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr; gap: 16px; }
  .people { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 40;
    background: #fff; border-bottom: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; padding: 15px 0; font-size: 1.05rem; color: var(--ink); }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--green); }
  .nav__cta { border-bottom: 0 !important; padding-top: 20px; margin-left: 0; }
  .nav__cta .btn { width: 100%; min-height: 52px; font-size: 1rem; }

  .hero { min-height: 640px; }
  .hero__title { font-size: clamp(2.1rem, 9.4vw, 2.8rem); }
  .hero__lead { font-size: 1rem; }
  .hero__scene { min-height: 280px; margin-top: 0; }
  .hero__actions .btn { flex: 1 1 auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats__item { padding: 20px 0; }
  .stats__item:nth-child(2) { padding-left: 20px; }
  .stats__item--text { grid-column: 1 / -1; }
  .stats__item--text { border-left: 0 !important; border-top: 1px solid var(--line); }
  .services { grid-template-columns: 1fr; gap: 14px; }
  .facts { padding: 4px 20px; }
  .facts__row, .spec__row, .news__item { grid-template-columns: 1fr; gap: 2px; }
  .timeline__item { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .person { gap: 18px; padding: 22px; }
  .person:has(> .person__photo) { grid-template-columns: 72px 1fr; }
  .person__photo { width: 72px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .cta__box { padding: 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__title .ln > span, .fade, .js .js-in, .js .ayumi li { opacity: 1; transform: none; transition: none; }
  .ayumi::after { transition: none; }
  .sk, .sk * { animation: none !important; }
  .nav, .nav__link::after, .menu-btn span, .link, .btn { transition: none; }
}

@media print {
  .js .js-in, .js .ayumi li, .hero__title .ln > span, .fade { opacity: 1 !important; transform: none !important; }
  .header, .menu-btn, .cta { display: none; }
  body { padding: 0; }
}
