@charset "UTF-8";
/* ============================================================
   AI-works  —  lp.css / トップページ(LP)専用
   共通トークン・ヘッダー・フッター・ボタンは site.css 側。
   このファイルは site.css の後に読み込むこと。
   ============================================================ */

/* ---------- 8. HERO ---------- */
.aiw .hero { position: relative; padding: clamp(140px, 17vw, 200px) 0 0; overflow: hidden; }
.aiw .hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(191,67,43,.07), transparent 62%),
    radial-gradient(70% 60% at 8% 72%, rgba(22,40,63,.07), transparent 60%);
}
.aiw .hero__rule { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(90deg, var(--rule-2) 1px, transparent 1px); background-size: 25% 100%; }
.aiw .hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 40px; align-items: start; }

.aiw .eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: .75rem; font-weight: 500; letter-spacing: .18em; color: var(--ink-70); margin-bottom: 34px; }
.aiw .eyebrow__seal {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--verm); color: var(--verm); font-family: var(--ff-min); font-size: .75rem; font-weight: 700;
  letter-spacing: 0; transform: rotate(-9deg); line-height: 1;
}

/* 見出しは「ビューポート幅」ではなく「本文カラムの幅」を基準にする。
   マスコット列が入ると本文が狭くなるため、vw基準だと
   「人生に隙間／を、」のように行内で折り返してしまう。
   1行は全角6.5字ぶん（読点は palt で約半角）なので、
   13.8cqw なら常に1行に収まる計算。 */
.aiw .hero__title {
  font-size: clamp(1.9rem, 6.4vw, 4rem);   /* コンテナクエリ非対応時のフォールバック */
  font-weight: 800; line-height: 1.28; letter-spacing: .01em; margin-bottom: 38px;
}
.aiw .hero__line { display: block; }

@supports (container-type: inline-size) {
  .aiw .hero__main { container-type: inline-size; }
  .aiw .hero__title { font-size: clamp(1.9rem, 13.8cqw, 5.6rem); }
  /* 計算が合っているので、行内では絶対に折り返さない */
  .aiw .hero__line { white-space: nowrap; }
}
.aiw .hero__line em { color: var(--verm); position: relative; display: inline-block; }
.aiw .hero__line em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .1em; background: var(--verm);
  opacity: .18; border-radius: 2px;
}

.aiw .hero__lead { font-size: clamp(.9375rem, 1.5vw, 1.0625rem); line-height: 2.15; color: var(--ink-90); margin-bottom: 42px; max-width: 40em; }
.aiw .hero__lead b { font-weight: 700; }
.aiw .mk { background: linear-gradient(transparent 62%, rgba(191,67,43,.2) 0); padding-inline: 1px; }

.aiw .hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 60px; }

.aiw .hero__facts { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); padding: 26px 0 clamp(60px, 8vw, 90px); border-top: 1px solid var(--rule); }
.aiw .hero__facts li { display: flex; align-items: baseline; gap: 7px; }
.aiw .hero__facts .n { font-family: var(--ff-en); font-size: 2.6rem; font-weight: 500; line-height: 1; color: var(--ink); }
.aiw .hero__facts .u { font-size: .8125rem; font-weight: 700; }
.aiw .hero__facts .t { font-size: .75rem; color: var(--ink-50); margin-left: 6px; letter-spacing: .08em; }

.aiw .hero__side { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: clamp(20px, 2.4vw, 34px); padding-top: 6px; }
.aiw .vtext {
  writing-mode: vertical-rl; font-family: var(--ff-min); font-size: 1.0625rem; font-weight: 600;
  letter-spacing: .34em; line-height: 1.8; color: var(--ink-70);
  border-right: 1px solid var(--rule); padding-right: 26px; margin-right: 4px;
  text-emphasis: filled dot var(--verm); -webkit-text-emphasis: filled dot var(--verm);
  text-emphasis-position: over right; -webkit-text-emphasis-position: over right;
}
/* ---- マスコット（円窓の意匠） ----
   ・円は足元寄りに置き、頭と上げた手を枠の外へ抜けさせて奥行きを出す
   ・円のふちは 紙色の余白 → 朱のヘアライン の二重。落款の趣き
   ・ゆっくり浮遊させる（reduced-motion では停止） */
.aiw .mascot {
  width: clamp(196px, 17.4vw, 246px); flex: none;
  display: flex; flex-direction: column; align-items: center;
}
.aiw .mascot__stage { position: relative; display: block; width: 100%; }

.aiw .mascot__ring {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 94%; aspect-ratio: 1; border-radius: 50%; z-index: 0;
  /* 生成色の面にして、背景の温白から円としてはっきり立たせる */
  background: radial-gradient(circle at 50% 32%, #fff 0%, var(--paper-2) 62%, var(--paper-3) 100%);
  box-shadow:
    0 0 0 1px rgba(22,40,63,.10),   /* 面の縁 */
    0 0 0 7px var(--paper),         /* 紙色の余白 */
    0 0 0 8px rgba(191,67,43,.38),  /* 朱のヘアライン（落款の趣き） */
    0 30px 54px -30px rgba(22,40,63,.45);
}
.aiw .mascot__ring::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 -18px 30px -22px rgba(22,40,63,.55);
}
/* 足元の影。円の上に落として接地させる */
.aiw .mascot__stage::after {
  content: ""; position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%);
  width: 44%; height: 11px; border-radius: 50%; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(22,40,63,.26) 0%, rgba(22,40,63,0) 72%);
}

.aiw .mascot__img {
  position: relative; z-index: 1; display: block;
  width: 100%; aspect-ratio: 518 / 630;
  background: url("../img/mascot.png") center bottom / contain no-repeat;
  animation: mascotFloat 5.2s ease-in-out infinite alternate;
  filter: drop-shadow(0 14px 16px rgba(22,40,63,.14));
}
@keyframes mascotFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

.aiw .mascot__cap {
  text-align: center; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--rule); width: 100%;
}
.aiw .mascot__cap b {
  display: block; font-family: var(--ff-min); font-size: .9375rem;
  letter-spacing: .1em; color: var(--ink);
}
.aiw .mascot__cap span {
  display: block; margin-top: 5px; font-size: .5625rem;
  letter-spacing: .16em; color: var(--ink-50); line-height: 1.6;
}

/* マスコット列が入る帯域では、見出しが本文カラムに収まるよう縮める */
@media (min-width: 901px) and (max-width: 1180px) {
  .aiw .hero__inner { gap: 26px; }
  .aiw .hero__side { gap: 16px; }
  .aiw .mascot { width: clamp(168px, 19vw, 204px); }
  .aiw .vtext { font-size: .9375rem; letter-spacing: .28em; padding-right: 18px; }
}

@media (max-width: 900px) {
  .aiw .hero__inner { grid-template-columns: 1fr; }
  .aiw .hero__side { display: none; }
}

/* marquee */
.aiw .hero__marquee { border-block: 1px solid var(--rule); background: var(--paper-2); overflow: hidden; padding-block: 15px; }
.aiw .marquee__track { display: flex; align-items: center; gap: 22px; width: max-content; animation: mq 42s linear infinite; }
.aiw .marquee__track span { font-family: var(--ff-min); font-size: .9375rem; font-weight: 600; letter-spacing: .12em; white-space: nowrap; color: var(--ink-70); }
.aiw .marquee__track i { color: var(--verm); font-style: normal; font-size: .75rem; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- 10. PROBLEM ---------- */
.aiw .prob { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.aiw .prob__i { background: var(--paper); background-image: var(--noise); padding: clamp(28px, 3.4vw, 44px); position: relative; transition: background-color .5s var(--ease); }
.aiw .prob__i:hover { background-color: #fff; }
.aiw .prob__no {
  font-family: var(--ff-en); font-style: normal; font-size: 1rem; color: var(--verm);
  display: block; margin-bottom: 18px; letter-spacing: .08em;
}
.aiw .prob__i h3 { font-size: clamp(1rem, 1.45vw, 1.1875rem); line-height: 1.7; margin-bottom: 14px; }
.aiw .prob__i p { font-size: .8125rem; line-height: 2; color: var(--ink-70); }
@media (max-width: 900px) { .aiw .prob { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .aiw .prob { grid-template-columns: 1fr; } }

.aiw .prob__bridge {
  margin-top: clamp(48px, 6vw, 76px); text-align: center; font-family: var(--ff-min);
  font-size: clamp(1.0625rem, 2.2vw, 1.5rem); line-height: 2.1; font-weight: 600;
}
.aiw .prob__bridge b { color: var(--ink); }
.aiw .dot {
  color: var(--verm);
  text-emphasis: filled dot var(--verm); -webkit-text-emphasis: filled dot var(--verm);
  text-emphasis-position: over right; -webkit-text-emphasis-position: over right;
}

/* ---------- 11. CONCEPT ---------- */
.aiw .sec--concept { background: var(--ink); background-image: var(--noise); color: var(--paper); }
.aiw .sec--concept::before { background-image: linear-gradient(90deg, rgba(251,249,245,.1) 1px, transparent 1px); }
.aiw .sec--concept .sec-title { color: var(--paper); }
.aiw .sec--concept .sec-title em, .aiw .sec--concept .sec-num { color: #E3714F; }
.aiw .sec--concept .sec-num::before { background: #E3714F; }
.aiw .sec--concept .sec-sub { color: rgba(251,249,245,.5); }

.aiw .cpt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); }
.aiw .cpt__col { display: grid; grid-template-columns: auto minmax(0,1fr); gap: clamp(20px, 3vw, 36px); }
.aiw .cpt__v {
  writing-mode: vertical-rl; font-family: var(--ff-min); font-weight: 700;
  font-size: clamp(1.375rem, 2.8vw, 2rem); letter-spacing: .3em; line-height: 1;
  border-right: 1px solid rgba(251,249,245,.25); padding-right: clamp(14px, 2vw, 24px);
  color: var(--paper); height: max-content;
}
.aiw .cpt__v--accent { color: #E3714F; border-right-color: rgba(227,113,79,.4); }
.aiw .cpt__num { font-family: var(--ff-min); font-size: 1.125rem; color: rgba(251,249,245,.4); display: block; margin-bottom: 12px; letter-spacing: .2em; }
.aiw .cpt__body h3 { font-size: clamp(1.1875rem, 2.1vw, 1.625rem); line-height: 1.65; margin-bottom: 22px; color: var(--paper); }
.aiw .cpt__body p { font-size: .875rem; line-height: 2.15; color: rgba(251,249,245,.76); margin-bottom: 18px; }
.aiw .cpt__body p b { color: #fff; }
.aiw .cpt__list { border-top: 1px solid rgba(251,249,245,.18); padding-top: 18px; margin-top: 26px; }
.aiw .cpt__list li { font-size: .8125rem; color: rgba(251,249,245,.72); padding: 9px 0 9px 22px; position: relative; line-height: 1.8; }
.aiw .cpt__list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 9px; height: 1px; background: #E3714F; }
@media (max-width: 860px) { .aiw .cpt { grid-template-columns: 1fr; } }

.aiw .cpt__msg {
  margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid rgba(251,249,245,.2); text-align: center;
}
.aiw .cpt__msg-lead { display: block; font-size: .75rem; letter-spacing: .2em; color: rgba(251,249,245,.5); margin-bottom: 20px; }
.aiw .cpt__msg b { font-family: var(--ff-min); font-size: clamp(1.125rem, 2.7vw, 1.875rem); line-height: 1.9; font-weight: 700; }
.aiw .cpt__msg em { color: #E3714F; }

/* ---------- 12. REASON ---------- */
.aiw .rsn { display: flex; flex-direction: column; gap: clamp(46px, 6vw, 84px); }
.aiw .rsn__i { display: grid; grid-template-columns: clamp(90px, 15vw, 200px) minmax(0,1fr); gap: clamp(24px, 4vw, 60px); align-items: start; padding-bottom: clamp(46px, 6vw, 84px); border-bottom: 1px solid var(--rule); }
.aiw .rsn__i:last-of-type { border-bottom: 0; padding-bottom: 0; }
.aiw .rsn__no {
  font-family: var(--ff-en); font-size: clamp(3.2rem, 8.4vw, 6.6rem); font-weight: 700; line-height: .85;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink-30); letter-spacing: .01em;
}
.aiw .rsn__lb {
  display: inline-block; font-size: .6875rem; letter-spacing: .18em; font-weight: 700; color: var(--verm);
  border: 1px solid var(--verm); padding: 5px 14px; border-radius: 100px; margin-bottom: 20px;
}
.aiw .rsn__txt h3 { font-size: clamp(1.375rem, 3vw, 2.125rem); line-height: 1.6; margin-bottom: 20px; }
.aiw .rsn__txt h3 em { color: var(--verm); }
.aiw .rsn__txt > p { font-size: .9375rem; line-height: 2.15; color: var(--ink-70); max-width: 44em; }
.aiw .tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.aiw .tags li { font-size: .75rem; font-weight: 500; background: var(--paper-2); border: 1px solid var(--rule); padding: 7px 15px; color: var(--ink-70); }
.aiw .sec--paper2 .tags li { background: var(--paper); }
@media (max-width: 720px) {
  .aiw .rsn__i { grid-template-columns: 1fr; gap: 10px; }
  .aiw .rsn__no { -webkit-text-stroke-width: 1px; }
}

/* comparison */
.aiw .cmp { margin-top: clamp(60px, 8vw, 100px); }
.aiw .cmp__ttl { font-size: clamp(1.125rem, 2vw, 1.5rem); margin-bottom: 26px; padding-left: 18px; border-left: 3px solid var(--verm); line-height: 1.6; }
.aiw .cmp__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); background: var(--paper); }
.aiw .cmp__tbl { min-width: 720px; font-size: .8125rem; }
.aiw .cmp__tbl th, .aiw .cmp__tbl td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); vertical-align: middle; line-height: 1.8; }
.aiw .cmp__tbl tr > *:last-child { border-right: 0; }
.aiw .cmp__tbl tbody tr:last-child > * { border-bottom: 0; }
.aiw .cmp__tbl thead th { font-family: var(--ff-min); font-size: .9375rem; background: var(--paper-2); letter-spacing: .06em; text-align: center; }
.aiw .cmp__tbl thead th.is-head { background: transparent; width: 130px; }
.aiw .cmp__tbl tbody th { font-weight: 700; background: var(--paper-2); font-size: .8125rem; width: 130px; }
.aiw .cmp__tbl .is-us { background: var(--verm); color: #fff; text-align: center; position: relative; }
.aiw .cmp__tbl thead .is-us { font-size: 1.0625rem; font-weight: 800; }
.aiw .cmp__tbl tbody td.is-us { background: var(--verm-10); color: var(--ink); text-align: left; box-shadow: inset 1px 0 0 var(--verm), inset -1px 0 0 var(--verm); }
.aiw .cmp__tbl tbody td.is-us b { color: var(--verm-d); }
.aiw .cmp__tbl td { color: var(--ink-70); }
.aiw .cmp__note { font-size: .6875rem; color: var(--ink-50); margin-top: 12px; }

/* ---------- 13. CURRICULUM ---------- */
.aiw .crc { position: relative; padding-left: clamp(0px, 2vw, 20px); }
.aiw .crc__i { display: grid; grid-template-columns: clamp(88px, 11vw, 130px) minmax(0,1fr); gap: clamp(20px, 3.5vw, 46px); padding-bottom: clamp(34px, 4vw, 52px); position: relative; }
.aiw .crc__i::before { content: ""; position: absolute; left: clamp(43px, 5.5vw, 65px); top: 74px; bottom: 0; width: 1px; background: var(--rule); }
.aiw .crc__i--last::before { display: none; }
.aiw .crc__step {
  width: clamp(86px, 11vw, 130px); height: clamp(86px, 11vw, 130px); border-radius: 50%;
  border: 1px solid var(--ink); background: var(--paper); display: grid; place-content: center; text-align: center;
  position: relative; z-index: 1; transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.aiw .crc__i:hover .crc__step { background: var(--ink); color: var(--paper); }
.aiw .crc__step span { display: block; font-family: var(--ff-en); font-size: .6875rem; letter-spacing: .2em; opacity: .6; }
.aiw .crc__step b { display: block; font-family: var(--ff-en); font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 500; line-height: 1.1; }
.aiw .crc__step--goal { background: var(--verm); border-color: var(--verm); color: #fff; }
.aiw .crc__step--goal b { font-family: var(--ff-min); font-size: clamp(1rem, 1.8vw, 1.25rem); font-weight: 700; }
.aiw .crc__i:hover .crc__step--goal { background: var(--verm-d); color: #fff; }
/* フェーズ見出し */
.aiw .crc__phase {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  padding: clamp(20px, 3vw, 30px) 0 clamp(24px, 3.5vw, 36px);
  border-top: 1px solid var(--rule);
}
.aiw .crc:first-child > .crc__phase:first-child,
.aiw .crc > .crc__phase:first-child { border-top: 0; padding-top: 0; }
.aiw .crc__phase span {
  font-family: var(--ff-en); font-style: normal; font-size: .9375rem; letter-spacing: .12em;
  color: var(--verm); flex: none;
}
.aiw .crc__phase b { font-family: var(--ff-min); font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.4; }
.aiw .crc__phase i {
  font-family: var(--ff-en); font-style: normal; font-size: .8125rem; letter-spacing: .1em;
  color: var(--ink-50); border: 1px solid var(--rule); padding: 3px 10px; margin-left: auto;
}

.aiw .crc__body { padding-top: 8px; }
.aiw .crc__body h3 { font-size: clamp(1.125rem, 2.2vw, 1.625rem); line-height: 1.6; margin-bottom: 8px; }
.aiw .crc__mo { font-family: var(--ff-en); font-size: .8125rem; font-style: normal; color: var(--verm); letter-spacing: .1em; margin-bottom: 14px; }
.aiw .crc__body > p:not(.crc__mo) { font-size: .875rem; line-height: 2.1; color: var(--ink-70); max-width: 44em; }
.aiw .crc__pt { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 18px; }
.aiw .crc__pt li { font-size: .75rem; color: var(--ink-70); background: var(--paper); border: 1px solid var(--rule); padding: 6px 13px; }
@media (max-width: 620px) {
  .aiw .crc__i { grid-template-columns: 1fr; gap: 16px; }
  .aiw .crc__i::before { display: none; }
  .aiw .crc__step { width: 76px; height: 76px; }
}

.aiw .lms {
  margin-top: clamp(50px, 6vw, 80px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 60px);
  background: var(--ink); background-image: var(--noise); color: var(--paper); padding: clamp(32px, 4.5vw, 60px);
}
.aiw .lms__lb { font-family: var(--ff-en); font-style: normal; font-size: .875rem; letter-spacing: .18em; color: #E3714F; margin-bottom: 14px; }
.aiw .lms__txt h3 { color: var(--paper); font-size: clamp(1.25rem, 2.3vw, 1.75rem); margin-bottom: 18px; line-height: 1.6; }
.aiw .lms__txt p { font-size: .875rem; line-height: 2.1; color: rgba(251,249,245,.75); margin-bottom: 26px; }
.aiw .lms .btn--ink { background: var(--paper); color: var(--ink); }
.aiw .lms .btn--ink:hover { background: #fff; }
.aiw .lms__pts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(251,249,245,.2); border: 1px solid rgba(251,249,245,.2); align-content: start; }
.aiw .lms__pts li { background: var(--ink); padding: 20px 18px; display: flex; flex-direction: column; gap: 5px; }
.aiw .lms__pts b { font-family: var(--ff-min); font-size: .9375rem; }
.aiw .lms__pts span { font-size: .6875rem; color: rgba(251,249,245,.55); }
@media (max-width: 780px) { .aiw .lms { grid-template-columns: 1fr; } }

/* ---------- 14. WEEK / FLOW ---------- */
/* 1週間モデル：PCは7カラム、スマホは縦積み（横スクロールなし） */
.aiw .week {
  border: 1px solid var(--rule); background: var(--paper);
  margin-bottom: clamp(50px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(7, 1fr);
}
.aiw .week__d { border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.aiw .week__d:last-child { border-right: 0; }
.aiw .week__day {
  font-family: var(--ff-min); font-size: .8125rem; font-weight: 700; text-align: center;
  padding: 12px 0; border-bottom: 1px solid var(--rule); background: var(--paper-2);
}
.aiw .week__day.is-we { color: var(--verm); }
.aiw .wk { padding: 22px 10px; text-align: center; display: flex; flex-direction: column; gap: 6px; min-height: 118px; justify-content: center; flex: 1; }
.aiw .wk b { font-family: var(--ff-en); font-size: 1.5rem; font-weight: 500; line-height: 1; }
.aiw .wk span { font-size: .6875rem; color: var(--ink-50); letter-spacing: .04em; }
.aiw .wk--mtg { background: var(--verm); color: #fff; }
.aiw .wk--mtg span { color: rgba(255,255,255,.8); }
.aiw .wk--main { background: var(--ink); color: var(--paper); }
.aiw .wk--main span { color: rgba(251,249,245,.65); }
.aiw .wk--none { color: var(--ink-30); }
.aiw .wk--none span { color: var(--ink-30); }

.aiw .flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.aiw .flow li { background: var(--paper); padding: clamp(24px, 3vw, 34px); position: relative; }
.aiw .flow__n {
  font-family: var(--ff-en); font-size: 1.5rem; font-weight: 500; color: var(--verm);
  display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--verm); border-radius: 50%; margin-bottom: 18px;
}
.aiw .flow h3 { font-size: 1.0625rem; margin-bottom: 10px; line-height: 1.6; }
.aiw .flow p { font-size: .8125rem; line-height: 1.95; color: var(--ink-70); }
@media (max-width: 860px) { .aiw .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .aiw .flow { grid-template-columns: 1fr; } }

/* ---------- 15. AFTER ---------- */
.aiw .sec--ink { background: var(--ink); background-image: var(--noise); color: var(--paper); }
.aiw .sec--ink::before { background-image: linear-gradient(90deg, rgba(251,249,245,.1) 1px, transparent 1px); }
.aiw .sec--ink .sec-title { color: var(--paper); }
.aiw .sec--ink .sec-title em, .aiw .sec--ink .sec-num { color: #E3714F; }
.aiw .sec--ink .sec-num::before { background: #E3714F; }
.aiw .sec--ink .sec-sub { color: rgba(251,249,245,.5); }

.aiw .aft { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(251,249,245,.22); border: 1px solid rgba(251,249,245,.22); }
.aiw .aft__i { background: var(--ink); padding: clamp(26px, 3vw, 38px); transition: background-color .5s var(--ease); }
.aiw .aft__i:hover { background: #1D344F; }
.aiw .aft__no { font-family: var(--ff-en); font-style: normal; font-size: 1rem; color: #E3714F; display: block; margin-bottom: 20px; letter-spacing: .1em; }
.aiw .aft__i h3 { color: var(--paper); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.65; margin-bottom: 14px; }
.aiw .aft__i p { font-size: .8125rem; line-height: 2; color: rgba(251,249,245,.7); }
@media (max-width: 900px) { .aiw .aft { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .aiw .aft { grid-template-columns: 1fr; } }

.aiw .aft__msg { margin-top: clamp(44px, 5vw, 64px); text-align: center; font-family: var(--ff-min); font-size: clamp(1.0625rem, 2.2vw, 1.5rem); line-height: 2; color: rgba(251,249,245,.8); }
.aiw .aft__msg em { color: #fff; border-bottom: 1px solid #E3714F; padding-bottom: 4px; }

/* ---------- 16. VOICE ---------- */
.aiw .voice { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 30px); }
.aiw .voice__i { background: var(--paper); background-image: var(--noise); border: 1px solid var(--rule); padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; justify-content: space-between; gap: 26px; position: relative; }
.aiw .voice__i::before {
  content: "“"; position: absolute; right: 22px; top: 4px; font-family: var(--ff-en); font-size: 5rem; color: var(--paper-3); line-height: 1;
}
.aiw .voice__i blockquote p { font-size: .875rem; line-height: 2.15; position: relative; z-index: 1; }
.aiw .voice__i figcaption { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--rule); padding-top: 20px; }
.aiw .voice__av { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--ff-en); font-size: 1.125rem; }
.aiw .voice__meta { display: flex; flex-direction: column; gap: 2px; line-height: 1.5; }
.aiw .voice__meta b { font-size: .8125rem; }
.aiw .voice__meta span { font-size: .6875rem; color: var(--ink-50); }
.aiw .voice__note { font-size: .6875rem; color: var(--ink-50); margin-top: 20px; }
@media (max-width: 900px) { .aiw .voice { grid-template-columns: 1fr; } }

/* ---------- 17. PRICE ---------- */
.aiw .price { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); align-items: start; }
.aiw .price__i { border: 1px solid var(--rule); background: var(--paper); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; position: relative; }
.aiw .price__i--reco { border: 1.5px solid var(--verm); box-shadow: 0 26px 60px -34px rgba(22,40,63,.5); padding-top: clamp(38px, 4vw, 52px); }
.aiw .price__badge {
  position: absolute; top: -1px; left: 50%; transform: translate(-50%,-50%); background: var(--verm); color: #fff;
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; padding: 7px 20px; white-space: nowrap;
}
.aiw .price__nm { font-size: 1.375rem; margin-bottom: 6px; }
.aiw .price__cap { font-size: .75rem; color: var(--ink-50); margin-bottom: 22px; letter-spacing: .06em; }
.aiw .price__val { display: flex; align-items: baseline; gap: 3px; font-family: var(--ff-en); }
.aiw .price__val .cur { font-size: 1.375rem; }
.aiw .price__val .num { font-size: clamp(2.1rem, 3.4vw, 2.75rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.1; }
.aiw .price__val .tax { font-family: var(--ff-go); font-size: .6875rem; color: var(--ink-50); margin-left: 6px; }
.aiw .price__term { font-size: .75rem; color: var(--ink-70); margin-top: 4px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.aiw .price__ft { padding-block: 22px 30px; flex: 1; }
.aiw .price__ft li { font-size: .8125rem; line-height: 1.8; padding: 9px 0 9px 26px; position: relative; color: var(--ink-70); }
.aiw .price__ft li::before {
  content: ""; position: absolute; left: 2px; top: .82em; width: 11px; height: 6px;
  border-left: 1.5px solid var(--verm); border-bottom: 1.5px solid var(--verm); transform: rotate(-45deg);
}
.aiw .price__ft li b { color: var(--ink); }
.aiw .price__notes { margin-top: 30px; display: flex; flex-direction: column; gap: 6px; }
.aiw .price__notes li { font-size: .75rem; color: var(--ink-50); padding-left: 16px; position: relative; }
.aiw .price__notes li::before { content: "※"; position: absolute; left: 0; }
@media (max-width: 900px) { .aiw .price { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

/* ---------- 18. FAQ ---------- */
.aiw .faq { border-top: 1px solid var(--rule); }
.aiw .faq__i { border-bottom: 1px solid var(--rule); }
.aiw .faq__i summary {
  list-style: none; cursor: pointer; padding: 26px 50px 26px 40px; position: relative;
  font-family: var(--ff-min); font-size: clamp(.9375rem, 1.6vw, 1.125rem); font-weight: 600; line-height: 1.7;
  transition: color .3s var(--ease);
}
.aiw .faq__i summary::-webkit-details-marker { display: none; }
.aiw .faq__i summary:hover { color: var(--verm); }
.aiw .faq__i summary::before {
  content: "Q"; position: absolute; left: 0; top: 26px; font-family: var(--ff-en); font-style: normal;
  font-size: 1.25rem; color: var(--verm); line-height: 1.5;
}
.aiw .faq__i summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 13px; height: 13px; margin-top: -7px;
  border-right: 1.5px solid var(--ink-50); border-bottom: 1.5px solid var(--ink-50);
  transform: rotate(45deg); transition: transform .4s var(--ease); transform-origin: 60% 60%;
}
.aiw .faq__i[open] summary::after { transform: rotate(-135deg); }
.aiw .faq__a { padding: 0 50px 28px 40px; animation: faqIn .45s var(--ease) both; }
.aiw .faq__a p { font-size: .875rem; line-height: 2.15; color: var(--ink-70); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- 19. CTA ---------- */
.aiw .cta { position: relative; padding-block: clamp(80px, 10vw, 130px); background: var(--paper); background-image: var(--noise); overflow: hidden; }
.aiw .cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(58% 60% at 50% 0%, rgba(6,199,85,.09), transparent 60%),
              radial-gradient(50% 50% at 12% 100%, rgba(191,67,43,.08), transparent 62%);
}
.aiw .cta__rule { position: absolute; inset: 0; opacity: .45; background-image: linear-gradient(90deg, var(--rule-2) 1px, transparent 1px); background-size: 25% 100%; }
.aiw .cta__inner { position: relative; z-index: 1; text-align: center; }
.aiw .cta__eyebrow { font-size: .75rem; letter-spacing: .2em; color: var(--ink-50); margin-bottom: 24px; }
.aiw .cta__ttl { font-size: clamp(1.625rem, 4.4vw, 3.25rem); line-height: 1.55; margin-bottom: 28px; }
.aiw .cta__ttl span { display: block; }
.aiw .cta__ttl em { color: var(--verm); }
.aiw .cta__lead { font-size: clamp(.875rem, 1.4vw, 1rem); line-height: 2.15; color: var(--ink-70); margin-bottom: clamp(40px, 5vw, 56px); }

.aiw .cta__box {
  display: grid; grid-template-columns: 1fr auto; gap: clamp(28px, 4vw, 56px); align-items: center; text-align: left;
  background: #fff; border: 1px solid var(--rule); padding: clamp(28px, 4vw, 52px);
  box-shadow: 0 40px 80px -50px rgba(22,40,63,.55);
}
.aiw .cta__steps { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.aiw .cta__steps li { flex: 1; min-width: 196px; display: flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 500; border: 1px solid var(--rule); padding: 12px 14px; }
.aiw .cta__steps b { font-family: var(--ff-en); font-size: 1.125rem; color: var(--verm); flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--verm); display: grid; place-items: center; }
.aiw .cta__sub { font-size: .75rem; color: var(--ink-50); margin-top: 16px; text-align: center; }
.aiw .cta__r { text-align: center; }
.aiw .qr {
  display: block; width: 158px; height: 158px; margin-inline: auto;
  border: 1px solid var(--rule); background: var(--paper);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.aiw .qr img { width: 100%; height: 100%; }
.aiw .qr:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: 0 18px 34px -20px rgba(6,199,85,.6); }
.aiw .qr__cap { font-size: .6875rem; color: var(--ink-50); margin-top: 12px; line-height: 1.8; }
.aiw .qr__cap b { font-size: .8125rem; color: var(--ink); letter-spacing: .06em; }
@media (max-width: 820px) {
  .aiw .cta__box { grid-template-columns: 1fr; }
  .aiw .cta__r { order: -1; }
}

/* ============================================================
   モバイル最適化（LPセクション）
   ============================================================ */
@media (max-width: 760px) {

  /* --- ヒーロー --- */
  .aiw .hero { padding-top: calc(var(--hd-h) + 46px); }
  .aiw .hero__rule { background-size: 50% 100%; opacity: .3; }

  /* 見出しは vw 主導にして 320px でも溢れさせない */
  .aiw .hero__title { line-height: 1.35; margin-bottom: 26px; }
  .aiw .hero__line em::after { bottom: .04em; height: .09em; }

  /* アイブロウは折り返し可・字間を詰める */
  .aiw .eyebrow {
    font-size: .6875rem; letter-spacing: .08em; gap: 11px; margin-bottom: 24px;
    line-height: 1.7; align-items: center;
  }
  .aiw .eyebrow__seal { width: 40px; height: 40px; font-size: .6875rem; }

  /* PC用の改行はスマホでは邪魔になるので流し込みに戻す */
  .aiw .hero__lead { font-size: .9375rem; line-height: 2.05; margin-bottom: 28px; }
  .aiw .hero__lead br { display: none; }
  .aiw .hero__cta { flex-direction: column; gap: 12px; margin-bottom: 40px; }

  /* 実績数値は 2×2 のグリッドに */
  .aiw .hero__facts {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px;
    padding: 22px 0 44px;
  }
  /* 数字を上、説明を下に置いて 2×2 の目線を揃える */
  .aiw .hero__facts li { display: block; }
  .aiw .hero__facts .n { font-size: 1.9rem; }
  .aiw .hero__facts .u { font-size: .75rem; margin-left: 3px; }
  .aiw .hero__facts .t {
    display: block; font-size: .6875rem; margin-left: 0; margin-top: 3px;
    letter-spacing: .04em; line-height: 1.6;
  }

  .aiw .hero__marquee { padding-block: 11px; }
  .aiw .marquee__track span { font-size: .8125rem; }

  /* --- 01 課題 --- */
  .aiw .prob__i { padding: 22px 20px; }
  .aiw .prob__no { margin-bottom: 12px; }
  .aiw .prob__i h3 { font-size: 1rem; line-height: 1.65; margin-bottom: 10px; }
  .aiw .prob__i p { font-size: .875rem; line-height: 1.95; }
  .aiw .prob__bridge { margin-top: 34px; font-size: 1.0625rem; line-height: 1.95; text-align: left; }

  /* --- 02 理念 --- */
  .aiw .cpt { gap: 40px; }
  .aiw .cpt__col { gap: 16px; }
  .aiw .cpt__v { font-size: 1.25rem; letter-spacing: .24em; padding-right: 12px; }
  .aiw .cpt__body h3 { font-size: 1.1875rem; margin-bottom: 16px; }
  .aiw .cpt__body p { font-size: .875rem; line-height: 2.05; }
  .aiw .cpt__list { margin-top: 20px; padding-top: 16px; }
  .aiw .cpt__list li { font-size: .8125rem; padding: 8px 0 8px 20px; }
  .aiw .cpt__msg { margin-top: 40px; padding-top: 30px; }
  .aiw .cpt__msg b { font-size: 1.125rem; line-height: 1.85; }

  /* --- 03 選ばれる理由 --- */
  .aiw .rsn { gap: 36px; }
  .aiw .rsn__i { padding-bottom: 36px; }
  .aiw .rsn__no { font-size: 3rem; line-height: 1; }
  .aiw .rsn__lb { margin-bottom: 14px; font-size: .6875rem; padding: 4px 12px; }
  .aiw .rsn__txt h3 { font-size: 1.3125rem; margin-bottom: 14px; }
  .aiw .rsn__txt > p { font-size: .875rem; line-height: 2; }
  .aiw .cmp { margin-top: 46px; }
  .aiw .cmp__ttl { font-size: 1.0625rem; margin-bottom: 14px; padding-left: 13px; }
  .aiw .cmp__tbl { min-width: 560px; font-size: .75rem; }
  .aiw .cmp__tbl th, .aiw .cmp__tbl td { padding: 13px 12px; line-height: 1.7; }
  .aiw .cmp__tbl thead th { font-size: .8125rem; }
  .aiw .cmp__tbl thead th.is-head, .aiw .cmp__tbl tbody th { width: 84px; font-size: .75rem; }

  /* --- 04 カリキュラム --- */
  .aiw .crc__phase { padding: 18px 0 20px; gap: 10px 14px; }
  .aiw .crc__phase b { font-size: 1.25rem; }
  .aiw .crc__phase i { margin-left: 0; font-size: .75rem; }
  .aiw .crc__i { padding-bottom: 26px; gap: 14px; }
  .aiw .crc__step { width: 64px; height: 64px; }
  .aiw .crc__step b { font-size: 1.625rem; }
  .aiw .crc__step span { font-size: .625rem; letter-spacing: .1em; }
  /* GOALバッジは日本語3文字が入るサイズに落とす */
  .aiw .crc__step--goal b { font-size: .9375rem; letter-spacing: 0; }
  .aiw .crc__step--goal span { font-size: .5625rem; }
  .aiw .crc__body { padding-top: 0; }
  .aiw .crc__body h3 { font-size: 1.1875rem; margin-bottom: 6px; }
  .aiw .crc__mo { font-size: .75rem; line-height: 1.7; margin-bottom: 12px; }
  .aiw .crc__body > p:not(.crc__mo) { font-size: .875rem; line-height: 2; }
  .aiw .crc__pt { margin-top: 14px; gap: 7px 8px; }
  .aiw .crc__pt li { font-size: .75rem; padding: 6px 11px; line-height: 1.6; }
  .aiw .lms { margin-top: 40px; padding: 26px 22px; gap: 24px; }
  .aiw .lms__txt h3 { font-size: 1.25rem; }
  .aiw .lms__txt p { font-size: .875rem; margin-bottom: 20px; }
  .aiw .lms__pts li { padding: 16px 14px; }
  /* 幅が足りず「手が動くまで／伴走」のように割れるため、狭い端末では1列に */
  @media (max-width: 420px) { .aiw .lms__pts { grid-template-columns: 1fr; } }

  /* --- 05 1週間モデル：縦積みに切り替え --- */
  .aiw .week { grid-template-columns: 1fr; }
  .aiw .week__d {
    display: grid; grid-template-columns: 54px 1fr; align-items: stretch;
    border-right: 0; border-bottom: 1px solid var(--rule);
  }
  .aiw .week__d:last-child { border-bottom: 0; }
  .aiw .week__day {
    border-bottom: 0; border-right: 1px solid var(--rule);
    display: grid; place-items: center; padding: 0; font-size: .9375rem;
  }
  .aiw .wk {
    flex-direction: row; align-items: baseline; justify-content: flex-start;
    gap: 12px; min-height: 0; padding: 15px 16px; text-align: left;
  }
  .aiw .wk b { font-size: 1.25rem; min-width: 52px; }
  .aiw .wk span { font-size: .8125rem; }

  .aiw .flow li { padding: 22px 20px; }
  .aiw .flow__n { width: 38px; height: 38px; font-size: 1.25rem; margin-bottom: 14px; }
  .aiw .flow h3 { font-size: 1rem; }
  .aiw .flow p { font-size: .875rem; }

  /* --- 06 卒業後 --- */
  .aiw .aft__i { padding: 22px 20px; }
  .aiw .aft__no { margin-bottom: 14px; }
  .aiw .aft__i h3 { font-size: 1.0625rem; margin-bottom: 10px; }
  .aiw .aft__i h3 br { display: none; }
  .aiw .aft__i p { font-size: .875rem; line-height: 1.95; }
  .aiw .aft__msg { margin-top: 32px; font-size: 1.0625rem; line-height: 1.9; }

  /* --- 07 受講生の声 --- */
  .aiw .voice__i { padding: 24px 20px; gap: 20px; }
  .aiw .voice__i blockquote p { font-size: .875rem; line-height: 2.05; }
  .aiw .voice__i::before { font-size: 3.6rem; right: 16px; }

  /* --- 08 料金 --- */
  .aiw .price { gap: 26px; }
  .aiw .price__i { padding: 26px 22px; }
  .aiw .price__i--reco { padding-top: 34px; }
  .aiw .price__nm { font-size: 1.25rem; }
  .aiw .price__cap { margin-bottom: 18px; }
  .aiw .price__val .num { font-size: 2.25rem; }
  .aiw .price__ft { padding-block: 18px 24px; }
  .aiw .price__ft li { font-size: .875rem; padding: 8px 0 8px 24px; }

  /* --- 09 FAQ：タップ領域を広げる --- */
  .aiw .faq__i summary { padding: 20px 38px 20px 32px; font-size: .9375rem; line-height: 1.75; }
  .aiw .faq__i summary::before { top: 20px; font-size: 1.0625rem; }
  .aiw .faq__i summary::after { right: 4px; width: 11px; height: 11px; }
  .aiw .faq__a { padding: 0 4px 22px 32px; }
  .aiw .faq__a p { font-size: .875rem; line-height: 2.05; }

  /* --- 最終CTA --- */
  .aiw .cta { padding-block: 62px 72px; }
  .aiw .cta__rule { background-size: 50% 100%; }
  .aiw .cta__ttl { font-size: clamp(1.5rem, 6.6vw, 2rem); line-height: 1.6; margin-bottom: 20px; }
  .aiw .cta__lead { font-size: .875rem; line-height: 2.05; margin-bottom: 32px; }
  .aiw .cta__box { padding: 26px 20px; gap: 24px; }
  .aiw .cta__steps { flex-direction: column; gap: 8px; margin-bottom: 22px; }
  .aiw .cta__steps li { min-width: 0; padding: 12px 14px; font-size: .875rem; }
  .aiw .qr { width: 140px; height: 140px; }
}

@media (max-width: 400px) {
  .aiw .hero__facts { gap: 14px 8px; }
  .aiw .hero__facts .n { font-size: 1.7rem; }
  .aiw .cmp__tbl { min-width: 500px; }
  .aiw .week__d { grid-template-columns: 46px 1fr; }
}
