/* =========================================================
   Artriam Corporate Site
   モノクローム（白黒）／グロテスク・サンセリフ
   ブランドカラー（あずき）とロゴ画像は一旦すべて排除している
   ========================================================= */

:root {
  --paper: #ffffff;
  --paper-2: #e8e8ed;
  --paper-3: #f5f5f7;
  --ink: #000000;
  --ink-mid: #1d1d1f;
  --ink-soft: #6e6e73;   /* 白地に 5.07:1（WCAG AA） */
  --line: rgba(0, 0, 0, 0.14);
  --line-soft: rgba(0, 0, 0, 0.07);
  --dark: #000000;
  --dark-2: #1d1d1f;

  /* 欧文は Inter、和文は Hiragino / Noto Sans JP に落とす */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Noto Sans JP", "Helvetica Neue", sans-serif;
  --font-display: var(--font-body);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --r: 980px;   /* Apple 流のピル型ボタン */
  --r-lg: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  /* hidden にすると .hero の position: sticky が効かなくなる。clip は切るだけ。 */
  overflow-x: clip;
}

/* 画用紙の目。触れないよう pointer-events を切り、乗算で紙の凹凸に見せる。
   黒地の節では multiply が効かないので、暗い面はそのまま沈む。 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='220'%20height='220'%3E%20%3Cfilter%20id='t'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.8'%20numOctaves='5'%20stitchTiles='stitch'/%3E%20%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%20%3CfeComponentTransfer%3E%3CfeFuncA%20type='linear'%20slope='0.62'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%20%3Crect%20width='220'%20height='220'%20filter='url(%23t)'%20opacity='0.4'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='420'%20height='420'%3E%20%3Cfilter%20id='m'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.09'%20numOctaves='3'%20stitchTiles='stitch'/%3E%20%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3C/filter%3E%20%3Crect%20width='420'%20height='420'%20filter='url(%23m)'%20opacity='0.07'/%3E%3C/svg%3E");
  background-size: 220px 220px, 420px 420px;
}

@media print { body::after { display: none; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

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

/* 画面には出さないが、検索エンジンと読み上げには渡すテキスト */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
/* メニューのパネル(250)より上に置き、開いていてもロゴと閉じるボタンが見えるようにする */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 300;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    color 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--line-soft);
}

/* メニュー展開中はどのページでも黒地になるので、ヘッダーを白抜きで統一する */
.nav-open .site-header,
.nav-open .site-header.is-scrolled {
  color: #fff;
  background: transparent;
  box-shadow: none;
}
.nav-open .site-header .logo-mark { filter: brightness(0) invert(1); }
.nav-open .site-header .nav-toggle span { background: #fff; }

/* ---------- Wordmark（ロゴ画像の代わりの文字組み） ---------- */
.wordmark {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.34em;
  /* letter-spacing の分だけ右に余白が出るのを打ち消す */
  margin-right: -0.34em;
}

/* ロゴ・メニュー・問い合わせを、画面の中央にひとまとめで置く */
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 26px;
  height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2.6vw, 38px);
}

/* 文字を外してマークだけにしたとき、小さく見えないよう少し大きくする */
.logo--mark .logo-mark { height: 21px; }

/* ふだんはマークだけ。カーソルを合わせた（またはキーで選んだ）ときだけ
   RTRIAM が横から現れて、マークの A とつながって ARTRIAM になる。
   読み上げには aria-label で社名が最初から渡っている。 */
.logo--mark { gap: 0; align-items: baseline; }

/* マーク画像は A がちょうど画像いっぱいに入っているので、
   画像の下辺＝A の足元。ベースラインで揃えれば RTRIAM と足が並ぶ。 */
.logo--mark .logo-mark { align-self: baseline; }

.logo--mark .wordmark {
  /* マークの A より少し低いところで止める。ぴったり同じ高さ（29px）にすると
     サンセリフの大文字のほうが太いぶん、A より大きく見えてしまう。 */
  font-size: 26px;
  line-height: 1;
  /* 字間は開いたときに 0.16em まで広がる。右端に出る余白はここで打ち消す */
  margin-right: -0.16em;
  /* マークのAは細身のセリフなので、700だと文字だけが重く見える */
  font-weight: 600;
  /* 足元で揃えると、視覚的にはわずかに沈んで見える。2px持ち上げる */
  position: relative;
  bottom: 2px;
  max-width: 0;
  /* マークの A と R のあいだが、ほかの字間と同じ広さに見えるところ */
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  /* 閉じているあいだは、字が詰まって縦にすぼんでいる。
     開くときにここから戻ることで、弁がひらくような伸び方になる。 */
  letter-spacing: -0.05em;
  transform: scaleY(0.82);
  transform-origin: left center;
  /* 閉じるときは、跳ね返さずすっと引っ込める */
  transition: max-width 0.3s var(--ease), margin-left 0.3s var(--ease),
    letter-spacing 0.3s var(--ease), transform 0.26s var(--ease),
    opacity 0.22s var(--ease);
}

.logo--mark:hover .wordmark,
.logo--mark:focus-visible .wordmark {
  max-width: 260px;
  /* マーク画像の右に余白が入っているぶん、負の値で引き寄せる。
     こうすると A と R のあいだが、ほかの字間と同じ広さに見える。 */
  margin-left: -6px;
  opacity: 1;
  letter-spacing: 0.16em;
  transform: scaleY(1);
  /* 開くときだけ、行き過ぎてから戻る曲線を使う。
     幅・字間・縦の伸びをわずかにずらして、ひと息に開かないようにしている。 */
  transition: max-width 0.46s cubic-bezier(0.28, 1.5, 0.5, 1),
    margin-left 0.46s cubic-bezier(0.28, 1.5, 0.5, 1),
    letter-spacing 0.54s cubic-bezier(0.24, 1.6, 0.45, 1) 0.02s,
    transform 0.5s cubic-bezier(0.2, 1.75, 0.4, 1) 0.04s,
    opacity 0.2s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .logo--mark .wordmark,
  .logo--mark:hover .wordmark,
  .logo--mark:focus-visible .wordmark { transition: none; transform: none; }
}

/* .gnav はヘッダーの子要素なので、モバイルの全画面パネル(250)に覆われないよう
   ロゴ自身を同じ積み重ね文脈の中で前面に出す */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  position: relative;
  z-index: 260;
}

/* マークは元画像があずき色なので、フィルタで黒（暗い面では白）に転ばせる */
.logo-mark {
  height: 20px;
  width: auto;
  filter: brightness(0);
  transition: filter 0.4s var(--ease);
}

.site-footer .logo-mark { filter: brightness(0) invert(1); }

.gnav > ul { display: flex; justify-content: center; align-items: center; gap: 4px; }

.gnav > ul > li > a {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  transition: color 0.3s var(--ease);
}

.gnav a:hover { color: var(--ink); }
.gnav a[aria-current="page"] { color: var(--ink); }

.header-right { display: flex; align-items: center; gap: 12px; justify-self: end; }

/* ---------- 言語の切り替え（地球儀） ---------- */
.lang-switch { position: relative; }

.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: inherit;      /* ヘッダーの文字色に合わせる（KV上では白） */
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}

.lang-toggle:hover { opacity: 0.6; }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 148px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px 0;
  z-index: 300;
}

.lang-menu button {
  display: block;
  width: 100%;
  padding: 9px 20px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.lang-menu button:hover { background: var(--paper-3); }

/* いま表示している言語 */
.lang-menu button[aria-current="true"] { font-weight: 700; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 46px; height: 46px;
  cursor: pointer;
  position: relative;
  z-index: 260;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  margin: 6px auto;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 26px;
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--dark);
  color: var(--paper);
  border: 0;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn .arrow { transition: transform 0.35s var(--ease); display: inline-block; }
.btn:hover { background: #333336; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--ink); }
.btn-primary:hover { background: #333336; }

.btn-outline {
  background: transparent;
  color: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn-outline:hover { background: #fff; color: var(--ink); box-shadow: none; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-2); color: var(--ink); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* text link */
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.service-link:hover { color: var(--ink); border-color: var(--ink); }
.service-link .arrow { transition: transform 0.35s var(--ease); }
.service-link:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
/* 大見出し用：下から拭き上がるように現れる */
@keyframes wipeUp {
  from { opacity: 1; clip-path: inset(0 -5% 100% -5%); transform: translateY(0.22em); }
  to { opacity: 1; clip-path: inset(-10% -5% -12% -5%); transform: none; }
}

/* ---------- プロダクトのスライド ---------- */
.products-hero {
  position: relative;
  min-height: min(78svh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(96px, 13vh, 150px) 0 clamp(56px, 7vh, 84px);
  overflow: hidden;
}

.ph-stage { position: relative; }

/* 高さが枚数で変わらないよう、すべて同じ位置に重ねる */
.ph-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s;
}

.ph-stage { display: grid; }

.ph-slide.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.ph-cat {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ph-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 8.6vw, 118px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-top: 18px;
}

.ph-lead {
  margin-top: clamp(20px, 2.4vw, 30px);
  max-width: 620px;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.products-hero .btn { margin-top: clamp(28px, 3vw, 40px); }

/* 現在地の目印。押せばその枚へ移れる。 */
.ph-dots {
  display: flex;
  gap: 10px;
  margin-top: clamp(40px, 5vh, 64px);
  padding: 0 max(28px, calc((100% - 1120px) / 2 + 28px));
}

.ph-dot {
  position: relative;
  display: block;
  width: clamp(38px, 5vw, 64px);
  height: 2px;
  padding: 0;
  border: 0;
  background: var(--line);
  cursor: pointer;
  overflow: hidden;
}

/* 押しやすいよう、見た目より広い当たり判定をつける */
/* 線そのものは細いので、指で押せる大きさの当たり判定を上下に広げる。
   上下20pxずつで、線の2pxと合わせて42px。指で狙える大きさになる。 */
.ph-dot::before {
  content: "";
  position: absolute;
  inset: -20px 0;
}

.ph-bar {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
}

.ph-dot.is-on { background: var(--line); }

/* ---------- 自動でめくる帯（事例・ブログ） ---------- */
.as-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}

.as-tab {
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.as-tab:hover { color: var(--ink); border-color: var(--ink); }
.as-tab.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.as-stage { display: grid; }

.as-panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.as-panel.is-on { opacity: 1; visibility: visible; }

.as-cat {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.as-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 12px;
}

.as-lead {
  margin-top: 18px;
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.as-body .service-link { margin-top: 26px; }

.as-date {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

/* 記事の見出し画像 */
.as-thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}

.as-thumb img {
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
}

.as-thumb:hover img { transform: scale(1.03); }

/* 画像を持たない帯は、1列で組む */
.as-body--wide { grid-column: 1 / -1; max-width: 720px; }

@media (max-width: 900px) {
  .as-panel { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .as-panel { transition: none; }
}

/* 長い名称でも、トップのプロダクト名と同じ強さで置く。
   「次世代ワークフォース・」「マネジメント・システム」がどちらも11字なので、
   この大きさなら 1120px の器に収まる。 */
.page-hero h1.is-long { font-size: clamp(30px, 6.1vw, 84px); line-height: 1.22; }

/* 用語の言い換え。本文より一段小さく、静かに添える */
.page-def {
  max-width: 46em;
  margin-top: clamp(20px, 2.4vw, 28px);
  font-size: clamp(13px, 1.35vw, 14.5px);
  line-height: 2;
  color: var(--ink-soft);
}

/* ---------- 概算のお見積り ---------- */
/* 入力と結果を横に並べ、結果は画面に貼りついたままにする。
   機能を選び直すたびに下までスクロールし直すのでは、比べようがない。 */
.estimate {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(28px, 3.6vw, 56px);
  align-items: start;
  margin-top: clamp(32px, 3.6vw, 46px);
}

.est-field + .est-field,
.est-field + .est-row,
.est-row + .est-field { margin-top: clamp(26px, 3vw, 34px); }

.est-legend {
  display: block;
  margin-bottom: 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.est-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px 18px;
}

.est-radios { display: flex; flex-wrap: wrap; gap: 2px 22px; }

.est-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.5;
}

.est-check input {
  flex: none;
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
  cursor: pointer;
}

.est-check-label { flex: 1 1 auto; }

/* どのプランから使えるのかを、選ぶその場で見せる */
.est-check-plan {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
}

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

.est-field input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.est-field input[type="number"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.est-out {
  position: sticky;
  top: 76px;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
}

.est-lines { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; }

.est-lines dt,
.est-lines dd {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}

.est-lines dd { text-align: right; font-weight: 700; white-space: nowrap; }
.est-line-label { display: block; font-weight: 700; }
.est-line-note { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-soft); }

.est-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
}

.est-total-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-soft); }

.est-total-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.est-initial {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.est-initial-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-soft); }
.est-initial-value { margin-top: 4px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.est-initial-note { margin-top: 2px; font-size: 11.5px; color: var(--ink-soft); }

.est-note { margin-top: 18px; font-size: 11.5px; line-height: 1.8; color: var(--ink-soft); }
.est-cta { margin-top: 20px; }

@media (max-width: 900px) {
  /* 縦に積むと結果が下へ流れてしまうので、貼りつけるのはやめて順番どおりに読ませる */
  .estimate { grid-template-columns: 1fr; }
  .est-out { position: static; }
}

/* ---------- 料金表・サポート水準の表 ---------- */
/* 列が多いので、狭い画面では表だけを横に流す。
   ページ全体が横スクロールすると読めなくなるため、必ず器の内側で完結させる。 */
.rate-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: clamp(28px, 3.2vw, 40px);
}

.rate-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  border-top: 1px solid var(--ink);
  font-size: clamp(12.5px, 1.35vw, 14px);
  line-height: 1.7;
}

.rate-table.is-narrow { min-width: 320px; }

.rate-table th,
.rate-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.rate-table thead th {
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.rate-table tbody th {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.rate-table td { color: var(--ink-mid); }

/* 目で追う先は金額と可否なので、そこだけ black に落とす */
.rate-table .is-key { font-weight: 700; color: var(--ink); white-space: nowrap; }
.rate-table .ok,
.rate-table .no { text-align: center; width: 1%; white-space: nowrap; }
.rate-table .no { color: var(--ink-soft); }

.rate-note { margin-top: clamp(38px, 4.4vw, 58px); }

.rate-note h3 {
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.6;
}

.rate-note h3 + h3 { margin-top: clamp(28px, 3.2vw, 38px); }

.rate-note p {
  margin-top: 12px;
  font-size: clamp(13.5px, 1.5vw, 15px);
  line-height: 2;
  color: var(--ink-mid);
  max-width: 62em;
}

/* 目安であって保証ではない、と最初に断っておく */
.rate-caveat {
  margin-top: clamp(26px, 3vw, 36px);
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .rate-table th,
  .rate-table td { padding: 12px 13px; }
}

/* ---------- 導入の流れと、お金が発生する時点 ---------- */
/* 無料と有料の境目が読み飛ばされると後で揉めるので、まず帯で見せてから
   文章で補う。順番そのものが情報なので、矢印で向きを付ける。 */
.bill-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: clamp(38px, 4.4vw, 58px);
}

.bill-seg {
  position: relative;
  padding: clamp(20px, 2.4vw, 30px) clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
}

/* 次の段へ向かう矢印。器と器のあいだ（28pxの隙間）のちょうど中央に置く。
   9px角を45度回すと対角線が約12.7pxになるので、その分を差し引いて合わせる。 */
.bill-seg + .bill-seg::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -20.6px;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-top: 1.5px solid var(--ink-soft);
  border-right: 1.5px solid var(--ink-soft);
  transform: rotate(45deg);
}

.bill-seg.is-paid {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.bill-when {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.bill-seg.is-paid .bill-when { color: rgba(255, 255, 255, 0.68); }

.bill-what {
  margin-top: 10px;
  font-size: clamp(18px, 2.1vw, 25px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.bill-sub {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.bill-seg.is-paid .bill-sub { color: rgba(255, 255, 255, 0.72); }

.flow-list {
  margin-top: clamp(44px, 5vw, 70px);
  border-top: 1px solid var(--line);
}

.flow-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}

.flow-num {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

.flow-body h3 {
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.flow-body p {
  margin-top: 10px;
  font-size: clamp(13.5px, 1.5vw, 15px);
  line-height: 2;
  color: var(--ink-mid);
}

.flow-body em { font-style: normal; font-weight: 700; border-bottom: 1px solid var(--ink); }

.flow-note {
  margin-top: clamp(22px, 2.6vw, 30px);
  font-size: 13px;
  line-height: 2;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  /* 横に3つ並べると読めなくなるので、縦に積んで矢印も下向きに倒す */
  .bill-band { grid-template-columns: 1fr; gap: 22px; }
  .bill-seg + .bill-seg::before {
    top: -17.4px;
    left: 50%;
    margin: 0 0 0 -4.5px;
    transform: rotate(135deg);
  }
  .flow-item { grid-template-columns: 1fr; gap: 6px; }
}

/* 数字で語れることは、数字で置く */
.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(34px, 4vw, 52px);
  padding-top: clamp(26px, 3vw, 36px);
  border-top: 1px solid var(--line);
}

.fact-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.fact-unit { font-size: 0.42em; letter-spacing: 0.04em; margin-left: 4px; }

.fact-label {
  display: block;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

/* 見出しの下に置く、事実を一行で伝える添え書き */
.page-note {
  margin-top: clamp(20px, 2.4vw, 30px);
  padding-left: 18px;
  border-left: 2px solid var(--ink);
  font-size: clamp(13.5px, 1.5vw, 16px);
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

/* ---------- AISOSの構成図（中心にAI、まわりにアプリ） ---------- */
.family-figure { margin-top: clamp(40px, 5vw, 68px); }

.family-figure svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 860px;
  margin: 0 auto;
  color: var(--ink);
}

.fam-link { stroke: var(--line); stroke-width: 1.6; }

.fam-sat circle {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
}

.fam-sat-label {
  fill: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-anchor: middle;
}

.fam-sat-price {
  fill: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-anchor: middle;
}

.fam-hub circle { fill: var(--ink); }

.fam-hub-label {
  fill: var(--paper);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-anchor: middle;
}

.fam-hub-sub {
  fill: var(--paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-anchor: middle;
  opacity: 0.75;
}

/* それぞれのアプリが扱う相手。線は細く、文字だけで置く。 */
.fam-leaf-link { stroke: var(--line); stroke-width: 1.2; }

.fam-leaf-label {
  fill: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* 他社の仕組みは破線で。社外にあることを形で示す。 */
.fam-ext-label {
  fill: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fam-ext-link {
  stroke: var(--ink-soft);
  stroke-width: 1.4;
  stroke-dasharray: 5 4;
  opacity: 0.7;
}

.family-figure figcaption {
  margin-top: clamp(22px, 2.6vw, 32px);
  text-align: center;
  font-size: 13.5px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ---------- ヘッダーのプルダウン ---------- */
.has-sub { position: relative; }

.sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: inherit;
  cursor: pointer;
}

.sub-caret {
  width: 5px; height: 5px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.sub-toggle[aria-expanded="true"] .sub-caret { transform: translateY(1px) rotate(-135deg); }

.sub-menu[hidden] { display: none; }

/* AISOSの配下に各機能をぶら下げる。字下げと細い縦線で、
   「AISOSについて」の下にあることを見せる */
.sub-menu .sub-nest {
  margin: 2px 0 6px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.sub-menu .sub-nest a {
  /* 7つぶら下がるので、行の高さを詰めないとメニューが縦に伸びすぎる */
  padding: 6px 20px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.sub-menu .sub-nest a:hover,
.sub-menu .sub-nest a:focus-visible { color: var(--ink); }

.sub-menu {
  position: absolute;
  /* ドロワーを開くとヘッダーが白抜きになる。紙地のパネルはその継承を断つ */
  color: var(--ink);
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 168px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px 0;
  z-index: 300;
}

.sub-menu a {
  display: block;
  padding: 9px 20px;
  font-size: 13px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.sub-menu a:hover { background: var(--paper-3); }

/* まだ中身が揃っていない先には、押す前にそれと分かる印を付ける */
.sub-soon {
  margin-left: 8px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  vertical-align: 1px;
}

/* 自社サービスの中身はAISOS・LABO・RADIOの3系統にまたがる。
   縦一列だと十数行に伸びて読めないので、タイルを並べて一望させる。 */
.sub-menu--tiles {
  width: min(690px, calc(100vw - 40px));
  padding: 12px;
}

.sub-menu--tiles .nav-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

/* .sub-menu a の block / nowrap / 左右パディングを、タイル用に上書きする。
   同じ強さだと後勝ちにならないので、親クラスを足して勝たせる */
.sub-menu--tiles .nav-tile {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  padding: 14px 15px 16px;
  border-radius: 12px;
  white-space: normal;
}

.sub-menu--tiles .nav-tile-kicker {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.sub-menu--tiles .nav-tile-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sub-menu--tiles .nav-tile-note {
  font-size: 11.5px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* 3列のままだと画面の端をはみ出す幅で、2列に落とす */
@media (max-width: 1100px) {
  .sub-menu--tiles { width: min(470px, calc(100vw - 40px)); }
  .sub-menu--tiles .nav-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ドロワーの中では説明文まで置くと縦に伸びるので、名前だけの一覧に畳む */
@media (max-width: 820px) {
  .sub-menu--tiles { width: min(78vw, 300px); padding: 8px; }
  .sub-menu--tiles .nav-tiles { grid-template-columns: 1fr; gap: 2px; }
  .gnav .nav-tile {
    padding: 10px 12px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
  }
  .sub-menu--tiles .nav-tile-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ph-slide { transition: none; }
  .ph-bar { display: none; }
}

/* ---------- Statement ---------- */
.statement {
  background: var(--paper-3);
  padding: clamp(90px, 12vw, 160px) 24px;
  text-align: center;
}

.statement-body {
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 500;
  line-height: 2.5;
  letter-spacing: 0.07em;
}

.statement-body .em { color: var(--ink); font-weight: 700; }
.statement .btn { margin-top: 48px; }

/* ---------- 見出し（英字ディスプレイ＋和文） ---------- */
.scene-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(52px, 7vw, 104px);
  padding-bottom: clamp(22px, 2.6vw, 34px);
  border-bottom: 1px solid var(--line);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  /* 最小値は 320px 幅で "PHILOSOPHY" が版面に収まる上限 */
  font-size: clamp(34px, 9.5vw, 118px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.display-ja {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  margin-top: 18px;
  color: var(--ink-soft);
}

/* 装飾的な添え書きではなく主張そのものなので、本文より大きく組む */
.scene-head .display-note {
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 20em;
  padding-bottom: 10px;
}

.section { padding: clamp(96px, 14vw, 210px) 0; }
.section.tinted { background: var(--paper-3); }

/* ---------- 理念（罫線の3列） ---------- */
.panels { padding: clamp(96px, 14vw, 210px) 0; }

.panel-grid,
/* 3項目は文の長さがそろわない。横に並べると行が割れて読みにくいので、
   番号とラベルを左、文を右に置いた縦のリストとして組む。 */
.philosophy-grid { display: block; }

/* 縦のリストなので、区切りの罫線は引かない */
.panel,
.philosophy-item { padding-top: 26px; }

.panel,
.philosophy-item {
  display: grid;
  grid-template-columns: clamp(140px, 18vw, 220px) 1fr;
  grid-template-rows: auto 1fr;
  column-gap: clamp(20px, 4vw, 64px);
  row-gap: 6px;
  align-items: start;
  padding-bottom: clamp(30px, 3.6vw, 48px);
}

/* 左に番号とラベルを積み、右に文を置く */
.panel .panel-num,
.philosophy-item .philosophy-num { grid-column: 1; grid-row: 1; }
.panel .panel-label,
.philosophy-item .philosophy-label { grid-column: 1; grid-row: 2; }
.panel .panel-text,
.philosophy-item .philosophy-text { grid-column: 2; grid-row: 1 / span 2; }


.panel-num,
.philosophy-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink);
  margin-bottom: 10px;
}

.panel-label,
.philosophy-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

/* 縦のリストではラベルの下に文が来ないので、余白を残さない */
.panel-label,
.philosophy-label { margin-bottom: 0; }

.panel-text,
.philosophy-text {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 600;
  line-height: 2.1;
  letter-spacing: 0.04em;
}

/* 縦のリストは1行に使える幅が広い。そのぶん文を大きく組む。 */
.panel-text,
.philosophy-text { font-size: clamp(17px, 2vw, 23px); line-height: 2; }


/* ---------- Service（罫線の2段組） ---------- */
.service-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
}

.service-row {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid var(--ink);
  padding-top: 30px;
}

.service-en {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
}

.service-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.24;
  margin-top: 10px;
}

.service-tagline {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.service-desc { color: var(--ink-soft); font-size: 14px; line-height: 2.1; flex: 1; }

/* ---------- Product index（罫線リスト） ---------- */
.product-index { border-top: 1px solid var(--line); }
.pi-row { border-bottom: 1px solid var(--line); }

/* .scene-head 自身が罫線を持つので、直後に続くリストの上端罫線は重ねない */
.scene-head + .product-index,
.scene-head + .news-list { border-top: 0; }

.pi-row a {
  display: grid;
  grid-template-columns: 84px 1fr 180px 24px;
  gap: 26px;
  align-items: center;
  padding: clamp(26px, 3vw, 40px) 0;
  transition: color 0.3s var(--ease);
}

.pi-row a:hover { color: var(--ink); }

.pi-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 700;
  /* 不透明度で薄めると 3:1 を割るため、階調は実色で指定する */
  color: #86868b;
  line-height: 1;
  letter-spacing: 0;
}

.pi-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.pi-desc {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-soft);
  max-width: 62ch;
}

.pi-cat {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.pi-row .arrow { transition: transform 0.35s var(--ease); justify-self: end; }
.pi-row a:hover .arrow { transform: translateX(5px); }

/* ---------- Approach ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 60px);
}

.approach-item { border-top: 1px solid var(--ink); padding-top: 26px; }

.approach-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink);
  margin-bottom: 16px;
}

.approach-item h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.approach-item p { font-size: 13.5px; line-height: 2.1; color: var(--ink-soft); }

/* ---------- News ---------- */
.news-list { border-top: 1px solid var(--line); }
.news-item { border-bottom: 1px solid var(--line); }

/* 行き先のない項目もあるので、リンクでない行にも同じ組み方をあてる */
.news-item a,
.news-item .news-line {
  display: grid;
  grid-template-columns: 92px 126px 1fr;
  gap: 24px;
  align-items: center;
  padding: clamp(20px, 2.2vw, 30px) 0;
  transition: color 0.3s var(--ease);
}

.news-item a:hover { color: var(--ink); }

.news-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 3px 0;
  text-align: center;
  white-space: nowrap;
}

.news-date { font-size: 13px; font-weight: 500; letter-spacing: 0.1em; color: var(--ink-soft); }
.news-title { font-size: 14.5px; font-weight: 500; line-height: 1.8; }
.news-item .arrow { display: none; }
.news-more { margin-top: 40px; }

/* ---------- Works（事例集）：サービス紹介と同じ組み方 ---------- */
/* ---------- ビジネスモデル図 ---------- */
/* 狭い画面では図が潰れるので、図自身の枠内で横スクロールさせる */
.model-figure {
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.model-figure svg {
  display: block;
  min-width: 760px;
  width: 100%;
  height: auto;
  color: var(--ink);
}

.model-figure text { font-family: var(--font-body); }

.m-num {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  fill: var(--ink-soft);
}

.m-rule { stroke: var(--ink); stroke-width: 1; }

.m-title {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
  fill: var(--ink);
}

.m-body { font-size: 14.5px; fill: var(--ink-soft); }

.m-arrow, .m-loop {
  stroke: var(--ink);
  stroke-width: 1;
  fill: none;
}

.m-loop { stroke-dasharray: 4 4; }

.m-loop-label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  fill: var(--ink);
  text-anchor: middle;
  /* 文字の下を地色で縁取り、破線を文字の背後で切る */
  paint-order: stroke fill;
  stroke: var(--paper);
  stroke-width: 8px;
  stroke-linejoin: round;
}

/* 2つの図のあいだの見出し */
.model-split {
  margin: clamp(60px, 7vw, 96px) 0 clamp(30px, 3.5vw, 44px);
  padding-top: clamp(30px, 3.5vw, 44px);
  border-top: 1px solid var(--line);
}

.model-subhead {
  font-size: clamp(19px, 2.2vw, 27px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.model-subnote {
  margin-top: 14px;
  max-width: 62ch;
  font-size: 14px;
  line-height: 2.1;
  color: var(--ink-soft);
}

/* 対応パターン図 */
.s-phase {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  fill: var(--ink-soft);
  text-anchor: middle;
}

.s-axis, .s-tick line { stroke: var(--line); stroke-width: 1; }
.s-track { stroke: var(--line-soft); stroke-width: 7; stroke-linecap: round; }
.s-bar { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }

.s-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  fill: var(--ink);
}

/* ---------- AISOS（service-healthcare.html） ---------- */
.aisos-lead { margin-bottom: clamp(56px, 7vw, 100px); }

.aisos-catch {
  /* em 指定なので、見出しが大きくなっても手動改行が効く幅を保つ */
  max-width: 22em;
  font-size: clamp(24px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.5;
}

.aisos-catch em,
.aisos-vision em { font-style: normal; color: var(--ink-soft); }

.aisos-note {
  margin-top: 26px;
  max-width: 52ch;
  font-size: 14px;
  line-height: 2.1;
  color: var(--ink-soft);
}

.aisos-close {
  margin-top: clamp(56px, 7vw, 100px);
  padding-top: clamp(34px, 4vw, 52px);
  border-top: 1px solid var(--line);
  max-width: 62ch;
}

.aisos-vision {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.4;
  margin-bottom: 20px;
}

.aisos-close p:last-child { font-size: 14px; line-height: 2.1; color: var(--ink-soft); }

/* ---------- 事業一覧（service.html） ---------- */
.biz-list { border-top: 1px solid var(--line); }
.biz-row { border-bottom: 1px solid var(--line); }

.biz-row > a {
  display: block;
  padding: clamp(40px, 5vw, 72px) 0;
  transition: opacity 0.3s var(--ease);
}

@media (hover: hover) {
  .biz-row > a:hover { opacity: 0.62; }
}

.biz-en {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.biz-name {
  margin-top: 14px;
  font-size: clamp(30px, 5vw, 66px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.biz-catch {
  margin-top: 14px;
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.biz-desc {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 14px;
  line-height: 2.1;
  color: var(--ink-soft);
}

.biz-row .service-link { margin-top: 28px; }

.work-list {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 110px);
}

.work-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}

/* ---------- ブラウザウィンドウ風のスクリーンショット枠 ---------- */
.window {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

@media (hover: hover) {
  .window:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.13);
  }
}

/* dots ／ URL ／ 右の余白 で3分割し、URLを枠の中央に置く */
.window-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 12px;
  background: var(--paper-3);
  border-bottom: 1px solid var(--line);
}

.window-bar::after { content: ""; width: 39px; }

.window-dots { display: flex; gap: 6px; }

.window-dots i {
  display: block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #d2d2d7;
}

.window-url {
  justify-self: center;
  max-width: 100%;
  background: #fff;
  border-radius: 980px;
  padding: 3px 14px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-screen { display: block; background: var(--paper-3); }
.window-screen img { width: 100%; height: auto; }

/* ---------- 事例カードの本文 ---------- */
.work-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  font-size: 11.5px;
}

.work-cat {
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.work-field { color: var(--ink-soft); letter-spacing: 0.06em; }

.work-title {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.14;
  margin-top: 14px;
}

.work-catch {
  margin-top: 12px;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.7;
}

.work-excerpt {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 2.1;
  color: var(--ink-soft);
}

/* 機能名は区切り文字だけで並べる（ピルにはしない） */
.work-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.work-tags li:not(:last-child)::after {
  content: "／";
  margin: 0 7px;
  opacity: 0.45;
}

.work-body .service-link { margin-top: 26px; }

/* ---------- Contact / Company の大型カード ---------- */
.gate-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.2vw, 28px);
  padding-bottom: clamp(70px, 9vw, 120px);
}

.gate {
  background: var(--dark);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(38px, 4.2vw, 62px) clamp(28px, 3.4vw, 50px);
  min-height: clamp(240px, 26vw, 320px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.4s var(--ease);
}

.gate:hover { background: #333336; }

/* 2枚目は白黒を反転させて対にする（旧あずきカード） */
.gate--invert {
  background: var(--paper-3);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.gate--invert:hover { background: var(--paper-2); }

.gate-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.gate-ja { font-size: 12.5px; font-weight: 600; letter-spacing: 0.24em; margin-top: 14px; opacity: 0.6; }
.gate-foot { margin-top: 40px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--paper);
  padding: clamp(56px, 7vw, 86px) 0 clamp(34px, 4vw, 50px);
}

/* サイトマップ。列は自動で折り返し、狭い画面では2列になる。 */
.footer-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(28px, 3.4vw, 48px) clamp(20px, 2.6vw, 40px);
}

.fm-head {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.fm-col ul li { margin-bottom: 9px; }

.fm-col a {
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  opacity: 0.66;
  transition: opacity 0.3s var(--ease);
}
.fm-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Apple の「More ways to shop」にあたる一文 */
.footer-more {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12.5px;
  line-height: 2;
  letter-spacing: 0.04em;
  opacity: 0.66;
}
.footer-more a { text-decoration: underline; text-underline-offset: 4px; }
.footer-more a:hover { opacity: 1; }

.footer-legal {
  margin-top: clamp(22px, 2.6vw, 30px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  gap: 10px clamp(18px, 2.4vw, 34px);
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.62;
}

.footer-legal-links { display: flex; flex-wrap: wrap; gap: 10px clamp(14px, 2vw, 26px); }

/* 項目のあいだに縦の区切りを置く */
.footer-legal-links li + li { position: relative; padding-left: clamp(14px, 2vw, 26px); }
.footer-legal-links li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 11px;
  background: rgba(255, 255, 255, 0.3);
}

.footer-legal a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* 所在地は右端に寄せる（Apple の国名の位置） */
.footer-region { margin-left: auto; }


/* 送信結果の知らせ */
.form-status {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  min-height: 1.9em;
}
.form-status.is-ok { color: var(--ink); font-weight: 700; }
.form-status.is-ng { color: #a3252f; font-weight: 700; }

/* ---------- 下層ページの見出し ---------- */
.page-hero { padding: clamp(150px, 19vw, 260px) 0 clamp(60px, 8vw, 110px); }

.page-hero .section-en,
.section-en {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 7.6vw, 104px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.16;
}

.page-hero .page-lead {
  margin-top: 24px;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 2.1;
}

.section-head { margin-bottom: clamp(38px, 5vw, 60px); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 62px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-lead { margin-top: 20px; color: var(--ink-soft); max-width: 64ch; font-size: 14.5px; line-height: 2.1; }

/* ---------- Product detail（Serviceページ） ---------- */
.product-block { margin-bottom: clamp(76px, 9vw, 120px); }
.product-block:last-child { margin-bottom: 0; }

/* 大きくした見出しを版面の左端に揃えるため、ラベルは上に積む */
.product-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 44px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--ink);
}

.product-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.product-head .en {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
}

.product-main {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: clamp(34px, 4vw, 54px);
}

.product-catch {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 29px);
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.product-catch em { font-style: normal; color: var(--ink); }

.product-body { color: var(--ink-soft); font-size: 14px; line-height: 2.1; }
.product-body p { margin-bottom: 1.5em; }
.product-body p:last-child { margin-bottom: 0; }

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(20px, 3vw, 38px);
}

.feature-item { border-top: 1px solid var(--line); padding-top: 20px; }

.feature-item h4 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.feature-item p { font-size: 13px; line-height: 2; color: var(--ink-soft); }

/* ---------- Article ---------- */
.article { max-width: 760px; margin-right: auto; }

.article-meta { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }

.article h1 {
  font-family: var(--font-display);
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-bottom: 38px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink);
}

.article-body p { margin-bottom: 1.7em; color: var(--ink-soft); line-height: 2.1; }
.article-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.article-back { margin-top: 52px; }

/* ---------- 社名の由来 ---------- */
.origin-mark {
  padding-bottom: clamp(34px, 4.5vw, 60px);
  margin-bottom: clamp(34px, 4.5vw, 60px);
  border-bottom: 1px solid var(--line);
}

.origin-word {
  font-size: clamp(48px, 11vw, 152px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.origin-read {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

/* 名前の成り立ち（Art ＋ Atrium ＝ Artriam） */
.origin-build {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 44px);
  padding-bottom: clamp(34px, 4.5vw, 60px);
  margin-bottom: clamp(34px, 4.5vw, 60px);
  border-bottom: 1px solid var(--line);
}

.origin-build .ob-en {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.origin-build .ob-ja {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.origin-build .ob-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
  max-width: 14em;
}

.origin-build .ob-op {
  font-size: clamp(16px, 1.8vw, 22px);
  color: var(--ink-soft);
  align-self: center;
  padding-top: 6px;
}

.origin-build .ob-result .ob-en { border-bottom: 2px solid var(--ink); padding-bottom: 4px; }

.origin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4.5vw, 68px);
}

/* 由来と、サイト上の Purpose / Vision をつなぐ一行 */
.origin-tie {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink);
}

.origin-tie span {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.origin-item { border-top: 1px solid var(--ink); padding-top: 26px; }

.origin-num {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.origin-item h3 {
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.origin-item p { font-size: 13.5px; line-height: 2.1; color: var(--ink-soft); }

/* ---------- Company ---------- */
/* 写真は白背景なので、枠を付けず地色に溶かして切り抜きのように見せる */
.message-block {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 68px);
  align-items: start;
  max-width: 1000px;
  margin-right: auto;
}

.message-portrait { margin: 0; }
.message-portrait img { width: 100%; height: auto; }

.message-portrait figcaption {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mp-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.mp-name { font-size: 21px; font-weight: 700; letter-spacing: 0.02em; }

.mp-en {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.message-body p { margin-bottom: 1.7em; color: var(--ink-soft); line-height: 2.15; }

.message-body .lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 29px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.9;
  letter-spacing: 0.04em;
  margin-bottom: 1.4em;
}

.message-sign { margin-top: 20px; text-align: right; font-size: 13px; color: var(--ink-soft); }
.message-links { margin-top: 30px; }

.message-sign strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 8px;
  letter-spacing: 0.12em;
}

.company-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }

.company-table th,
.company-table td {
  padding: clamp(18px, 2.2vw, 28px) 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 2;
  vertical-align: top;
}

.company-table th {
  width: 220px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.company-table a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Members ---------- */
.member-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px); }

.member-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 26px;
  align-items: start;
  border-top: 1px solid var(--ink);
  padding-top: 30px;
}

.member-info { min-width: 0; }

.member-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
}

.member-avatar img { width: 100%; height: 100%; object-fit: cover; }

.member-role {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.member-name { font-family: var(--font-display); font-size: 23px; font-weight: 700; letter-spacing: 0.08em; }

.member-name-en {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-top: 4px;
  margin-bottom: 16px;
}

.member-bio { font-size: 13px; color: var(--ink-soft); line-height: 2.1; }

/* ---------- Contact form ---------- */
.contact-form { max-width: 700px; margin-right: auto; }

.form-row { margin-bottom: 30px; }
.form-row label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 12px; }

.required-mark {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-left: 10px;
  vertical-align: 1px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}

.form-row select { cursor: pointer; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { outline: none; border-color: var(--ink); }

.form-row textarea { min-height: 180px; resize: vertical; line-height: 2; }

.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; line-height: 2; }
.form-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.form-submit { margin-top: 46px; }
.form-submit .btn { cursor: pointer; font-family: inherit; }


/* ---------- アプリ個別ページの価格（page-hero の中） ---------- */
.app-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: clamp(22px, 2.6vw, 30px);
  padding-top: clamp(20px, 2.4vw, 26px);
  border-top: 1px solid var(--line);
}

.app-price-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.app-price-unit {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.app-price-year {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

@media (max-width: 560px) {
  .app-price-year { padding-left: 0; border-left: 0; }
}

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 clamp(70px, 9vw, 120px); }

.cta-band .container {
  background: var(--dark);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(44px, 5vw, 70px) clamp(28px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.8vw, 50px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.24;
  margin-bottom: 16px;
}

.cta-band p { opacity: 0.75; font-size: 13.5px; max-width: 46ch; line-height: 2; }
.cta-band .btn { background: var(--paper-3); color: var(--ink); box-shadow: none; }
.cta-band .btn:hover { background: #fff; color: var(--ink); }

/* ---------- Reveal（下から拭き上がる） ----------
   隠す指定は .js 配下のみ。JSが動かない環境では最初から全て見える。
   なお .reveal 自身を clip-path で潰すと IntersectionObserver の
   intersectionRatio が 0 になるため、監視側は threshold: 0 で判定している。 */
.js .reveal,
.js .reveal-group > * {
  clip-path: inset(0 -6% 100% -6%);
  transform: translateY(1.4rem);
  transition: clip-path 1s var(--ease), transform 1s var(--ease);
}

.js .reveal.is-visible,
.js .reveal-group.is-visible > * {
  clip-path: inset(-14% -6% -14% -6%);
  transform: none;
}

.reveal-group.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-group > * {
    clip-path: none !important;
    transform: none !important;
    transition: none;
  }
  .hero-copy .line, .hero-mark, .hero-lead, .hero-scroll { opacity: 1; animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pi-row a { grid-template-columns: 68px 1fr 24px; }
  .pi-cat { display: none; }
}

@media (max-width: 900px) {
  .work-card { grid-template-columns: 1fr; }
  .origin-grid { grid-template-columns: 1fr; }
  .panel-grid, .approach-grid { grid-template-columns: 1fr; }
  /* 狭い画面では、番号・ラベルと文を上下に積む */
  .panel,
  .philosophy-item { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 8px; }
  .panel .panel-text,
  .philosophy-item .philosophy-text { grid-column: 1; grid-row: 3; margin-top: 10px; }
  .service-rows { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: 1fr; }
  .product-main { grid-template-columns: 1fr; }
  .gate-cards { grid-template-columns: 1fr; }
  /* 主張そのものなので、狭い画面でも隠さず見出しの下に置く */
  .scene-head .display-note { max-width: none; padding-bottom: 0; }
}

@media (max-width: 820px) {
  .header-inner { justify-content: space-between; height: 50px; }
  .nav-toggle { display: block; }

  /* ヘッダーの白いロゴをそのまま見せるため、パネルも黒地で統一する */
  .gnav {
    position: fixed;
    inset: 0;
    background: var(--dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
    z-index: 250;
  }

  .gnav.is-open { opacity: 1; visibility: visible; }
  .gnav ul { flex-direction: column; gap: 6px; }
  .gnav ul a {
    font-size: 22px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
  }
  .gnav ul a:hover,
  .gnav ul a[aria-current="page"] { color: #a1a1a6; }

  .news-item a { grid-template-columns: 84px 1fr; row-gap: 10px; }
  .news-title { grid-column: 1 / -1; }

  .company-table th { width: auto; display: block; padding-bottom: 0; border-bottom: 0; }
  .company-table td { display: block; padding-top: 6px; }

  .message-block { grid-template-columns: 1fr; }
  .message-portrait { max-width: 260px; }

  /* 狭い画面では所在地を左端に戻し、行として積む */
  .footer-region { margin-left: 0; width: 100%; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  /* 中央揃え＋強制改行だと狭い画面で行末が大きく乱れるため、通常の段落に戻す */
  .statement { text-align: left; }
  .statement-body br { display: none; }
  .statement-body { line-height: 2.2; }
}

@media (max-width: 640px) {
  /* 最長行（14文字）が折り返して「を、」だけ孤立しない倍率まで落とす */
  .hero-copy { font-size: clamp(17px, 5.8vw, 26px); }
}

@media (max-width: 520px) {
  .hero { padding-top: 120px; }
  .pi-row a { grid-template-columns: 52px 1fr; gap: 18px; }
  .pi-row .arrow { display: none; }
}
