/* ============================================================
   拓実総合研究所 — コーポレートサイト 共通スタイル
   デザイン方針：ネイビー(知性・信頼) × 真鍮ゴールド(品格)
   和文見出しに明朝、本文にゴシック、ラテンにセリフ/グロテスク
   ============================================================ */

:root {
  /* Color — 温かみ×信頼感 */
  --ink: #1a2b42;          /* 信頼の濃紺（わずかに温かく）*/
  --ink-soft: #46506a;     /* 副次テキスト */
  --paper: #f7f1e6;        /* 温かなクリーム */
  --surface: #fffdf8;      /* 温白（カード面）*/
  --surface-2: #f1e9da;    /* 補助面 */
  --line: #e8ddcb;         /* 罫線 */
  --line-strong: #d8c9b1;
  --muted: #7c746a;        /* キャプション */
  --brass: #bf8836;        /* アクセント（蜂蜜色の真鍮）*/
  --brass-deep: #9a6a20;
  --brass-soft: #f5ecd9;
  --honey: 224,180,106;    /* 温かいグロー（RGB）*/
  --peach: 226,168,132;    /* 柔らかなグロー（RGB）*/

  /* Type */
  --f-mincho: "Zen Old Mincho", "Yu Mincho", "YuMincho", serif;
  --f-gothic: "Zen Kaku Gothic New", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --f-serif: "Fraunces", Georgia, serif;
  --f-grotesk: "Space Grotesk", var(--f-gothic);

  /* Metrics */
  --wrap: 1140px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(21,36,63,.04), 0 10px 30px rgba(21,36,63,.06);
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 6% -6%, rgba(var(--honey), .14), transparent 60%),
    radial-gradient(1000px 620px at 100% 2%, rgba(var(--peach), .10), transparent 55%),
    var(--paper);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--f-gothic);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.solid {
  background: rgba(250,249,246,.88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.logo { display: flex; align-items: baseline; gap: 2px; font-family: var(--f-mincho); font-weight: 700; font-size: 20px; letter-spacing: .04em; color: var(--ink); }
.logo .en { font-family: var(--f-serif); font-style: italic; font-size: 13px; color: var(--brass); margin-left: 8px; letter-spacing: .02em; font-weight: 400; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft); letter-spacing: .02em;
  position: relative; padding: 4px 0; transition: color .2s;
}
.nav a .en { display: block; font-family: var(--f-grotesk); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); opacity: .8; }
.nav a:hover { color: var(--ink); }
.nav a.current { color: var(--ink); }

.header-cta {
  font-family: var(--f-gothic); font-size: 13px; font-weight: 700; letter-spacing: .03em;
  color: #fff; background: var(--ink); padding: 11px 20px; border-radius: var(--radius);
  transition: background .2s, transform .2s;
}
.header-cta:hover { background: var(--brass-deep); }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-gothic); font-size: 15px; font-weight: 700; letter-spacing: .02em;
  padding: 15px 30px; border-radius: var(--radius); cursor: pointer; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brass-deep); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }
.btn-gold { background: var(--brass); color: #fff; }
.btn-gold:hover { background: var(--brass-deep); }

/* ---------- Section primitives ---------- */
.section { padding: 100px 0; }
.section.tight { padding: 72px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-grotesk); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--brass); opacity: .6; }

.section-title {
  font-family: var(--f-mincho); font-weight: 700; color: var(--ink);
  font-size: clamp(26px, 4vw, 38px); line-height: 1.4; letter-spacing: .02em;
  margin: 0 0 20px; text-wrap: balance;
}
.section-lead { color: var(--ink-soft); font-size: 16px; max-width: 60ch; margin: 0 0 48px; }

.section-head-center { text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head-center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Page hero (下層ページ共通) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 60px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(760px 420px at 88% -25%, rgba(var(--honey), .20), transparent 60%),
    var(--surface);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(191,136,54,.16) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(75% 110% at 85% 0%, #000, transparent 68%);
  mask-image: radial-gradient(75% 110% at 85% 0%, #000, transparent 68%);
}
.page-hero .wrap { position: relative; z-index: 1; }
/* 下層ヘッダーの背景画像（ぼかし＋透明度＋端フェードでなじませる） */
.page-hero.has-hero-bg::before { display: none; }
.page-hero.has-hero-bg::after {
  content: ""; position: absolute; inset: -24px; z-index: 0; pointer-events: none;
  background: var(--hero-bg) center / cover no-repeat;
  opacity: var(--hero-bg-opacity, .5);
  filter: blur(2px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 42%), linear-gradient(to top, transparent, #000 26%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 42%), linear-gradient(to top, transparent, #000 26%);
  mask-composite: intersect;
}
.page-hero .en-big {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(38px, 8vw, 76px); color: var(--brass); line-height: 1; margin: 0 0 10px; opacity: .9;
}
.page-hero h1 { font-family: var(--f-mincho); font-weight: 900; font-size: clamp(28px, 5vw, 44px); margin: 0; letter-spacing: .04em; }
.page-hero p { color: var(--ink-soft); margin: 16px 0 0; max-width: 60ch; }

.breadcrumb { font-family: var(--f-grotesk); font-size: 12px; letter-spacing: .06em; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--brass); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfd6e4; padding: 72px 0 32px; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .logo { color: #fff; }
.footer-brand p { color: #9aa6bd; font-size: 13.5px; margin: 18px 0 0; max-width: 34ch; }
.footer-col h4 { font-family: var(--f-grotesk); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin: 0 0 16px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: #cfd6e4; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 12px; color: #8593ad; flex-wrap: wrap; gap: 10px; }
.footer-bottom .en { font-family: var(--f-serif); font-style: italic; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   Intro — オープニング演出（過去→未来／デジタルへの飛び込み）
   ============================================================ */
#intro {
  position: fixed; inset: 0; z-index: 9999; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 50% 46%, #1e3050 0%, #0f1b30 62%, #0a1120 100%);
  transition: opacity .9s ease;
}
#intro.done { opacity: 0; pointer-events: none; }
#introCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.intro-content { position: relative; z-index: 4; text-align: center; padding: 0 24px; will-change: transform, opacity; }
.intro-eyebrow {
  font-family: var(--f-grotesk); font-size: 12px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 22px; opacity: 0; transform: translateY(12px);
}
.intro-catch {
  font-family: var(--f-mincho); font-weight: 700; color: #fbf4e6;
  font-size: clamp(24px, 5.2vw, 46px); line-height: 1.6; letter-spacing: .08em; margin: 0;
  opacity: 0; transform: translateY(16px); text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.intro-catch .accent { color: var(--brass); }
.intro-skip {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 4;
  font-family: var(--f-grotesk); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.42); opacity: 0;
}
#intro.show-catch .intro-eyebrow { animation: introTextIn .9s ease forwards .15s; }
#intro.show-catch .intro-catch { animation: introTextIn 1.1s cubic-bezier(.2,.7,.2,1) forwards .4s; }
#intro.show-catch .intro-skip { animation: introTextIn .8s ease forwards 1.5s; }
@keyframes introTextIn { to { opacity: 1; transform: translateY(0); } }
#intro.dive .intro-content { animation: introRecede 1.6s cubic-bezier(.55,0,.75,.35) forwards; }
@keyframes introRecede { to { opacity: 0; transform: scale(1.7); filter: blur(4px); } }
@media (prefers-reduced-motion: reduce) {
  #intro.dive .intro-content { animation: none; }
  #intro .skyline { opacity: 1; transform: none; }
  #intro.arrive .skyline { animation: none; }
}

/* 到着時の地平グロー */
#intro::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48%; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 100%, rgba(var(--honey), .20), transparent 72%);
  opacity: 0; transition: opacity 1.3s ease;
}
#intro.arrive::after { opacity: 1; }

/* ============================================================
   Skyline — 近未来の都市／インフラ（イントロ＆ヒーロー共通）
   ============================================================ */
.skyline { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }
.sk-svg { width: 100%; height: 100%; display: block; }
.sk-road { fill: none; stroke-linecap: round; }
.sk-bld path, .sk-bld line, .sk-bld ellipse, .sk-pylon line { stroke-linecap: round; stroke-linejoin: round; fill: none; }
.sk-win line { stroke-linecap: round; stroke-dasharray: 2 8; }
.sk-node { animation: skPulse 3.2s ease-in-out infinite; }
@keyframes skPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sk-node { animation: none; } }

/* イントロ内（ダーク背景・温かいゴールドで発光） */
#intro .skyline { height: 46%; z-index: 3; opacity: 0; transform: translateY(30px); }
#intro.arrive .skyline { animation: skylineRise 1.5s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes skylineRise { to { opacity: 1; transform: translateY(0); } }
#intro .sk-far { fill: rgba(212, 162, 84, .07); }
#intro .sk-bld path, #intro .sk-bld line, #intro .sk-bld ellipse { stroke: rgba(232, 192, 120, .55); stroke-width: 1.4; }
#intro .sk-pylon line { stroke: rgba(232, 192, 120, .4); stroke-width: 1.4; }
#intro .sk-road { stroke: rgba(244, 208, 140, .85); stroke-width: 2; filter: drop-shadow(0 0 5px rgba(244, 205, 135, .5)); }
#intro .sk-line { stroke: rgba(244, 208, 140, .7); stroke-width: 1; }
#intro .sk-win line { stroke: rgba(244, 208, 140, .6); stroke-width: 2; }
#intro .sk-node { fill: #f6dc95; }
#intro .sk-glow { fill: #ffe9a8; }

/* ヒーロー内（ライト背景・濃紺の線＋ゴールドのインフラ） */
.hero .skyline {
  height: min(50%, 300px); z-index: 2; opacity: 1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 58%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 58%);
}
.hero .sk-far { fill: rgba(21, 36, 63, .045); }
.hero .sk-bld path, .hero .sk-bld line, .hero .sk-bld ellipse { stroke: rgba(21, 36, 63, .2); stroke-width: 1.4; }
.hero .sk-pylon line { stroke: rgba(21, 36, 63, .15); stroke-width: 1.4; }
.hero .sk-road { stroke: rgba(191, 136, 54, .5); stroke-width: 2; }
.hero .sk-line { stroke: rgba(191, 136, 54, .42); stroke-width: 1; }
.hero .sk-win line { stroke: rgba(191, 136, 54, .42); stroke-width: 2; }
.hero .sk-node { fill: rgba(191, 136, 54, .72); }
.hero .sk-glow { fill: #cf9b3c; }

/* ============================================================
   Home
   ============================================================ */
.hero {
  position: relative; padding: calc(var(--header-h) + 100px) 0 120px; overflow: hidden;
  min-height: min(840px, 92vh);
  background: #0a1120;
  border-bottom: 1px solid #20324e;
}
/* トップ背景画像：透明度 約30% */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("images/hero.jpg") center / cover no-repeat;
  opacity: .3;
}
.hero-city { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-inner { position: relative; z-index: 3; max-width: 860px; }
.hero-title {
  font-family: var(--f-mincho); font-weight: 900; color: var(--ink);
  font-size: clamp(34px, 6.4vw, 68px); line-height: 1.32; letter-spacing: .03em; margin: 0 0 26px; text-wrap: balance;
}
.hero-title .accent { color: var(--brass); position: relative; white-space: nowrap; }
.hero-desc { font-size: clamp(15px, 2vw, 18px); color: var(--ink-soft); line-height: 1.9; margin: 0 0 40px; max-width: 52ch; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-strip { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.stat-strip::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(191,136,54,.10) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(80% 130% at 50% 120%, #000, transparent 70%);
  mask-image: radial-gradient(80% 130% at 50% 120%, #000, transparent 70%);
}
/* 横に広がる、のどかな街並みと人々（寄り添うイメージ） */
.townscape {
  position: absolute; left: 0; right: 0; bottom: 0; height: 86%; z-index: 1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 24%, transparent 39%, transparent 61%, #000 76%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 24%, transparent 39%, transparent 61%, #000 76%, #000 100%);
}
.townscape svg { width: 100%; height: 100%; display: block; }
@media (max-width: 820px) {
  .townscape {
    height: 62%; opacity: .5;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%);
    mask-image: linear-gradient(180deg, transparent, #000 55%);
  }
}

/* カルーセルの両脇：AI×人の写真（寄り添うイメージ） */
.side-illust { position: absolute; top: 0; bottom: 0; width: 40%; z-index: 1; overflow: hidden; pointer-events: none; }
.side-illust.left { left: 0; -webkit-mask-image: linear-gradient(90deg, #000 52%, transparent); mask-image: linear-gradient(90deg, #000 52%, transparent); }
.side-illust.right { right: 0; -webkit-mask-image: linear-gradient(270deg, #000 52%, transparent); mask-image: linear-gradient(270deg, #000 52%, transparent); }
.side-illust img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 820px) {
  .stat-strip { display: flex; flex-direction: column; }
  .stat-strip .wrap { order: 0; }
  .side-illust { position: relative; order: 1; width: 100%; height: 150px;
    -webkit-mask-image: none; mask-image: none; }
}

/* 回転灯のように、一貫→最適→迅速が1つずつ現れるカルーセル */
.carousel { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; padding: 60px 0 64px; perspective: 1300px; }
.carousel-in {
  --cz: 132px;
  position: relative; width: min(340px, 82vw); height: 236px; transform-style: preserve-3d;
  animation: beacon 15s linear infinite; will-change: transform;
}
@keyframes beacon { from { transform: rotateY(0deg); } to { transform: rotateY(-360deg); } }
.cface {
  position: absolute; inset: 0; backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  border-radius: 18px; border: 1px solid var(--line-strong);
  background: linear-gradient(158deg, var(--surface), var(--surface-2));
  box-shadow: 0 16px 40px rgba(21, 36, 63, .13);
}
.cface::before {
  content: ""; position: absolute; top: 18px; left: 30px; right: 30px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}
.cface:nth-child(1) { transform: rotateY(0deg) translateZ(var(--cz)); }
.cface:nth-child(2) { transform: rotateY(120deg) translateZ(var(--cz)); }
.cface:nth-child(3) { transform: rotateY(240deg) translateZ(var(--cz)); }
@media (prefers-reduced-motion: reduce) {
  .carousel-in { animation: none; transform-style: flat; width: 100%; height: auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
  .cface { position: relative; inset: auto; transform: none; backface-visibility: visible; min-height: 200px; }
}
.cface .num { font-family: var(--f-mincho); font-weight: 900; font-size: 58px; color: var(--ink); letter-spacing: .08em; line-height: 1; }
.cface .cap { font-size: 13px; color: var(--muted); letter-spacing: .04em; text-align: center; padding: 0 22px; }

/* サービス（できること） */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-card { background: var(--surface); padding: 40px 36px; transition: background .25s; }
.service-card:hover { background: var(--surface-2); }
.service-card .idx { font-family: var(--f-serif); font-style: italic; font-size: 15px; color: var(--brass); }
.service-card h3 { font-family: var(--f-mincho); font-weight: 700; font-size: 21px; margin: 14px 0 12px; letter-spacing: .02em; }
.service-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* トップの実績抜粋 */
.works-preview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.work-card .tag { display: inline-block; font-family: var(--f-grotesk); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); background: var(--brass-soft); padding: 4px 10px; border-radius: 999px; align-self: flex-start; }
.work-card h3 { font-family: var(--f-mincho); font-weight: 700; font-size: 22px; margin: 16px 0 12px; }
.work-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 20px; flex: 1; }
.work-card .more { font-size: 13px; font-weight: 700; color: var(--ink); display: inline-flex; gap: 8px; }
.work-card .more:hover { color: var(--brass-deep); }

/* CTA band */
.cta-band { background: linear-gradient(160deg, #223550, var(--ink) 60%); color: #fff; border-radius: 10px; padding: 64px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(var(--honey), .22) 1px, transparent 1.5px);
  background-size: 24px 24px; opacity: .6;
  -webkit-mask-image: radial-gradient(85% 130% at 50% -10%, #000, transparent 72%);
  mask-image: radial-gradient(85% 130% at 50% -10%, #000, transparent 72%);
}
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(560px 260px at 50% 125%, rgba(var(--honey), .38), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--f-mincho); font-weight: 700; font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 14px; letter-spacing: .03em; }
.cta-band p { color: #b9c2d6; margin: 0 0 30px; }

/* ============================================================
   About（研究所について）
   ============================================================ */
.mission { text-align: center; max-width: 760px; margin: 0 auto; }
.mission .big {
  font-family: var(--f-mincho); font-weight: 700; font-size: clamp(24px, 4vw, 36px);
  line-height: 1.75; letter-spacing: .04em; margin: 0 0 24px; text-wrap: balance;
}
.mission .big em { font-style: normal; color: var(--brass); }
.mission p { color: var(--ink-soft); }

.message-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.message-portrait { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--f-serif); font-style: italic; }
.message-body h3 { font-family: var(--f-mincho); font-weight: 700; font-size: 22px; margin: 0 0 20px; }
.message-body p { color: var(--ink-soft); margin: 0 0 18px; }
.message-sign { margin-top: 26px; font-size: 14px; color: var(--muted); }
.message-sign strong { font-family: var(--f-mincho); font-size: 20px; color: var(--ink); font-weight: 700; margin-left: 8px; }

/* 事業概要テーブル */
.profile-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.profile-table th, .profile-table td { text-align: left; padding: 20px 8px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.profile-table th { width: 200px; font-family: var(--f-gothic); font-weight: 700; color: var(--ink); }
.profile-table td { color: var(--ink-soft); }
@media (max-width: 640px) {
  .profile-table th, .profile-table td { display: block; width: auto; padding: 10px 0; border: none; }
  .profile-table th { padding-top: 18px; }
  .profile-table td { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
}

/* ============================================================
   Services
   ============================================================ */
.svc-block { display: grid; grid-template-columns: 64px 1fr; gap: 28px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.svc-block:first-of-type { border-top: 1px solid var(--line); }
.svc-num { font-family: var(--f-serif); font-style: italic; font-size: 34px; color: var(--brass); line-height: 1; }
.svc-block h3 { font-family: var(--f-mincho); font-weight: 700; font-size: 24px; margin: 0 0 14px; }
.svc-block p { color: var(--ink-soft); margin: 0 0 18px; max-width: 62ch; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tags span { font-size: 12.5px; color: var(--ink-soft); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 13px; }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.flow-step { position: relative; padding-top: 20px; }
.flow-step::before { counter-increment: step; content: "0" counter(step); font-family: var(--f-serif); font-style: italic; color: var(--brass); font-size: 22px; }
.flow-step h4 { font-family: var(--f-mincho); font-weight: 700; font-size: 17px; margin: 10px 0 8px; }
.flow-step p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* ============================================================
   Works
   ============================================================ */
.work-full { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 44px; margin-bottom: 28px; }
/* 画像つきカードは「左：説明／右：画像」の2カラム */
.work-full.has-illust { display: grid; grid-template-columns: 1fr minmax(280px, 38%); column-gap: 36px; align-items: center; }
.work-illust { height: clamp(220px, 26vw, 300px); margin: 0; }
.work-illust img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* 四方をぼかして背景になじませる */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 13%, #000 87%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 13%, #000 87%, transparent);
  mask-composite: intersect;
}
@media (max-width: 820px) {
  .work-full.has-illust { grid-template-columns: 1fr; }
  .work-full.has-illust .work-illust { height: clamp(180px, 52vw, 240px); margin-top: 22px; }
}
.work-full-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.work-full .tag { font-family: var(--f-grotesk); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); background: var(--brass-soft); padding: 5px 11px; border-radius: 999px; }
.work-full h2 { font-family: var(--f-mincho); font-weight: 700; font-size: 26px; margin: 16px 0 16px; }
.work-full .desc { color: var(--ink-soft); margin: 0 0 22px; max-width: 70ch; }
.work-features { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.work-features li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 14.5px; }
.work-features li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; background: var(--brass); border-radius: 50%; }
.work-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.work-actions .link { font-size: 14px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--brass); padding-bottom: 2px; }
.work-actions .link:hover { color: var(--brass-deep); }
.work-note { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; }
.work-soon { border: 1px dashed var(--line-strong); border-radius: 6px; padding: 40px; text-align: center; color: var(--muted); }
.work-soon h3 { font-family: var(--f-mincho); color: var(--ink-soft); margin: 8px 0; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 36px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.contact-card .label { font-family: var(--f-grotesk); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.contact-card .value { font-size: 19px; font-family: var(--f-mincho); font-weight: 700; color: var(--ink); margin: 12px 0 6px; word-break: break-all; }
.contact-card .sub { font-size: 13.5px; color: var(--muted); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 40px; }
.form .field { margin-bottom: 22px; }
.form label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.form label .req { color: var(--brass); font-size: 12px; margin-left: 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-family: var(--f-gothic); font-size: 15px; background: var(--paper); color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
.form textarea { min-height: 150px; resize: vertical; }
.form .note { font-size: 12.5px; color: var(--muted); margin-top: 18px; }

/* ===== Home ヒーロー：ダークな近未来都市の上のスタイル ===== */
.hero .hero-title { color: #f4eee1; }
.hero .hero-title .accent { color: #e8c079; }
.hero .hero-desc { color: #c2cad9; }
.hero .eyebrow { color: #e2b76a; }
.hero .btn-primary { background: var(--brass); color: #10192b; }
.hero .btn-primary:hover { background: #d1a04c; }
.hero .btn-outline { color: #f2ecdf; border-color: rgba(255, 255, 255, .34); }
.hero .btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .07); }

/* ホームのヘッダー（ダークヒーローの上＝未スクロール時は明色） */
.home .site-header:not(.solid) .logo { color: #fff; }
.home .site-header:not(.solid) .logo .en { color: #e2b76a; }
.home .site-header:not(.solid) .nav a { color: rgba(255, 255, 255, .82); }
.home .site-header:not(.solid) .nav a:hover,
.home .site-header:not(.solid) .nav a.current { color: #fff; }
.home .site-header:not(.solid) .nav a .en { color: rgba(226, 183, 106, .9); }
.home .site-header:not(.solid) .header-cta { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .26); }
.home .site-header:not(.solid) .header-cta:hover { background: rgba(255, 255, 255, .2); }
.home .site-header:not(.solid) .nav-toggle span { background: #fff; }

/* イントロ：到着時に立ち上がる近未来都市 */
.intro-city { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; opacity: 0; pointer-events: none; }
#intro.arrive .intro-city { animation: cityRise 1.7s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes cityRise { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #intro.arrive .intro-city { animation: none; opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .message-grid { grid-template-columns: 1fr; }
  .message-portrait { max-width: 320px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .hero-figure { display: none; }
}
@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .25s; }
  .site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header.open .nav {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 20px 24px; gap: 18px;
  }
  .site-header.open .nav a .en { display: none; }
  .service-grid, .works-preview, .contact-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .cta-band { padding: 48px 24px; }
  .svc-block { grid-template-columns: 1fr; gap: 10px; }
  .work-full, .form { padding: 28px; }
}
