@charset "UTF-8";
/*
Theme Name: sunao
Description: 株式会社sunao コーポレートサイトのテーマ（WEB集客コンサルティング）
Author: 株式会社sunao
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sunao
*/

/* =========================================
   Variables
========================================= */
:root {
  --c-black: #1a1a1a;
  --c-text: #303030;
  --c-sub: #616161;
  --c-gray: #f5f8fc;
  --c-line: #e3e8f0;
  --c-white: #ffffff;
  --c-accent: #fffc6a;
  --c-brand: #014099;
  --c-brand-dark: #002a66;
  --c-brand-light: #dee9ff;
  --c-sky: #00aeeb;

  /* 黒の透け感 */
  --glass-bg: rgba(0, 0, 0, .52);
  --glass-line: rgba(255, 255, 255, .18);
  --overlay: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55));

  --ff-en: "Poppins", sans-serif;
  --ff-display: "Fjalla One", "Poppins", sans-serif;
  --ff-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --header-h: 80px;
  --container: 1200px;
  --radius: 16px;
  --ease: cubic-bezier(.25, .8, .25, 1);
}

/* =========================================
   Reset / Base
========================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--ff-ja);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .04em;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 120px 0; }
.section--gray { background: var(--c-gray); }

/* =========================================
   写真背景 ＋ 黒の透け感
========================================= */
.photo-bg {
  position: relative;
  color: var(--c-white);
  background: var(--overlay), var(--bg) center / cover no-repeat;
  background-attachment: scroll, fixed;
}
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--c-white);
}
.glass--brand { background: rgba(1, 64, 153, .72); }

/* =========================================
   Common parts
========================================= */

/* 日本語のみの大見出し（--left は左寄せ） */
.section-heading {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .04em;
  text-align: center;
  color: var(--c-black);
}

.section-heading--left { text-align: left; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { opacity: .85; transform: translateY(-2px); }
.btn--dark { background: var(--c-brand); color: var(--c-white); }
.btn--yellow { background: var(--c-accent); color: var(--c-black); }
.btn--line { border: 1.5px solid var(--c-brand); color: var(--c-brand); background: rgba(255, 255, 255, .7); }
.btn--lg { gap: 12px; height: 60px; padding: 0 36px; font-size: 16px; }
.pc-only { display: inline; }
.sp-only { display: none; }
/* 見出しの強調語（参考例の「収益」「利益」の白抜き表現） */
.hl {
  display: inline-block;
  margin: 0 .06em;
  padding: 0 .16em;
  background: var(--c-brand);
  color: var(--c-white);
  line-height: 1.3;
}

.marker { background: linear-gradient(transparent 60%, var(--c-accent) 60%); }

/* =========================================
   Header
========================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid rgba(1, 64, 153, .08);
}
/* すりガラス背景は疑似要素に持たせる
   （header自体にbackdrop-filterを付けると、中のfixedメニューがheader内に閉じ込められるため） */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 32px;
}
.header__logo img { width: 150px; height: auto; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav__list { display: flex; gap: 32px; }
.nav__list a {
  position: relative;
  font-size: 14px;
  font-weight: 700;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--c-brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav__list a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: flex; gap: 8px; }

.nav-toggle { display: none; }
.nav-toggle__btn { display: none; }

/* =========================================
   Hero（文字＋階段の装飾）
========================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(0, 174, 235, .10), transparent 45%),
    var(--c-white);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}
.hero__label {
  margin-bottom: 24px;
  font-family: var(--ff-en);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-sub);
}
.hero__label::before { content: ""; display: inline-block; width: 40px; height: 2px; margin-right: 12px; background: var(--c-sky); vertical-align: middle; }
.hero__label span { color: var(--c-brand); font-weight: 700; }
.hero__title {
  font-size: clamp(28px, 4.2vw, 64px);
  font-weight: 900;
  line-height: 1.5;
  color: var(--c-black);
  letter-spacing: .02em;
  animation: fadeUp 1s var(--ease) both;
}
.hero__services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
  animation: fadeUp 1s .5s var(--ease) both;
}
.hero__services li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-black);
}
/* ロゴの階段をかたどった小アイコン */
.hero__services li::before {
  content: "";
  flex-shrink: 0;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--c-brand), var(--c-brand)) left bottom / 4px 6px no-repeat,
    linear-gradient(var(--c-sky), var(--c-sky)) center bottom / 4px 10px no-repeat,
    linear-gradient(var(--c-brand), var(--c-brand)) right bottom / 4px 14px no-repeat;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  animation: fadeUp 1s .6s var(--ease) both;
}
.hero__en {
  margin-top: 48px;
  font-family: var(--ff-display);
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: .12em;
  color: var(--c-brand);
  opacity: .5;
}
.hero__lead {
  max-width: 760px;
  margin-top: 24px;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 2;
  font-weight: 700;
  color: var(--c-sub);
  animation: fadeUp 1s .4s var(--ease) both;
}

/* 階段 */
.hero__stairs {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: min(40vw, 600px);
  aspect-ratio: 1 / 1;
  max-height: 72%;
}
.hero__steps {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
}
.hero__steps span {
  position: relative;
  flex: 1;
  height: calc(var(--i) * 100% / 6);
  background: linear-gradient(180deg,
    rgba(1, 64, 153, calc(.08 + var(--i) * .1)),
    rgba(1, 64, 153, calc(.02 + var(--i) * .05)));
  transform-origin: bottom;
  animation: stepRise .9s calc(var(--i) * .12s + .3s) var(--ease) both;
}
/* 段の上面：ロゴの水色 */
.hero__steps span::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--c-sky);
}
.hero__stairs-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translate(-32px, -32px);
  overflow: visible;
}
.hero__stairs-line polyline {
  fill: none;
  stroke: var(--c-brand);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: drawLine 2.4s .6s var(--ease) forwards;
}
/* 最上段のゴール */
.hero__goal {
  position: absolute;
  right: calc(100% / 12 - 14px);
  top: -40px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 0 rgba(255, 252, 106, .8);
  animation: fadeUp .6s 1.4s var(--ease) both, pulse 2.4s 2s infinite;
}

.hero__scroll {
  position: absolute;
  left: 40px; bottom: 0;
  z-index: 2;
  padding-bottom: 96px;
  font-family: var(--ff-en);
  font-size: 12px;
  color: var(--c-brand);
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 1px; height: 80px;
  background: var(--c-brand);
  animation: scrollLine 2s var(--ease) infinite;
}

.hero__marquee {
  position: relative;
  z-index: 0;
  margin-top: 64px;
  overflow: hidden;
  white-space: nowrap;
}
.hero__marquee-track { display: inline-flex; animation: marquee 40s linear infinite; }
.hero__marquee-track span {
  padding-right: 80px;
  font-family: var(--ff-en);
  font-style: italic;
  font-size: clamp(32px, 5vw, 72px);
  color: transparent;
  -webkit-text-stroke: 1px #b9c9e6;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes stepRise {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 233, 0, .7); }
  70%  { box-shadow: 0 0 0 18px rgba(255, 233, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 233, 0, 0); }
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================
   2. Problem / Future
========================================= */
.problem__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.problem__list li {
  position: relative;
  padding: 28px 24px 28px 64px;
  border-radius: 12px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  font-weight: 500;
  line-height: 1.7;
}
.problem__list { counter-reset: cause; }
.problem__list li { counter-increment: cause; }
.problem__list li::before {
  content: counter(cause);
  font-family: var(--ff-display);
  font-weight: 400 !important;
  position: absolute;
  left: 22px; top: 28px;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--c-brand);
  color: var(--c-white);
  font-size: 15px;
  font-weight: 700;
}
.problem__list strong { display: block; font-size: 18px; color: var(--c-black); }

.problem__bridge {
  margin: 64px auto 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.9;
  text-align: center;
  color: var(--c-black);
}
.problem__bridge strong { background: linear-gradient(transparent 60%, var(--c-accent) 60%); }
.problem__cta { margin-top: 48px; text-align: center; }

.future {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}
.future__col { padding: 32px; border-radius: var(--radius); }
.future__col--without { background: #e9ecf1; color: var(--c-sub); }
.future__col--with { background: var(--c-brand); color: var(--c-white); box-shadow: 0 24px 48px -24px rgba(1, 64, 153, .6); }
.future__label { margin-bottom: 16px; font-size: 18px; font-weight: 900; }
.future__col--without .future__label { color: var(--c-text); }
.future__col li { position: relative; padding-left: 24px; line-height: 1.7; }
.future__col li + li { margin-top: 10px; }
.future__col--without li::before { content: "×"; position: absolute; left: 0; font-weight: 700; }
.future__col--with li::before { content: "◎"; position: absolute; left: 0; color: var(--c-accent); }
.future__arrow {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-black);
  font-size: 22px;
  font-weight: 700;
}

/* =========================================
   3. Service menu（5つのプログラム）
========================================= */
.section-heading--light { color: var(--c-white); }
.service__lead {
  margin-top: 20px;
  text-align: center;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  line-height: 1.9;
  color: #eef2fa;
}
.program-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.program {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .95);
  color: var(--c-text);
}
.program--main {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 40px 48px;
  border-top: 6px solid var(--c-sky);
}
.program__body { display: flex; flex-direction: column; gap: 14px; }
.program__sub { font-size: 16px; font-weight: 700; color: var(--c-brand); }
.program__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--c-line);
}
.program__steps { display: flex; flex-direction: column; gap: 10px; }
.program__steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--c-gray);
  font-weight: 700;
}
.program__steps span {
  flex-shrink: 0;
  width: 84px;
  font-family: var(--ff-display);
  font-size: 15px;
  color: var(--c-brand);
}
.program__steps li:last-child { background: var(--c-brand); color: var(--c-white); }
.program__steps li:last-child span { color: var(--c-accent); }
.program__head { display: flex; align-items: center; gap: 12px; }
.program__num {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--c-brand);
  color: var(--c-white);
  font-family: var(--ff-display);
  font-size: 22px;
  line-height: 1;
}
.program__badge {
  padding: 2px 14px;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-black);
  font-size: 12px;
  font-weight: 700;
}
.program__title { font-size: 19px; font-weight: 900; line-height: 1.5; color: var(--c-black); }
.program__title small { display: block; font-size: 14px; font-weight: 700; color: var(--c-brand); white-space: nowrap; }
.program--main .program__title { font-size: clamp(22px, 2.4vw, 28px); }
.program--main .program__title small { display: inline; font-size: .6em; }
.program__text { font-size: 14px; line-height: 1.8; }
.program--main .program__text { font-size: 15px; }
.program__price {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--c-line);
  font-family: var(--ff-display);
  font-size: 40px;
  line-height: 1.1;
  color: var(--c-brand);
}
.program__price span,
.program__price em {
  font-family: var(--ff-ja);
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  margin-left: 2px;
}
.program__price em { margin: 0 4px 0 0; }
.program--main .program__price {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 56px;
}
.program--main .program__price span { font-size: 20px; }
.program__more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--c-gray);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-brand);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.program__more::after { content: "→"; }
.program__more:hover { background: var(--c-brand); color: var(--c-white); }
.program--main .program__more { min-width: 200px; background: var(--c-brand); color: var(--c-white); }
.program--main .program__more:hover { opacity: .85; }
.service__note { margin-top: 16px; font-size: 12px; color: #dfe6f2; }
.service__cta { margin-top: 40px; text-align: center; }

/* =========================================
   Works
========================================= */
.works__lead { margin-top: 16px; text-align: center; font-weight: 700; color: var(--c-brand); }

.works__summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 48px 0;
}
.works__summary li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border-radius: 12px;
  background: var(--c-white);
  border-top: 4px solid var(--c-brand);
}
.works__summary .label { font-size: 14px; font-weight: 700; color: var(--c-text); }
.works__summary .num {
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--c-brand);
}
.works__summary small { font-size: 18px; font-weight: 700; margin-left: 2px; }
.works__summary .note {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--c-line);
  font-size: 12px;
  color: var(--c-sub);
}

/* 絞り込み：ラジオボタン＋CSS */
.works__filter-wrap > input { position: absolute; opacity: 0; pointer-events: none; }
.works__filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.works__filter label {
  padding: 8px 20px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-white);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.works__filter label:hover { border-color: var(--c-brand); }
#f-all:checked ~ .works__filter label[for="f-all"],
#f-hr:checked ~ .works__filter label[for="f-hr"],
#f-school:checked ~ .works__filter label[for="f-school"],
#f-local:checked ~ .works__filter label[for="f-local"],
#f-ec:checked ~ .works__filter label[for="f-ec"] {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: var(--c-white);
}
#f-hr:checked ~ .works__list .work:not([data-cat="hr"]),
#f-school:checked ~ .works__list .work:not([data-cat="school"]),
#f-local:checked ~ .works__list .work:not([data-cat="local"]),
#f-ec:checked ~ .works__list .work:not([data-cat="ec"]) { display: none; }
.works__filter-wrap > input:focus-visible ~ .works__filter { outline: 2px solid var(--c-sky); outline-offset: 4px; border-radius: 8px; }

.works__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.work:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(1, 64, 153, .3); }
.work__thumb {
  height: 220px;
  background: #e9eef6;
  overflow: hidden;
}
.work__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 24px;
}
.work__cat { font-weight: 700; color: var(--c-black); }
.work__process { display: flex; flex-wrap: wrap; gap: 6px; }
.work__process li {
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--c-brand-light);
  color: var(--c-brand);
  font-size: 12px;
  font-weight: 700;
}
.work__process li + li::before { content: "→ "; opacity: .6; }
.work__ba {
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.work__ba div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--c-gray);
}
.work__ba div:last-child { background: rgba(0, 174, 235, .1); font-weight: 700; color: var(--c-brand); }
.work__ba span {
  flex-shrink: 0;
  width: 52px;
  font-family: var(--ff-en);
  font-size: 11px;
  font-weight: 600;
  color: var(--c-sub);
}
.work__result {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--c-line);
}
.work__result strong {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 900;
  color: var(--c-brand);
  background: linear-gradient(transparent 65%, var(--c-accent) 65%);
}
.work__note { font-size: 13px; color: var(--c-sub); line-height: 1.7; }
.works__disclaimer { margin-top: 40px; font-size: 12px; color: var(--c-sub); }

/* =========================================
   Gallery
========================================= */
.gallery__lead { margin-top: 12px; text-align: center; font-size: 13px; color: var(--c-sub); }
.gallery__scroll {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  padding: 0 24px 16px max(24px, calc((100vw - var(--container)) / 2 + 24px));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.gallery__scroll img {
  flex-shrink: 0;
  width: min(820px, 85vw);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  scroll-snap-align: start;
}

/* =========================================
   5. Flow（3ステップ：階段状に配置）
========================================= */
.flow__lead { margin-top: 16px; text-align: center; font-weight: 700; color: var(--c-brand); }
.flow__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 16px;
  margin-top: 56px;
}
.flow__item {
  position: relative;
  padding: 32px 28px;
  padding-bottom: calc(32px + (var(--i) - 1) * 40px);
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(1, 64, 153, calc(.06 + var(--i) * .05));
  border-top: 6px solid var(--c-sky);
}
.flow__item:last-child { background: var(--c-brand); color: var(--c-white); }
.flow__step { font-family: var(--ff-display); font-size: 20px; color: var(--c-brand); }
.flow__item:last-child .flow__step { color: var(--c-accent); }
.flow__item h3 { margin: 8px 0 12px; font-size: 20px; font-weight: 900; }
.flow__item p { font-size: 14px; line-height: 1.8; }
.flow__cta { margin-top: 48px; text-align: center; }

/* =========================================
   7. Download（メール登録）
========================================= */
.download { padding: 120px 0; }
.download__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 56px;
}
.download__label {
  display: inline-block;
  padding: 2px 14px;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-black);
  font-size: 12px;
  font-weight: 600;
}
.download__title { margin: 16px 0 20px; font-size: clamp(24px, 3vw, 36px); font-weight: 900; line-height: 1.5; }
.download__text p { color: #eef2fa; }
.download__seminar { display: inline-block; margin-top: 24px; font-weight: 700; border-bottom: 1px solid currentColor; }
.download__form { display: flex; flex-direction: column; gap: 18px; padding: 40px 36px; }
.download__form label span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.download__form input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 8px;
  background: rgba(255, 255, 255, .95);
  font: inherit;
  color: var(--c-text);
}
.download__form input:focus { outline: 3px solid var(--c-sky); outline-offset: 1px; }
.download__form button { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.download__note { font-size: 12px; color: var(--c-accent); }
.download__sub { margin-top: 12px; font-weight: 700; color: var(--c-accent) !important; }
.download__privacy { font-size: 11px; line-height: 1.7; color: #dfe6f2; }
.download__privacy a { text-decoration: underline; }

/* =========================================
   6. Message ＋ 代表紹介
========================================= */
.message__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 56px;
}
.message__body { display: flex; flex-direction: column; gap: 24px; }
.message__body p { line-height: 2.1; }
.message__quote {
  padding: 24px 28px;
  border-left: 4px solid var(--c-brand);
  border-radius: 0 12px 12px 0;
  background: var(--c-white);
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 700;
  line-height: 1.8 !important;
  color: var(--c-black);
}
.message__sign { text-align: right; font-size: 14px; }
.message__sign span { display: block; font-size: 22px; font-weight: 700; color: var(--c-black); }

.profile-card {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  border-radius: var(--radius);
  background: var(--c-white);
  overflow: hidden;
}
.profile-card__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 30%; }
.profile-card__body { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.profile-card__name { font-size: 22px; font-weight: 900; color: var(--c-black); }
.profile-card__name small { display: block; font-size: 12px; font-weight: 500; color: var(--c-sub); }
.profile-card__text { font-size: 14px; line-height: 1.8; }
.profile-card__facts { display: grid; gap: 6px; }
.profile-card__facts li {
  padding: 10px 14px;
  border-left: 3px solid var(--c-brand);
  background: var(--c-gray);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-brand);
}
.profile-card__facts span { display: block; font-size: 11px; font-weight: 500; color: var(--c-sub); }

.profile-card__motto {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.6;
  color: var(--c-brand);
}

/* 会社の理念 */
.philosophy {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  align-items: center;
  gap: 56px;
  margin-top: 80px;
  padding: 64px 56px;
  border-radius: 24px;
  background: var(--c-brand);
  color: var(--c-white);
  overflow: hidden;
}
/* 背景にロゴの階段を薄く敷く */
.philosophy::before {
  content: "";
  position: absolute;
  right: -40px; bottom: 0;
  width: 360px; height: 240px;
  background:
    linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.06)) 0 100% / 25% 25% no-repeat,
    linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.06)) 33.3% 100% / 25% 50% no-repeat,
    linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.06)) 66.6% 100% / 25% 75% no-repeat,
    linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.06)) 100% 100% / 25% 100% no-repeat;
  pointer-events: none;
}
.philosophy__deco { position: relative; display: flex; flex-direction: column; }
.philosophy__deco span {
  font-family: var(--ff-display);
  font-size: clamp(64px, 8vw, 128px);
  line-height: .95;
  letter-spacing: .01em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .75);
}
.philosophy__deco span:nth-child(2) { padding-left: .6em; }
.philosophy__deco b {
  font-weight: 400;
  color: var(--c-accent);
  -webkit-text-stroke: 0;
}
.philosophy__deco small {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--c-brand-light);
}
.philosophy__body { position: relative; display: flex; flex-direction: column; gap: 18px; }
.philosophy__label {
  width: fit-content;
  padding: 2px 14px;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-black);
  font-size: 12px;
  font-weight: 700;
}
.philosophy__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; line-height: 1.6; }
.philosophy__body > p:not(.philosophy__label) { font-size: 15px; line-height: 2; color: #eef2fa; }
.message__cta { margin-top: 48px; text-align: center; }

/* =========================================
   Policy
========================================= */
.policy__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 56px;
  counter-reset: policy;
}
.policy__list[start="7"] { counter-reset: policy 6; }
.policy__list li {
  counter-increment: policy;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 28px;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  font-weight: 500;
  line-height: 1.7;
}
.policy__list li::before {
  content: counter(policy, decimal-leading-zero);
  flex-shrink: 0;
  font-family: var(--ff-display);
  font-size: 28px;
  line-height: 1;
  color: var(--c-brand);
}
.policy__lead { margin-top: 16px; text-align: center; font-weight: 700; color: var(--c-brand); }
.policy__more .policy__list { margin-top: 16px; }
.policy__more summary {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 40px auto 0;
  padding: 12px 32px;
  border: 1px solid var(--c-brand);
  border-radius: 999px;
  color: var(--c-brand);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.policy__more summary::-webkit-details-marker { display: none; }
.policy__more summary::after { content: "+"; font-size: 18px; }
.policy__more[open] summary::after { content: "−"; }
.policy__more summary:hover { background: var(--c-brand); color: var(--c-white); }

/* =========================================
   History
========================================= */
.history__inner,
.company__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
}
.history__photos { display: grid; gap: 16px; margin-top: 40px; }
.history__photos img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px;
  padding: 0 0 40px 28px;
  border-left: 2px solid #c9d6ee;
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -8px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--c-brand);
  box-shadow: 0 0 0 4px var(--c-gray);
}
.timeline time {
  font-family: var(--ff-display);
  font-size: 20px;
  line-height: 1.4;
  color: var(--c-brand);
}

/* =========================================
   Scene（セミナー写真ループ）
========================================= */
.scene { overflow: hidden; background: var(--c-gray); padding-bottom: 120px; }
.scene__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.scene__track li img {
  width: 420px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
}

/* =========================================
   Company
========================================= */
.company__table { margin: 0; border-top: 1px solid var(--c-line); }
.company__table div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--c-line);
}
.company__table dt { font-weight: 700; color: var(--c-brand); }
.company__table dd { margin: 0; }

/* =========================================
   CTA
========================================= */
.cta { padding: 120px 0; }
.cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cta__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 56px 48px 96px;
  transition: transform .4s var(--ease);
}
.cta__item:hover { transform: translateY(-4px); }
.cta__label { font-size: 13px; font-weight: 700; color: var(--c-accent); }
.cta__title { font-size: clamp(26px, 3vw, 36px); font-weight: 900; line-height: 1.4; }
.cta__item p { margin-top: 16px; font-size: 14px; color: #eef2fa; }
.cta__arrow {
  position: absolute;
  right: 48px; bottom: 40px;
  font-size: 32px;
  transition: transform .3s var(--ease);
}
.cta__item:hover .cta__arrow { transform: translateX(8px); }

/* =========================================
   Footer
========================================= */
.footer {
  padding: 96px 0 40px;
  background: var(--c-brand-dark);
  color: #c9d6ee;
  font-size: 14px;
}
.footer__inner { display: flex; justify-content: space-between; gap: 64px; }
.footer__info { display: flex; flex-direction: column; gap: 24px; }
.footer__logo img { width: 160px; filter: brightness(0) invert(1); }
.footer__copy { font-size: 15px; font-weight: 700; color: var(--c-white); line-height: 1.8; }
.footer__tel {
  font-family: var(--ff-en);
  font-size: 28px;
  font-weight: 600;
  color: var(--c-white);
  line-height: 1.4;
}
.footer__tel small { display: block; font-family: var(--ff-ja); font-size: 12px; font-weight: 400; color: #9fb3d9; }
.footer__nav { display: flex; gap: 80px; }
.footer__nav-title { margin-bottom: 16px; font-weight: 700; color: var(--c-accent); }
.footer__nav li + li { margin-top: 8px; }
.footer__nav a:hover,
.footer__bottom a:hover { color: var(--c-white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: 12px;
}
.footer__bottom ul { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__bottom small { font-family: var(--ff-en); }

/* =========================================
   Responsive
========================================= */
@media (max-width: 1100px) {
  .nav { gap: 24px; }
  .nav__list { gap: 20px; }
  .works__list { grid-template-columns: repeat(2, 1fr); }
  .program-list { grid-template-columns: repeat(2, 1fr); }
  .program--main { grid-template-columns: 1fr; gap: 28px; }
  .problem__list { grid-template-columns: repeat(2, 1fr); }
  .works__summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .section { padding: 80px 0; }
  .header__inner { padding: 0 20px; }
  .header__logo img { width: 120px; }

  /* ハンバーガーメニュー（CSSのみ） */
  .nav-toggle__btn {
    position: relative;
    z-index: 110;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px; height: 32px;
    cursor: pointer;
  }
  .nav-toggle__btn span {
    display: block;
    height: 2px;
    background: var(--c-brand);
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav-toggle:checked + .nav-toggle__btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked + .nav-toggle__btn span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-toggle__btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    flex-direction: column;
    justify-content: safe center;
    gap: 40px;
    height: 100vh;
    height: 100dvh;
    padding: calc(var(--header-h) + 24px) 24px 40px;
    overflow-y: auto;
    background: rgba(255, 255, 255, .97);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav-toggle:checked ~ .nav { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 24px; }
  .nav__list a { font-size: 18px; }
  .nav__cta { flex-direction: column; }

  .hero { justify-content: flex-start; padding-top: calc(var(--header-h) + 64px); }
  .hero__inner { padding: 0 24px; }
  .hero__stairs { width: 64vw; max-height: 26%; opacity: .6; }
  .btn--line { background: var(--c-white); }
  .hero__stairs-line { transform: translate(-16px, -16px); }
  .hero__scroll { display: none; }
  .hero__marquee { margin-top: auto; padding-top: 40px; }

  /* iOSはfixed背景が効かないため通常スクロールに */
  .photo-bg { background-attachment: scroll; }

  .message__inner,
  .history__inner,
  .company__inner { grid-template-columns: 1fr; gap: 48px; }
  .profile-card { position: static; }
  .policy__list { grid-template-columns: 1fr; }

  .future { grid-template-columns: 1fr; }
  .future__arrow { margin: 0 auto; transform: rotate(90deg); }
  .flow__list { grid-template-columns: 1fr; }
  .flow__item { padding-bottom: 32px; border-radius: var(--radius); }
  .download { padding: 80px 0; }
  .download__inner { grid-template-columns: 1fr; gap: 40px; }
  .download__form { padding: 28px 24px; }

  .cta { padding: 80px 0; }
  .cta__inner { grid-template-columns: 1fr; }
  .cta__item { padding: 40px 28px 88px; }
  .cta__arrow { right: 28px; bottom: 32px; }

  .scene { padding-bottom: 80px; }
  .scene__track li img { width: 280px; }

  .footer__inner,
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__nav { gap: 48px; }
}

@media (max-width: 640px) {
  .section-head { flex-direction: column; align-items: flex-start; }
  .works__list,
  .program-list,
  .problem__list { grid-template-columns: 1fr; }
  .program--main { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px; }
  .program__foot { flex-direction: column; align-items: stretch; }
  .program--main .program__price { font-size: 48px; }
  .works__summary li { padding: 16px; }
  .pc-only { display: none; }
  .sp-only { display: inline; }
  .philosophy { grid-template-columns: 1fr; gap: 32px; margin-top: 56px; padding: 40px 24px; }
  .philosophy__deco span { font-size: 64px; }
  .future__col { padding: 24px 20px; font-size: 14px; }
  .problem__bridge { font-size: 16px; text-align: left; }
  .hero__cta .btn { width: 100%; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .company__table div { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* =========================================
   WordPress用の調整
========================================= */
/* ログイン中に表示される管理バーと固定ヘッダーが重ならないようにする */
.admin-bar .header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .header { top: 46px; }
}

/* 下層ページ（固定ページ・投稿）の本文 */
.page-content { padding: calc(var(--header-h) + 64px) 0 120px; }
.page-content__title {
  margin-bottom: 40px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 900;
  line-height: 1.5;
  color: var(--c-black);
}
.page-content__body { max-width: 860px; }
.page-content__body > * + * { margin-top: 1.5em; }
.page-content__body h2 { font-size: 26px; font-weight: 900; color: var(--c-black); }
.page-content__body h3 { font-size: 20px; font-weight: 900; color: var(--c-brand); }
.page-content__body ul,
.page-content__body ol { padding-left: 1.5em; list-style: revert; }
.page-content__body a { color: var(--c-brand); text-decoration: underline; }

/* =========================================
   下層ページの見出し
========================================= */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 64px;
  background:
    radial-gradient(circle at 85% 20%, rgba(0, 174, 235, .12), transparent 45%),
    var(--c-white);
  overflow: hidden;
}
/* ロゴの階段を右下に薄く敷く */
.page-hero::after {
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  width: min(36vw, 420px); height: 70%;
  background:
    linear-gradient(rgba(1,64,153,.08), rgba(1,64,153,.08)) 0 100% / 25% 25% no-repeat,
    linear-gradient(rgba(1,64,153,.12), rgba(1,64,153,.12)) 33.3% 100% / 25% 50% no-repeat,
    linear-gradient(rgba(1,64,153,.16), rgba(1,64,153,.16)) 66.6% 100% / 25% 75% no-repeat,
    linear-gradient(rgba(1,64,153,.2), rgba(1,64,153,.2)) 100% 100% / 25% 100% no-repeat;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__label { font-size: 14px; font-weight: 700; color: var(--c-sub); }
.page-hero__label::before { content: ""; display: inline-block; width: 40px; height: 2px; margin-right: 12px; background: var(--c-sky); vertical-align: middle; }
.page-hero__title { margin-top: 16px; font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; line-height: 1.4; color: var(--c-black); }
.page-hero__lead { margin-top: 20px; font-weight: 700; line-height: 2; color: var(--c-sub); }

/* =========================================
   お問い合わせページ
========================================= */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
}
.contact__aside { display: flex; flex-direction: column; gap: 16px; }
.contact-box { padding: 28px; border-radius: var(--radius); background: var(--c-white); }
.contact-box__title { margin-bottom: 16px; font-size: 17px; font-weight: 900; color: var(--c-black); }
.contact-box__check li { position: relative; padding-left: 26px; font-size: 14px; font-weight: 700; line-height: 1.7; }
.contact-box__check li + li { margin-top: 10px; }
.contact-box__check li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 2px;
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 4px;
  background: var(--c-brand);
  color: var(--c-white);
  font-size: 11px;
}
.contact-steps li {
  display: flex;
  flex-direction: column;
  padding: 12px 0 12px 16px;
  border-left: 3px solid var(--c-sky);
  font-weight: 700;
  color: var(--c-black);
}
.contact-steps li + li { margin-top: 8px; }
.contact-steps li:last-child { border-left-color: var(--c-brand); }
.contact-steps span { font-family: var(--ff-display); font-size: 14px; font-weight: 400; color: var(--c-brand); }
.contact-steps small { font-size: 12px; font-weight: 500; color: var(--c-sub); }
.contact-box--tel { background: var(--c-brand); color: var(--c-white); }
.contact-box--tel .contact-box__title { color: var(--c-white); margin-bottom: 4px; }
.contact-box__tel { font-family: var(--ff-en); font-size: 28px; font-weight: 600; }

.contact__form {
  padding: 48px;
  border-radius: var(--radius);
  background: var(--c-white);
  border-top: 6px solid var(--c-sky);
}

/* フォーム（見本フォーム・Contact Form 7 共通） */
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.contact-form__row { margin: 0; padding: 0; border: 0; }
.contact-form__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-black);
}
.contact-form__label em {
  padding: 1px 8px;
  border-radius: 4px;
  background: #e5484d;
  color: var(--c-white);
  font-size: 11px;
  font-style: normal;
}
.contact-form__label span { font-size: 12px; font-weight: 500; color: var(--c-sub); }
.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form input[type="tel"],
.contact__form textarea,
.contact__form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: var(--c-gray);
  font: inherit;
  color: var(--c-text);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.contact__form textarea { min-height: 180px; resize: vertical; }
.contact__form input:focus,
.contact__form textarea:focus,
.contact__form select:focus { outline: none; border-color: var(--c-brand); background: var(--c-white); box-shadow: 0 0 0 3px rgba(0, 174, 235, .25); }
.contact-form__choices { display: flex; flex-direction: column; gap: 8px; }
.contact-form__choices label,
.contact-form__choices .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
}
.contact-form__choices .wpcf7-list-item { display: block; margin: 0 0 8px; }
.contact-form__choices input,
.contact-form__agree input { accent-color: var(--c-brand); width: 18px; height: 18px; }
.contact-form__agree { font-size: 14px; text-align: center; }
.contact-form__agree label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.contact-form__agree a { color: var(--c-brand); text-decoration: underline; }
.contact-form__submit,
.contact__form .wpcf7-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.contact__form .wpcf7-not-valid-tip { margin-top: 6px; font-size: 12px; color: #e5484d; }
.contact__form .wpcf7-response-output { margin: 16px 0 0 !important; padding: 12px 16px !important; border-radius: 8px; font-size: 14px; }
.contact__form .download__note { color: var(--c-brand); text-align: center; }

@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; }
  .contact__form { order: -1; padding: 32px 20px; }
  .page-hero { padding: calc(var(--header-h) + 48px) 0 48px; }
  .page-hero::after { opacity: .5; }
}

/* =========================================
   法務ページ（特定商取引法・プライバシーポリシー）
========================================= */
.page-hero--small { padding-bottom: 48px; }
.page-hero--small::after { height: 60%; width: min(28vw, 320px); }

.legal__card {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px;
  border-radius: var(--radius);
  background: var(--c-white);
  border-top: 6px solid var(--c-sky);
}
.legal__intro { line-height: 2.1; }

/* 表形式（特定商取引法・お問い合わせ窓口） */
.legal-table { margin: 0; border-top: 1px solid var(--c-line); }
.legal-table > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--c-line);
}
.legal-table dt { font-weight: 700; color: var(--c-brand); line-height: 1.8; }
.legal-table dd { margin: 0; line-height: 1.9; }
.legal-table--compact > div { grid-template-columns: 160px 1fr; padding: 14px 8px; }
.legal-links li { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.legal-links li + li { margin-top: 6px; }
.legal-links a { color: var(--c-brand); text-decoration: underline; word-break: break-all; }
.legal-notes { margin-top: 10px; }
.legal-notes li { position: relative; padding-left: 1.2em; font-size: 13px; color: var(--c-sub); }
.legal-notes li::before { content: "※"; position: absolute; left: 0; }

/* 目次 */
.legal-toc {
  margin: 40px 0 48px;
  padding: 24px 28px;
  border-radius: 12px;
  background: var(--c-gray);
}
.legal-toc__title { margin-bottom: 12px; font-weight: 900; color: var(--c-black); }
.legal-toc ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; }
.legal-toc a { font-size: 14px; color: var(--c-brand); }
.legal-toc a:hover { text-decoration: underline; }

/* 条文 */
.legal__content section + section { margin-top: 48px; }
.legal__content section { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__content h2 {
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--c-brand);
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 900;
  line-height: 1.6;
  color: var(--c-black);
}
.legal__content p { line-height: 2.1; }
.legal__content p + p,
.legal__content p + .legal-list,
.legal__content .legal-list + p,
.legal__content p + .legal-table { margin-top: 16px; }
.legal-list { counter-reset: legal; }
.legal-list > li {
  counter-increment: legal;
  position: relative;
  padding: 10px 0 10px 3em;
  border-bottom: 1px dashed var(--c-line);
  line-height: 1.9;
}
.legal-list > li::before {
  content: "（" counter(legal) "）";
  position: absolute;
  left: 0; top: 10px;
  font-weight: 700;
  color: var(--c-brand);
}
.legal-list ul { margin-top: 8px; }
.legal-list ul li { position: relative; padding-left: 1.2em; font-size: 14px; }
.legal-list ul li::before { content: "・"; position: absolute; left: 0; color: var(--c-brand); }

@media (max-width: 900px) {
  .legal__card { padding: 32px 20px; }
  .legal-table > div,
  .legal-table--compact > div { grid-template-columns: 1fr; gap: 4px; }
  .legal-toc ol { grid-template-columns: 1fr; }
}

/* =========================================
   お問い合わせ完了ページ
========================================= */
.thanks { padding-top: calc(var(--header-h) + 80px); }
.thanks__card {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 56px;
  border-radius: 24px;
  background: var(--c-white);
  border-top: 6px solid var(--c-sky);
  text-align: center;
}
/* ロゴの階段をかたどったチェックアイコン */
.thanks__icon {
  position: relative;
  width: 88px; height: 88px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--c-brand-light);
}
.thanks__icon::before {
  content: "";
  position: absolute;
  left: 50%; top: 46%;
  width: 34px; height: 18px;
  border-left: 6px solid var(--c-brand);
  border-bottom: 6px solid var(--c-brand);
  transform: translate(-50%, -50%) rotate(-45deg);
  animation: thanksCheck .5s .2s var(--ease) both;
}
.thanks__icon::after {
  content: "";
  position: absolute;
  right: 6px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--c-accent);
}
@keyframes thanksCheck {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(-45deg) scale(.4); }
  to   { opacity: 1; transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
}
.thanks__label { font-size: 14px; font-weight: 700; color: var(--c-sky); }
.thanks__title { margin-top: 8px; font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; line-height: 1.5; color: var(--c-black); }
.thanks__body { margin-top: 24px; line-height: 2; }
.thanks__body p + p { margin-top: 12px; }
.thanks__note { font-size: 13px; color: var(--c-sub); }

.thanks-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 40px;
  text-align: left;
}
.thanks-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 10px;
  background: var(--c-gray);
  border-top: 4px solid var(--c-line);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-sub);
}
.thanks-steps span { font-family: var(--ff-display); font-size: 14px; font-weight: 400; }
.thanks-steps .is-done { background: var(--c-brand); border-top-color: var(--c-sky); color: var(--c-white); }
.thanks-steps .is-done span { color: var(--c-accent); }
.thanks-steps .is-next { border-top-color: var(--c-sky); color: var(--c-black); }
.thanks-steps .is-next span { color: var(--c-brand); }
.thanks-steps em {
  position: absolute;
  right: 12px; top: 14px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-black);
  font-size: 11px;
  font-style: normal;
}

.thanks__body strong { color: var(--c-brand); background: linear-gradient(transparent 60%, var(--c-accent) 60%); }
.thanks__note a { color: var(--c-brand); text-decoration: underline; }
.thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

@media (max-width: 640px) {
  .thanks { padding-top: calc(var(--header-h) + 40px); }
  .thanks__card { padding: 40px 20px; }
  .thanks-steps { grid-template-columns: 1fr; }
  .thanks__actions .btn { width: 100%; }
}
