/* RS大学校 LP styles.css — デザイン監査改修 v1 適用済（2026-07-19）
   §1 タイプスケール6段トークン化（19箇所→置換16・削除3・!important除去）
   §2 連番3型（A=--num-spec / B=1.45rem / C=1.6remチップ）
   §3 幕間の全幅昇格・帯セクション余白圧縮・プリズム罫・S4グラデ
   §4 数字3段（--num-hero / --num-spec / --num-inline）
   §5 --ink/--on-dark参照化・--muted/--white正式化 */
:root {
  --sky: #4DA6E0;
  --navy: #0E2A47;
  --glass-white: #F4F9FF;
  --light-sky: #E8F2FB;
  --amber: #F5A623;
  --ink: var(--navy);                /* 意味名は温存・実体はnavyに統合 */
  --on-dark: var(--glass-white);     /* 同上 */
  --white: #FFFFFF;                  /* カードの面色（ブランド色ではない・仕様書に役割追記） */
  --muted: color-mix(in srgb, var(--navy) 65%, var(--glass-white)); /* ≒#5F7184 派生色として正式化 */
  --line: rgba(14, 42, 71, 0.12);

  /* サービス軸の色（2026-07-28 反転：学ぶ＝スカイ／任せる＝琥珀）
     この4行を入れ替えるだけで、タグ・バッジ・ヘッダー・料金カード・セクション地色まで一括で入れ替わる。
     *-ink は淡い地色の上で使う濃い文字色。 */
  --learn-accent: #4DA6E0;
  --learn-ink: #14547f;
  --entrust-accent: #F5A623;
  --entrust-ink: #7a5310;
  --shadow: 0 10px 30px rgba(14, 42, 71, 0.06);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --container: 1160px;
  --section-space: clamp(80px, 11vw, 152px);
  --section-space-sm: clamp(56px, 8vw, 104px); /* 帯セクション用（呼吸の圧縮側） */

  /* タイプスケール6段＋補助3段（2026-07-24 Bizmates質感リデザイン＝落ち着き・可読優先で全段さらに抑制） */
  --fs-display: clamp(2.05rem, 1.5rem + 3vw, 3.5rem);   /* ヒーローh1専用 */
  --fs-h1: clamp(1.7rem, 1.3rem + 1.9vw, 2.6rem);       /* 感情の山: S4・S11 */
  --fs-h2: clamp(1.45rem, 1.15rem + 1.5vw, 2.15rem);    /* 標準セクション見出し */
  --fs-h3: clamp(1.2rem, 1rem + 1vw, 1.65rem);          /* 小見出し・問いかけ */
  --fs-h4: clamp(1.1rem, 1rem + 0.55vw, 1.35rem);       /* カード見出し */
  --fs-lead: clamp(0.98rem, 0.9rem + 0.4vw, 1.15rem);   /* リード・結論文 */
  --fs-body: 1rem;
  --fs-small: 0.88rem;
  --fs-caption: 0.75rem;

  /* 数字3段（Inter 800とセット） */
  --num-hero: clamp(2.2rem, 1.3rem + 3.4vw, 3.7rem);    /* 主役: 約5倍・+23%（1セクション1個まで） */
  --num-spec: clamp(1.55rem, 1.1rem + 1.8vw, 2.4rem);   /* 仕様: 1本3分・連番A型番号 */
  --num-inline: 1.25rem;                                 /* 本文内: 30本以上 等 */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--glass-white);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(77, 166, 224, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 166, 224, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  letter-spacing: 0.015em;
}

h2 {
  margin-bottom: 0;
  text-wrap: balance;
  font-size: var(--fs-h2);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.number-font {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nowrap {
  white-space: nowrap;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.container--narrow {
  max-width: 900px;
}

.section {
  position: relative;
  padding-block: var(--section-space);
  background: var(--glass-white);
}

/* 固定ヘッダー分、アンカー着地位置を下げる */
section[id],
header[id] {
  scroll-margin-top: 70px;
}

.section-heading {
  max-width: 960px;
  margin: 0 auto clamp(48px, 7vw, 84px);
  text-align: center;
}

.section-heading--left {
  margin-inline: 0;
  text-align: left;
}

.section-kicker,
.small-label,
.subheading > p,
.pillar-card__label {
  margin-bottom: 15px;
  color: var(--sky);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.18em;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  color: var(--white);
  background: var(--navy);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.mobile-only {
  display: inline;
}

/* 日本語の文節折り返し制御：改行は .ph の境目でのみ起こす */
.ph {
  display: inline-block;
}

/* 語の強調：引用符“”の代わりに色で立てる（2026-07-24） */
.em {
  color: #2f79ad;
  font-weight: 900;
}

.dark-section .em {
  color: var(--sky);
}

/* 画像未配置時も成立する固定比率スロット */
.imgslot {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: var(--ar, 16 / 9);
  border: 1px solid rgba(77, 166, 224, 0.28);
  border-radius: var(--radius-md);
  background-image:
    var(--slot-image, none),
    radial-gradient(circle at 68% 30%, rgba(255, 255, 255, 0.88), transparent 23%),
    linear-gradient(135deg, var(--light-sky), #cce8f8 55%, #edf7fd);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 80px rgba(77, 166, 224, 0.12);
}

.imgslot::after {
  content: attr(data-label);
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: min(86%, 420px);
  padding: 11px 14px;
  border: 1px solid rgba(14, 42, 71, 0.12);
  border-radius: 999px;
  color: rgba(14, 42, 71, 0.52);
  background: rgba(244, 249, 255, 0.72);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: var(--fs-caption);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(7px);
}

.imgslot.has-image::after {
  display: none;
}

.imgslot--cover {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}

.imgslot--cover::after {
  color: rgba(244, 249, 255, 0.36);
  border-color: rgba(244, 249, 255, 0.1);
  background: rgba(14, 42, 71, 0.32);
}

/* ボタン */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 60px;
  padding: 15px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(14, 42, 71, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

/* 「学ぶ」系CTA（クラス名は据え置き・色はサービス軸トークンに従う） */
.button--primary {
  color: #102a43;
  background: var(--learn-accent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--learn-accent) 24%, transparent);
}

.button--primary:hover {
  background: color-mix(in srgb, var(--learn-accent) 82%, var(--white));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--learn-accent) 32%, transparent);
}

.button--secondary {
  color: var(--white);
  background: var(--navy);
}

.button--secondary:hover {
  background: #153b61;
}

/* 「任せる」系CTA：主CTAと同形・色違い（学ぶ＝スカイ／任せる＝琥珀） */
.button--entrust {
  color: var(--navy);
  background: var(--entrust-accent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--entrust-accent) 24%, transparent);
}

.button--entrust:hover {
  background: color-mix(in srgb, var(--entrust-accent) 84%, var(--white));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--entrust-accent) 32%, transparent);
}

/* サービスタグ：S5カード・S6/S7セクションを「学ぶ＝アンバー／任せる＝スカイ」で紐づける */
.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.service-tag--learn {
  color: var(--learn-ink);
  background: color-mix(in srgb, var(--learn-accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--learn-accent) 45%, transparent);
}

.service-tag--entrust {
  color: var(--entrust-ink);
  background: color-mix(in srgb, var(--entrust-accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--entrust-accent) 45%, transparent);
}

/* セクション見出し用の大バッジ（2026-07-28）：S6/S7が別サービス軸であることを一目で示す */
.service-badge {
  --badge-accent: var(--entrust-accent);
  --badge-ink: var(--entrust-ink);
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1.5px solid color-mix(in srgb, var(--badge-accent) 50%, transparent);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--badge-accent) 22%, transparent);
}

.service-badge--learn {
  --badge-accent: var(--learn-accent);
  --badge-ink: var(--learn-ink);
}

.service-badge__no {
  display: grid;
  place-items: center;
  min-width: 56px;
  padding: 0 15px;
  color: var(--navy);
  background: var(--badge-accent);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.service-badge__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 9px 22px 9px 16px;
}

.service-badge__eyebrow {
  color: var(--badge-ink);
  font-family: "Inter", sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1;
}

.service-badge__name {
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.2;
}

.button--large {
  width: min(100%, 420px);
  min-height: 74px;
  font-size: 1.15rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  color: rgba(244, 249, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 700;
  text-underline-offset: 5px;
}

.section-cta {
  margin-top: clamp(44px, 7vw, 80px);
  text-align: center;
}

/* ダークセクション */
.dark-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--on-dark);
  background: var(--navy);
}

.dark-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(rgba(120, 200, 255, 0.09) 1px, transparent 1.6px) 0 0 / 24px 24px,
    linear-gradient(180deg, rgba(2, 12, 24, 0.36), rgba(2, 12, 24, 0.72)),
    linear-gradient(90deg, rgba(2, 12, 24, 0.5), transparent 45%, rgba(2, 12, 24, 0.38));
}

/* S1 ヒーロー */
.hero {
  min-height: 100svh;
}

.hero__background {
  z-index: 0;
  background-image:
    var(--slot-image, none),
    radial-gradient(circle at 70% 28%, rgba(77, 166, 224, 0.58), transparent 24%),
    radial-gradient(circle at 18% 62%, rgba(77, 166, 224, 0.25), transparent 28%),
    linear-gradient(145deg, #020b16 8%, var(--navy) 48%, #06182b 72%, #02070d);
  box-shadow: none;
}

.hero__background::before,
.closing__background::before {
  content: "";
  position: absolute;
  inset: 10% -15%;
  z-index: 0;
  background:
    linear-gradient(105deg, transparent 34%, rgba(103, 200, 255, 0.16) 35%, transparent 36%),
    linear-gradient(75deg, transparent 62%, rgba(103, 200, 255, 0.12) 63%, transparent 64%);
  filter: blur(1px);
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-block: 28px 48px;
}

/* 固定ヘッダー（2026-07-24 新設：ロゴ＋学ぶ/任せるへのジャンプ） */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 249, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-header__brand img {
  display: block;
  height: 28px;
  width: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ヘッダーのサービス導線（2026-07-28 v2：装飾を落とし、色はアイコンだけで持たせる） */
.site-header__link {
  --nav-accent: var(--entrust-accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header__link--learn {
  --nav-accent: var(--learn-accent);
}

.site-header__icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--nav-accent);
}

.site-header__icon svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header__arrow {
  width: 5px;
  height: 5px;
  border-top: 1.5px solid var(--navy);
  border-right: 1.5px solid var(--navy);
  opacity: 0.4;
  transform: rotate(45deg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header__link:hover {
  border-color: color-mix(in srgb, var(--nav-accent) 55%, transparent);
  background: color-mix(in srgb, var(--nav-accent) 9%, var(--white));
}

.site-header__link:hover .site-header__arrow {
  opacity: 0.75;
  transform: translateX(2px) rotate(45deg);
}

.hero__copy {
  width: min(100%, 760px);
  margin-block: auto;
  padding-block: 48px 64px;
}

.hero__eyebrow {
  margin-bottom: 22px;
  color: var(--sky);
  font-size: var(--fs-lead);
  font-weight: 700;
  letter-spacing: 0.09em;
}

.hero h1 {
  margin-bottom: 22px;
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.hero__description {
  margin-bottom: 36px;
  color: rgba(244, 249, 255, 0.85);
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.8;
}

.cta-stack {
  display: flex;
  align-items: center;
  gap: 20px 30px;
}

.hero .button {
  width: min(100%, 300px);
}

.scroll-cue {
  position: absolute;
  right: 0;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(244, 249, 255, 0.52);
  font-family: "Inter", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.scroll-cue__arrow {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--sky);
  border-bottom: 1px solid var(--sky);
  transform: rotate(45deg);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.45; }
  50% { transform: translateY(7px) rotate(45deg); opacity: 1; }
}

/* S2 なぜ今か */
.section--why {
  background:
    linear-gradient(90deg, transparent 6%, rgba(77, 166, 224, 0.5) 50%, transparent 94%) top / 100% 1px no-repeat,
    var(--glass-white);
}

.contrast-grid {
  display: grid;
  gap: 20px;
}

.contrast-card {
  position: relative;
  overflow: hidden;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.contrast-card h3 {
  position: relative;
  margin: 0 0 14px;
  font-size: var(--fs-h4);
}

.contrast-card p {
  position: relative;
  margin-bottom: 0;
}

.contrast-card--ai {
  color: var(--on-dark);
  background:
    radial-gradient(circle at 88% 85%, rgba(77, 166, 224, 0.3), transparent 26%),
    linear-gradient(145deg, var(--navy), #071828);
  box-shadow: var(--shadow);
}

.contrast-card--ai p {
  color: rgba(244, 249, 255, 0.74);
}

.contrast-card--craft {
  background:
    radial-gradient(circle at 90% 12%, rgba(77, 166, 224, 0.2), transparent 24%),
    var(--white);
  box-shadow: var(--shadow);
}

.stat-row {
  position: relative;
  display: grid;
  gap: 14px;
}

.stat-row p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.stat-label {
  max-width: 11em;
  text-wrap: balance;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.55;
}

.stat-number {
  flex: 0 0 auto;
  color: var(--sky);
  font-size: var(--num-spec);
  line-height: 1;
}

.big-question {
  /* 幕間（インタールード）: コンテナを破って全幅の薄スカイ帯に */
  margin: clamp(54px, 8vw, 94px) calc(50% - 50vw) 0;
  padding: clamp(30px, 5vw, 52px) 24px;
  background: var(--light-sky);
  font-size: var(--fs-h3);
  font-weight: 900;
  line-height: 1.65;
  text-align: center;
}

/* もやもやチェックリスト（2026-07-28 具体化＋強調版：見出し＋補足の2段組・琥珀の刺し色で下の帯へ橋渡し） */
.moyamoya {
  --moyamoya-connector: clamp(30px, 5vw, 56px);
  position: relative;
  max-width: 760px;
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding: 34px clamp(22px, 3.5vw, 38px) 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 20px 48px rgba(14, 42, 71, 0.11);
}

/* 上端のラインは「学ぶ」の色＝この先の答えがどちらの軸かを先に示す */
.moyamoya::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 5px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: linear-gradient(90deg, var(--learn-accent), color-mix(in srgb, var(--learn-accent) 55%, var(--white)) 55%, var(--learn-accent));
}

/* 下の帯へ落ちる導線 */
.moyamoya::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: var(--moyamoya-connector);
  background: linear-gradient(180deg, var(--learn-accent), rgba(14, 42, 71, 0.85));
  transform: translateX(-50%);
}

.moyamoya__lead {
  margin: 0 0 6px;
  font-size: var(--fs-h3);
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

.moyamoya__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.moyamoya__list li {
  position: relative;
  padding: 18px 0 18px 40px;
  border-top: 1px dashed var(--line);
}

.moyamoya__list li:first-child {
  border-top: 0;
}

.moyamoya__list li::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 2px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--learn-accent);
  border-radius: 5px;
  background: color-mix(in srgb, var(--learn-accent) 10%, transparent);
}

/* チェックの線（未チェック＝まだ手つかず、を薄く示す） */
.moyamoya__list li::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 7px;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--learn-accent);
  border-bottom: 2px solid var(--learn-accent);
  opacity: 0.45;
  transform: rotate(-45deg);
}

.moyamoya__title {
  display: block;
  margin-bottom: 4px;
  font-size: 1.06rem;
  font-weight: 900;
  line-height: 1.6;
}

.moyamoya__note {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* 反転の帯：課題からスカイブルーワーカーへの橋 */
.big-question--turn {
  position: relative;
  margin-top: clamp(30px, 5vw, 56px);
  background: var(--navy);
  color: var(--glass-white);
}

/* 上端のキーライン＝もやもやカードからの導線を受け止める */
.big-question--turn::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--learn-accent) 42%, var(--learn-accent) 58%, transparent);
}

/* 「ビジネスの知」＝学ぶへの入口なので、学ぶの色で受ける */
.big-question--turn strong {
  position: relative;
  color: var(--learn-accent);
  font-weight: 900;
}

.big-question--turn strong::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.16em;
  left: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--learn-accent);
  opacity: 0.5;
}

/* S4 スカイブルーワーカー */
.section--worker {
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 48%, rgba(77, 166, 224, 0.18), transparent 34%),
    linear-gradient(180deg, var(--light-sky), var(--glass-white) 38%);
}

.section--worker::before {
  content: "";
  position: absolute;
  top: 9%;
  right: -12%;
  width: 48vw;
  max-width: 660px;
  aspect-ratio: 1;
  border: 1px solid rgba(77, 166, 224, 0.1);
  border-radius: 50%;
}

.worker-grid {
  display: grid;
  gap: 38px;
}

.worker-copy h2 {
  margin-bottom: 32px;
  font-size: var(--fs-h2);
  line-height: 1.35;
}

.worker-copy h2 .em {
  color: #2f79ad;
}

.worker-copy > p:last-child {
  max-width: 700px;
  margin-bottom: 0;
  color: #40566d;
}

.worker-copy strong {
  color: var(--sky);
  font-weight: 900;
}

.worker-visual {
  width: 100%;
  box-shadow: var(--shadow);
}

/* S5 二本柱 */
.section--pillars {
  background: var(--white);
}

.pillar-grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.pillar-card__label {
  margin-bottom: 4px;
}

.pillar-cross {
  color: var(--sky);
  font-family: "Inter", sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  text-align: center;
}

.section-conclusion {
  /* 幕間（インタールード） */
  margin: clamp(40px, 6vw, 70px) calc(50% - 50vw) 0;
  padding: clamp(26px, 4vw, 44px) 24px;
  background: var(--light-sky);
  font-size: var(--fs-lead);
  font-weight: 900;
  line-height: 1.8;
  text-align: center;
}

/* S5 セクションリード（見出し下のサブ） */
.section-lead {
  max-width: 640px;
  margin: 16px auto 0;
  color: #40566d;
  font-size: var(--fs-lead);
  line-height: 1.75;
}

/* S5 2カラム対比カード（2026-07-28 リデザイン：色付きヘッダー＋ゴースト番号＋左ぞろえ） */
.pillar-card {
  --card-accent: var(--sky);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--card-accent);
  border-radius: var(--radius-md);
  background: var(--white);
  text-align: left;
  box-shadow: 0 14px 36px rgba(14, 42, 71, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px color-mix(in srgb, var(--card-accent) 28%, transparent);
}

/* サービス識別：上辺＋ヘッダー地色（学ぶ＝スカイ／任せる＝琥珀、CTAの色と対応） */
.pillar-card--learn {
  --card-accent: var(--learn-accent);
}

.pillar-card--entrust {
  --card-accent: var(--entrust-accent);
}

.pillar-card__head {
  position: relative;
  overflow: hidden;
  padding: 28px clamp(24px, 3vw, 34px) 26px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--card-accent) 14%, var(--white)), color-mix(in srgb, var(--card-accent) 3%, var(--white)));
}

/* 背景に沈めた大きな連番＝カードの「顔」 */
.pillar-card__ghost {
  position: absolute;
  top: -22px;
  right: 14px;
  color: var(--card-accent);
  font-size: 7.5rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.17;
  pointer-events: none;
  user-select: none;
}

.pillar-card__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 0 18px;
  border-radius: 20px;
  color: var(--white);
  background: linear-gradient(140deg, var(--card-accent), color-mix(in srgb, var(--card-accent) 58%, var(--navy)));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--card-accent) 36%, transparent);
}

.pillar-card__icon svg {
  width: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-card h3 {
  position: relative;
  margin: 0;
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.3rem);
  font-weight: 900;
  line-height: 1.2;
}

.pillar-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px clamp(24px, 3vw, 34px) 28px;
}

.pillar-card__desc {
  margin-bottom: 12px;
  color: var(--navy);
  font-weight: 700;
}

/* 2026-07-28 箇条書き（具体例）を廃止し、サービスの射程を語る補足文へ */
.pillar-card__note {
  margin: 0 0 24px;
  color: #40566d;
  font-size: 0.94rem;
  line-height: 1.85;
}

.pillar-card__who {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  color: color-mix(in srgb, var(--card-accent) 72%, var(--navy));
  font-weight: 900;
  font-size: 0.98rem;
}

.pillar-card__arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-accent) 18%, var(--white));
}

.pillar-card__arrow::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: -2px;
  border-top: 2px solid var(--card-accent);
  border-right: 2px solid var(--card-accent);
  transform: rotate(45deg);
}

/* S7 任せる：汎用リード＋「その他」カード */
.entrust-lead {
  margin: 0 0 4px;
  color: var(--navy);
  font-weight: 900;
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.entrust-services .service-card--more {
  border-style: dashed;
  background: color-mix(in srgb, var(--entrust-accent) 12%, var(--white));
}

.entrust-services .service-card--more span,
.entrust-services .service-card--more h3 {
  color: var(--entrust-ink);
}

/* S6 学ぶ */
/* 学ぶ＝スカイの軸：任せる（琥珀）と地の色から分ける（2026-07-28 反転） */
.section--learn {
  background:
    radial-gradient(circle at 84% 10%, color-mix(in srgb, var(--learn-accent) 16%, transparent), transparent 40%),
    linear-gradient(180deg, var(--glass-white), var(--light-sky) 46%, var(--glass-white));
}

/* セクション上端のアクセント帯＝軸の切り替わりの合図 */
.section--learn::before,
.section--entrust::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
}

.section--learn::before {
  background: linear-gradient(90deg, transparent, var(--learn-accent) 28%, var(--learn-accent) 72%, transparent);
}

.section--entrust::before {
  background: linear-gradient(90deg, transparent, var(--entrust-accent) 28%, var(--entrust-accent) 72%, transparent);
}

/* S6 学ぶ：数字帯（信頼バンドをセクション内に統合・カード面で馴染ませる） */
.learn-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: clamp(30px, 5vw, 48px);
  padding: clamp(20px, 3vw, 28px) 12px;
  border: 1px solid rgba(14, 42, 71, 0.09);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.learn-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.learn-stat + .learn-stat {
  border-left: 1px solid rgba(14, 42, 71, 0.12);
}

.learn-stat__num {
  color: var(--navy);
  font-size: clamp(1.5rem, 1rem + 1.8vw, 2.1rem);
  font-weight: 900;
  line-height: 1;
}

.learn-stat__num .number-font {
  color: var(--sky);
}

.learn-stat__label {
  color: #40566d;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

.learn-intro {
  display: grid;
  gap: 34px;
  align-items: center;
}

.learn-visual {
  box-shadow: var(--shadow);
}

.learn-features {
  display: grid;
  gap: 18px;
  align-content: center;
}

.learn-feature {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(14, 42, 71, 0.09);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.86);
}

.learn-feature svg {
  width: 48px;
  color: var(--sky);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.learn-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.learn-feature strong {
  color: var(--ink);
  font-size: 1.04rem;
}

.learn-feature strong.feature-number {
  color: var(--ink);
  font-size: var(--num-spec); /* !importantの代わりに詳細度で .learn-feature strong に勝つ */
  line-height: 1.15;
}

.feature-number span,
.feature-inline-number {
  color: var(--sky);
}

.feature-inline-number {
  font-size: var(--num-inline); /* 本文内数字（本文×1.27） */
}

.courses {
  margin-top: clamp(70px, 10vw, 116px);
}

.subheading {
  margin-bottom: 30px;
  text-align: center;
}

.subheading > p {
  margin-bottom: 8px;
}

.subheading h3 {
  margin-bottom: 0;
  font-size: var(--fs-h3);
  font-weight: 900;
}

.subheading h3 span {
  color: var(--sky);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.course-card {
  min-width: 0;
  padding: 24px 14px;
  border: 1px solid rgba(77, 166, 224, 0.18);
  border-radius: var(--radius-sm);
  background: var(--white);
  text-align: center;
}

.course-card svg {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  color: var(--sky);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.course-card h4 {
  margin-bottom: 5px;
  font-size: 1.12rem;
  font-weight: 900;
}

.course-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.mentor-sample {
  display: grid;
  gap: 22px;
  margin-top: clamp(70px, 10vw, 116px);
}

.mentor-card,
.sample-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
}

.mentor-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 22px;
  align-items: center;
  padding: 20px;
}

.mentor-card__image {
  width: 100%;
  border-radius: 50%;
}

.mentor-card .small-label {
  margin-bottom: 8px;
}

.mentor-card h3 {
  margin-bottom: 7px;
  font-size: 1.35rem;
}

.mentor-card h3 span {
  color: var(--sky);
}

.mentor-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.sample-card {
  padding: 20px;
}

.subheading--small {
  margin-bottom: 18px;
  text-align: left;
}

.subheading--small h3 {
  font-size: 1.35rem;
}

.video-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.9), transparent 22%),
    linear-gradient(135deg, var(--light-sky), #b9ddf3);
}

.video-frame video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--navy);
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(77, 166, 224, 0.11) 18px 21px),
    rgba(232, 242, 251, 0.92);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.video-frame.has-video .video-placeholder,
.video-frame.has-poster .video-placeholder {
  opacity: 0;
  visibility: hidden;
}

.play-mark {
  width: 56px;
  height: 56px;
  margin-bottom: 5px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 9px 24px rgba(77, 166, 224, 0.28);
}

.play-mark::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 17px 0 0 22px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid var(--white);
}

.video-placeholder strong {
  font-size: 0.95rem;
}

.video-placeholder small {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 0.65rem;
}

.sample-card__note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

/* 学べる中身の全体像（2026-07-28）：ガラス学部／ビジネス学部／ワークショップ */
.faculty-block {
  margin-top: clamp(48px, 7vw, 84px);
}

.faculty-block__head {
  margin-bottom: 26px;
  text-align: center;
}

.faculty-block__head h3 {
  margin-bottom: 10px;
  font-size: var(--fs-h3);
  font-weight: 900;
}

.faculty-block__head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.faculty-grid {
  display: grid;
  gap: 16px;
}

.faculty-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.86);
}

/* 提供中の学部だけ「学ぶ」の色の縁で立てる */
.faculty-card--live {
  border-color: color-mix(in srgb, var(--learn-accent) 50%, transparent);
  background: var(--white);
  box-shadow: var(--shadow);
}

.faculty-card__name {
  margin: 0 0 6px;
  font-size: var(--fs-h4);
  font-weight: 900;
}

.faculty-card__desc {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.faculty-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.faculty-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.55;
}

.faculty-list li:first-child {
  border-top: 0;
}

.badge {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge--now {
  color: var(--learn-ink);
  background: color-mix(in srgb, var(--learn-accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--learn-accent) 50%, transparent);
}

.badge--soon {
  color: var(--muted);
  background: rgba(14, 42, 71, 0.05);
  border: 1px solid var(--line);
}

/* 料金カード（学ぶ＝スカイ／任せる＝琥珀。両セクション共通の器） */
.price-card {
  --price-accent: var(--entrust-accent);
  position: relative;
  max-width: 620px;
  margin: clamp(44px, 7vw, 80px) auto 0;
  padding: 34px clamp(22px, 3.5vw, 40px) 32px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--price-accent);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 18px 44px rgba(14, 42, 71, 0.09);
  text-align: center;
}

.price-card--learn {
  --price-accent: var(--learn-accent);
}

.price-card__name {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.price-card__amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin: 0 0 16px;
  line-height: 1.1;
}

.price-card__yen {
  font-family: "Inter", sans-serif;
  font-size: calc(var(--num-hero) * 0.52);
  font-weight: 800;
}

.price-card__value {
  font-size: var(--num-hero);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.price-card__unit {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

/* 「都度お見積もり」は金額枠と同じ重さで置く */
.price-card__quote {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem);
  font-weight: 900;
  line-height: 1.3;
}

.price-card__note {
  max-width: 34em;
  margin: 0 auto 24px;
  color: #40566d;
  font-size: 0.9rem;
  line-height: 1.85;
  text-align: left;
}

.price-card__note strong {
  color: var(--navy);
  font-weight: 900;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--price-accent) 34%, transparent) 62%);
}

.price-card__sub {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* S7 任せる */
/* 任せる＝琥珀の軸 */
.section--entrust {
  background:
    radial-gradient(circle at 16% 10%, color-mix(in srgb, var(--entrust-accent) 15%, transparent), transparent 40%),
    linear-gradient(180deg, var(--white), #fff6e8 52%, var(--white));
}

.entrust-grid {
  display: grid;
  gap: 34px;
  align-items: center;
}

.entrust-visual {
  box-shadow: var(--shadow);
}

.entrust-services {
  display: grid;
  gap: 14px;
}

.entrust-services .small-label {
  margin-bottom: 2px;
}

.service-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 17px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--glass-white);
}

.service-card span {
  color: var(--entrust-accent);
  font-size: 1.6rem; /* 連番C型（並列の事実）チップ */
}

.service-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
}

.process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: clamp(50px, 7vw, 78px);
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--light-sky);
}

.process-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 14px;
  border-radius: 12px;
  color: var(--white);
  background: var(--sky);
}

.process-step:nth-child(2) { background: #3d8fc6; }
.process-step:nth-child(3) { background: #286994; }
.process-step:nth-child(4) { background: var(--navy); }

.process-step > span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 1.45rem;
}

.process-step strong {
  white-space: nowrap;
  font-size: 0.85rem;
  line-height: 1.45;
}

.process-step svg {
  display: none;
  fill: none;
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.limited-badge {
  display: inline-block;
  white-space: nowrap;
  margin-bottom: 12px;
  padding: 6px 17px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--price-accent, var(--amber));
  font-size: 0.84rem;
  font-weight: 900;
}

/* S8 会長メッセージ */
.section--message {
  color: var(--on-dark);
  background:
    linear-gradient(115deg, rgba(77, 166, 224, 0.11), transparent 48%),
    var(--navy);
}

.message-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.message-copy h2 {
  margin-bottom: 34px;
  font-size: var(--fs-h2);
}

.provisional-message {
  padding: 24px;
  border: 1px solid rgba(244, 249, 255, 0.14);
  border-radius: var(--radius-sm);
  color: rgba(244, 249, 255, 0.72);
  background: rgba(244, 249, 255, 0.06);
}

.provisional-message p {
  margin-bottom: 9px;
}

.provisional-message p:last-child {
  margin-bottom: 0;
}

.chairman-card {
  width: min(100%, 410px);
  margin: 0 auto;
}

.chairman-photo {
  border-color: rgba(244, 249, 255, 0.17);
  background-image:
    var(--slot-image, none),
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.22), transparent 18%),
    linear-gradient(145deg, #425669, #172d42);
}

.chairman-photo::after {
  color: rgba(244, 249, 255, 0.58);
  border-color: rgba(244, 249, 255, 0.11);
  background: rgba(14, 42, 71, 0.55);
}

.silhouette {
  position: absolute;
  inset: 17% 18% -12%;
  z-index: 0;
  opacity: 0.34;
}

.silhouette::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d8e0e8;
  transform: translateX(-50%);
}

.silhouette::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 66%;
  border-radius: 50% 50% 0 0;
  background: #d8e0e8;
}

.chairman-photo.has-image .silhouette {
  display: none;
}

.chairman-card figcaption {
  margin-top: 20px;
  color: rgba(244, 249, 255, 0.7);
  font-size: 0.78rem;
  line-height: 1.7;
}

.chairman-card figcaption strong {
  color: var(--white);
  font-size: 1.18rem;
}

/* S10 FAQ */
.section--faq {
  background:
    linear-gradient(90deg, transparent 6%, rgba(77, 166, 224, 0.5) 50%, transparent 94%) bottom / 100% 1px no-repeat,
    var(--glass-white);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  padding: 24px 44px 24px 5px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 18px;
  height: 2px;
  background: var(--sky);
  transition: transform 0.2s ease;
}

.faq-list summary::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary::after {
  transform: rotate(0deg);
}

.faq-list summary span,
.faq-answer > span {
  color: var(--sky);
  font-family: "Inter", sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
}

.faq-answer {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 0 44px 26px 5px;
  color: var(--muted);
}

.faq-answer p {
  margin: 0;
}

/* S11 クロージング */
.closing {
  min-height: 600px;
}

.closing__background {
  z-index: 0;
  background-image:
    var(--slot-image, none),
    radial-gradient(ellipse at 50% 100%, rgba(77, 166, 224, 0.72), transparent 46%),
    linear-gradient(180deg, #061321, var(--navy) 62%, #071d31);
  box-shadow: none;
}

.dark-overlay--closing {
  background: linear-gradient(180deg, rgba(3, 12, 21, 0.44), rgba(3, 12, 21, 0.34));
}

.closing__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-block: 90px;
  text-align: center;
}

.closing__logo {
  margin-bottom: 24px;
}

.closing__logo img {
  display: block;
  height: 56px;
  width: auto;
  margin-inline: auto;
}

.closing h2 {
  margin-bottom: 20px;
  font-size: var(--fs-h1);
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.28);
}

/* クロージングは学ぶ・任せるの2本立て（中央ぞろえ・幅は狭い画面で折り返す） */
/* 幅を明示しないと親のfit-content幅に潰されて2本が縦積みになる */
.cta-stack--closing {
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}

.cta-stack--closing .button--large {
  width: min(100%, 360px);
}

/* フッター */
.footer {
  padding-block: 28px;
  color: rgba(244, 249, 255, 0.58);
  background: #05111d;
  font-size: 0.76rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer p,
.footer a {
  white-space: nowrap;
}

.footer a {
  color: var(--on-dark);
  text-underline-offset: 4px;
}

.noscript {
  margin: 0;
  padding: 12px;
  color: var(--white);
  background: #8c2f22;
  text-align: center;
}

/* 控えめなスクロール表示 */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .container {
    width: min(calc(100% - 72px), var(--container));
  }

  .mobile-only {
    display: none;
  }

  .hero__inner {
    padding-block: 38px 54px;
  }

  .contrast-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .contrast-card {
    padding: 32px 32px;
  }

  .pillar-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
  }

  .pillar-card {
    padding: 48px 40px;
  }

  .faculty-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
  }

  .faculty-card {
    padding: 28px 26px;
  }

  .course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .course-card {
    padding: 34px 22px;
  }

  .course-card p {
    font-size: 0.84rem;
  }

  .mentor-card {
    grid-template-columns: 160px 1fr;
    padding: 30px;
  }

  .process {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
  }

  .process-step {
    min-height: 100px;
    padding: 22px 14px;
    border-radius: 0;
  }

  .process-step:first-child { border-radius: 14px 0 0 14px; }
  .process-step:last-child { border-radius: 0 14px 14px 0; }

  .process-step svg {
    position: absolute;
    top: 50%;
    right: -5px;
    z-index: 2;
    display: block;
    width: 18px;
    height: 36px;
    transform: translateY(-50%);
  }

  .process-step strong {
    font-size: 0.98rem;
  }

  .faq-list summary {
    grid-template-columns: 40px 1fr;
    padding: 28px 60px 28px 12px;
    font-size: 1.08rem;
  }

  .faq-answer {
    grid-template-columns: 40px 1fr;
    padding: 0 60px 30px 12px;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .worker-grid {
    grid-template-columns: 1.05fr 0.95fr;
    column-gap: 72px;
    align-items: center;
  }

  .worker-copy {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .worker-visual {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .worker-message {
    grid-column: 1;
    grid-row: 2;
  }

  .learn-intro,
  .entrust-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 68px;
  }

  .mentor-sample {
    grid-template-columns: 0.82fr 1.18fr;
    align-items: stretch;
  }

  .mentor-card {
    grid-template-columns: 1fr;
    align-content: center;
    text-align: center;
  }

  .mentor-card__image {
    width: min(190px, 60%);
    margin-inline: auto;
  }

  .message-grid {
    grid-template-columns: 1.18fr 0.82fr;
    gap: 90px;
  }
}

@media (max-width: 767px) {
  .cta-stack {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-stack--closing {
    align-items: center;
  }

  /* 狭い幅では矢印を落として、ヘッダーボタンを1行に収める */
  .site-header__nav {
    gap: 7px;
  }

  .site-header__link {
    min-height: 38px;
    gap: 7px;
    padding: 0 13px;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .site-header__arrow {
    display: none;
  }

  .hero__copy {
    padding-block: 64px 100px;
  }

  .hero__eyebrow {
    letter-spacing: 0.035em;
  }

  .scroll-cue {
    right: 8px;
  }

  .section-kicker {
    font-size: 0.7rem;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .closing__logo img {
    height: 44px;
  }

  .site-header__brand img {
    height: 24px;
  }

  .learn-feature {
    grid-template-columns: 46px 1fr;
    padding: 17px 14px;
  }

  .learn-feature svg {
    width: 41px;
  }

  .course-card {
    padding-inline: 9px;
  }

  .mentor-card {
    grid-template-columns: 96px 1fr;
    gap: 14px;
    padding: 16px;
  }

  .mentor-card h3 {
    font-size: 1.12rem;
  }

  .process-step {
    min-height: 72px;
    padding: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
