@charset "UTF-8";
/* ==========================================================================
   アースタックス税理士法人 コーポレートサイト

   設計方針
   ・意匠の軸は「銀座のビルの縦看板」。トップの左端に藍の帯を立て、社名を縦組みで置く。
     大胆さはここだけに使い、他は静かに保つ。
   ・区切りは罫線ではなく色面と余白で行う。
   ・朱（#A6392E）は落款・職印の色。現在地とリンクの合図にだけ使い、面積を広げない。

   本文の読みやすさ
   ・本文は17px・行間1.95・1行あたり32〜36字を上限にする（日本語で目が滑らない範囲）。
   ・Windowsの游ゴシックは標準ウェイトが細く出るため、Mediumを明示して当てる。
   ・明朝は20px以上の見出しだけに使う。小さい字は細くて読みづらくなるのでゴシックにする。
   ========================================================================== */

/* 欧文は Outfit。可変フォント1本（100〜700）を自前で置く。
   外部CDNから読むとCSPの style-src / font-src を開ける必要があり、
   表示も回線に左右されるため、ここでは同一オリジンに置いて確実に当てる。 */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/assets/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/assets/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* 色 */
  --paper: #fbfbfa;      /* 紙 */
  --paper-2: #f2f4f6;    /* 一段沈めた紙 */
  --mizu: #e7eef4;       /* 水（面で区切るときの淡い藍） */
  --ai: #0b2a4a;         /* 藍（ロゴの濃紺から） */
  --ai-2: #143c66;       /* 藍・明 */
  --ai-ink: #34557a;     /* 藍を落とした文字色 */
  --sumi: #14171a;       /* 墨 */
  --sumi-70: #40474e;    /* 本文（紙に対して約9:1） */
  --sumi-50: #626a72;    /* 補助（紙に対して約5.6:1） */
  --shu: #a6392e;        /* 朱（落款） */
  --keisen: #dfe3e7;
  --hair: #e6e9ec;       /* 髪の毛のように細い区切り罫 */
  --ghost: #eef1f4;      /* 背景に敷く英字 */

  /* 書体
     欧文はOutfit、和文は游ゴシックに落とす（参考にしたサイトと同じ組み合わせ）。
     游ゴシックはWindowsで標準ウェイトが細く出るため、Mediumを先に置く。 */
  --gothic: "Outfit", "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium",
    "游ゴシック", "Yu Gothic", "Zen Kaku Gothic New", "ヒラギノ角ゴ ProN W3",
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", Verdana, Meiryo, sans-serif;
  --mincho: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro",
    "BIZ UDPMincho", "Noto Serif JP", "MS PMincho", serif;
  /* 日付・番号・言語切り替えなど、欧数字だけが並ぶところ。
     等幅にはせず本文と同じ Outfit にそろえ、桁の揃えは font-variant-numeric に任せる。 */
  --data: "Outfit", "Consolas", "SFMono-Regular", ui-monospace, "Courier New", monospace;
  /* 見出しの英字。Outfitは可変なので、細いウェイトもそのまま出せる。
     読めなかった場合に備えて、極細が出る欧文フォントだけを後ろに並べる。 */
  --en: "Outfit", "Helvetica Neue", "Segoe UI", "Segoe UI Variable Display", Arial,
    system-ui, sans-serif;

  /* 文字サイズ */
  --fs-body: 17px;       /* 本文 */
  --fs-sub: 15.5px;      /* 補足・キャプション */
  --fs-small: 14px;      /* ラベル・日付 */

  /* 1行の長さ。日本語は35字前後を超えると行を追いにくくなる */
  --measure: 34em;

  /* 寸法 */
  /* 器の上限。参考にしたサイトに合わせて 1540px の1種類にそろえる。
     幅を2種類持つとセクションごとに左端がずれ、広い画面でその段差が目立つ。
     本文そのものは --measure（1行34em）で別に抑えているので、器を広げても行は伸びない。 */
  --wrap: 1540px;
  --wrap-wide: 1540px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ── 土台 ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--sumi);
  font-family: var(--gothic);
  font-size: var(--fs-body);
  font-weight: 500;         /* 游ゴシックMediumを当てて、かすれを防ぐ */
  line-height: 1.95;
  letter-spacing: .03em;    /* 詰めすぎず開けすぎず */
  font-feature-settings: "palt" 1;
  /* 改行のきまり
     ・anywhere は禁則を無視して字の間ならどこでも折るため、「パートナ／ー」のように
       長音が行頭に来てしまう。break-word なら、入りきらない語だけを折る。
     ・auto-phrase は日本語を文節の切れ目で折る（対応していない環境では従来どおり）。
       「国境／をまたぐ」のような切れ方を避け、意味のかたまりを保つ。 */
  overflow-wrap: break-word;
  word-break: auto-phrase;
  line-break: strict;
}
body.is-nav-open { overflow: hidden; }

img, svg { max-width: 100%; height: auto; vertical-align: middle; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, address, dl, dd, table { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

a { color: var(--ai); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--shu); }

:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ai);
  color: #fff;
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ── 最初の一枚 ─────────────────────────
   読み込みの間だけ、紙一色の上に社名を置く。
   出す場面（トップページと言語切り替え）を head.js が判断し、has-loading を付ける。
   JSが動かない環境では出さない（覆いが残って本文が読めなくなるため）。 */
.loading { display: none; }
.has-loading .loading {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: opacity .45s var(--ease), visibility .45s;
}
.has-loading .loading.is-done { opacity: 0; visibility: hidden; }
.is-loading { overflow: hidden; }

/* 幅はロゴ画像に合わせ、社名はヘッダーと同じく
   ロゴの「e」の左端〜「x」の右端（= 90.97%）に両端揃えで収める。 */
.loading__inr {
  display: grid;
  justify-items: start;
  gap: clamp(14px, 1.8vw, 20px);
  width: clamp(190px, 24vw, 280px);
}

/* ロゴも社名も、枠の下に沈めておいて薄いところからせり上げる。
   キービジュアルの言葉と同じ作法にそろえ、ロゴが先、社名が少し遅れて続く。 */
.loading__mark,
.loading__name { display: block; overflow: hidden; }
.loading__mark { width: 100%; }

.loading__logo {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(104%);
  animation: loading-rise .9s var(--ease) .1s forwards;
}
.loading__name {
  width: 90.97%;
  font-family: var(--gothic);
  font-size: clamp(9.5px, 1.15vw, 12px);
  font-weight: 300;
  line-height: 1;
  color: var(--sumi-50);
  letter-spacing: 0;
  text-align: justify;
  text-align-last: justify;
}
/* 欧文の両端揃えは単語の切れ目だけを伸ばすため、字間が足りないと
   「EARTH　　TAX　　CORPORATION」と間延びする。
   そこで字間 .36em と釣り合う大きさを逆算して指定し、
   残るわずかな差だけを両端揃えに吸わせる。
   （Outfitの実測で、字間込みの自然幅がちょうど枠幅になるのは font-size ≒ 枠幅/20.1。
     ぴったりに寄せると枠を1px超えただけで2行に折れるので、5%ほど小さめに取る） */
.loading__name--en {
  font-family: var(--en);
  font-size: clamp(8.1px, 1.03vw, 12px);
  font-weight: 400;
  letter-spacing: .36em;
  text-transform: uppercase;
}
.loading__name > span {
  display: block;
  opacity: 0;
  transform: translateY(110%);
  animation: loading-rise .8s var(--ease) .35s forwards;
}
@keyframes loading-rise {
  to { opacity: 1; transform: none; }
}

/* 読み上げにだけ残す。写真の上の言葉が切り替わる場所で、見出しを固定しておくために使う */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.inr { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.inr--wide { width: min(100% - var(--gutter) * 2, var(--wrap-wide)); }

.mt-m { margin-top: 26px; }
.mt-l { margin-top: clamp(48px, 6vw, 76px); }

/* 段落の行長をそろえる */
.measure { max-width: var(--measure); }

/* 文の切れ目で改行させたいところに置く。
   狭い画面では入れると行数が増えてしまうので、そこでは自動の折り返しに任せる。 */
.br-wide { display: none; }
@media (min-width: 768px) {
  .br-wide { display: inline; }
}

/* Outfitは幾何学的な字形のぶん、同じウェイトでも和文より太く見える。
   和文に混ざる欧数字はひとつ軽くして、行の中で浮かないようにする。 */
/* グリッドの子は既定（min-width: auto）だと min-content より狭くならない。
   禁則を守る overflow-wrap: break-word では「折れない単位」が文節ぶんになるため、
   長い文節が列幅を押し広げて枠からはみ出す。縮む余地を明示して防ぐ。 */
.folk,
.card,
.plate,
.base,
.role,
.svc,
.notice,
.rows a { min-width: 0; }

.num {
  font-family: var(--data);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: .01em;
}

/* ── ヘッダー ──────────────────────────── */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(251, 251, 250, .93);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  transition: box-shadow .35s var(--ease);
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--keisen), 0 10px 30px rgba(11, 42, 74, .05); }

/* ヘッダーだけは器の上限に収めず、画面の両端まで使う。
   広い画面でロゴとナビが中央に寄って集まると、帯だけが間延びして見えるため。 */
.header__inr {
  width: 100%;
  height: 100%;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
/* ロゴの下に社名を敷く。
   社名の左右は、ロゴの「e」の左端と「x」の右端に合わせる。
   logo.svg は viewBox="0 0 231.5 63.2" で、実測すると
   「e」の左端が 0、「x」の右端が 210.6。よって文字が占める幅は 210.6/231.5 = 90.97%。
   その幅に両端揃え（text-align-last: justify）で流し込むと、字間は自動で均等に割れる。 */
.header__logo {
  display: inline-flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(4px, .6vw, 7px);
  width: clamp(150px, 15vw, 178px);
}
.header__mark { width: 100%; height: auto; }
.header__name {
  width: 90.97%;
  font-family: var(--gothic);
  font-size: clamp(9.5px, 1vw, 11px);
  font-weight: 300;
  line-height: 1;
  color: var(--sumi-50);
  /* 字間は letter-spacing ではなく両端揃えに任せる。
     letter-spacing を残すと、その分だけ右端がはみ出す。 */
  letter-spacing: 0;
  text-align: justify;
  text-align-last: justify;
}

/* 項目そのものは字間を詰めて語のかたまりに見せ、項目どうしの間を広く取る。
   墨のベタではなく一段落としたグレーにして、ロゴと見出しに主役を譲る。 */
.gnav { margin-left: auto; display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }
/* 項目の間隔は gap ではなく左右の余白で作る。いま見ているページを面で示すため */
.gnav__list { display: flex; align-items: center; gap: clamp(2px, .9vw, 12px); }
.gnav__list a {
  position: relative;
  display: block;
  padding: 9px 14px;
  color: var(--sumi-50);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
/* いま見ているページは淡い藍の面で示す。
   下線は言語切り替えに使っているので、役割が混ざらないよう別の見せ方にする。 */
.gnav__list a[aria-current="page"] {
  background: var(--mizu);
  color: var(--ai);
  font-weight: 700;
}
.gnav__list a:hover { color: var(--ai); }

/* ── 言語の切り替え ──────────────────────── */
/* 塗りと枠のセグメントはヘッダーの中で目立ちすぎるので、ナビと同じ文字の組みにする。
   現在の言語を藍、もう一方をグレーに置き、間は細い縦線1本で分ける。 */
/* ナビの並びとは役割が違うので、細い縦線で区切り、間もひとつ広く取る */
.lang {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  margin-left: clamp(8px, 1.2vw, 18px);
  padding-left: clamp(22px, 2.8vw, 38px);
}
.lang::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 17px;
  background: var(--keisen);
  transform: translateY(-50%);
}
.lang__item {
  display: block;
  padding: 6px 0;
  background: none;
  color: var(--sumi-50);
  font-family: var(--en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1;
  transition: color .3s var(--ease);
}
.lang__item + .lang__item { position: relative; margin-left: 11px; padding-left: 11px; }
.lang__item + .lang__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 11px;
  background: var(--keisen);
  transform: translateY(-50%);
}
/* いま見ている言語がひと目で分かるよう、藍に振ったうえで下線を引く。
   下線は text-decoration で引くと文字の幅ぶんだけに収まり、区切り線と干渉しない。 */
.lang__item.is-current {
  color: var(--ai);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
a.lang__item:hover { color: var(--ai); }

/* ── ボタン ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 244px;
  padding: 19px 34px;
  background: var(--ai);
  color: #fff;
  font-size: 16px;
  letter-spacing: .06em;
  line-height: 1.5;
  cursor: pointer;
  border: 0;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.btn::after {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: width .3s var(--ease);
}
.btn:hover { background: var(--sumi); color: #fff; }
.btn:hover::after { width: 30px; }

.btn--quiet { background: transparent; color: var(--ai); box-shadow: inset 0 0 0 1px var(--keisen); }
.btn--quiet:hover { background: var(--mizu); color: var(--ai); box-shadow: inset 0 0 0 1px var(--ai); }

.btn--onai { background: #fff; color: var(--ai); }
.btn--onai:hover { background: var(--mizu); color: var(--ai); }

/* ヘッダーの中で使うので、幅が詰まっても行を折らない */
.btn--sm { min-width: 0; padding: 12px 22px; font-size: 14.5px; white-space: nowrap; }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15.5px;
  letter-spacing: .05em;
}
.tlink::after { content: ""; width: 20px; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.tlink:hover::after { width: 30px; }

/* ── ハンバーガー ────────────────────────── */
.hamburger {
  display: none;
  padding: 10px 2px;
  border: 0;
  background: none;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.hamburger__bars { position: relative; display: block; width: 26px; height: 13px; }
.hamburger__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--sumi);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.hamburger__bars span:nth-child(1) { top: 0; }
.hamburger__bars span:nth-child(2) { top: 6px; }
.hamburger__bars span:nth-child(3) { top: 12px; }
.hamburger__label { font-family: var(--data); font-size: 12px; letter-spacing: .14em; }
.hamburger[aria-expanded="true"] .hamburger__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__bars span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 42, 74, .42);
  animation: fade .3s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }


/* ══════════════════════════════════════
   トップページ

   ・見出しは英字を大きく極細に組み、日本語は足元に小さく添える。
   ・面を塗って区切らず、髪の毛のように細い罫線と余白で区切る。
   ・写真とカードは高さをそろえず、段違いに置いて視線を動かす。
   ══════════════════════════════════════ */

/* ── キービジュアル ───────────────────────
   写真を全面に敷き、言葉を上に重ねる。5枚を送りながら、
   言葉の置き場所（左右×上中下）も1枚ごとに変えて画面を単調にしない。 */
.lede { padding-top: var(--header-h); background: var(--ai); }
.lede__stage {
  position: relative;
  height: clamp(440px, calc(100svh - var(--header-h)), 880px);
  overflow: hidden;
  background: var(--ai);
}

.lede__shots { position: absolute; inset: 0; }
.lede__shot {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s var(--ease);
}
/* 入る1枚が不透明になるまで、前の1枚を下に不透明のまま残す。
   同時に薄くすると重なった一瞬だけ下地の藍が透けて色が沈むため。 */
.lede__shot.is-leaving { z-index: 1; opacity: 1; transition: none; }
/* 最初に見えるのは1枚目だけ。残りはページの読み込みが終わってから取りに行く（main.js が is-ready を付ける）。
   JSが動かない環境では送りが動かないので、2枚目以降は読み込まなくてよい。 */
.lede__shot--o1 { background-image: url("/assets/office-3f-1.webp"); }
.is-ready .lede__shot--o2 { background-image: url("/assets/office-3f-2.webp"); }
.is-ready .lede__shot--o3 { background-image: url("/assets/office-3f-3.webp"); }
.is-ready .lede__shot--o4 { background-image: url("/assets/office-3f-4.webp"); }
.is-ready .lede__shot--o5 { background-image: url("/assets/office-3f-5.webp"); }

/* 表示中の1枚だけ、ゆっくり引く。切り替えのたびに動きが頭から始まる */
.lede__shot.is-active { z-index: 2; opacity: 1; animation: kv-settle 9s var(--ease) both; }
@keyframes kv-settle {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* 写真の明るさが1枚ごとに違うので、上下に暗幕を敷いて白字の足場をつくる */
.lede__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(6, 22, 40, .54) 0%,
    rgba(6, 22, 40, .24) 32%,
    rgba(6, 22, 40, .30) 58%,
    rgba(6, 22, 40, .74) 100%);
  pointer-events: none;
}

.lede__catches { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.lede__catch {
  position: absolute;
  left: max(var(--gutter), calc((100% - var(--wrap-wide)) / 2));
  right: max(var(--gutter), calc((100% - var(--wrap-wide)) / 2));
  visibility: hidden;
}
/* 出るときは即座に、引っ込むときは文字が沈みきってから隠す */
.lede__catch.is-show { visibility: visible; }
.lede__catch:not(.is-show) { transition: visibility 0s .5s; }

.lede__catch--top { top: clamp(48px, 11vh, 124px); }
.lede__catch--bottom { bottom: clamp(88px, 15vh, 168px); }
.lede__catch--middle { top: 50%; transform: translateY(-50%); }
.lede__catch--right { text-align: right; }

/* 言葉が乗る辺りだけ、写真をやわらかく沈める。
   文字側の影は枠で切られてしまうので、可読性はこの面で確保する。 */
.lede__catch::before {
  content: "";
  position: absolute;
  inset: -60% -10% -70%;
  background: radial-gradient(58% 100% at 26% 50%, rgba(6, 22, 40, .5), rgba(6, 22, 40, 0) 74%);
  pointer-events: none;
}
.lede__catch--right::before {
  background: radial-gradient(58% 100% at 74% 50%, rgba(6, 22, 40, .5), rgba(6, 22, 40, 0) 74%);
}

/* 白抜きの文字は同じ太さでも細く見えるので、本文の見出しより一段だけ太くする */
.lede__en,
.lede__ja {
  position: relative;
  overflow: hidden;
  color: #fff;
}
.lede__en {
  font-family: var(--en);
  font-size: clamp(36px, 6.2vw, 88px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: .01em;
  text-shadow: 0 1px 4px rgba(6, 22, 40, .45);
}
.lede__ja {
  margin-top: clamp(14px, 1.8vw, 24px);
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 500;
  letter-spacing: .22em;
  line-height: 1.8;
  text-shadow: 0 1px 3px rgba(6, 22, 40, .5);
}

/* 枠の高さぶん下に沈めておき、写真が変わったら上げる。英字が先、日本語が少し遅れて続く */
.lede__en > span,
.lede__ja > span {
  display: block;
  transform: translateY(105%);
  transition: transform .5s var(--ease);
}
.is-show .lede__en > span {
  transform: none;
  transition-duration: .85s;
  transition-delay: .28s;
}
.is-show .lede__ja > span {
  transform: none;
  transition-duration: .85s;
  transition-delay: .46s;
}

/* 現在位置と手動切り替え。写真の邪魔をしない大きさに留める */
.lede__thumbs {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 4vh, 44px);
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}
.lede__thumb {
  width: 34px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
  transition: background-color .35s var(--ease), transform .35s var(--ease);
}
.lede__thumb:hover { background: rgba(255, 255, 255, .8); }
.lede__thumb[aria-current="true"] { background: #fff; transform: scaleY(1.8); }

/* ── 導入文 ───────────────────────────── */
.intro { padding-top: clamp(50px, 7vw, 96px); }
.intro__text {
  max-width: var(--measure);
  color: var(--sumi-70);
  font-size: 17px;
  line-height: 2.1;
}
.intro__text b { color: var(--sumi); font-weight: 700; }

/* ── 経営理念 ─────────────────────────── */
.vision { overflow: hidden; }
.vision__inr { position: relative; }
/* 背景に敷く英字。読ませるものではないので、紙にごく近い明るさに落とす */
.vision__ghost {
  position: absolute;
  top: -.26em;
  right: -.04em;
  z-index: 0;
  font-family: var(--en);
  font-size: clamp(70px, 14vw, 200px);
  font-weight: 200;
  line-height: .98;
  letter-spacing: .005em;
  text-align: right;
  color: var(--ghost);
  pointer-events: none;
  user-select: none;
}
.vision__body { position: relative; z-index: 1; }
.vision__en {
  font-family: var(--en);
  font-size: 13px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--sumi-50);
}
.vision__phrase {
  margin-top: 24px;
  font-family: var(--mincho);
  font-size: clamp(26px, 4vw, 50px);
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: .1em;
  color: var(--ai);
}
.vision__text { max-width: var(--measure); margin-top: clamp(30px, 3.6vw, 50px); }
.vision__text p { color: var(--sumi-70); font-size: 16.5px; line-height: 2.15; }
.vision__text p + p { margin-top: 1.5em; }
.vision__text .vision__act { margin-top: clamp(26px, 3vw, 40px); }

/* ── 業務分野 ─────────────────────────── */
.lineup {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3.2vw, 48px) clamp(24px, 3vw, 44px);
}
/* 2枚目・5枚目を沈めて段違いにする */
.lineup .card:nth-child(3n+2) { margin-top: clamp(38px, 6vw, 92px); }

.card {
  display: block;
  padding: clamp(24px, 2.6vw, 34px) 0 clamp(24px, 2.6vw, 32px);
  border-top: 1px solid rgba(11, 42, 74, .16);
  color: var(--sumi);
  transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-6px); color: var(--sumi); }
.card__num {
  display: block;
  font-family: var(--en);
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--ai);
  opacity: .3;
  transition: opacity .45s var(--ease);
}
.card:hover .card__num { opacity: 1; }
.card__title {
  display: block;
  margin-top: 18px;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .07em;
  color: var(--ai);
}
.card__text { display: block; margin-top: 14px; color: var(--sumi-70); font-size: 15.5px; line-height: 2.05; }
.card__tags {
  display: block;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(11, 42, 74, .1);
  color: var(--sumi-50);
  font-size: 13.5px;
  letter-spacing: .04em;
  line-height: 1.85;
}

/* ── 事務所案内 ───────────────────────── */
.plates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 72px);
  align-items: start;
}
.plate--low { margin-top: clamp(36px, 8vw, 132px); }
.plate { display: block; color: var(--sumi); }
.plate__photo {
  display: block;
  aspect-ratio: 4 / 3;
  background-color: var(--mizu);
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity .5s var(--ease);
}
.plate:hover .plate__photo { opacity: .86; }
/* 3拠点とグループ会社を抱える法人の姿と、場所を表す建物の外観で役割を分ける */
/* 画面に近づいてから読み込む（main.js が is-near を付ける）。JSが動かない環境では最初から出す */
.plate__photo--about,
.plate__photo--access { background-position: center center; }
html:not(.js) .plate__photo--about,
.plate__photo--about.is-near { background-image: url("/assets/global-network.webp"); }
html:not(.js) .plate__photo--access,
.plate__photo--access.is-near { background-image: url("/assets/office-building.webp"); }
.plate__en {
  display: block;
  margin-top: clamp(20px, 2.2vw, 30px);
  font-family: var(--en);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: .005em;
  color: var(--ai);
}
.plate__ja {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  letter-spacing: .16em;
  color: var(--sumi-50);
}
.plate__note {
  display: block;
  max-width: 30em;
  margin-top: 18px;
  color: var(--sumi-70);
  font-size: 15px;
  line-height: 2;
}
.plate__more {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  margin-top: clamp(20px, 2.4vw, 30px);
  font-size: 14.5px;
  letter-spacing: .06em;
  color: var(--sumi-50);
}
.plate__more::before { content: ""; flex: 1; height: 1px; background: var(--hair); }
.plate:hover .plate__more { color: var(--ai); }

/* ══════════════════════════════════════
   セクションの器
   ══════════════════════════════════════ */
.band { padding: clamp(72px, 9vw, 128px) 0; }
.band--mizu { background: var(--mizu); }
.band--paper2 { background: var(--paper-2); }
.band--ai { background: var(--ai); color: #fff; }

/* 見出しは英字を主役にする。大きく・極細に組み、日本語はその足元に小さく添える。
   日本語だけを大きくすると画面が重くなるので、意味は日本語、佇まいは英字に持たせる。 */
.shead { margin-bottom: clamp(40px, 5vw, 64px); }
.shead__en {
  display: block;
  font-family: var(--en);
  font-size: clamp(38px, 5.6vw, 76px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: .005em;
  color: var(--ai);
}
.shead__ja {
  margin-top: 12px;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .14em;
  color: var(--sumi-50);
}
.shead__lead {
  margin-top: 26px;
  max-width: var(--measure);
  color: var(--sumi-70);
  font-size: 16.5px;
  line-height: 2.1;
}
/* 見出しと「すべて見る」の間は、細い罫線1本でつなぐ */
.shead--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
}
.shead__act {
  display: flex;
  flex: 1 1 220px;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding-bottom: 8px;
}
.shead__act::before {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hair);
}
.band--mizu .shead__act::before { background: rgba(11, 42, 74, .14); }
.band--ai .shead__en { color: #fff; }
.band--ai .shead__ja { color: rgba(255, 255, 255, .62); }
.band--ai .shead__lead { color: rgba(255, 255, 255, .8); }
.band--ai .shead__act::before { background: rgba(255, 255, 255, .24); }


/* ══════════════════════════════════════
   拠点
   ══════════════════════════════════════ */
/* 面を塗らず、上に1本引いた罫線の下に3拠点を並べる */
.bases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(28px, 3.4vw, 52px);
  padding-top: clamp(30px, 3.4vw, 46px);
  border-top: 1px solid var(--hair);
}
.band--mizu .bases { border-top-color: rgba(11, 42, 74, .16); }
.base { padding: 0; background: none; }
/* 都市名は英字を大きく極細に。経度は右肩に小さく添える */
.base__city {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--ai);
  font-family: var(--en);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: .005em;
}
.base__city .num { font-size: 12px; color: var(--sumi-50); letter-spacing: .1em; }
.base__name {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: .04em;
}
.base__addr { margin-top: 14px; color: var(--sumi-70); font-size: 15.5px; line-height: 2; }
.base__links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }

/* ══════════════════════════════════════
   お知らせ
   ══════════════════════════════════════ */
/* 面で区切らず、髪の毛のような罫線1本で区切る。日付・種別・見出しを横一列に置く。 */
.notices { display: grid; border-top: 1px solid var(--hair); }
.notice {
  position: relative;
  display: grid;
  grid-template-columns: 124px 104px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: clamp(22px, 2.4vw, 30px) 4px;
  border-bottom: 1px solid var(--hair);
  color: var(--sumi);
  transition: color .3s var(--ease);
}
/* 下線を左から引き直すことで、面を塗らずに反応を伝える */
.notice::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--ai);
  transition: width .45s var(--ease);
}
.notice:hover { color: var(--ai); }
.notice:hover::after { width: 100%; }
.notice__date { color: var(--sumi-50); font-family: var(--data); font-size: 14.5px; letter-spacing: .04em; }
.notice__kind {
  justify-self: start;
  padding: 5px 12px;
  box-shadow: inset 0 0 0 1px var(--keisen);
  color: var(--sumi-50);
  font-size: 12.5px;
  letter-spacing: .08em;
  line-height: 1.5;
}
.notice__title { font-size: 16.5px; line-height: 1.8; }

/* ── 罫線だけの一覧（採用など） ─────────────── */
.rows { border-top: 1px solid var(--hair); }
.rows a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 8px clamp(20px, 4vw, 56px);
  padding: clamp(26px, 3vw, 38px) 4px;
  border-bottom: 1px solid var(--hair);
  color: var(--sumi);
  transition: color .3s var(--ease);
}
.rows a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--ai);
  transition: width .45s var(--ease);
}
.rows a:hover { color: var(--ai); }
.rows a:hover::after { width: 100%; }
/* 見出しと同じ組み方。英字が主、日本語はその足元 */
.rows__en {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--en);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: .005em;
  color: var(--ai);
}
.rows__ja {
  grid-column: 1;
  grid-row: 2;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--sumi-50);
}
.rows__note {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--sumi-50);
  font-size: 15px;
  line-height: 1.9;
}
.band--paper2 .rows,
.band--paper2 .rows a { border-color: rgba(11, 42, 74, .1); }

/* ══════════════════════════════════════
   お知らせ記事
   本文は元記事のHTMLから属性を落として取り込んでいるので、
   クラスではなく子孫セレクタで組む。
   ══════════════════════════════════════ */
.post__meta {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 18px;
  color: var(--sumi-50);
  font-size: 15px;
}
.post__kind { color: var(--shu); letter-spacing: .08em; }

.post { max-width: 44em; }
.post > :first-child { margin-top: 0; }

.post p {
  margin-top: 1.5em;
  color: var(--sumi-70);
  font-size: 16.5px;
  line-height: 2.15;
}
.post h2 {
  margin-top: 2.4em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--keisen);
  font-family: var(--mincho);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .07em;
  color: var(--ai);
}
.post h3 {
  margin-top: 2em;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .04em;
}
.post h4 { margin-top: 1.8em; font-size: 16.5px; font-weight: 700; }

.post ul, .post ol { margin-top: 1.4em; display: grid; gap: 10px; }
.post ol { counter-reset: post-ol; }
.post li {
  position: relative;
  padding-left: 1.4em;
  color: var(--sumi-70);
  font-size: 16px;
  line-height: 2;
}
.post ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan, var(--ai-ink));
}
.post ol > li { counter-increment: post-ol; }
.post ol > li::before {
  content: counter(post-ol) ".";
  position: absolute;
  left: 0;
  color: var(--ai-ink);
  font-family: var(--data);
  font-variant-numeric: tabular-nums;
}
/* 画像を並べている段（歳入・歳出の円グラフなど）は箇条書きにせず、横に並べる。
   1カラムに伸ばすと元の解像度を超えてぼやけるため。 */
.post li > img { margin-top: 12px; }
.post li:has(> img)::before { display: none; }
.post li:has(> img) { padding-left: 0; text-align: center; }
.post ul:has(> li > img) {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 3vw, 32px);
}
.post ul:has(> li > img) h3 { margin-top: 0; font-size: 16px; }

.post img { margin-top: 1.4em; max-width: 100%; height: auto; }

.post table { width: 100%; border-collapse: collapse; margin-top: 1.6em; }
.post caption {
  margin-bottom: 10px;
  color: var(--ai);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: left;
}
.post th, .post td {
  padding: 14px 16px;
  text-align: left;
  font-size: 15px;
  line-height: 1.9;
  vertical-align: top;
  background: var(--paper-2);
  box-shadow: 0 1px 0 var(--paper), 1px 0 0 var(--paper);
}
.post th { color: var(--ai); font-weight: 700; }
.post td { color: var(--sumi-70); font-variant-numeric: tabular-nums; }
.post thead th { background: var(--mizu); }

.post a { box-shadow: 0 1px 0 rgba(11, 42, 74, .3); }
.post a:hover { box-shadow: 0 1px 0 var(--shu); }

/* 英語記事は欧文の行長・行間に合わせる */
html[lang="en"] .post { max-width: var(--measure); }
html[lang="en"] .post p,
html[lang="en"] .post li,
html[lang="en"] .post th,
html[lang="en"] .post td { line-height: 1.8; }

/* ══════════════════════════════════════
   下層ページの見出し
   ══════════════════════════════════════ */
/* 下層ページの柱。トップの見出しと同じ作法で、英字を大きく極細に組む */
.phead {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 6vw, 84px)) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--hair);
}
.phead__en {
  display: block;
  font-family: var(--en);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: .005em;
  color: var(--ai);
}
.phead__ja {
  margin-top: 12px;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .14em;
  color: var(--sumi-50);
}
.phead__lead { margin-top: 22px; max-width: var(--measure); color: var(--sumi-70); font-size: 16.5px; line-height: 2.1; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--sumi-50);
  font-size: 14px;
}
.crumbs li::after { content: "／"; margin-left: 10px; }
.crumbs li:last-child::after { content: none; }

.jump { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 32px; }
.jump a { color: var(--ai); font-size: 15px; letter-spacing: .04em; box-shadow: 0 1px 0 rgba(11, 42, 74, .3); }
.jump a:hover { color: var(--shu); box-shadow: 0 1px 0 var(--shu); }

/* ══════════════════════════════════════
   下層の中身
   ══════════════════════════════════════ */
/* 中の文は1行34emで止まるので、面だけ器いっぱいに広げると右が大きく空く。
   面のほうを文に合わせて抑える。 */
.quote { max-width: 46em; padding: clamp(30px, 3.4vw, 52px); background: var(--mizu); }
.quote__title {
  font-family: var(--mincho);
  font-size: clamp(22px, 2.8vw, 31px);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .09em;
  color: var(--ai);
}
.quote p { max-width: var(--measure); margin-top: 22px; color: var(--sumi-70); font-size: 16.5px; line-height: 2.15; }
.quote p + p { margin-top: 1.5em; }

/* 人物 */
.folks { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 2px; }
.folk { padding: clamp(28px, 3vw, 42px); background: var(--paper-2); }
.folk__role { color: var(--shu); font-family: var(--data); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; }
.folk__name {
  margin-top: 16px;
  font-family: var(--mincho);
  font-size: clamp(23px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: .12em;
}

/* 顔写真がある人だけ、写真と肩書を横に並べる */
.folk__head { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 26px); }
.folk__head .folk__name { margin-top: 10px; }
.folk__photo {
  flex: none;
  width: 104px;
  height: 104px;
  object-fit: cover;
  background: var(--mizu);
}
.folk__name small { margin-left: 12px; font-family: var(--gothic); color: var(--sumi-50); font-size: 14px; letter-spacing: .04em; }
.folk__text { max-width: var(--measure); margin-top: 20px; color: var(--sumi-70); font-size: 16px; line-height: 2.05; }
.folk__text p + p { margin-top: 1.4em; }

.folk__hist { margin-top: 28px; }
.folk__hist-head { margin-bottom: 14px; color: var(--ai-ink); font-family: var(--data); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; }
.hist { display: grid; gap: 10px; }
.hist div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 18px; font-size: 15px; line-height: 1.85; }
.hist dt { color: var(--sumi-50); font-family: var(--data); font-variant-numeric: tabular-nums; }
.hist dd { color: var(--sumi-70); }

/* サービス詳細 */
/* 面の中は「ラベル列＋1行34emの本文」で幅が決まる。
   器いっぱいに広げると本文の右が大きく空くので、必要な幅で止める。 */
.svcs { display: grid; gap: 2px; max-width: 62em; }
.svc {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(28px, 3.4vw, 46px);
  background: var(--paper-2);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.svc__title {
  font-family: var(--mincho);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .07em;
  color: var(--ai);
}
.svc__phase { margin-top: 12px; color: var(--sumi-50); font-size: 14.5px; letter-spacing: .04em; }
.svc__text { max-width: var(--measure); color: var(--sumi-70); font-size: 16.5px; line-height: 2.15; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; }
.svc__tags span { color: var(--ai-ink); font-size: 14.5px; letter-spacing: .02em; }
.svc__tags span::before { content: "・"; }

/* 表 */
.tablewrap { overflow-x: auto; }
/* 値の列が長くなりすぎないよう表全体に上限を設ける */
.spec { width: 100%; max-width: 880px; border-collapse: collapse; }
.spec th, .spec td {
  padding: 24px 22px;
  text-align: left;
  font-size: 16px;
  line-height: 2;
  vertical-align: top;
  background: var(--paper-2);
  box-shadow: 0 2px 0 var(--paper);
}
.spec th { width: 210px; color: var(--ai); font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.spec td { color: var(--sumi-70); }
.band--mizu .spec th, .band--mizu .spec td { background: rgba(255, 255, 255, .78); box-shadow: 0 2px 0 var(--mizu); }

/* アクセス */
.access { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 3.4vw, 48px); align-items: start; }
/* 所在地の地図。Googleマップの埋め込みを枠いっぱいに敷く。
   読み込みは lazy にして、ページ表示の足を引っ張らないようにする。 */
/* min-height と aspect-ratio を併記すると、高さから幅が逆算されて枠をはみ出す。
   高さは比率だけで決める。 */
.map {
  aspect-ratio: 4 / 3;
  background: var(--mizu);
}
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/* 海外拠点の地図は器いっぱいに出すので、4:3のままだと縦に伸びすぎる。
   旧サイトの 960×450 に近い横長にする（min-height は併記しない。幅が逆算されて枠を越えるため） */
.map--wide { aspect-ratio: 21 / 9; margin-top: clamp(32px, 4vw, 52px); }
/* 760px以下はアクセスページと同じ 4:3。さらに 560px 以下では下の .map の 1:1 が勝つ（後ろにあるため） */
@media (max-width: 760px) { .map--wide { aspect-ratio: 4 / 3; } }

.map__act { margin-top: 26px; }

.routes { display: grid; gap: 2px; }
.routes li { padding: 20px 24px; background: var(--paper-2); color: var(--sumi-70); font-size: 16px; line-height: 1.9; }
.routes .num { color: var(--sumi); }

/* 採用 */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2px; }
.role { padding: clamp(30px, 3.4vw, 46px); background: var(--paper-2); }
.role__kind { color: var(--shu); font-family: var(--data); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; }
.role__title { margin-top: 14px; font-family: var(--mincho); font-size: clamp(22px, 2.4vw, 27px); font-weight: 600; letter-spacing: .09em; }
.role__text { max-width: var(--measure); margin-top: 18px; color: var(--sumi-70); font-size: 16px; line-height: 2.05; }
.role__act { margin-top: 30px; }

/* ══════════════════════════════════════
   資料ダウンロード（/materials/）

   ・一覧は採用の行（.rows）と同じ作法。面を塗らず、髪の毛のような罫線で仕切り、
     反応は下線を端から端まで引くことで伝える。
   ・資料の種別（PDF / XLSX）は色を塗ったタグにせず、細い枠のラベルにする。
     一覧に色面が並ぶと、藍と朱で作っている全体の抑揚が崩れるため。
   ══════════════════════════════════════ */
.mats { border-top: 1px solid var(--hair); }
.mats li { min-width: 0; }
.mats a {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px clamp(18px, 2.6vw, 34px);
  padding: clamp(24px, 2.8vw, 34px) 4px;
  border-bottom: 1px solid var(--hair);
  color: var(--sumi);
  transition: color .3s var(--ease);
}
.mats a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--ai);
  transition: width .45s var(--ease);
}
.mats a:hover { color: var(--ai); }
.mats a:hover::after { width: 100%; }

.mat__type {
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-self: start;
  padding: 5px 11px;
  box-shadow: inset 0 0 0 1px var(--keisen);
  color: var(--sumi-50);
  font-family: var(--data);
  font-size: 12px;
  letter-spacing: .1em;
  line-height: 1.5;
  white-space: nowrap;
}
.mat__type--pdf { color: var(--shu); box-shadow: inset 0 0 0 1px rgba(166, 57, 46, .34); }
.mat__type--xlsx { color: var(--ai-ink); box-shadow: inset 0 0 0 1px rgba(11, 42, 74, .24); }

.mat__title {
  grid-column: 2;
  grid-row: 1;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .04em;
}
.mat__note {
  grid-column: 2;
  grid-row: 2;
  margin-top: 2px;
  color: var(--sumi-50);
  font-size: 15px;
  line-height: 1.9;
}
.mat__more {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--sumi-50);
  font-size: 14.5px;
  letter-spacing: .05em;
  white-space: nowrap;
}
.mat__more::after {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: width .3s var(--ease);
}
.mats a:hover .mat__more { color: var(--ai); }
.mats a:hover .mat__more::after { width: 30px; }

/* ── 選んだ資料の確認 ─────────────────────── */
.matpick {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
  max-width: 46em;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--mizu);
}
/* 一覧では格子の中に置くラベルだが、ここでは横並びなので位置指定は効かない。
   下地が水色になるぶん、枠だけでは沈むので白を敷く。 */
.matpick .mat__type { background: rgba(255, 255, 255, .72); }
.matpick__body { display: grid; gap: 4px; min-width: 0; }
.matpick__body small { color: var(--sumi-50); font-size: 13px; letter-spacing: .1em; }
.matpick__body strong { font-size: 17px; font-weight: 700; line-height: 1.7; letter-spacing: .04em; }

/* ── フォームの見出し ─────────────────────── */
.fhead {
  max-width: 46em;
  margin-top: clamp(44px, 5vw, 68px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hair);
}
.fhead__en {
  display: block;
  font-family: var(--en);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: .005em;
  color: var(--ai);
}
.fhead__ja {
  margin-top: 10px;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--sumi-50);
}
.fhead__lead { margin-top: 14px; color: var(--sumi-70); font-size: 15.5px; line-height: 1.9; }

/* ── 入力欄 ───────────────────────────── */
.form { max-width: 46em; margin-top: clamp(28px, 3vw, 40px); }
.field { min-width: 0; }
.field + .field,
.field + .field-row,
.field-row + .field { margin-top: 26px; }

.field > label {
  display: block;
  margin-bottom: 10px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .06em;
}
.req {
  margin-left: 10px;
  padding: 3px 8px;
  background: var(--shu);
  color: #fff;
  font-family: var(--gothic);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  vertical-align: 2px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="file"],
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--keisen);
  border-radius: 0;
  color: var(--sumi);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--ai);
  box-shadow: 0 0 0 3px rgba(11, 42, 74, .12);
}

/* 自由記述。縦だけ伸ばせるようにする（横に伸ばすと器の幅を越えるため） */
.field textarea {
  min-height: 170px;
  resize: vertical;
}

/* ファイル選択。ブラウザ既定のボタンは .btn--quiet に寄せる */
.field input[type="file"] {
  padding: 11px 14px;
  font-size: 15px;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right: 16px;
  padding: 9px 18px;
  background: transparent;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--keisen);
  color: var(--ai);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.field input[type="file"]::file-selector-button:hover {
  background: var(--mizu);
  box-shadow: inset 0 0 0 1px var(--ai);
}

/* 選んだファイルの名前。添付できたことがその場で分かるように出す */
.filepick {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
  padding-left: 16px;
  border-left: 2px solid var(--ai);
  color: var(--ai);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field-row .field + .field { margin-top: 0; }

.hint { margin-top: 8px; color: var(--sumi-50); font-size: 13.5px; line-height: 1.8; }
.error { display: none; margin-top: 8px; color: var(--shu); font-size: 13.5px; line-height: 1.8; }
.field.invalid .error { display: block; }
.field.invalid input,
.field.invalid textarea,
.field.invalid select { border-color: var(--shu); background: #fdf8f7; }

/* スパム対策のハニーポット項目。利用者には見えないが、DOM上には存在する */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── 同意 ───────────────────────────── */
.agree { margin-top: clamp(30px, 3.4vw, 44px); padding: clamp(22px, 2.6vw, 30px); background: var(--paper-2); }
.agree__lead { color: var(--sumi-70); font-size: 15.5px; line-height: 1.9; }
.agree__lead a { box-shadow: 0 1px 0 rgba(11, 42, 74, .3); }
.agree__lead a:hover { box-shadow: 0 1px 0 var(--shu); }
.agree .field { margin-top: 16px; }
.agree__check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
}
.agree__check input {
  flex: none;
  width: 20px;
  height: 20px;
  accent-color: var(--ai);
}

.form__act { margin-top: clamp(34px, 4vw, 50px); }
.form__act .btn:disabled,
.form__act .btn:disabled:hover { background: var(--sumi-50); cursor: not-allowed; }

.form-error {
  max-width: 46em;
  margin-top: clamp(24px, 3vw, 34px);
  padding: 16px 20px;
  background: #fbf1f0;
  box-shadow: inset 0 0 0 1px rgba(166, 57, 46, .3);
  color: var(--shu);
  font-size: 15px;
  line-height: 1.9;
}

/* ── 送信完了 ─────────────────────────── */
.done { max-width: 46em; padding: clamp(32px, 4vw, 56px); background: var(--mizu); text-align: center; }
.done__mark {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 24px;
  border: 1px solid var(--ai);
  border-radius: 50%;
}
.done__mark::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 18px;
  width: 21px;
  height: 10px;
  border-left: 2px solid var(--ai);
  border-bottom: 2px solid var(--ai);
  transform: rotate(-45deg);
}
.done__title {
  margin-top: 10px;
  font-family: var(--mincho);
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .09em;
  color: var(--ai);
}
.done__text { margin-top: 14px; color: var(--sumi-70); font-size: 16px; line-height: 2; }
.done__act { margin-top: clamp(26px, 3vw, 36px); }

/* ══════════════════════════════════════
   相談の帯・フッター
   ══════════════════════════════════════ */
.talk { padding: clamp(56px, 7vw, 92px) 0; background: var(--ai); color: #fff; }
.talk__inr {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
}
/* 見出しの作法をそろえる。英字を大きく極細に、日本語の呼びかけはその下に置く */
.talk__en {
  font-family: var(--en);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: .005em;
  color: #fff;
}
.talk__title {
  margin-top: 20px;
  font-family: var(--mincho);
  font-size: clamp(21px, 2.5vw, 29px);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .09em;
}
.talk__lead { margin-top: 18px; max-width: 30em; color: rgba(255, 255, 255, .82); font-size: 16px; line-height: 2.05; }
.talk__act { display: flex; flex-wrap: wrap; gap: 14px; }

.footer { background: var(--sumi); color: rgba(255, 255, 255, .74); font-size: 15px; }
.footer__inr {
  display: grid;
  /* 器を広げたぶん、住所が3行に折れないだけの幅を左の列に持たせる */
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 68px);
  padding: clamp(52px, 6.5vw, 84px) 0 clamp(36px, 4.5vw, 52px);
}
.footer__logo { width: 190px; filter: brightness(0) invert(1); opacity: .9; }
.footer__address { margin-top: 24px; font-size: 15px; line-height: 2.1; }
.footer__note { margin-top: 14px; color: rgba(255, 255, 255, .58); font-size: 14px; line-height: 1.9; }

.footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(22px, 3vw, 40px); }
.footer__head { margin-bottom: 18px; color: #fff; font-family: var(--en); font-size: 17px; font-weight: 300; letter-spacing: .1em; }
.footer__col li + li { margin-top: 12px; }
.footer__col a { color: rgba(255, 255, 255, .72); font-size: 14.5px; line-height: 1.7; }
.footer__col a:hover { color: #fff; }

.footer__bottom-inr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer__copy { color: rgba(255, 255, 255, .58); font-family: var(--data); font-size: 13px; letter-spacing: .04em; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a { color: rgba(255, 255, 255, .58); font-size: 13.5px; }
.footer__legal a:hover { color: #fff; }

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 80;
  width: 52px;
  height: 52px;
  border: 0;
  background: var(--ai);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .3s var(--ease);
}
.to-top::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateX(-50%) rotate(-45deg);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--shu); }

/* ══════════════════════════════════════
   スクロールに応じた表示
   ══════════════════════════════════════ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .09s; }
[data-reveal-delay="2"] { transition-delay: .18s; }
[data-reveal-delay="3"] { transition-delay: .27s; }
[data-reveal-delay="4"] { transition-delay: .36s; }

/* ══════════════════════════════════════
   英語ページ
   和文用の設定（字間を開ける・明朝・1行34em）は欧文では読みにくいので差し替える
   ══════════════════════════════════════ */
html[lang="en"] {
  /* 見出しは欧文セリフ、本文は欧文サンセリフ。和文フォントの欧文グリフは使わない */
  --gothic: "Segoe UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mincho: Georgia, "Iowan Old Style", "Times New Roman", serif;
  /* 欧文は1行65〜75文字が読みやすい */
  --measure: 38em;
}
html[lang="en"] body {
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: normal;
  font-feature-settings: normal;
}
/* 和文向けに開けていた字間を戻す */
html[lang="en"] .quote__title,
html[lang="en"] .talk__title,
html[lang="en"] .vision__phrase,
html[lang="en"] .svc__title,
html[lang="en"] .folk__name,
html[lang="en"] .role__title,
html[lang="en"] .card__title,
html[lang="en"] .base__name { letter-spacing: .005em; }

/* 見出しに添える小さい行は、和文ほど字間を開けると語のかたまりが崩れる */
html[lang="en"] .shead__ja,
html[lang="en"] .phead__ja { letter-spacing: .06em; line-height: 1.3; }
html[lang="en"] .lede__ja,
html[lang="en"] .plate__ja,
html[lang="en"] .rows__ja { letter-spacing: .08em; }
html[lang="en"] .vision__phrase { line-height: 1.4; }
html[lang="en"] .talk__title { line-height: 1.3; }

/* 段落は欧文の行間に合わせて詰める */
html[lang="en"] .intro__text,
html[lang="en"] .shead__lead,
html[lang="en"] .phead__lead,
html[lang="en"] .vision__text p,
html[lang="en"] .quote p,
html[lang="en"] .card__text,
html[lang="en"] .plate__note,
html[lang="en"] .svc__text,
html[lang="en"] .folk__text,
html[lang="en"] .role__text,
html[lang="en"] .talk__lead,
html[lang="en"] .base__addr,
html[lang="en"] .spec th,
html[lang="en"] .spec td,
html[lang="en"] .routes li { line-height: 1.8; }

/* 表の値も欧文の適正な行長（65〜75文字）に収める */
html[lang="en"] .spec { max-width: 780px; }

/* ══════════════════════════════════════
   画面幅への対応
   ══════════════════════════════════════ */
/* ヘッダーをドロワーに切り替える幅。
   ナビが7項目（会社概要／業務案内／お知らせ／アクセス／採用情報／海外拠点／資料ダウンロード）
   あり、この幅を下回ると言語切り替えが画面の外へ押し出される。
   ドロワーへの切り替えだけを先に行い、本文の段組みは 1080px のままにしてある。 */
@media (max-width: 1180px) {
  /* backdrop-filter は包含ブロックを作るため、この指定があるとドロワーの position:fixed が
     ビューポートではなくヘッダー（高さ62px）を基準にしてしまい、1項目しか出せなくなる。
     この幅ではヘッダーの背景を不透明にして、すりガラスをやめる。 */
  .header {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hamburger { display: inline-flex; }
  /* ナビが固定配置に移るので、右寄せの役目を言語切り替えが引き継ぐ。
     左隣にナビが並ばなくなるため、区切りの縦線も外す */
  .lang { margin-left: auto; padding-left: 0; }
  .lang::before { display: none; }

  .gnav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 95;
    width: min(86vw, 350px);
    margin: 0;
    padding: calc(var(--header-h) + 28px) 28px 44px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--paper);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .42s var(--ease), visibility .42s;
    overflow-y: auto;
  }
  .gnav.is-open { transform: none; visibility: visible; }
  .gnav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .gnav__list a { padding: 17px 16px; background: var(--paper-2); font-size: 16.5px; }
  /* ドロワーでは全項目が面なので、いま見ているページだけ藍寄りの面にして分ける */
  .gnav__list a[aria-current="page"] { background: var(--mizu); }
}

/* 本文の段組みを1列へ落とす幅 */
@media (max-width: 1080px) {
  .svc { grid-template-columns: 1fr; gap: 16px; }
  .footer__inr { grid-template-columns: 1fr; }

  /* 3列では1枚あたりが狭くなりすぎるので2列に。段違いは偶数枚目に付け替える */
  .lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lineup .card:nth-child(3n+2) { margin-top: 0; }
  .lineup .card:nth-child(2n) { margin-top: clamp(32px, 5vw, 64px); }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; --fs-body: 16.5px; }

  .notice { grid-template-columns: auto 1fr; gap: 8px 16px; }
  .notice__title { grid-column: 1 / -1; }

  /* 段違いは画面が狭いと段差にしか見えないので、1列に落として段差も消す */
  .lineup { grid-template-columns: minmax(0, 1fr); }
  .lineup .card:nth-child(3n+2),
  .lineup .card:nth-child(2n) { margin-top: 0; }
  .plates { grid-template-columns: minmax(0, 1fr); }
  .plate--low { margin-top: 0; }

  /* 狭い画面では言葉の置き場所を下ひとつにそろえる。左右に振ると行が折れて読みにくい */
  .lede__catch,
  .lede__catch--top,
  .lede__catch--middle {
    top: auto;
    bottom: clamp(76px, 14vh, 130px);
    transform: none;
    text-align: left;
  }
  .lede__catch--right::before {
    background: radial-gradient(58% 100% at 26% 50%, rgba(6, 22, 40, .5), rgba(6, 22, 40, 0) 74%);
  }
  .vision__ghost { font-size: clamp(56px, 17vw, 96px); opacity: .8; }

  .rows a { gap: 6px 20px; }
  .rows__en { min-width: 0; flex: 1 1 100%; }
  .rows__note { flex: 1 1 100%; }
  .hist div { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
  .spec th, .spec td { display: block; width: auto; box-shadow: none; }
  .spec th { padding-bottom: 4px; }
  .spec td { padding-top: 0; margin-bottom: 2px; }
  .talk__act { width: 100%; }
  .talk__act .btn { flex: 1 1 240px; }

  /* 資料の行は3列だと説明文の幅が足りなくなるので、種別と資料名だけを横に並べ、
     説明と誘導は下へ送る */
  .mats a { grid-template-columns: auto minmax(0, 1fr); }
  .mat__type { grid-row: 1; }
  .mat__note { grid-column: 1 / -1; grid-row: 2; margin-top: 8px; }
  .mat__more { grid-column: 1 / -1; grid-row: 3; margin-top: 12px; }
}

@media (max-width: 560px) {
  .btn { width: 100%; min-width: 0; }
  .folks { grid-template-columns: 1fr; }

  /* 幅が狭いと 4:3 では地図が低くなりすぎるので、正方形にして見える範囲を確保する */
  .map { aspect-ratio: 1 / 1; }

  /* ロゴ・言語切り替え・ハンバーガーが一列に収まらないので、まずラベルを落とす */
  .header__inr { gap: 12px; }
  .header__logo { width: 128px; }
  /* 幅が狭まるぶん、字が詰まりすぎて折り返さないよう一段小さくする */
  .header__name { font-size: 8.5px; }
  .hamburger__label { display: none; }
  .lang__item { font-size: 12.5px; }
  .lang__item + .lang__item { margin-left: 9px; padding-left: 9px; }

  /* 背景の英字は本文と重なって読みづらくなるため、狭い画面では出さない */
  .vision__ghost { display: none; }

  /* 縦長に切り取ると受付のロゴが枠の外に出るので、1枚目だけ寄せる位置をずらす */
  .lede__shot--o1 { background-position: 34% center; }

  .rows a { grid-template-columns: minmax(0, 1fr); }
  .rows__note { grid-column: 1; grid-row: 3; margin-top: 8px; }

  /* 氏・名を横に並べると1つあたりが狭くなりすぎる */
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .field-row .field + .field { margin-top: 26px; }
  /* 資料の確認は、狭い画面ではラベルを上に置いて資料名に幅を渡す */
  .matpick { flex-direction: column; align-items: flex-start; }
}

/* 動きを減らす設定を尊重する */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  /* 覆いの社名も、出てくる過程が見えないと「最初の一枚」の意味がないので残す。
     沈んだ位置から上がるだけの小さな動きなので、時間だけ詰める。 */
  .loading__logo {
    animation-duration: .55s !important;
    animation-delay: .08s !important;
  }
  .loading__name > span {
    animation-duration: .5s !important;
    animation-delay: .26s !important;
  }
  .js .loading { transition-duration: .45s !important; }

  /* キービジュアルは、この設定でも送りと言葉の動きを残す。
     この指定が避けたいのは前庭系に響く大きな動き（拡大縮小・視差・回転）で、
     淡い重ね替えと1行ぶんのせり上がりはその範囲に入らない。
     上の * 指定を打ち消すので、ここだけ !important を使う。 */
  .lede__shot {
    animation: none !important;
    transform: none !important;
    transition-duration: .8s !important;
  }
  .lede__shot.is-leaving { transition: none !important; }
  .lede__en > span,
  .lede__ja > span { transition-duration: .45s !important; }
  .is-show .lede__en > span { transition-delay: .18s !important; }
  .is-show .lede__ja > span { transition-delay: .3s !important; }
  .lede__catch:not(.is-show) { transition-delay: .3s !important; }

}

@media print {
  .header, .gnav, .hamburger, .to-top, .talk, .nav-overlay,
  .lede__thumbs, .vision__ghost { display: none !important; }
  /* 紙では送りが効かないので、1枚目とその言葉だけを出す */
  .lede__stage { height: 320px; }
  .lede__shot:not(.is-active), .lede__catch:not(.is-show) { display: none !important; }
  body { color: #000; background: #fff; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
