/* =========================================================
   ANL HOLDINGS — コーポレートサイト
   - 色は白＋水色。水色は龍南建設の現行サイトの青（#1d86eb）を基準にする
   - PCはフル幅（中央の固定幅の箱を作らず、左右の余白だけで組む）
   - 幅の区切り：〜767 スマホ／768〜1279 タブレット／1280〜 PC
   - 太さは 700 が上限。余白は8の倍数
   - 欧文書体（Archivo）は英数字だけの行に使う
   ========================================================= */

:root {
  /* 水色（ブランド）：明るく薄い水色を面に使い、文字は紺で載せる */
  --blue-800: #135f8c;   /* 文字リンクのホバー */
  --blue-700: #1a77ad;   /* 白地の小さな文字だけに使う濃いめの水色（白とのコントラスト 4.8） */
  --blue-600: #2ba3e4;   /* 基準の水色（見出しの強調・線・ロゴ） */
  --blue-400: #7fd0f5;   /* ボタン・図形の地（紺の文字を載せる） */
  --sky-300: #b3e3f9;
  --sky-200: #d3f0fc;
  --sky-100: #e5f6fe;
  --sky-050: #f2fafe;
  /* 文字・線 */
  --white: #ffffff;
  --ink: #0b1d33;
  --muted: #4d5f73;
  --rule: #d6e6f0;
  --on-blue: #3d5670;                    /* 水色の面の上の補助の文字 */
  --rule-on-blue: rgba(11, 29, 51, .12);

  --grad-blue: linear-gradient(150deg, #e5f6fe 0%, #c4eafb 50%, #9fdcf8 100%);

  --ff-ja: "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Sans", "Meiryo", sans-serif;
  --ff-en: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* 左右の余白（スマホ） */
  --gutter: 24px;
  --sec-pad: 96px;
  --hd-h: 58px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);   /* After Effects のイーズイン・アウトに近い動き */
}
@media (min-width: 768px) {
  :root { --gutter: 48px; --sec-pad: 128px; --hd-h: 64px; }
}
@media (min-width: 1280px) {
  :root { --gutter: 80px; --sec-pad: 160px; --hd-h: 72px; }
}
@media (min-width: 1920px) {
  :root { --gutter: 120px; --sec-pad: 192px; }
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hd-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--ff-ja);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  font-feature-settings: "palt" 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1280px) { body { font-size: 17px; } }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
/* 日本語の改行を文節で（対応ブラウザのみ） */
h1, h2, h3, p, dd { word-break: auto-phrase; }
h1, h2, h3 { text-wrap: balance; }
.en { font-family: var(--ff-en); letter-spacing: .06em; }
.pc { display: none; }
@media (min-width: 1280px) { .pc { display: inline; } }

.wrap { position: relative; z-index: 2; width: 100%; padding-inline: var(--gutter); }   /* 背景の水玉（.bubbles）より手前 */
/* ページ全体の背景に浮かぶ水玉（bubbles.js）。各節の地より手前、文字やカードより奥 */
.bubbles { position: fixed; top: 0; left: 0; z-index: 1; width: 100%; height: 100vh; height: 100lvh; pointer-events: none; }
.sec { padding-block: var(--sec-pad); }

/* スクロールの進み具合（対応ブラウザのみ） */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: var(--blue-600); transform-origin: 0 50%; transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* ---------- 社名のロゴ（文字で組んだもの） ---------- */
/* ロゴ（依頼者から届いた画像。白地を透明にして切り抜いたもの。縦横比 1052:404） */
.logo { display: block; width: auto; height: 40px; }
@media (min-width: 768px) { .logo { height: 46px; } }
.logo--lg, .logo.logo--lg { height: 72px; }

/* ---------- ヘッダー ---------- */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--hd-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  color: var(--ink);
  --hd-shift: 0px;
  --hd-nav-shift: 0px;
  padding-left: calc(var(--gutter) - var(--hd-shift));
  padding-right: calc(var(--gutter) + var(--hd-nav-shift));
  transition: background .4s var(--ease), transform .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.hd.is-solid {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--rule);
}
@media (min-width: 768px) { .hd { --hd-shift: 16px; --hd-nav-shift: 16px; } }
@media (min-width: 1280px) { .hd { --hd-shift: 24px; --hd-nav-shift: 8px; } }
.hd__nav { display: none; }
@media (min-width: 1280px) {
  .hd__nav { display: flex; align-items: center; gap: 32px; font-size: 16px; font-weight: 500; }
  .hd__nav a { position: relative; padding-block: 6px; }
  .hd__nav a:not(.hd__cta)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
    background: var(--blue-600); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
  }
  .hd__nav a:not(.hd__cta):hover::after { transform: scaleX(1); transform-origin: left; }
  .hd__cta {
    padding: 6px 20px !important; border-radius: 999px;
    background: var(--blue-400); color: var(--ink);
    transition: background .3s;
  }
  .hd__cta:hover { background: var(--sky-300); }
}
.hd__menu {
  display: inline-flex; align-items: center; gap: 12px;
  background: none; border: 0; color: inherit; cursor: pointer; padding: 8px 0;
  font: 500 14px/1 var(--ff-en); letter-spacing: .2em;
}
.hd__bars { position: relative; width: 32px; height: 12px; }
.hd__bars i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.hd__bars i:first-child { top: 0; }
.hd__bars i:last-child { top: 10px; background: var(--blue-600); }
.hd__menu[aria-expanded="true"] .hd__bars i:first-child { top: 5px; transform: rotate(20deg); }
.hd__menu[aria-expanded="true"] .hd__bars i:last-child { top: 5px; transform: rotate(-20deg); }
@media (min-width: 1280px) { .hd__menu { display: none; } }

/* スマホのメニュー */
.drawer {
  position: fixed; inset: 0; z-index: 40;
  background: var(--white); color: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--hd-h) + 24px) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-io);
}
.drawer[hidden] { display: flex; visibility: hidden; }
.drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer__nav { display: grid; gap: 8px; }
.drawer__nav a {
  display: flex; align-items: baseline; gap: 16px;
  font-size: 24px; font-weight: 500; padding-block: 8px;
  border-bottom: 1px solid var(--rule);
}
.drawer__nav .en { font-size: 12px; color: var(--blue-700); }
.drawer__addr { margin-top: 40px; font-size: 13px; color: var(--muted); }
.is-locked { overflow: hidden; }

/* ---------- ファーストビュー ----------
   背景はガラスの球体・リング・ガラス玉・直線・流れる帯（hero-glass.js が WebGL で canvas に描く）。
   横長の画面は文字を左・球体を右に、縦長の画面（スマホ・タブレットの縦）は球体を上・文字を下に置く。
   見出しは1文字ずつ跳ねて出る（After Effects のオーバーシュートに近い動き）。
   背景の面は下のお知らせの上まで伸ばし（--hero-ext）、境目の線を作らずにお知らせの地の色へ溶かす。 */
.hero {
  --pop: cubic-bezier(.34, 1.56, .64, 1);   /* 行き過ぎて戻る */
  --hero-ext: clamp(160px, 42svh, 480px);   /* 背景の面を下へ伸ばす分 */
  position: relative; min-height: 100svh; overflow: visible; overflow-x: clip; isolation: isolate;
  display: grid; align-items: end; justify-items: start;
  padding: calc(var(--hd-h) + 16px) var(--gutter) 40px;
  /* WebGL が使えないときの地 */
  background: linear-gradient(160deg, var(--white) 0%, var(--sky-050) 55%, #dcedf9 100%);
}
@media (min-width: 768px) and (min-aspect-ratio: 11/10) {
  .hero { align-items: center; padding-bottom: 32px; }
}
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; text-align: left; max-width: 100%; }

/* 背景を描く面 */
.sky {
  position: absolute; top: 0; left: 0; z-index: 0; width: 100%; height: calc(100% + var(--hero-ext)); pointer-events: none;
  /* 伸ばした分の下の方で、少しずつ透明にする（下にはお知らせの地の色がある） */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--hero-ext) * .6), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - var(--hero-ext) * .6), transparent);
}

.hero__kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; color: var(--blue-700); margin-bottom: 12px;
}
.hero__kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-600); box-shadow: 0 0 0 4px var(--sky-100); }
/* スマホは「、」で改行して4行、768px以上は2行（長い方の行は17字。球体とリングにかからない幅） */
.hero__title {
  font-weight: 700; font-size: clamp(22px, calc((100vw - 48px) / 11), 38px);
  line-height: 1.4; letter-spacing: .02em;
}
@media (min-width: 768px) { .hero__title { font-size: clamp(30px, min(4.6vw, 4.9svh), 46px); line-height: 1.35; } }
@media (min-width: 1280px) { .hero__title { font-size: clamp(38px, calc(1.4vw + 18px), 60px); } }
.hero__title .line { display: block; white-space: nowrap; }
.hero__title .seg { display: block; }
@media (min-width: 768px) { .hero__title .seg { display: inline; } }
.hero__title .line--accent { color: var(--blue-600); }
.hero__title .ch { display: inline-block; }
.hero__lead { max-width: 36em; margin-top: 16px; font-size: 14px; line-height: 1.85; color: var(--muted); }
/* タブレット以上は2行に収める（2行の長さをそろえる） */
@media (min-width: 768px) { .hero__lead { width: 44em; max-width: 100%; margin-top: 24px; font-size: 16px; line-height: 2; text-wrap: balance; } }
@media (min-width: 1440px) { .hero__lead { font-size: 17px; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 767px) { .hero__actions .btn { min-height: 48px; padding: 0 24px; font-size: 14px; } }
@media (min-width: 768px) { .hero__actions { gap: 16px; margin-top: 32px; } }

/* ---- 動き（JS が使えるときだけ）：球体が出るのに合わせて、見出し → 説明 → ボタンの順に出る ---- */
.js .hero__title .ch { opacity: 0; transform: translateY(.5em) scale(.4); }
.is-loaded .hero__title .ch { animation: chPop .7s var(--pop) calc(.55s + var(--i) * 20ms) both; }
@keyframes chPop { to { opacity: 1; transform: none; } }
.js .hero__kicker, .js .hero__lead, .js .hero__actions { opacity: 0; transform: translateY(24px) scale(.96); }
.is-loaded .hero__kicker { animation: expand .8s var(--pop) .4s both; }
.is-loaded .hero__lead { animation: expand .8s var(--pop) 1.05s both; }
.is-loaded .hero__actions { animation: expand .8s var(--pop) 1.2s both; }
@keyframes expand { to { opacity: 1; transform: none; } }

/* 見えていないときは止める */
.hero.is-paused *, .hero.is-paused *::before, .hero.is-paused *::after { animation-play-state: paused !important; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 16px;
  min-height: 56px; padding: 0 32px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: .06em;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s, gap .35s var(--ease);
}
.btn:hover { gap: 24px; }
.btn--primary { background: var(--blue-400); color: var(--ink); }
.btn--primary:hover { background: var(--sky-300); }
.btn--ghost { border: 1px solid var(--rule); color: var(--ink); background: var(--white); }
.btn--ghost:hover { border-color: var(--blue-600); color: var(--blue-700); }
.btn--light { background: var(--white); color: var(--blue-800); }
.btn--light:hover { background: var(--sky-100); }
.btn__arrow { position: relative; width: 24px; height: 1px; background: currentColor; }
.btn__arrow::after {
  content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}

/* ---------- 流れる帯 ---------- */
.marquee {
  overflow: hidden; background: var(--sky-200); color: var(--blue-600); padding-block: 24px;
}
.marquee__track {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 40px; width: max-content;
  animation: marquee 40s linear infinite;
  font-family: var(--ff-en); font-weight: 500; font-stretch: 75%;
  font-size: clamp(32px, 6vw, 88px); line-height: 1; letter-spacing: .02em;
  white-space: nowrap;
}
.marquee__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--blue-600); }
.marquee__track b { font-weight: 400; color: var(--white); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 見出し（共通） ---------- */
.sh { display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-items: start; margin-bottom: 64px; }
.sh__no { grid-row: 1 / 3; font-size: 13px; font-weight: 500; line-height: 1; color: var(--blue-700); padding-top: 8px; }
.sh__en {
  font-weight: 600; font-stretch: 80%;
  font-size: clamp(48px, 13vw, 72px); line-height: .95; letter-spacing: 0;
}
@media (min-width: 768px) { .sh__en { font-size: clamp(72px, 9vw, 128px); } }
@media (min-width: 1280px) { .sh__en { font-size: clamp(112px, 8.4vw, 176px); } }
.sh__ja { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: .12em; }
.sh__ja::before { content: ""; width: 24px; height: 2px; background: var(--blue-600); }
@media (min-width: 1280px) { .sh { margin-bottom: 96px; } }

/* ---------- 02 私たちについて ---------- */
.about { background: var(--white); }
.about__grid { display: grid; gap: 40px; }
.about__statement {
  font-size: clamp(24px, 6.4vw, 32px); font-weight: 700; line-height: 1.6; letter-spacing: .04em;
}
.about__text { display: grid; gap: 24px; color: var(--muted); max-width: 44em; }
@media (min-width: 1280px) {
  .about__grid { grid-template-columns: 1.2fr 1fr; gap: 96px; align-items: start; }
  .about__statement { font-size: clamp(36px, 2.9vw, 56px); }
}
.roles { display: grid; gap: 16px; margin-top: 80px; counter-reset: role; }
@media (min-width: 768px) { .roles { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1280px) { .roles { margin-top: 128px; gap: 32px; } }
.role {
  position: relative; padding: 32px; background: var(--sky-050); border-radius: 16px;
  border: 1px solid var(--rule); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.role::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--blue-600); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.role:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(43, 163, 228, .3); border-color: var(--sky-300); }
.role:hover::before { transform: scaleX(1); }
.role__no { display: block; font-size: 56px; font-weight: 600; font-stretch: 80%; line-height: 1; color: var(--blue-600); }
.role__title { margin-top: 32px; font-size: 20px; font-weight: 700; }
.role__text { margin-top: 8px; font-size: 15px; color: var(--muted); }
@media (min-width: 1280px) { .role { padding: 40px; } .role__no { font-size: 72px; } }

/* ---------- 数字 ---------- */
.numbers { background: var(--grad-blue); color: var(--ink); padding-block: 80px; }
.numbers__list { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1280px) { .numbers__list { grid-template-columns: repeat(4, 1fr); } .numbers { padding-block: 112px; } }
.num { padding: 24px 16px 24px 0; border-top: 1px solid var(--rule-on-blue); }
.num:nth-child(odd) { padding-right: 16px; }
@media (min-width: 1280px) {
  .num { border-top: 0; border-left: 1px solid var(--rule-on-blue); padding: 8px 32px; }
  .num:first-child { border-left: 0; padding-left: 0; }
}
.num__val {
  font-weight: 500; font-stretch: 75%; line-height: 1; letter-spacing: 0; color: var(--blue-700);
  font-size: clamp(56px, 16vw, 96px); font-variant-numeric: tabular-nums;
}
@media (min-width: 1280px) { .num__val { font-size: clamp(96px, 7.2vw, 144px); } }
.num__label { margin-top: 16px; font-size: 13px; color: var(--on-blue); line-height: 1.6; }

/* ---------- 03 グループ会社 ---------- */
.group { background: var(--sky-050); }
/* 構成図：持株会社から下の3社のカードへ線を直接つなぐ。
   持株会社の箱もカードと同じ白地・角丸・枠にし、線と継ぎ目の点は同じ水色でそろえる。
   PCは箱の幅を1枚のカードと同じにして、3列に合わせて枝分かれ。スマホ・タブレットは中央の縦の線で順につなぐ */
.tree { --tree-line: var(--blue-400); position: relative; z-index: 1; text-align: center; padding-bottom: 32px; }
.tree__top {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-inline: auto; padding: 32px 24px; overflow: hidden;
  border-radius: 24px; background: var(--white); border: 1px solid var(--sky-300);
  box-shadow: 0 24px 48px -32px rgba(43, 163, 228, .5);
}
.tree__top::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--blue-400), var(--blue-600)); }
.tree__top .chip { justify-self: auto; }
.tree__en { margin-top: 8px; font-size: 12px; font-weight: 500; color: var(--blue-700); }
.tree__name { font-size: clamp(17px, 4.8vw, 28px); font-weight: 700; line-height: 1.5; letter-spacing: .04em; color: var(--blue-700); white-space: nowrap; }
/* PCは箱がカード1枚の幅なので、社名が1行に収まる大きさにする */
@media (min-width: 1280px) { .tree__name { font-size: clamp(18px, 1.5vw, 28px); } }
/* 箱から下へ出る線（overflow で切れないよう .tree に付ける） */
.tree::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 2px; height: 32px; margin-left: -1px; background: var(--tree-line); }
.tree__branch { display: none; }
.cards { position: relative; }
.cards::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--blue-400); }
@media (min-width: 1280px) {
  .tree { padding-bottom: 0; }
  .tree__top { width: calc((100% - 64px) / 3); padding: 40px 24px; }
  .tree::after { display: none; }
  .tree__branch { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; height: 72px; }
  /* 箱の下から横の線まで、横の線は両端のカードの中央まで */
  .tree__branch::after { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 32px; margin-left: -1px; background: var(--tree-line); }
  .tree__branch::before { content: ""; position: absolute; top: 32px; height: 2px; background: var(--tree-line); left: calc((100% - 64px) / 6); right: calc((100% - 64px) / 6); }
  .tree__branch i { position: relative; justify-self: center; width: 2px; height: 40px; margin-top: 32px; background: var(--tree-line); }
  /* カードに入るところの点 */
  .tree__branch i::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--white); border: 2px solid var(--tree-line); box-sizing: border-box; }
  .cards::before { display: none; }
}

.cards { display: grid; gap: 24px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column;
  border-radius: 24px; overflow: hidden; background: var(--white);
  border: 1px solid var(--rule);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 40px 80px -40px rgba(43, 163, 228, .4); }
.card__visual {
  position: relative; aspect-ratio: 400 / 220; overflow: hidden;
  background:
    radial-gradient(400px circle at var(--mx) var(--my), rgba(255, 255, 255, .28), transparent 60%),
    var(--grad-blue);
}
.card__visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card__visual path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.card__visual .ln { stroke: rgba(43, 163, 228, .7); stroke-width: 1.2; }
.card__visual .ln--2 { stroke: rgba(43, 163, 228, .45); }
.card__visual .ln--3 { stroke: rgba(43, 163, 228, .28); }
.card__visual .br { stroke: var(--blue-600); stroke-width: 1.8; }
.card__visual .beam path { stroke: var(--blue-600); stroke-width: 1.8; }
.card__visual .stack path { stroke: rgba(43, 163, 228, .55); stroke-width: 1.2; }
/* 線を描く */
.js .card__visual path { stroke-dasharray: 1200; stroke-dashoffset: 1200; transition: stroke-dashoffset 2.4s var(--ease); }
.js .card.is-in .card__visual path { stroke-dashoffset: 0; }
.card__tag {
  position: absolute; left: 24px; top: 24px; font-size: 11px; font-weight: 500;
  color: var(--blue-800); background: var(--white); padding: 4px 12px; border-radius: 999px;
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 32px 24px; }
@media (min-width: 768px) { .card__body { padding: 40px; } }
/* PCは3枚並び。1280〜1599 は社名が1行に収まるよう少し詰める */
.card__en { font-size: 12px; font-weight: 500; color: var(--blue-700); }
.card__name { margin-top: 8px; font-size: clamp(24px, 6.4vw, 28px); font-weight: 700; letter-spacing: .06em; }
@media (min-width: 1600px) { .card__name { font-size: 32px; } }
.card__text { margin-top: 16px; color: var(--muted); }
.card__facts { margin-top: 32px; border-top: 1px solid var(--rule); }
.card__facts > div { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.7; }
.card__facts dt { color: var(--muted); }
.card__link {
  align-self: flex-start; margin-top: auto; padding-top: 32px;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px;
  color: var(--blue-700); border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.card__link:hover { color: var(--blue-800); }
.card__link--off { color: var(--muted); border-bottom-style: dashed; }
.ext {
  display: inline-block; width: 12px; height: 12px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; position: relative;
}
.ext::after { content: ""; position: absolute; right: -1px; top: 5px; width: 14px; height: 1px; background: currentColor; transform: rotate(-45deg); transform-origin: right; }
/* PCの3枚並びは、社名・説明文・代表者などの各行を3枚で同じ高さにそろえる（subgrid）。
   カードの行：絵／英字社名／社名／説明文／項目4つ／リンク の9行 */
@media (min-width: 1280px) {
  .cards { grid-template-columns: repeat(3, 1fr); column-gap: 32px; row-gap: 0; }
  .card { display: grid; grid-row: span 9; grid-template-rows: subgrid; row-gap: 0; }
  .card__body { display: contents; }
  .card__body > * { margin-inline: 32px; }
  .card__en { padding-top: 32px; }
  .card__facts { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .card__link { margin-bottom: 40px; }
}
@media (min-width: 1600px) { .card__body > * { margin-inline: 48px; } .card__en { padding-top: 48px; } .card__link { margin-bottom: 48px; } }

/* ---------- 04 事業領域（タイルの組） ---------- */
.business { background: var(--white); }
.bento { display: grid; gap: 16px; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) {
  .bento { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .tile--wide { grid-column: span 2; }
}
/* 最後の1枚は横いっぱい */
@media (min-width: 768px) { .tile--full { grid-column: 1 / -1; } }
.tile {
  position: relative; display: flex; flex-direction: column;
  min-height: 240px; padding: 32px; border-radius: 20px;
  background: var(--sky-050); border: 1px solid var(--rule);
  transition: border-color .4s, background .4s, transform .5s var(--ease);
}
.tile:hover { border-color: var(--blue-400); background: var(--sky-100); }
@media (min-width: 1280px) { .tile { min-height: 320px; padding: 40px; } }
.tile--accent { background: var(--grad-blue); border-color: transparent; color: var(--ink); }
.tile--accent:hover { background: var(--grad-blue); border-color: transparent; }
.tile__icon { width: 48px; height: 48px; margin-bottom: auto; }
.tile__icon path { fill: none; stroke: var(--blue-600); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile--accent .tile__icon path { stroke: var(--blue-600); }
.tile__en { margin-top: 40px; font-size: 11px; font-weight: 500; color: var(--blue-700); }
.tile__title { margin-top: 8px; font-size: 24px; font-weight: 700; }
.tile__text { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.tile--accent .tile__en, .tile--accent .tile__text { color: var(--on-blue); }

/* ---------- 01 お知らせ（ファーストビューの直下） ---------- */
.news { background: var(--sky-050); }
.news > .wrap { position: relative; z-index: 2; }   /* 下へ伸びたファーストビューの背景より手前に出す */
.newslist { border-top: 2px solid var(--blue-600); }
.newslist li {
  display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center;
  padding-block: 24px; border-bottom: 1px solid var(--rule);
}
.newslist time { font-size: 14px; font-weight: 500; color: var(--muted); }
.newslist p { grid-column: 1 / -1; font-size: 16px; }
@media (min-width: 768px) {
  .newslist li { grid-template-columns: 136px 120px 1fr; padding-block: 32px; gap: 24px; }
  .newslist p { grid-column: auto; }
}
/* チップは中を白、枠と文字に色 */
.chip {
  justify-self: start; display: inline-block; padding: 2px 12px;
  font-size: 12px; font-weight: 500; line-height: 1.8;
  color: var(--blue-700); background: var(--white);
  border: 1px solid var(--blue-700); border-radius: 999px;
}

/* ---------- 05 会社概要 ---------- */
.company { background: var(--sky-050); }
.profile { border-top: 2px solid var(--blue-600); }
.profile > div { display: grid; gap: 4px; padding-block: 24px; border-bottom: 1px solid var(--rule); }
.profile dt { font-size: 13px; color: var(--muted); }
.profile dd { font-size: 16px; line-height: 1.8; }
@media (min-width: 768px) {
  .profile > div { grid-template-columns: 240px 1fr; gap: 24px; padding-block: 28px; }
  .profile dt { font-size: 14px; }
}
@media (min-width: 1280px) {
  .company__wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 96px; }
  .company__wrap .sh { margin-bottom: 0; align-self: start; position: sticky; top: calc(var(--hd-h) + 40px); }
}
.nw { white-space: nowrap; }
.maplink { display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--blue-700); border-bottom: 1px solid currentColor; }

/* ---------- 下層ページ：ページの見出しとパンくず ---------- */
.page-hd {
  padding: calc(var(--hd-h) + 56px) 0 56px;
  background: linear-gradient(180deg, var(--sky-100) 0%, var(--sky-050) 100%);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 1280px) { .page-hd { padding: calc(var(--hd-h) + 96px) 0 88px; } }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--blue-400); }
.crumbs a { color: var(--blue-700); }
.crumbs a:hover { color: var(--blue-800); }
.page-hd__en {
  margin-top: 32px; font-weight: 600; font-stretch: 80%; line-height: .95;
  font-size: clamp(56px, 15vw, 88px);
}
@media (min-width: 768px) { .page-hd__en { font-size: clamp(88px, 11vw, 144px); } }
@media (min-width: 1280px) { .page-hd__en { font-size: clamp(128px, 9vw, 176px); } }
.page-hd__ja { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: .12em; }
.page-hd__ja::before { content: ""; width: 24px; height: 2px; background: var(--blue-600); }
/* 会社概要のページ：表だけを横いっぱいに */
.company--page { background: var(--white); padding-top: 64px; }
@media (min-width: 1280px) { .company--page { padding-top: 96px; } }
.company--page .company__wrap { display: block; }
/* メニューの、いまいるページ */
.hd__nav a[aria-current="page"] { color: var(--blue-700); }
@media (min-width: 1280px) { .hd__nav a[aria-current="page"]::after { transform: scaleX(1); } }
.drawer__nav a[aria-current="page"] { color: var(--blue-700); }

/* ---------- 採用 ---------- */
.recruit {
  position: relative; overflow: hidden;   /* isolation を付けない：背景の水玉を地と文字の間に挟むため */
  background: var(--grad-blue);
  color: var(--ink); padding-block: var(--sec-pad);
}
.recruit__bg {
  position: absolute; inset: auto 0 -0.18em 0; z-index: 0; pointer-events: none;
  font-weight: 700; font-stretch: 62%; line-height: .8; white-space: nowrap;
  font-size: 28vw; color: rgba(255, 255, 255, .55);
}
.recruit__en { font-size: 13px; font-weight: 500; color: var(--blue-700); }
.recruit__title { margin-top: 16px; font-size: clamp(32px, 8.8vw, 48px); font-weight: 700; }
@media (min-width: 1280px) { .recruit__title { font-size: 72px; } }
.recruit__text { margin-block: 24px 40px; max-width: 40em; color: var(--on-blue); }
.recruit__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- 06 お問い合わせ ---------- */
.contact { background: var(--white); }
.contact__box { display: grid; gap: 16px; }
@media (min-width: 768px) { .contact__box { grid-template-columns: 1fr 1fr; gap: 24px; } }
.contact__item { padding: 32px; border: 1px solid var(--rule); border-radius: 20px; background: var(--sky-050); }
@media (min-width: 1280px) { .contact__item { padding: 48px; } }
.contact__label { font-size: 13px; color: var(--muted); }
.contact__val { margin-top: 8px; font-size: 24px; font-weight: 700; }
.contact__val--addr { font-size: 18px; line-height: 1.7; }
.contact__item .maplink { margin-top: 16px; }
.contact__links { display: grid; gap: 16px; margin-top: 16px; list-style: none; padding: 0; }
.contact__links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--blue-700); border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.contact__links a:hover { color: var(--blue-800); }
.contact__note { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---------- フッター（ほかの節と同じ白＋水色） ---------- */
.ft { position: relative; background: var(--sky-050); color: var(--ink); padding-top: 96px; border-top: 4px solid var(--blue-400); }
.ft__wrap { display: grid; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid var(--rule); }
@media (min-width: 1280px) { .ft__wrap { grid-template-columns: 1fr auto; align-items: end; } }
.ft__name { margin-top: 24px; font-size: 15px; font-weight: 500; }
.ft__addr { margin-top: 8px; font-size: 13px; color: var(--muted); }
.ft__nav { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 16px 40px; font-size: 14px; font-weight: 500; }
@media (min-width: 768px) { .ft__nav { grid-template-columns: repeat(3, auto); } }
.ft__nav a:hover { color: var(--blue-700); }
.ft__bottom { display: flex; justify-content: space-between; align-items: center; padding-block: 24px 32px; font-size: 11px; color: var(--muted); }
.ft__top { display: inline-flex; gap: 8px; color: var(--blue-700); }
.ft__top:hover { color: var(--blue-800); }

/* ---------- スクロールで出す ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .hero__kicker, .js .hero__lead, .js .hero__actions,
  .js .hero__title .ch { opacity: 1; transform: none; }
  .js .card__visual path { stroke-dashoffset: 0; }
}

/* ---------- 印刷 ---------- */
@media print {
  .hd, .drawer, .progress, .marquee, .sky, .bubbles { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
