/* =========================================================
   GREYSTAR GROUP — 共通スタイル
   ホールディングス／グループ4社 共通テンプレート
   テーマカラーは <body> の t-xxx クラスで切替
   方針：カード・影・角丸に頼らず、写真・余白・文字組みで構成する
   P1（2026-11-14）：v3 の装飾（浮遊する円・波線・マーキー・回転リング・
   ピル型・有機的な角丸）を撤去し、見出し・FV・写真の扱いを再設計
   ========================================================= */
:root {
  --navy: #13284a;
  --navy-2: #1e3d6b;
  --ink: #1d2533;
  --muted: #5d6879;
  --line: #dde3eb;
  --bg: #ffffff;
  --bg-soft: #f4f5f2;
  --bg-deep: #0f1f3a;

  --theme: #c8302f;
  --theme-deep: #a3221f;
  --theme-soft: #f8ebe9;

  --navy-deep: #0c1a33;

  --wrap: 1240px;
  --text-max: 640px;
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-en: "Inter Tight", "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* 文字サイズ */
  --fs-h1: clamp(34px, 4.2vw, 60px);
  --fs-h2: clamp(24px, 2.4vw, 32px);
  --fs-page: clamp(30px, 3.2vw, 44px);
}

/* グループ各社カラー（※仮。最終カラーは要確認） */
body.t-greystar { --theme: #449860; --theme-deep: #347a4b; --theme-soft: #e8f3eb; }
body.t-energy   { --theme: #489cd4; --theme-deep: #2c78ac; --theme-soft: #e6f1fa; }
body.t-land     { --theme: #d85468; --theme-deep: #b33b4f; --theme-soft: #fbe9ec; }
body.t-base     { --theme: #9c60c0; --theme-deep: #7c449f; --theme-soft: #f2eaf7; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  letter-spacing: .04em;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.5; letter-spacing: .06em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: min(100% - 80px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 80px, 900px); margin-inline: auto; }
.en { font-family: var(--font-en); letter-spacing: .1em; }
/* 小さな英字ラベル（見出しの上に置く） */
.eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 18px;
  font-family: var(--font-en); font-size: 12px; font-weight: 500; line-height: 1;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--theme-deep); flex-shrink: 0; }
body:not([class*="t-"]) .eyebrow::before { background: var(--navy); }
.sp-only { display: none; }
/* 日本語を文節で折り返す（対応ブラウザ） */
p, h1, h2, h3 { word-break: auto-phrase; text-wrap: pretty; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 64px; }
.center { text-align: center; }

/* ---------- Header ---------- */
.topbar { background: var(--navy); color: #c9d3e3; font-size: 12px; letter-spacing: .08em; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 32px; gap: 12px; }
.topbar a { color: #fff; opacity: .85; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { opacity: 1; }
.topbar svg { width: 14px; height: 14px; flex-shrink: 0; }
.topbar svg.grs-mini { width: auto; height: 12px; aspect-ratio: 1283 / 653; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo svg { width: auto; height: 38px; aspect-ratio: 1283 / 653; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text .en { font-weight: 700; font-size: 17px; color: var(--navy); letter-spacing: .16em; }
.logo-text .jp { font-size: 11px; color: var(--muted); letter-spacing: .1em; margin-top: 3px; }

.gnav { display: flex; align-items: center; gap: 32px; }
.gnav ul { display: flex; gap: 28px; }
.gnav li a { position: relative; font-size: 14.5px; font-weight: 500; padding: 8px 0; display: block; white-space: nowrap; }
.gnav li a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--theme); transform: translateX(-50%) scale(0); transition: transform .3s var(--ease);
}
.gnav li a:hover::after, .gnav li a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }

.btn-contact {
  display: inline-flex; align-items: center; gap: 8px; background: var(--theme); color: #fff;
  font-weight: 700; font-size: 14px; padding: 13px 24px; white-space: nowrap; transition: background .25s;
}
.btn-contact svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-contact:hover { background: var(--navy); }

.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: var(--navy); cursor: pointer; position: relative; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 50%; width: 20px; height: 2px; background: #fff; transform: translateX(-50%); transition: .3s;
}
.menu-toggle span { top: 50%; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.menu-open .menu-toggle span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 40px;
  min-width: 280px; padding: 19px 26px 19px 30px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 15px;
  border: 0; cursor: pointer; transition: background .3s, color .3s;
}
.btn::after {
  content: ""; width: 26px; height: 10px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 10'%3E%3Cpath d='M0 9h24L16 1' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 10'%3E%3Cpath d='M0 9h24L16 1' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .35s var(--ease);
}
.btn:hover { background: var(--theme); }
.btn:hover::after { transform: translateX(6px); }
.btn.is-theme { background: var(--theme); }
.btn.is-theme:hover { background: var(--navy); }
.btn.is-white { background: #fff; color: var(--navy); }
.btn.is-white:hover { background: var(--theme); color: #fff; }
.btn.is-sm { min-width: 0; padding: 13px 18px 13px 22px; font-size: 13.5px; gap: 24px; }

.link-arrow {
  position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 6px 0 10px;
  font-weight: 700; font-size: 14.5px; color: var(--navy); letter-spacing: .06em;
}
.link-arrow::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; opacity: .25;
}
.link-arrow::after {
  content: ""; width: 22px; height: 8px; flex-shrink: 0; background: var(--theme-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 8'%3E%3Cpath d='M0 7h20L14 1' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 8'%3E%3Cpath d='M0 7h20L14 1' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .4s var(--ease-out);
}
body:not([class*="t-"]) .link-arrow::after { background: var(--navy); }
a:hover > .link-arrow::before, .link-arrow:hover::before { opacity: 1; }
.link-arrow::before { transform-origin: left; transition: opacity .3s; }
.link-arrow:hover::after, a:hover > .link-arrow::after { transform: translateX(5px); }
.link-arrow.is-white { color: #fff; }
.link-arrow.is-white::after, body:not([class*="t-"]) .link-arrow.is-white::after { background: #fff; }

.more { text-align: left; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section.is-soft { background: var(--bg-soft); }
.section.is-tight { padding: 90px 0; }

.sec-head { margin-bottom: 56px; max-width: 760px; }
.sec-head h2 {
  font-size: var(--fs-h2); font-weight: 600; color: var(--navy); line-height: 1.5; letter-spacing: .04em;
}
.sec-head p { color: var(--muted); margin: 20px 0 0; max-width: var(--text-max); font-size: 15px; }
.sec-head > p.eyebrow, .sec-head-main > p.eyebrow { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.sec-head.is-center { margin-inline: auto; text-align: center; }
.sec-head.is-center .eyebrow { justify-content: center; }
.sec-head.is-center .eyebrow::before { display: none; }
.sec-head.is-split { max-width: none; display: grid; grid-template-columns: 5fr 7fr; gap: 24px 64px; align-items: end; }
.sec-head.is-split > p { margin: 0 0 6px; }

/* ---------- Hero (TOP) ---------- */
.hero {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(100svh - 116px, 960px); color: #fff; overflow: hidden; background: var(--navy-deep);
}
.hero.is-company { min-height: min(80svh, 820px); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
/* 文字のある左下だけを暗くする（空の明るさは残す） */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(12, 26, 51, .78) 0%, rgba(12, 26, 51, .35) 38%, rgba(12, 26, 51, 0) 62%),
    linear-gradient(to right, rgba(12, 26, 51, .45) 0%, rgba(12, 26, 51, 0) 55%);
}
.hero.is-company .hero-bg::after {
  background:
    linear-gradient(to top, rgba(12, 26, 51, .82) 0%, rgba(12, 26, 51, .4) 45%, rgba(12, 26, 51, .05) 75%),
    linear-gradient(to right, rgba(12, 26, 51, .5) 0%, rgba(12, 26, 51, 0) 60%);
}
.hero.is-company::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--theme); z-index: 2; }
.hero-body { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 120px 0 64px; }
.hero.is-company .hero-body { padding-bottom: 72px; }
.hero-copy { max-width: 760px; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 28px;
  font-family: var(--font-en); font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; opacity: .9;
}
.hero-eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.hero h1 { font-size: var(--fs-h1); font-weight: 600; line-height: 1.45; letter-spacing: .06em; }
.hero.is-company h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.55; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: inline-block; }
.hero-lead { margin: 28px 0 0; font-size: 15px; line-height: 2.1; opacity: .88; max-width: 600px; }
.hero.is-company .hero-lead { font-size: 14.5px; max-width: 620px; margin-bottom: 32px; }
.hero-scroll {
  position: relative; flex-shrink: 0; writing-mode: vertical-rl; font-family: var(--font-en);
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; padding-bottom: 76px; opacity: .8;
}
.hero-scroll::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 64px; background: rgba(255, 255, 255, .35);
}
.hero-scroll::before {
  content: ""; position: absolute; left: 50%; bottom: 48px; width: 1px; height: 16px; background: #fff; z-index: 1;
  animation: scrollDrop 2.4s var(--ease-out) infinite;
}
@keyframes scrollDrop { 0% { transform: translateY(-48px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(48px); opacity: 0; } }

/* グループ4社のインデックス（FV下端） */
.hero-index { position: relative; border-top: 1px solid rgba(255, 255, 255, .22); background: rgba(12, 26, 51, .35); }
.hero-index-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-index a {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline;
  padding: 22px 24px 24px; border-left: 1px solid rgba(255, 255, 255, .16); transition: background .3s;
}
.hero-index a:last-child { border-right: 1px solid rgba(255, 255, 255, .16); }
.hero-index a::before {
  content: ""; position: absolute; left: -1px; right: 0; top: -1px; height: 2px; background: var(--c);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out);
}
.hero-index a:hover { background: rgba(255, 255, 255, .06); }
.hero-index a:hover::before { transform: scaleX(1); }
.hero-index .en { grid-row: 1 / 3; font-size: 11px; letter-spacing: .12em; opacity: .6; }
.hero-index span { font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.hero-index small:last-child { font-size: 11.5px; opacity: .7; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* FV の動き（読み込み時に1回だけ） */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg { animation: heroMask 1.4s var(--ease-out) both; }
  .hero-bg img { animation: heroScale 2.4s var(--ease-out) both; }
  .hero h1 .ln > span { animation: lineUp 1s var(--ease-out) both; animation-delay: .45s; }
  .hero h1 .ln:nth-child(2) > span { animation-delay: .57s; }
  .hero h1 .ln:nth-child(3) > span { animation-delay: .69s; }
  .hero-eyebrow, .hero-lead, .hero-copy .link-arrow, .hero-index, .hero-scroll { animation: fadeIn .9s ease both; animation-delay: .9s; }
  .hero-eyebrow { animation-delay: .35s; }
}
@keyframes heroMask { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes heroScale { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1); } }

/* ---------- Business (TOP) ---------- */
.biz-intro { max-width: 860px; color: #3a4556; }
.network { margin-top: 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.network .tag { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; color: var(--theme); letter-spacing: .12em; margin-bottom: 14px; }
.network .tag::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.network h3 { font-size: clamp(22px, 2.4vw, 28px); color: var(--navy); margin-bottom: 20px; line-height: 1.6; }
.network p { color: #3a4556; }
.network-stats { display: flex; gap: 48px; margin-top: 34px; }
.network-stats b { display: block; font-family: var(--font-en); font-size: 52px; font-weight: 300; font-variant-numeric: tabular-nums; color: var(--navy); line-height: 1.1; }
.network-stats b small { font-size: 15px; margin-left: 4px; font-family: var(--font-jp); font-weight: 700; }
.network-stats span { font-size: 13px; color: var(--muted); }
.map-svg text { font-family: var(--font-jp); }
.network .map-svg { max-width: 460px; margin-inline: auto; }
@media (prefers-reduced-motion: no-preference) {
  .map-svg .ln { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-out); }
  .is-in .map-svg .ln { stroke-dashoffset: 0; }
}

/* ---------- Group cards (TOP) ---------- */
.group-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 28px; }
.g-card { display: flex; flex-direction: column; }
.g-card .ph { aspect-ratio: 4 / 5; }
.g-card .ph img { transition: transform .8s var(--ease); }
.g-card:hover .ph img { transform: scale(1.05); }
.g-card-body { padding-top: 20px; display: flex; flex-direction: column; flex: 1; }
.g-card-body { border-top: 2px solid var(--c); margin-top: 0; }
.g-card .en { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .16em; }
.g-card h3 { font-size: 17px; color: var(--navy); margin: 6px 0 8px; }
.g-card p { font-size: 13.5px; color: var(--muted); line-height: 1.8; flex: 1; margin-bottom: 14px; }
.g-card .more { font-size: 13px; font-weight: 700; color: var(--navy); display: inline-flex; gap: 8px; align-items: center; }
.g-card .more::after { content: "→"; color: var(--c); transition: transform .4s var(--ease-out); }
.g-card:hover .more::after { transform: translateX(5px); }
.g-card:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ---------- Photo ---------- */
.ph {
  position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 3;
  background: color-mix(in srgb, var(--c, var(--theme)) 14%, #eef0ec);
  color: color-mix(in srgb, var(--c, var(--theme)) 70%, #13284a);
}
.ph span { position: relative; font-family: var(--font-en); font-size: 11px; letter-spacing: .3em; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: .7; }
.ph span svg { width: 32px; height: 32px; }
.ph.has-img { background: #e8eae6; }
.ph.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- News list ---------- */
.news-list { border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 120px 120px 1fr 30px; align-items: center; gap: 16px; padding: 26px 0; transition: color .25s; }
.news-list a:hover { color: var(--theme); }
.news-list time { font-family: var(--font-en); font-size: 14px; color: var(--muted); letter-spacing: .06em; }
.news-cat { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--theme); white-space: nowrap; justify-self: start; }
.news-cat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.news-list .ttl { font-weight: 500; }
.news-list a::after { content: "→"; color: var(--theme); justify-self: end; transition: transform .3s var(--ease); }
.news-list a:hover::after { transform: translateX(5px); }

/* ---------- Recruit / Partner banners ---------- */
.banner-grid { display: grid; grid-template-columns: 1fr 1fr; }
.banner {
  position: relative; overflow: hidden; padding: 64px 52px; color: #fff; min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate;
}
.banner .bg-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(12, 26, 51, .85) 0%, rgba(12, 26, 51, .2) 70%); }
.banner:hover .bg-photo { transform: scale(1.05); }
.banner .bg-star { display: none; }
.banner .eyebrow { color: rgba(255, 255, 255, .8); margin-bottom: 14px; }
.banner .eyebrow::before, body:not([class*="t-"]) .banner .eyebrow::before { background: #fff; }
.banner h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; margin: 0 0 8px; letter-spacing: .06em; }
.banner p { margin: 0 0 22px; opacity: .85; font-size: 14.5px; }
.banner .link-arrow { align-self: flex-start; }
.banner { min-height: 420px; padding: 56px; }
.section.is-tight:has(.banner-grid) { padding: 0; }
.section.is-tight:has(.banner-grid) .wrap { width: 100%; }

/* ---------- Contact CTA ---------- */
.cta { background: var(--navy); color: #fff; padding: 110px 0; position: relative; overflow: hidden; }
.cta .wrap { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; }
.cta .eyebrow { color: rgba(255, 255, 255, .7); }
.cta .eyebrow::before, body:not([class*="t-"]) .cta .eyebrow::before { background: rgba(255, 255, 255, .7); }
.cta h2 { font-size: var(--fs-h2); font-weight: 600; margin: 0 0 16px; letter-spacing: .06em; }
.cta p { opacity: .85; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; }
.cta-tel { display: flex; flex-direction: column; justify-content: center; padding: 10px 32px; border-left: 1px solid rgba(255, 255, 255, .3); }
.cta-tel small { font-size: 12px; opacity: .75; }
.cta-tel b { font-family: var(--font-en); font-size: 34px; font-weight: 400; letter-spacing: .04em; line-height: 1.3; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: #aeb9cc; padding: 80px 0 30px; font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
.site-footer .logo-text .en { color: #fff; }
.site-footer .logo-text .jp { color: #aeb9cc; }
.footer-info { margin-top: 22px; line-height: 2; }
.footer-nav { display: grid; grid-template-columns: repeat(3, auto); gap: 14px 40px; justify-content: end; align-content: start; }
.footer-nav a { color: #e4e9f2; }
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-group { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-group a { font-size: 12.5px; display: inline-flex; align-items: center; gap: 8px; color: #dbe2ee; }
.footer-group a i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.footer-group a:hover { color: #fff; }
.copyright { grid-column: 1 / -1; font-family: var(--font-en); font-size: 11.5px; letter-spacing: .14em; color: #74819a; margin: 0; }

.pagetop {
  position: fixed; right: 20px; bottom: 20px; width: 50px; height: 50px; background: var(--navy); color: #fff;
  display: grid; place-items: center; z-index: 40; opacity: 0; pointer-events: none; transition: opacity .3s, background .3s;
}
.pagetop svg { width: 20px; height: 20px; }
.pagetop.is-show { opacity: 1; pointer-events: auto; }
.pagetop:hover { background: var(--theme); }

/* ---------- Page header (下層) ---------- */
.page-hero { position: relative; background: #fff; }
.page-hero-head { padding: 64px 0 72px; }
.page-hero h1 { font-size: var(--fs-page); font-weight: 600; color: var(--navy); line-height: 1.4; letter-spacing: .06em; }
.page-hero:not(.has-photo) { border-bottom: 1px solid var(--line); }
.page-hero-photo { height: clamp(220px, 30vw, 440px); overflow: hidden; background: var(--bg-soft); }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .page-hero h1, .page-hero .eyebrow { animation: fadeUp .9s var(--ease-out) both; }
  .page-hero h1 { animation-delay: .08s; }
  .page-hero-photo { animation: heroMask 1.2s .15s var(--ease-out) both; }
  .page-hero-photo img { animation: heroZoom 2s .15s var(--ease-out) both; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.breadcrumb { font-size: 12px; color: var(--muted); padding: 20px 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #a9b2c0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Holdings: business ---------- */
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 80px; }
.biz-card { position: relative; }
.biz-card .num { display: block; font-family: var(--font-en); font-size: 15px; font-weight: 700; color: var(--c); letter-spacing: .1em; margin-bottom: 10px; }
.biz-card .num::after { content: ""; display: inline-block; width: 36px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 12px; }
.biz-card h3 { font-size: 21px; color: var(--navy); margin-bottom: 14px; }
.biz-card p { color: #3a4556; font-size: 15px; margin-bottom: 14px; }
.biz-card .charge { font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: color-mix(in srgb, var(--c) 85%, #000); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
a.chip:hover { text-decoration: underline; text-underline-offset: 4px; }

.strengths { display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px 32px; }
.strength .no { display: block; font-size: 44px; font-weight: 300; color: var(--theme); line-height: 1; letter-spacing: 0; margin-bottom: 18px; }
.strength h3 { font-size: 17px; color: var(--navy); margin-bottom: 10px; }
.strength p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.8; }

.flow { display: grid; gap: 56px; }
.flow-item { display: grid; grid-template-columns: 120px 1fr 1.1fr; align-items: center; gap: 40px; }
.flow-step { font-family: var(--font-en); color: var(--theme); font-weight: 700; letter-spacing: .16em; font-size: 12px; }
.flow-step b { display: block; font-size: 52px; font-weight: 300; line-height: 1; color: var(--navy); letter-spacing: 0; margin-top: 4px; }
.flow-item h3 { font-size: 21px; color: var(--navy); margin-bottom: 10px; }
.flow-item p { margin: 0; color: #3a4556; }
.flow-item .ph { aspect-ratio: 16 / 9; }

/* ---------- Group tree（系列図） ---------- */
.tree { max-width: 1080px; margin: 0 auto; }
.tree-root {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  max-width: 640px; margin: 0 auto; padding: 28px 32px; background: var(--navy); color: #fff; transition: background .3s;
}
a.tree-root:hover { background: var(--navy-2); }
.tree-root b { font-size: 20px; font-weight: 600; letter-spacing: .08em; }
.tree-en { font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--muted); }
.tree-root .tree-en, .tree-root .tree-desc { color: rgba(255, 255, 255, .72); }
.tree-desc { font-size: 13px; color: var(--muted); line-height: 1.7; }
.tree-curves { width: 100%; height: 64px; display: block; overflow: visible; }
.tree-curves path { fill: none; stroke: #9aa5b5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.tree-children { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tree-children > li { display: flex; }
.tree-node {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px;
  padding: 22px 22px 20px; border: 1px solid var(--line); border-top: 3px solid var(--c); background: #fff;
  transition: border-color .3s, background .3s;
}
.section.is-soft .tree-node { background: #fff; }
.tree-node .tree-desc { flex: 1; padding: 10px 0 16px; }
a.tree-node:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); border-top-color: var(--c); }
.tree-node .tree-en { color: var(--muted); }
.tree-node b { font-size: 16px; font-weight: 600; color: var(--navy); }
.tree-go { font-size: 12.5px; font-weight: 700; color: var(--navy); }
.tree-go::after { content: " →"; color: var(--c); }
a.tree-node:hover .tree-go { text-decoration: underline; text-underline-offset: 4px; }
.tree-me { font-size: 11.5px; font-weight: 700; color: #fff; background: var(--c); padding: 2px 10px; }
.tree-node.is-me { background: color-mix(in srgb, var(--c) 7%, #fff); }
.section.is-soft .tree-node.is-me { background: color-mix(in srgb, var(--c) 7%, #fff); }
/* 線は表示されたときに上から1回だけ描く */
@media (prefers-reduced-motion: no-preference) {
  .tree-curves { clip-path: inset(0 0 100% 0); transition: clip-path 1s .2s var(--ease-out); }
  .tree.is-in .tree-curves { clip-path: inset(0 0 0 0); }
}

/* ---------- Group page rows ---------- */
.company-rows { display: grid; gap: 90px; }
.company-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.company-row:nth-child(even) > .ph { order: 2; }
.company-row .ph { aspect-ratio: 16 / 11; }
.company-row .en { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--c); letter-spacing: .2em; }
.company-row .en::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.company-row h3 { font-size: 26px; color: var(--navy); margin: 8px 0 6px; }
.company-row .field { display: inline-flex; margin-bottom: 18px; }
.company-row .field::before { display: none; }
.company-row p { color: #3a4556; }
.company-row dl { display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px; font-size: 14px; margin: 18px 0 26px; color: var(--muted); }
.company-row dt { font-weight: 700; color: var(--navy); }
.company-row dd { margin: 0; }
.company-row .btn:hover { background: var(--c); }

/* ---------- Company (philosophy / message / history / table) ---------- */
.philosophy { text-align: center; }
.philosophy .big { font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; color: var(--navy); line-height: 1.6; letter-spacing: .08em; margin-bottom: 36px; }
.philosophy .big em { font-style: normal; color: var(--theme-deep); }
body:not([class*="t-"]) .philosophy .big em { color: var(--navy-2); box-shadow: inset 0 -.18em 0 color-mix(in srgb, var(--navy) 10%, transparent); }
.phil-copy { display: flex; flex-direction: column; align-items: center; }
.phil-copy .ln { display: block; overflow: hidden; padding: 0 .1em .08em; }
@media (prefers-reduced-motion: no-preference) {
  .phil-copy .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
  .phil-copy .ln:nth-child(2) > span { transition-delay: .14s; }
  .phil-copy.is-in .ln > span { transform: none; }
}
.philosophy > p { max-width: var(--text-max); margin: 0 auto; color: #3a4556; line-height: 2.2; text-align: left; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); margin: 88px auto 0; max-width: 1080px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value { padding: 44px 36px 48px; text-align: left; }
.value + .value { border-left: 1px solid var(--line); }
.value-no { display: block; font-size: 12px; font-weight: 500; letter-spacing: .16em; color: var(--muted); margin-bottom: 18px; }
.value b { display: block; font-size: 22px; font-weight: 600; color: var(--navy); letter-spacing: .1em; margin-bottom: 12px; }
.value p { font-size: 14.5px; color: #3a4556; margin: 0; line-height: 1.9; }
.philosophy > .phil-formula { margin: 40px auto 0; text-align: center; font-family: var(--font-en); font-size: 14px; letter-spacing: .12em; color: var(--muted); }
.phil-formula strong { color: var(--navy); font-weight: 600; letter-spacing: .18em; }

.message { display: grid; grid-template-columns: 360px 1fr; gap: 72px; align-items: start; }
.message .ph { aspect-ratio: 4 / 5; background: #fff; }
.message .ph.has-img img { object-fit: cover; object-position: center 20%; }
.message .catch { font-size: clamp(26px, 3vw, 34px); font-weight: 600; color: var(--navy); margin-bottom: 28px; }
.message p { color: #3a4556; line-height: 2.1; }
.message .sign { text-align: right; margin-top: 32px; font-size: 14px; color: var(--muted); }
.message .sign b { display: block; font-size: 22px; color: var(--navy); letter-spacing: .24em; }

.history { max-width: 860px; }
.history li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 34px 0; border-top: 1px solid var(--line); }
.history li:last-child { border-bottom: 1px solid var(--line); }
.history .year { font-family: var(--font-en); font-weight: 300; font-size: 40px; color: var(--navy); line-height: 1; }
.history .dot { display: none; }
.history .tag { font-size: 12.5px; font-weight: 700; color: var(--theme); letter-spacing: .14em; }
.history h3 { font-size: 19px; color: var(--navy); margin: 4px 0 8px; }
.history p { color: var(--muted); margin: 0; font-size: 15px; }

.table { width: 100%; border-collapse: collapse; font-size: 15px; border-top: 1px solid var(--navy); }
.table th, .table td { padding: 24px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { width: 200px; color: var(--navy); font-weight: 700; white-space: nowrap; }
.table td ul { list-style: disc; padding-left: 1.2em; }
.table .note { color: #b4413c; font-size: 12.5px; }

.map-embed { aspect-ratio: 16 / 7; background: #e8eae6; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4); }
.access { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 48px; }
.access div { font-size: 14.5px; color: #3a4556; }
.access .ph { aspect-ratio: 16 / 9; margin-bottom: 16px; }
.access b { color: var(--navy); display: block; margin-bottom: 4px; font-size: 16px; }

/* ---------- Recruit / Partner ---------- */
.message-block { text-align: center; max-width: 820px; margin: 0 auto; }
.message-block p { color: #3a4556; line-height: 2.2; }
.photo-pair { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin: 0 0 48px; align-items: start; }
.photo-pair .ph { aspect-ratio: 4 / 3; }
.photo-pair .ph:last-child { margin-top: 60px; }

.job { padding: 0 0 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.job:last-child { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.job-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.job-head h3 { font-size: 26px; color: var(--navy); }
.job .table th { width: 160px; }

.apply-box { background: var(--navy); color: #fff; padding: 72px 56px; text-align: center; }
.apply-box h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 12px; }
.apply-box p { opacity: .85; }
.apply-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.apply-card { display: flex; align-items: center; gap: 16px; min-width: 330px; padding: 22px 28px; background: var(--theme); color: #fff; text-align: left; transition: background .3s; }
.apply-card:hover { background: var(--theme-deep); }
.apply-card.is-tel { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.apply-card.is-tel:hover { background: rgba(255, 255, 255, .08); }
.apply-card svg { width: 30px; height: 30px; flex-shrink: 0; }
.apply-card b { display: block; font-size: 17px; }
.apply-card small { font-size: 12px; opacity: .85; }
.apply-card .num { font-family: var(--font-en); font-size: 22px; letter-spacing: .06em; }

/* ---------- Forms ---------- */
.form-intro { text-align: center; color: #3a4556; margin-bottom: 40px; }
.form-steps { display: flex; justify-content: center; gap: 36px; margin-bottom: 48px; }
.form-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: #a2acbb; }
.form-steps li span { font-family: var(--font-en); font-size: 13px; }
.form-steps li.is-active { color: var(--navy); }
.form-steps li.is-active span { color: var(--theme); }

.form { border-top: 1px solid var(--navy); }
.f-row { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.f-label { font-weight: 700; color: var(--navy); padding-top: 12px; display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.req, .opt { font-size: 11px; padding: 1px 8px; color: #fff; background: var(--theme); font-weight: 700; letter-spacing: .08em; line-height: 1.8; }
.opt { background: #9aa5b5; }
.f-field input[type="text"], .f-field input[type="email"], .f-field input[type="tel"], .f-field input[type="url"],
.f-field select, .f-field textarea {
  width: 100%; padding: 15px 16px; border: 1px solid #cfd6df; border-radius: 2px; background: #fafbf9;
  font-size: 15.5px; transition: border-color .2s, background .2s;
}
.f-field textarea { min-height: 180px; resize: vertical; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.f-field .zip { max-width: 220px; margin-bottom: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 10px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 15px; }
.checks input { width: 18px; height: 18px; accent-color: var(--theme); }
.f-error { color: #c8302f; font-size: 13px; margin: 6px 0 0; display: none; }
.f-row.is-invalid .f-error { display: block; }
.f-row.is-invalid input, .f-row.is-invalid select, .f-row.is-invalid textarea { border-color: #c8302f; background: #fff7f7; }

.privacy-box { margin-top: 40px; background: var(--bg-soft); padding: 24px 28px; max-height: 180px; overflow-y: auto; font-size: 13.5px; color: var(--muted); }
.privacy-box h3 { font-size: 15px; color: var(--navy); margin-bottom: 8px; }
.agree { text-align: center; margin-top: 28px; }
.agree label { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.agree input { width: 20px; height: 20px; accent-color: var(--theme); }
.agree a { color: var(--theme); text-decoration: underline; text-underline-offset: 3px; }
.form-submit { text-align: center; margin-top: 34px; }
.form-submit .btn { min-width: 320px; }
.form-submit .btn:disabled { opacity: .4; cursor: not-allowed; }
.form-done { display: none; text-align: center; padding: 60px 20px; }
.form-done.is-show { display: block; }
.form-done .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--theme); color: #fff; display: grid; place-items: center; margin: 0 auto 22px; }
.form-done .ok svg { width: 30px; height: 30px; }
.form-done h2 { color: var(--navy); font-size: 24px; margin-bottom: 14px; }
.form-done p { color: var(--muted); }

/* ---------- Privacy ---------- */
.policy h2 { font-size: 18px; color: var(--navy); margin: 48px 0 14px; display: flex; gap: 12px; align-items: center; }
.policy h2::before { content: ""; width: 8px; height: 8px; background: var(--theme); flex-shrink: 0; }
.policy p, .policy li { color: #3a4556; font-size: 15px; }
.policy ol { padding-left: 1.4em; list-style: decimal; }
.policy li { margin-bottom: 6px; }
.policy .sign { text-align: right; margin-top: 48px; color: var(--muted); }

/* ---------- News ---------- */
.news-cards { max-width: 900px; border-top: 1px solid var(--line); }
.news-card { display: block; padding: 36px 0; border-bottom: 1px solid var(--line); }
.news-card .meta { display: flex; align-items: center; gap: 20px; margin-bottom: 10px; }
.news-card time { font-family: var(--font-en); color: var(--muted); font-size: 14px; }
.news-card h2 { font-size: 20px; color: var(--navy); margin-bottom: 10px; transition: color .25s; }
.news-card:hover h2 { color: var(--theme); }
.news-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }

.pager { display: flex; gap: 6px; margin-top: 60px; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; font-family: var(--font-en); font-weight: 700; font-size: 14px; color: var(--navy); }
.pager .is-current { background: var(--navy); color: #fff; }
.pager a:hover { color: var(--theme); }

.article { max-width: 820px; margin: 0 auto; }
.article-head { border-bottom: 1px solid var(--navy); padding-bottom: 24px; margin-bottom: 40px; }
.article-head .meta { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.article-head time { font-family: var(--font-en); color: var(--muted); }
.article-head h1 { font-size: clamp(22px, 2.6vw, 30px); color: var(--navy); }
.article-body p { color: #3a4556; line-height: 2.1; }
.article-body h2 { font-size: 20px; color: var(--navy); margin: 40px 0 14px; }
.article-body .ph { margin: 32px 0; aspect-ratio: 16 / 8; }
.article-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--line); gap: 12px; }
.article-nav a { font-weight: 700; font-size: 14px; color: var(--navy); padding: 10px 4px; }
.article-nav a:hover { color: var(--theme); }
.article-nav a.is-disabled { opacity: .3; pointer-events: none; }
.article-nav .to-list { background: var(--navy); color: #fff; padding: 12px 28px; }
.article-nav .to-list:hover { background: var(--theme); color: #fff; }

/* ---------- Group company: business ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.svc-card { display: flex; flex-direction: column; }
.svc-card .ph { aspect-ratio: 4 / 3; }
.svc-card .ph img { transition: transform .8s var(--ease); }
.svc-card:hover .ph img { transform: scale(1.05); }
.svc-body { padding-top: 24px; display: flex; flex-direction: column; flex: 1; }
.svc-body .no { font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: .18em; }
.svc-body h3 { font-size: 20px; color: var(--navy); margin: 6px 0 10px; }
.svc-body p { font-size: 14.5px; color: #3a4556; flex: 1; }

.svc-detail { display: grid; gap: 100px; }
.svc-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; scroll-margin-top: 120px; }
.svc-row:nth-child(even) .ph { order: 2; }
.svc-row .ph { aspect-ratio: 16 / 11; }
.svc-row .no { display: block; font-family: var(--font-en); font-size: 15px; font-weight: 700; color: var(--theme); letter-spacing: .1em; }
.svc-row .no::after { content: ""; display: inline-block; width: 36px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 12px; }
.svc-row h3 { font-size: 28px; color: var(--navy); margin: 10px 0 18px; }
.svc-row p { color: #3a4556; }
.svc-row ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px; }
.svc-row li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--navy); font-weight: 700; }
.svc-row li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--theme); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.feature .no { display: block; font-size: 44px; font-weight: 300; color: var(--theme); line-height: 1; letter-spacing: 0; margin-bottom: 18px; }
.feature h3 { font-size: 19px; color: var(--navy); margin-bottom: 12px; }
.feature p { font-size: 14.5px; color: #3a4556; margin: 0; }

/* ---------- Works ---------- */
.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
.works-grid.is-3 { grid-template-columns: repeat(3, 1fr); gap: 48px 28px; }
.work { display: block; }
.work .thumb { overflow: hidden; }
.work .ph { aspect-ratio: 4 / 3; }
.work .ph img { transition: transform .8s var(--ease); }
.work:hover .ph img { transform: scale(1.05); }
.work .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 16px 0 4px; }
.work time { font-family: var(--font-en); font-size: 12.5px; color: var(--muted); }
.work h3 { font-size: 15.5px; color: var(--navy); line-height: 1.6; }

.gallery { max-width: 860px; margin: 0 auto; }
.gallery-main { position: relative; }
.gallery-main .ph { aspect-ratio: 16 / 9; display: none; }
.gallery-main .ph.is-active { display: grid; }
.gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px;
  background: rgba(19, 40, 74, .85); border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; z-index: 2; transition: background .25s;
}
.gallery-btn svg { width: 22px; height: 22px; }
.gallery-btn:hover { background: var(--theme); }
.gallery-btn.prev { left: 0; }
.gallery-btn.next { right: 0; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumbs button { padding: 0; border: 0; cursor: pointer; background: none; opacity: .45; transition: opacity .25s; }
.gallery-thumbs button.is-active, .gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs .ph { aspect-ratio: 4 / 3; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll::before { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .gnav ul { gap: 18px; }
  .gnav li a { font-size: 13.5px; }
  .group-grid { grid-template-columns: repeat(2, 1fr); }
  .strengths { grid-template-columns: repeat(3, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-index small:last-child { display: none; }
}

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .gnav {
    position: fixed; inset: 116px 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 24px 24px 40px; gap: 24px; overflow-y: auto;
    opacity: 0; transform: translateY(-10px); visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  .menu-open .gnav { opacity: 1; transform: none; visibility: visible; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav li a { padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .gnav li a::after { display: none; }
  .btn-contact { justify-content: center; padding: 18px; font-size: 16px; }
  body.menu-open { overflow: hidden; }

  .network { grid-template-columns: 1fr; gap: 40px; }
  .cta .wrap { grid-template-columns: 1fr; align-items: start; }
  .cta-tel { border-left: 0; padding: 10px 0; margin-right: 28px; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 36px; }
  .footer-nav { justify-content: start; grid-template-columns: repeat(2, auto); }
  .company-row { grid-template-columns: 1fr; gap: 28px; }
  .company-row:nth-child(even) > .ph { order: 0; }
  .message { grid-template-columns: 1fr; gap: 36px; }
  .message .ph { max-width: 320px; }
  .svc-grid { grid-template-columns: 1fr; max-width: 560px; }
  .svc-row { grid-template-columns: 1fr; gap: 28px; }
  .svc-row:nth-child(even) .ph { order: 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .flow-item { grid-template-columns: 90px 1fr; gap: 24px; }
  .flow-item .ph { grid-column: 1 / -1; }
  .tree-children { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tree-curves { display: none; }
  .tree-root { margin-bottom: 16px; max-width: none; }
  .hero-index-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-index a:nth-child(2) { border-right: 1px solid rgba(255, 255, 255, .16); }
  .hero-index a:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .16); }
  .sec-head.is-split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 15px; letter-spacing: .02em; }
  .wrap, .wrap-narrow { width: min(100% - 40px, var(--wrap)); }
  .sec-head { margin-bottom: 36px; }
  .eyebrow { font-size: 11px; margin-bottom: 14px; }
  .sp-only { display: inline; }
  .pc-only { display: none; }
  .topbar .wrap span { display: none; }
  .site-header .wrap { height: 72px; }
  .gnav { inset: 104px 0 0 0; }
  .logo svg { width: auto; height: 30px; }
  .logo-text .en { font-size: 15px; }
  .section { padding: 84px 0; }
  .section.is-tight { padding: 64px 0; }
  .sec-head { margin-bottom: 40px; }
  .btn { min-width: 0; width: 100%; max-width: 360px; }
  .hero { min-height: calc(100svh - 104px); }
  .hero.is-company { min-height: 78svh; }
  .hero-body { padding: 96px 0 40px; }
  .hero.is-company .hero-body { padding-bottom: 48px; }
  .hero h1 { font-size: 34px; letter-spacing: .05em; }
  .hero.is-company h1 { font-size: 28px; letter-spacing: .04em; }
  .hero-lead { font-size: 14px; line-height: 1.95; margin-top: 20px; }
  .hero.is-company .hero-lead { font-size: 13.5px; }
  .hero-scroll { display: none; }
  .hero-bg::after, .hero.is-company .hero-bg::after { background: linear-gradient(to top, rgba(12, 26, 51, .85) 0%, rgba(12, 26, 51, .45) 50%, rgba(12, 26, 51, .1) 80%); }
  .hero-index a { padding: 14px 16px 16px; grid-template-columns: 1fr; }
  .hero-index .en { grid-row: auto; }
  .hero-index span { font-size: 12.5px; }
  .page-hero-head { padding: 40px 0 44px; }
  .page-hero-photo { height: 200px; }
  .breadcrumb { padding-top: 14px; }
  .banner { min-height: 300px; padding: 40px 24px; }
  .values { grid-template-columns: 1fr; margin-top: 56px; }
  .value { padding: 32px 4px; }
  .value + .value { border-left: 0; border-top: 1px solid var(--line); }
  .cta h2 { font-size: 24px; }
  .group-grid { grid-template-columns: 1fr 1fr; gap: 36px 16px; }
  .g-card .ph { aspect-ratio: 1 / 1; }
  .g-card h3 { font-size: 15px; }
  .banner-grid { grid-template-columns: 1fr; }
  .news-list a { grid-template-columns: auto 1fr; gap: 6px 18px; padding: 20px 0; }
  .news-list .ttl { grid-column: 1 / -1; }
  .news-list a::after { display: none; }
  .network-stats { gap: 28px; }
  .network-stats b { font-size: 36px; }
  .biz-grid { grid-template-columns: 1fr; gap: 48px; }
  .strengths { grid-template-columns: 1fr; gap: 32px; }
  .strength { display: grid; grid-template-columns: 64px 1fr; gap: 0 12px; }
  .strength .no { grid-row: 1 / 3; font-size: 34px; }
  .values { grid-template-columns: 1fr; gap: 32px; }
  .history li { grid-template-columns: 1fr; gap: 10px; }
  .history .year { font-size: 32px; }
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
  .table th { padding: 18px 0 4px; border-bottom: 0; }
  .table td { padding: 0 0 18px; }
  .job .table th { width: 100%; }
  .apply-box { padding: 48px 22px; }
  .apply-card { min-width: 0; width: 100%; }
  .f-row { grid-template-columns: 1fr; gap: 8px; }
  .f-label { padding-top: 0; }
  .form-submit .btn { min-width: 0; }
  .works-grid, .works-grid.is-3 { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .work h3 { font-size: 14px; }
  .access { grid-template-columns: 1fr; gap: 28px; }
  .map-embed { aspect-ratio: 4 / 3; }
  .flow { gap: 44px; }
  .flow-item { grid-template-columns: 1fr; gap: 12px; }
  .flow-step { display: flex; align-items: baseline; gap: 12px; }
  .flow-step b { font-size: 36px; }
  .company-rows { gap: 64px; }
  .photo-pair .ph:last-child { margin-top: 30px; }
  .tree-node b { font-size: 14.5px; }
  .tree-desc { font-size: 12.5px; }
  .article-nav { flex-wrap: wrap; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
  .btn { gap: 20px; padding: 18px 20px 18px 24px; }
  .tree-root { padding: 22px 20px; }
  .tree-root b { font-size: 17px; }
  .tree-root .tree-desc { font-size: 12.5px; }
  .tree-children { grid-template-columns: 1fr; gap: 8px; }
  .tree-node { padding: 16px 18px; }
  .tree-node .tree-desc { padding: 4px 0 8px; }
  .tree-node .tree-en { font-size: 10px; letter-spacing: .14em; }
}

/* ===== グループ各社のロゴ（GRS：本体グレー＋くさびだけ各社の色）2026-11-24 ===== */
svg.grs { aspect-ratio: 1283 / 653; width: auto; flex-shrink: 0; display: block; align-self: flex-start; }
.co-logo { height: 26px; margin-bottom: 10px; }
.co-logo-l { height: 40px; margin-bottom: 14px; }
.tree-root .co-logo { height: 24px; margin: 0 auto 8px; }
.co-mini { height: 12px; }
@media (max-width: 767px) {
  .co-logo { height: 22px; }
  .co-logo-l { height: 32px; }
}

/* 系列図の社名：「株式会社」を小さく1行目に、社名は途中で折り返さない（2026-11-24） */
.tree-node b { font-size: 17px; line-height: 1.5; letter-spacing: .04em; word-break: keep-all; overflow-wrap: anywhere; margin-top: 2px; }
.tree-node b small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: .12em; line-height: 1.6; }
.tree-node .tree-desc { line-height: 1.75; }
@media (max-width: 1100px) and (min-width: 768px) {
  .tree-node { padding: 20px 18px 18px; }
  .tree-node b { font-size: 16px; letter-spacing: .02em; }
}
@media (max-width: 767px) {
  .tree-node b { font-size: 15.5px; }
  .tree-node b small { font-size: 11px; }
}

.tree-root .nw { white-space: nowrap; }
@media (max-width: 767px) {
  .tree-root .tree-sep { display: block; height: 0; overflow: hidden; }
}
