/* A案「結晶」（株式会社aim）
   参考: atomsworld.co.jp（借りたのは手触りだけ＝薄い灰色の地・細い英字の大見出し・左の縦の小見出し・奥行きのある傾いた写真・字を帯で出す動き・半透明の三角形の球）。
   色はくすんだ青（今のサイトのフッター #42587a）を土台に、葉の緑を添える。 */

:root {
  --bg: #eef1f0;          /* 少し緑を含んだ薄い灰色 */
  --bg-2: #e4e9e7;
  --paper: #ffffff;
  --ink: #23324a;         /* 字＝深いくすんだ紺 */
  --blue: #42587a;        /* 土台の色（今のサイトのフッター） */
  --blue-d: #2e3e57;
  --blue-dd: #233147;
  --green: #3f7a56;       /* 字にも使える緑（地との差 4.9） */
  --leaf: #7fb08a;
  --sage: #a8cf8e;
  --muted: #56636f;       /* 補足の灰色（地との差 5.6） */
  --line: #c6cfcc;
  --en: 'Rajdhani', 'Zen Kaku Gothic New', sans-serif;
  --ja: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
  --pad: clamp(20px, 5vw, 88px);
  --max: 1240px;
  --anim-paper-color: var(--blue);
  --fx-backtop-bg: var(--blue);
  --fx-backtop-fg: #fff;
  --fx-backtop-ink: var(--blue);
  --fx-btn-rise-bg: var(--green);
  --fx-btn-rise-fg: #fff;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ja); font-size: 15px; line-height: 2; letter-spacing: .06em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
.nb { white-space: nowrap; }
.wrap { width: min(var(--max), calc(100% - var(--pad) * 2)); margin: 0 auto; position: relative; }

/* ---------- ヘッダー ---------- */
.site-header { position: fixed; z-index: 50; left: 0; right: 0; top: 0; transition: background .4s, box-shadow .4s, transform .4s; }
.site-header.is-scrolled { background: rgba(238, 241, 240, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(35, 50, 74, .08); }
html.is-shot .site-header { position: absolute; }
.proposal-bar ~ .site-header { top: 42px; }
.proposal-bar ~ .site-header.is-scrolled { top: 0; }
html.is-shot .proposal-bar ~ .site-header { top: 0; }
.sh-inner { display: flex; align-items: center; gap: 34px; padding: 22px var(--pad) 22px clamp(20px, 3.4vw, 52px); }
.site-header.is-scrolled .sh-inner { padding-top: 14px; padding-bottom: 14px; }
.brand img { height: 44px; width: auto; transition: height .4s; }
.site-header.is-scrolled .brand img { height: 36px; }
.gnav { margin-left: auto; display: flex; gap: 34px; font-size: 14px; font-weight: 500; letter-spacing: .12em; }
.gnav a { --fx-roll-lh: 1.6; }
.sh-tel { font-family: var(--en); font-weight: 600; font-size: 19px; letter-spacing: .06em; white-space: nowrap; }
.sh-tel span { font-size: 12px; margin-right: 6px; color: var(--muted); letter-spacing: .14em; }
.sh-cta { display: inline-flex; align-items: center; height: 48px; padding: 0 30px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; letter-spacing: .12em; white-space: nowrap; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ink); padding: 0; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: #fff; margin: 4px auto; }

/* ---------- 左の縦の小見出し ---------- */
.sec { position: relative; padding: clamp(110px, 12vw, 190px) 0; }
.v-label { position: absolute; left: clamp(14px, 2.4vw, 40px); top: clamp(110px, 12vw, 190px); writing-mode: vertical-rl; font-family: var(--en); font-size: 13px; font-weight: 500; letter-spacing: .3em; color: var(--muted); }
.v-label::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); margin: 0 auto 14px; }

/* ---------- 見出し（Contents ─── / 細い大きな英字 / 和文） ---------- */
.sh-label { display: flex; align-items: center; gap: 22px; font-family: var(--en); font-size: 18px; font-weight: 400; letter-spacing: .06em; color: var(--ink); }
.sh-label i { display: block; flex: 1; max-width: 260px; height: 1px; background: var(--ink); opacity: .7; }
.sh-title, .row-title { font-family: var(--en); font-weight: 300; font-size: clamp(56px, 7.2vw, 108px); line-height: 1.04; letter-spacing: .01em; color: var(--ink); margin-top: 10px; }
.sh-ja { margin-top: 10px; font-size: 14px; font-weight: 700; letter-spacing: .24em; color: var(--green); }
.sec-head { margin-bottom: clamp(48px, 6vw, 84px); }
.sec-head.is-inline { display: flex; align-items: baseline; gap: 26px; flex-wrap: wrap; }

/* ---------- 1 メインビジュアル ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background:
  radial-gradient(60% 70% at 70% 45%, rgba(168, 207, 142, .22), transparent 70%), var(--bg); }
html.is-shot .hero { height: 900px; }
.hero-facet { position: absolute; inset: 0; --fx-facet-x: .66; --fx-facet-y: .47; --fx-facet-r: .37; --fx-facet-detail: 1; --fx-facet-alpha: .34;
  --fx-facet-colors: #7fb08a,#a8cf8e,#cfe3b0,#42587a,#6f87a8,#9fb4cf,#8ec5bd; --fx-facet-line: rgba(35,50,74,.32); --fx-facet-shards: 16; }
.fx-facet-canvas { position: absolute; inset: 0; display: block; pointer-events: none; }
.hero-copy { position: absolute; left: clamp(20px, 3.6vw, 56px); bottom: clamp(70px, 10vh, 110px); z-index: 2; max-width: 760px; }
.hero-eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .2em; color: var(--muted); margin-bottom: 22px; }
.hero-copy .dm.is-block { margin-bottom: 10px; }
.hero-en { font-family: var(--en); font-weight: 600; font-size: clamp(46px, 5.4vw, 82px); line-height: 1.02; letter-spacing: .02em; color: var(--ink); }
.hero-en .ln { display: block; white-space: nowrap; }
.hero-ja { margin-top: 26px; font-size: clamp(15px, 1.25vw, 18px); font-weight: 500; letter-spacing: .16em; }
.hero-side { position: absolute; right: clamp(20px, 3.6vw, 56px); top: 50%; transform: translateY(-50%); z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-family: var(--en); color: var(--muted); }
.hs-num { font-size: 15px; font-weight: 500; letter-spacing: .2em; }
.hs-txt { writing-mode: vertical-rl; font-size: 12px; letter-spacing: .32em; }
.scroll-down { position: absolute; right: clamp(20px, 3.6vw, 56px); bottom: 0; z-index: 2; display: flex; align-items: flex-end; gap: 12px; height: 170px; font-family: var(--en); font-size: 12px; font-weight: 500; letter-spacing: .26em; color: var(--ink); }
.scroll-down span { writing-mode: vertical-rl; padding-bottom: 60px; }
.scroll-down i { position: relative; display: block; width: 1px; height: 100%; background: rgba(35, 50, 74, .2); overflow: hidden; }
.scroll-down i::after { content: ''; position: absolute; left: 0; top: -40px; width: 1px; height: 40px; background: var(--ink); animation: kessho-down 2s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes kessho-down { to { top: 100%; } }
html.is-shot .scroll-down i::after { animation: none; top: 30%; }

/* ---------- anim-paper（字の上を帯が覆って抜ける） ---------- */
.anim-paper { position: relative; display: inline-block; }
.anim-paper-t { display: inline-block; }
html.paper-on .anim-paper::after { content: ''; position: absolute; left: 0; top: .08em; bottom: .02em; width: 100%; background: var(--anim-paper-color, currentColor); transform: scaleX(0); transform-origin: left center; pointer-events: none; }
html.paper-on .anim-paper .anim-paper-t { opacity: 0; }
html.paper-on .anim-paper.is-inview::after { animation: anim-paper-band var(--anim-paper-duration, 1.1s) cubic-bezier(.77, 0, .18, 1) var(--anim-paper-delay, 0s) both; }
html.paper-on .anim-paper.is-inview .anim-paper-t { animation: anim-paper-text 0s linear calc(var(--anim-paper-delay, 0s) + var(--anim-paper-duration, 1.1s) * .5) both; }
@keyframes anim-paper-band { 0% { transform: scaleX(0); transform-origin: left center; } 48% { transform: scaleX(1); transform-origin: left center; } 52% { transform: scaleX(1); transform-origin: right center; } 100% { transform: scaleX(0); transform-origin: right center; } }
@keyframes anim-paper-text { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html.paper-on .anim-paper::after { display: none; } html.paper-on .anim-paper .anim-paper-t { opacity: 1; } }

/* ---------- 2 理念 ---------- */
.statement { padding-top: clamp(140px, 14vw, 220px); }
.ghost-en { font-family: var(--en); font-weight: 300; font-size: clamp(52px, 8.4vw, 132px); line-height: 1.08; letter-spacing: .01em; color: rgba(35, 50, 74, .13); margin-left: clamp(0px, 4vw, 60px); }
.ghost-en .indent { display: inline-block; padding-left: clamp(40px, 9vw, 150px); }
.ghost-en .dm { vertical-align: .9em; }
.st-body { width: min(620px, 100%); margin: clamp(40px, 5vw, 70px) 0 0 auto; margin-right: clamp(0px, 6vw, 100px); }
.st-head { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.7; letter-spacing: .14em; }
.st-text { margin-top: 30px; font-size: 15px; line-height: 2.25; letter-spacing: .08em; }
.st-sign { margin-top: 22px; font-size: 14px; font-weight: 500; letter-spacing: .2em; color: var(--muted); }
.btn-more { display: inline-flex; align-items: center; gap: 46px; margin-top: 44px; height: 56px; padding: 0 28px 0 30px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .18em; box-shadow: 0 10px 30px -18px rgba(35, 50, 74, .45); }
.btn-more i { font-style: normal; font-family: var(--en); font-size: 16px; }

/* ---------- 3 事業内容 ---------- */
.business { background: linear-gradient(var(--bg) 0, var(--bg-2) 100%); }
.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 34px; counter-reset: biz; }
.biz a { display: block; border-top: 1px solid var(--ink); padding-top: 18px; }
.biz-ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 20px; background: #d9e0dd; }
.biz-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.biz a:hover .biz-ph img { transform: scale(1.07); }
.biz-no { font-family: var(--en); font-size: 30px; font-weight: 300; line-height: 1; letter-spacing: .04em; display: flex; align-items: baseline; gap: 12px; color: var(--green); }
.biz-no span { font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.biz h3 { margin-top: 14px; font-size: 17px; font-weight: 700; line-height: 1.6; letter-spacing: .1em; }
.biz-tx { margin-top: 12px; font-size: 13px; line-height: 1.95; color: var(--muted); }

/* ---------- 写真と文の段（Contents の段） ---------- */
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.row.is-rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.row-ja { margin-top: 14px; font-size: 18px; font-weight: 700; letter-spacing: .18em; }
.row-lead { margin-top: 24px; font-size: 14.5px; line-height: 2.15; }
.row-note { margin-top: 18px; font-size: 14px; font-weight: 500; color: var(--green); }
.row-media { position: relative; perspective: 1400px; }
.tilt { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #d9e0dd; }
.tilt img { width: 100%; height: 100%; object-fit: cover; }

/* fx-perspective（奥行きの傾き・下へ進むと正面に近づく・マウスで少し向きが変わる） */
.fx-perspective {
  --q: clamp(0, calc((var(--p, 1) - .12) / .4), 1);
  transform: perspective(1400px) rotateY(calc(var(--fx-perspective-dir, 1) * -1 * (var(--fx-perspective-deg, 14deg) * (1 - var(--q)) + var(--fx-perspective-rest, 5deg)) + var(--mx, 0) * var(--fx-perspective-mouse, 3deg)));
  transform-origin: 50% 50%;
  box-shadow: calc(var(--fx-perspective-dir, 1) * 46px) 50px 90px -40px rgba(35, 50, 74, .45);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}
html.is-shot .fx-perspective { --q: 1; --mx: 0; transition: none; }
@media (prefers-reduced-motion: reduce) { .fx-perspective { transform: none; } }

/* ---------- 4 地中熱の特集 ---------- */
.feature { background: var(--bg-2); }
.geo-stat { margin-top: 34px; display: flex; align-items: center; gap: 26px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gs-cap { font-size: 13.5px; line-height: 1.8; font-weight: 500; letter-spacing: .1em; }
.gs-num { font-family: var(--en); font-weight: 300; font-size: clamp(84px, 8vw, 120px); line-height: .9; color: var(--green); display: flex; align-items: baseline; white-space: nowrap; }
.gs-num small { font-size: .38em; font-weight: 400; margin-left: 4px; }
.gs-num em { font-style: normal; font-family: var(--ja); font-size: 18px; font-weight: 700; letter-spacing: .16em; color: var(--ink); margin-left: 14px; }
.geo-sub { margin-top: clamp(70px, 8vw, 120px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.geo-figure { background: var(--paper); padding: 34px 34px 26px; }
.geo-figure svg { width: 100%; height: auto; display: block; stroke: var(--blue); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.geo-figure .gd-ground { stroke: var(--ink); stroke-width: 1.6; }
.geo-figure .gd-hatch { stroke: var(--muted); stroke-width: .8; }
.geo-figure .gd-pipe { stroke: var(--green); stroke-width: 2.2; }
.geo-figure .gd-dim { stroke: var(--muted); stroke-width: .9; }
.geo-figure .gd-temp { stroke: var(--leaf); stroke-width: 1; stroke-dasharray: 0; opacity: .8; }
.geo-figure figcaption { display: flex; justify-content: space-between; gap: 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; letter-spacing: .1em; }
.gf-t { font-weight: 700; }
.gf-d { color: var(--muted); font-family: var(--en); font-weight: 500; font-size: 14px; letter-spacing: .08em; white-space: nowrap; }
.merits { counter-reset: m; }
.merits li { position: relative; padding: 16px 0 16px 58px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; letter-spacing: .12em; line-height: 1.7; }
.merits li:first-child { border-top: 1px solid var(--line); }
.merits b { position: absolute; left: 0; top: 17px; font-family: var(--en); font-weight: 500; font-size: 15px; color: var(--green); letter-spacing: .1em; }
.merits span { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; line-height: 1.9; letter-spacing: .06em; color: var(--muted); }

/* ---------- 5 会社 ---------- */
.facts { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.facts > div { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.facts > div:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--line); }
.facts > div:nth-child(even) { padding-left: 26px; }
.facts dt { font-size: 12.5px; font-weight: 700; letter-spacing: .2em; color: var(--muted); }
.facts dd { margin-top: 4px; font-family: var(--en); font-weight: 300; font-size: 54px; line-height: 1.05; color: var(--ink); white-space: nowrap; }
.facts dd small, .facts .f-pre { font-family: var(--ja); font-size: 14px; font-weight: 500; letter-spacing: .1em; margin-left: 6px; }
.facts .f-pre { margin: 0 4px 0 0; }
.makers { margin-top: 26px; font-size: 13px; line-height: 1.95; }
.mk-t { display: block; font-weight: 700; letter-spacing: .14em; color: var(--green); margin-bottom: 2px; }
.license { margin-top: 12px; font-size: 12.5px; line-height: 1.9; color: var(--muted); }

/* ---------- 6 施工実績 ---------- */
.works { padding-top: 0; }
.works-band { position: relative; height: clamp(320px, 52vw, 640px); overflow: hidden; margin-bottom: clamp(90px, 10vw, 150px); background: var(--blue-d); }
.works-band img { width: 100%; height: 100%; object-fit: cover; }
.wb-en { position: absolute; left: var(--pad); bottom: 4%; z-index: 3; font-family: var(--en); font-weight: 300; font-size: clamp(64px, 12vw, 190px); line-height: .9; color: rgba(255, 255, 255, .9); letter-spacing: .02em; }
.works .v-label { top: calc(clamp(320px, 52vw, 640px) + clamp(90px, 10vw, 150px)); }
html.is-shot .works-band.anim-scrub-open { --p: 1 !important; }
.works-list { border-top: 1px solid var(--ink); }
.works-list li { display: grid; grid-template-columns: 120px minmax(0, 1.25fr) minmax(0, 1fr) 30px; gap: 24px; align-items: baseline; padding: 22px 6px; border-bottom: 1px solid var(--line); font-size: 15px; cursor: pointer; }
.w-date { font-family: var(--en); font-size: 17px; font-weight: 500; letter-spacing: .08em; color: var(--green); white-space: nowrap; }
.w-name { font-weight: 700; letter-spacing: .08em; }
.w-kind { font-size: 13.5px; color: var(--muted); }
.works-list i { font-style: normal; font-family: var(--en); justify-self: end; transition: transform .4s; }
.works-list li:hover i { transform: translateX(6px); }
.link-more { display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; font-family: var(--en); font-size: 15px; font-weight: 600; letter-spacing: .12em; }
.works .link-more { font-family: var(--ja); font-size: 14px; font-weight: 700; }
.link-more i { font-style: normal; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 50%; transition: background .3s, color .3s; }
.link-more:hover i { background: var(--ink); color: #fff; }

/* ---------- 7 新着情報 ---------- */
.news { background: var(--bg-2); }
.news-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.news-list { border-top: 1px solid var(--ink); }
.news-list a { display: grid; grid-template-columns: 96px 90px minmax(0, 1fr); gap: 18px; align-items: baseline; padding: 22px 4px; border-bottom: 1px solid var(--line); transition: padding .4s, background .4s; }
.news-list a:hover { padding-left: 14px; background: rgba(255, 255, 255, .5); }
.news-list time { font-family: var(--en); font-size: 16px; font-weight: 500; letter-spacing: .08em; color: var(--muted); }
.tag { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 2px 12px; border-radius: 999px; background: var(--paper); color: var(--green); line-height: 1.8; }
.n-t { font-size: 14.5px; font-weight: 500; line-height: 1.8; }
.news-list .news-more { border: 0; }
.news-list .news-more a, .news-list .news-more .link-more { display: inline-flex; grid-template-columns: none; border: 0; padding: 0; background: none; }

/* ---------- 8 採用情報 ---------- */
.jobs { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.jobs li { font-size: 12.5px; font-weight: 500; letter-spacing: .08em; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }

/* ---------- 9 お問い合わせ ---------- */
.contact { position: relative; overflow: hidden; background: var(--blue); color: #fff; padding: clamp(100px, 11vw, 170px) 0; }
.contact-facet { position: absolute; inset: 0; --fx-facet-sphere: 0; --fx-facet-shards: 18; --fx-facet-alpha: .22; --fx-facet-colors: #a8cf8e,#7fb08a,#9fb4cf,#cfe3b0; --fx-facet-line: rgba(255,255,255,.3); }
.ct-in { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 50px; flex-wrap: wrap; }
.ct-en { font-family: var(--en); font-weight: 300; font-size: clamp(76px, 10vw, 150px); line-height: .95; letter-spacing: .01em; }
.ct-ja { margin-top: 18px; font-size: 15px; font-weight: 700; letter-spacing: .2em; }
.ct-tel { font-family: var(--en); font-weight: 500; font-size: clamp(40px, 4.2vw, 58px); line-height: 1; letter-spacing: .04em; white-space: nowrap; }
.ct-tel span { font-size: .36em; letter-spacing: .2em; margin-right: 12px; opacity: .85; }
.ct-meta { margin-top: 14px; font-size: 13.5px; letter-spacing: .12em; opacity: .92; }
.ct-btn { --fx-btn-rise-bg: #fff; --fx-btn-rise-fg: var(--blue-d); display: inline-flex; align-items: center; justify-content: space-between; gap: 50px; margin-top: 28px; height: 64px; padding: 0 30px 0 34px; border: 1px solid rgba(255, 255, 255, .7); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .18em; min-width: 340px; }
.ct-btn i { font-style: normal; font-family: var(--en); font-size: 18px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--blue-dd); color: rgba(255, 255, 255, .88); padding: 80px 0 40px; font-size: 13px; line-height: 1.95; }
.ft-top { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; padding-bottom: 46px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.ft-brand img { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.ft-nav { display: flex; flex-wrap: wrap; gap: 8px 30px; font-size: 13px; letter-spacing: .12em; }
.offices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 44px 0; }
.offices b { display: block; font-size: 14px; letter-spacing: .16em; color: #fff; margin-bottom: 6px; }
.offices b::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); margin-right: 10px; vertical-align: 2px; }
.copy { font-family: var(--en); font-size: 13px; letter-spacing: .14em; opacity: .75; }

/* ---------- タブレット ---------- */
@media (max-width: 1180px) {
  .gnav { gap: 22px; font-size: 13px; }
  .sh-tel { display: none; }
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .offices { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .gnav, .sh-cta { display: none; }
  .menu-btn { display: block; }
  .row, .row.is-rev, .geo-sub, .news-in { grid-template-columns: 1fr; }
  .row.is-rev .row-media { order: 2; }
  .row-media { max-width: 560px; }
  .tilt { aspect-ratio: 4 / 3; }
  .st-body { margin-right: 0; }
}

/* ---------- スマホ ---------- */
@media (max-width: 640px) {
  body { font-size: 14px; }
  .sh-inner { padding: 14px 16px; }
  .brand img { height: 34px; }
  .menu-btn { width: 42px; height: 42px; }
  .v-label { display: none; }
  .sec { padding: 96px 0; }
  .hero { min-height: 680px; }
  .hero-facet { --fx-facet-x: .56; --fx-facet-y: .33; --fx-facet-r: .46; --fx-facet-shards: 9; }
  .hero-copy { left: 18px; right: 18px; bottom: 64px; }
  .hero-eyebrow { font-size: 11.5px; letter-spacing: .12em; margin-bottom: 16px; }
  .hero-en { font-size: clamp(38px, 11.4vw, 52px); }
  .hero-ja { font-size: 13.5px; letter-spacing: .1em; margin-top: 18px; }
  .hero-side { display: none; }
  .scroll-down { right: 14px; height: 120px; }
  .scroll-down span { padding-bottom: 40px; font-size: 10px; }
  .ghost-en { font-size: clamp(40px, 12vw, 56px); margin-left: 0; }
  .ghost-en .indent { padding-left: 28px; }
  .st-head { font-size: 22px; letter-spacing: .1em; }
  .st-text { font-size: 13.5px; line-height: 2.1; letter-spacing: .03em; }
  .st-text br { display: none; }
  .sh-title, .row-title { font-size: clamp(48px, 14vw, 64px); }
  .sh-label { font-size: 15px; }
  .biz-grid { grid-template-columns: 1fr; gap: 0; }
  .biz a { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 16px; padding: 18px 0; border-top: 0; border-bottom: 1px solid var(--line); }
  .biz:first-child a { border-top: 1px solid var(--ink); }
  .biz-ph { grid-row: 1 / span 3; margin: 0; aspect-ratio: 1; }
  .biz-no { font-size: 22px; }
  .biz-no span { font-size: 10.5px; }
  .biz h3 { margin-top: 2px; font-size: 15px; }
  .biz-tx { margin-top: 2px; font-size: 12px; line-height: 1.8; }
  .geo-stat { gap: 16px; flex-wrap: wrap; }
  .gs-num em { font-size: 15px; }
  .geo-figure { padding: 18px 16px 16px; }
  .geo-figure figcaption { flex-direction: column; gap: 4px; }
  .merits li { padding-left: 46px; font-size: 14.5px; }
  .facts dd { font-size: 40px; }
  .facts > div:nth-child(even) { padding-left: 16px; }
  .facts dd small { font-size: 12px; }
  .works-list li { grid-template-columns: 1fr 24px; gap: 2px 12px; padding: 18px 2px; }
  .w-date { grid-column: 1; font-size: 15px; }
  .w-name { grid-column: 1; font-size: 14px; }
  .w-kind { grid-column: 1; font-size: 12.5px; }
  .works-list i { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .works .v-label { display: none; }
  .news-list a { grid-template-columns: auto 1fr; gap: 6px 12px; padding: 18px 2px; }
  .n-t { grid-column: 1 / -1; font-size: 13.5px; }
  .btn-more { gap: 30px; height: 52px; }
  .ct-in { flex-direction: column; align-items: flex-start; gap: 34px; }
  .ct-btn { min-width: 0; width: 100%; }
  .ct-tel { font-size: 38px; }
  .ct-meta { font-size: 12.5px; letter-spacing: .06em; }
  .offices { grid-template-columns: 1fr; gap: 22px; padding: 34px 0; }
  .ft-brand img { height: 38px; }
  .ft-nav { gap: 6px 18px; font-size: 12.5px; }
}

/* ---------- 直し（1 回目の目視） ---------- */
/* ロゴの画像は白い地を持つ＝明るい地では掛け合わせで地を消す。暗い地（フッター）は白い札に載せる */
/* ヘッダーのロゴは白を透明にした画像（logo-aim-clear@3x.png） */
.ft-brand { display: inline-block; background: #fff; padding: 12px 18px; border-radius: 4px; }
.ft-brand img { filter: none; opacity: 1; height: 40px; }
/* 撮影では、読む位置で濃くなる段落を最初から濃く（1 枚の長い絵で下の字が薄いまま写る） */
html.is-shot .is-read-on .anim-sp { opacity: 1; }
.hero-facet { --fx-facet-avoid: 0 .4 .45 1; }
.contact-facet { --fx-facet-avoid: 0 .3 1 1; }
@media (max-width: 640px) { .hero-facet { --fx-facet-avoid: 0 .55 1 1; } .contact-facet { --fx-facet-avoid: 0 0 1 1; --fx-facet-shards: 6; } }
@media (max-width: 640px) {
  .scroll-down span { display: none; }
  .scroll-down { height: 90px; }
  .hero-copy { right: 30px; }
  .hero-facet { --fx-facet-x: .5; --fx-facet-r: .4; }
  /* <br> で決めた行は行の中で折らない＝字の大きさを画面の幅に合わせる */
  .ghost-en { white-space: nowrap; font-size: 8.4vw; }
  .ghost-en .indent { padding-left: 16px; }
}
