/* ============================================================
 * Task28：TOPページ デザイン差し替え（白とDeep Navy・右側の波）
 * - TOP（is_front_page()）だけで読み込む（functions.php current_official_top_assets()）。
 * - すべての指定を body.current-top 配下に限定し、下層ページへ波及させない。
 * - 文言・構成・リンク・フォーム・計測のフック（data-*／class）は front-page.php のまま。
 * - 波：FB.png の右端（x=1250, y=0, 390×624）を切り出した assets/images/top/top-wave.webp。
 *   PC／タブレット：画面高の装飾レイヤーを右側に固定（幅26%、701〜1000pxは22%）。
 *   700px以下：ページ上端（top:0）から配置し、下側を透明へフェードして初画面内で終える。
 * ============================================================ */

.current-top {
  --top-ink: #061d35;
  --top-muted: #61717f;
  --top-line: #dbe2e7;
  --top-pad-left: clamp(24px, 6vw, 100px);
  --top-pad-right: clamp(95px, 19vw, 304px);
  --top-section-space: 88px;
  position: relative;
  isolation: isolate;
  color: var(--top-ink);
  background: #fff;
}

/* ---------- 右側の波（装飾） ---------- */
.current-top .top-wave {
  position: fixed;
  z-index: -1;
  top: 0;
  right: 0;
  width: 26%;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}

.current-top .top-wave::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/top/top-wave.webp") right top / 100% 100% no-repeat;
}

/* 波の上に重なる各セクションは背景を透明にし、波を途中で遮らない（白はbodyの背景）。 */
.current-top .hero,
.current-top .hero__message,
.current-top .hero__visual,
.current-top .concept,
.current-top .service,
.current-top .brands,
.current-top .information,
.current-top .closing {
  background: transparent;
}

/* ---------- ヘッダー（TOPは最上部から白地・濃色ロゴ） ---------- */
.current-top .site-header {
  background: rgb(255 255 255 / 94%);
  box-shadow: inset 0 -1px 0 #edf0f3;
  color: var(--top-ink);
}
.current-top .site-header .wordmark { color: var(--top-ink); }
.current-top .site-header .wordmark img { filter: none; }
@media (min-width: 861px) {
  .current-top .global-nav a { color: var(--top-ink); }
}
.current-top .header-contact { background: var(--top-ink); box-shadow: none; }

/* ---------- 共通：セクション見出し（英字＋日本語の1行ラベル） ---------- */
.current-top .section-heading,
.current-top .service__heading,
.current-top .brands__heading,
.current-top .information__heading h2,
.current-top .closing-panel__index {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin: 0 0 44px;
  color: var(--top-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .18em;
}
.current-top .brands__heading b {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}
.current-top .section-heading span,
.current-top .service__heading span,
.current-top .information__heading span,
.current-top .closing-panel__index span {
  display: inline;
  margin: 0;
  color: var(--top-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .12em;
}

/* 文字リンク（VIEW CONCEPT など既存の .concept__cta） */
.current-top .concept__cta {
  justify-content: space-between;
  gap: 48px;
  min-width: 200px;
  padding: 16px 0;
  border-bottom-color: var(--top-ink);
  color: var(--top-ink);
  font-size: 12px;
  letter-spacing: .06em;
}
.current-top .concept__cta span { font-size: 20px; }

/* ---------- HERO ---------- */
.current-top .hero {
  position: relative;
  display: flex;
  align-items: center;
  height: 100svh;
  min-height: 640px;
  max-height: 900px;
}
.current-top .hero__message {
  display: block;
  width: 100%;
  color: var(--top-ink);
}
.current-top .hero__copy {
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 40px) var(--top-pad-right) 96px var(--top-pad-left);
}
.current-top .hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .19em;
}
.current-top .hero__eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--top-ink);
}
.current-top .hero__title {
  margin: 32px 0 26px;
  font-size: clamp(40px, 4.6vw, 66px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .025em;
}
.current-top .hero__lead,
.current-top .hero__body {
  max-width: 680px;
  font-size: 15px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: .03em;
}
.current-top .hero__lead { margin: 0; }
.current-top .hero__actions {
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}
.current-top .hero .button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-width: 216px;
  padding: 20px 25px;
  font-size: 13px;
  text-align: left;
}
.current-top .hero .button--outline {
  border-color: var(--top-ink);
  color: #fff;
  background: var(--top-ink);
}
.current-top .hero .button--outline span { position: static; font-size: 18px; }
.current-top .hero .button--outline:hover { color: #fff; background: #14486a; border-color: #14486a; }
.current-top .hero .button--light {
  min-width: 150px;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid #97a7b5;
  color: var(--top-ink);
  background: transparent;
}
.current-top .hero .button--light::after { content: "→"; font-size: 18px; font-weight: 300; line-height: 1; transition: transform .2s ease; }
.current-top .hero .button--light:hover { color: var(--top-ink); background: transparent; }
.current-top .hero .button--light:hover::after { transform: translateX(5px); }

/* 旧ヒーロー右側の線画は波に置き換える。Scroll の導線は左下に残す。 */
.current-top .hero__visual {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  overflow: visible;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--top-pad-right) 0 var(--top-pad-left);
}
.current-top .hero .network { display: none; }
.current-top .scroll-cue {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #6b7c8b;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.current-top .scroll-cue span { order: -1; width: 55px; height: 1px; background: #91a4b2; }

/* ---------- 各セクション共通の余白 ---------- */
.current-top .concept,
.current-top .service {
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}
.current-top .concept__inner,
.current-top .service__inner,
.current-top .brands__inner,
.current-top .information__inner {
  width: auto;
  height: auto;
  min-height: 0;
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--top-section-space) var(--top-pad-right) var(--top-section-space) var(--top-pad-left);
}

/* ---------- CONCEPT ---------- */
.current-top .concept__network { display: none; }
.current-top .concept__copy {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  column-gap: 80px;
  width: auto;
}
.current-top .concept__copy .section-heading { grid-column: 1 / -1; }
.current-top .concept__title {
  grid-column: 1;
  grid-row: 2 / span 2;
  margin: 0;
  /* 見出しの1行（最大12字）が列幅に収まる大きさ。広い画面（1440px超）でも「を、」だけが次の行に落ちないよう上限を42pxにする */
  font-size: clamp(28px, calc(3.3vw - 4px), 42px);
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: .02em;
}
.current-top .concept__body {
  grid-column: 2;
  padding-top: 10px;
  font-size: 15px;
  font-weight: 400;
  line-height: 2.1;
}
.current-top .concept__body p + p { margin-top: 19px; }
.current-top .concept__copy .concept__cta { grid-column: 2; margin-top: 24px; }

.current-top .philosophy {
  margin-top: 72px;
  padding-top: 0;
  border-top: 1px solid var(--top-line);
}
.current-top .philosophy__label {
  margin: 28px 0 0;
  color: var(--top-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
}
.current-top .philosophy__items {
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: none;
}
.current-top .philosophy__items > div,
.current-top .philosophy__items > div:first-child {
  min-height: 0;
  padding: 22px 30px 4px;
  border-right: 0;
  border-left: 1px solid var(--top-line);
}
.current-top .philosophy__items > div:first-child { padding-left: 0; border-left: 0; }
.current-top .philosophy h3 { margin: 0 0 8px; font-size: 27px; font-weight: 500; letter-spacing: .04em; }
.current-top .philosophy__items p { font-size: 14px; font-weight: 400; line-height: 1.8; }

/* ---------- CSU／CIP ---------- */
.current-top .service__inner { display: block; }
.current-top .service__main {
  grid-template-columns: 1.3fr 1fr;
  gap: 90px;
  align-items: center;
  min-height: 0;
}
.current-top .service__copy h2 {
  margin: 0 0 22px;
  /* 1行（最大14字）が列幅に収まる大きさ（広い画面で「る。」だけが落ちないよう上限36px） */
  font-size: clamp(24px, calc(2.9vw - 4px), 36px);
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: .02em;
}
.current-top .service__copy p {
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
}
.current-top .service__copy p + p { margin-top: 10px; }
.current-top .service__copy .service__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  padding: 8px 12px;
  border: 1px solid #cbd6dd;
  color: #567080;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .07em;
}
.current-top .service__copy .service__status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #647e90;
}
.current-top .service__copy .concept__cta { margin-top: 28px; }
.current-top .platform-logos { gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.current-top .platform-logos li { height: 30px; }
.current-top .platform-logos img { height: 26px; max-width: 96px; }

/* 正式ロゴ：台座・枠・影なしで白地に置く（表示用の透過版を使用） */
.current-top .brand-lockup {
  justify-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.current-top .brand-lockup img,
.current-top .brand-lockup--cip img {
  width: 185px;
  height: auto;
  max-height: none;
}

.current-top .service-values {
  margin-top: 64px;
  padding-top: 0;
  border-top: 0;
}
.current-top .service-values__label {
  margin: 0 0 18px;
  color: var(--top-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
}
.current-top .service-values__grid { border-top: 1px solid var(--top-line); }
.current-top .service-values article,
.current-top .service-values article:last-child {
  min-height: 0;
  padding: 25px 26px 0;
  border-right: 0;
  border-left: 1px solid var(--top-line);
  text-align: left;
}
.current-top .service-values article:first-child { padding-left: 0; border-left: 0; }
.current-top .service-values article b {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  color: #7e95a5;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
}
.current-top .service-values h3 { margin: 14px 0 8px; font-size: 17px; font-weight: 600; line-height: 1.5; }
.current-top .service-values article p { color: #5c6b77; font-size: 13px; line-height: 1.85; }

/* ---------- OUR BRANDS ---------- */
.current-top .brands { border-top: 0; border-bottom: 0; }
.current-top .brands__heading { margin-bottom: 44px; }
.current-top .brands__grid { border-top: 1px solid var(--top-line); border-bottom: 1px solid var(--top-line); }
.current-top .brands article,
.current-top .brands article:last-child {
  padding: 36px 32px 28px;
  border-right: 0;
  border-left: 1px solid var(--top-line);
  text-align: left;
}
.current-top .brands article:first-child { padding-left: 0; border-left: 0; }
.current-top .brands article:last-child { padding-right: 0; }
.current-top .brands__logo { height: 108px; margin: 0; }
.current-top .brands__logo img { max-width: min(100%, 180px); max-height: 75px; }
.current-top .brands article p { min-height: 53px; margin: 30px 0 0; font-size: 14px; font-weight: 400; line-height: 1.9; }
.current-top .brands article > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 16px 0;
  color: var(--top-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
}
.current-top .brands article > a span { font-size: 18px; font-weight: 300; }
.current-top .brands article > a:hover { opacity: .62; }
.current-top .social-links { justify-content: flex-start; gap: 6px 17px; margin-top: 4px; }
.current-top .brands article .social-links a { color: #61717f; font-size: 11px; }

/* ---------- INFORMATION（既存の最新3件・日付仕様のまま） ---------- */
.current-top .information { padding: 0; border-top: 0; color: var(--top-ink); }
.current-top .information__inner {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 50px;
}
.current-top .information__heading { margin: 0; }
.current-top .information__heading h2 { flex-direction: column; gap: 10px; margin: 0; }
.current-top .information__list { border-top: 0; }
.current-top .information__item { grid-template-columns: 110px minmax(0, 1fr) auto; min-height: 0; padding: 24px 0; border-bottom-color: var(--top-line); }
.current-top .information__item:first-child { padding-top: 0; }
.current-top .information__date { color: var(--top-muted); font-size: 13px; }
.current-top .information__title { font-size: 15px; line-height: 1.9; }
.current-top .information__item:hover .information__title { opacity: .62; }

/* ---------- COMPANY／INTERVIEW／CONTACT（3列パネルを全幅の縦並びへ） ---------- */
.current-top .closing__grid { display: block; }
.current-top .closing-panel,
.current-top .closing-panel:last-child {
  min-height: 0;
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--top-section-space) var(--top-pad-right) var(--top-section-space) var(--top-pad-left);
  border: 0;
}

/* COMPANY：左にラベルと導線、右に会社情報 */
.current-top #company {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-rows: auto 1fr;
  column-gap: 100px;
  align-content: start;
}
.current-top #company .closing-panel__index { grid-column: 1; grid-row: 1; }
.current-top #company .company-list { grid-column: 2; grid-row: 1 / span 2; }
.current-top #company > .concept__cta { grid-column: 1; grid-row: 2; align-self: start; margin-top: 0; }
.current-top .company-list { font-size: 14px; line-height: 1.9; }
.current-top .company-list div {
  grid-template-columns: 96px 1fr;
  gap: 30px;
  padding: 18px 0;
  border-bottom: 1px solid var(--top-line);
}
.current-top .company-list div:first-child { border-top: 1px solid var(--top-line); }
.current-top .company-list dt { color: var(--top-muted); }

/* INTERVIEW：最新1件（主）と次の1件（副）。画像は元比率のまま全体を表示。 */
.current-top .top-interview {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  column-gap: 42px;
  align-items: start;
  color: var(--top-ink);
}
.current-top .top-interview__tags,
.current-top .top-interview__lead,
.current-top .top-interview__links { grid-column: 1 / -1; }
.current-top .top-interview__tags { color: #72818d; font-size: 11px; font-weight: 600; letter-spacing: .14em; }
.current-top .top-interview__no { color: var(--top-ink); }
.current-top .top-interview__lead {
  margin: 0 0 45px;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .02em;
}
.current-top .top-interview__main { grid-column: 1; min-width: 0; }
.current-top .top-interview__banner,
.current-top .top-interview__thumb { margin: 0 0 22px; background: transparent; }
.current-top .top-interview__banner img,
.current-top .top-interview__thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.current-top .top-interview__banner:hover img,
.current-top .top-interview__item:hover img { opacity: .88; }
.current-top .top-interview__label { color: #72818d; font-size: 11px; letter-spacing: .14em; }
.current-top .top-interview__meta { margin: 0 0 14px; color: #72818d; font-size: 12px; }
.current-top .top-interview__names { font-size: 13px; }
.current-top .top-interview__title { margin: 8px 0 10px; font-size: 24px; font-weight: 500; line-height: 1.7; letter-spacing: .025em; }
.current-top .top-interview__subtitle { margin: 0; color: var(--top-muted); font-size: 13px; line-height: 1.9; }

.current-top .top-interview__more {
  grid-column: 2;
  margin: 65px 0 0;
  border-top: 0;
}
.current-top .top-interview__item {
  display: block;
  padding: 0;
  border-bottom: 0;
}
.current-top .top-interview__item:hover { opacity: 1; }
.current-top .top-interview__item-meta { margin: 0 0 10px; color: #72818d; font-size: 12px; }
.current-top .top-interview__item-names { margin: 0 0 6px; font-size: 13px; }
.current-top .top-interview__item-title { font-size: 20px; font-weight: 500; line-height: 1.7; letter-spacing: .025em; }

.current-top .top-interview__links { gap: 14px 36px; margin-top: 40px; }
.current-top .top-interview__links a {
  justify-content: space-between;
  gap: 40px;
  min-width: 190px;
  padding: 14px 0;
  font-size: 12px;
}
.current-top .top-interview__links a span { font-size: 18px; }

/* CONTACT：左に見出し、右にフォーム */
.current-top #contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 90px;
  align-content: start;
}
.current-top #contact .closing-panel__index { grid-column: 1; grid-row: 1; }
.current-top #contact .closing-panel__lead {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  /* 1行（最大16字）が列幅に収まる大きさ（広い画面で「ら、」だけが落ちないよう上限28px） */
  font-size: clamp(20px, calc(2.2vw - 3px), 28px);
  font-weight: 500;
  line-height: 1.8;
}
.current-top .top-contact__form { grid-column: 2; grid-row: 1 / span 3; min-width: 0; }
.current-top .form-status { margin: 0 0 22px; }
.current-top .contact-form { gap: 23px; }
.current-top .contact-form__field { gap: 10px; }
.current-top .contact-form__field label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}
.current-top .contact-form__field label em { color: #61798c; font-size: 11px; font-weight: 500; }
.current-top .contact-form input[type="text"],
.current-top .contact-form input[type="email"],
.current-top .contact-form textarea {
  height: 48px;
  padding: 12px 14px;
  border: 1px solid #cbd6dd;
  border-radius: 0;
  color: var(--top-ink);
  background: #fff;
  font-size: 16px;
}
.current-top .contact-form textarea { height: 130px; min-height: 0; }
.current-top .contact-form input:focus-visible,
.current-top .contact-form textarea:focus-visible { outline: 2px solid #488cb8; outline-offset: 1px; }
.current-top .contact-form__consent { align-items: flex-start; font-size: 13px; line-height: 1.8; }
.current-top .contact-form__consent input { margin-top: 4px; }
.current-top .contact-button {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 22px 25px;
  font-size: 13px;
}
.current-top .contact-button span { font-size: 18px; font-weight: 300; }
.current-top .contact-button:hover { color: #fff; background: #14486a; border-color: #14486a; }

/* ---------- フッター（TOPだけ白基調。背景を透明にして右側の波を下端まで見せる） ----------
 * 共通テンプレート template-parts/site-footer.php は変更しない。下層ページの濃紺フッターは assets/css/style.css のまま。 */
.current-top .site-footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px var(--top-pad-right) 40px var(--top-pad-left);
  border-top: 0;
  color: var(--top-ink);
  /* 区切り線は本文と同じ幅だけに引き、右側の波の上には引かない */
  background: linear-gradient(var(--top-line), var(--top-line)) var(--top-pad-left) 0 / calc(100% - var(--top-pad-left) - var(--top-pad-right)) 1px no-repeat;
}
.current-top .site-footer__logo { filter: none; }
.current-top .site-footer p { color: var(--top-ink); }
.current-top .site-footer nav a,
.current-top .site-footer__legal a { color: var(--top-ink); }
.current-top .site-footer nav a:hover,
.current-top .site-footer__legal a:hover,
.current-top .footer-social a:hover,
.current-top .representative-social a:hover { opacity: .62; }
.current-top .footer-social a,
.current-top .representative-social a { color: var(--top-ink); }
.current-top .representative-social span { color: var(--top-muted); }
.current-top .site-footer__legal small { color: var(--top-muted); }

/* ---------- 1180px以下 ---------- */
@media (max-width: 1180px) {
  .current-top .concept__copy { column-gap: 45px; }
  .current-top .service__main { gap: 45px; }
  .current-top #company { column-gap: 60px; }
  .current-top #contact { column-gap: 55px; }
  .current-top .service-values h3 { font-size: 15px; }
}

/* ---------- 701〜1000px：波を22%に縮小、各セクションを1列寄りに ---------- */
@media (max-width: 1000px) {
  .current-top {
    --top-pad-right: clamp(90px, 17vw, 170px);
    --top-section-space: 70px;
  }
  .current-top .top-wave {
    width: 22%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 63%);
    mask-image: linear-gradient(90deg, transparent, #000 63%);
  }
  .current-top .hero__title { font-size: 50px; }
  .current-top .concept__copy { grid-template-columns: 1fr; row-gap: 20px; }
  .current-top .concept__title,
  .current-top .concept__body,
  .current-top .concept__copy .concept__cta { grid-column: 1; grid-row: auto; }
  .current-top .service__main { grid-template-columns: 1.35fr .85fr; gap: 25px; }
  .current-top .service__copy h2 { font-size: clamp(21px, 2.8vw, 28px); }
  .current-top .brand-lockup img,
  .current-top .brand-lockup--cip img { width: 150px; }
  .current-top .service-values__grid--four { grid-template-columns: repeat(2, 1fr); row-gap: 25px; }
  .current-top .service-values__grid--four article:nth-child(3) { padding-left: 0; border-left: 0; }
  .current-top .brands__grid { grid-template-columns: 1fr; }
  .current-top .brands article,
  .current-top .brands article:first-child,
  .current-top .brands article:last-child { padding: 25px 0; border-left: 0; border-bottom: 0; }
  .current-top .brands article + article { border-top: 1px solid var(--top-line); }
  .current-top .brands__logo { justify-content: start; height: 90px; }
  .current-top .brands article p { min-height: 0; margin-top: 12px; }
  .current-top .information__inner { grid-template-columns: 1fr; gap: 30px; }
  .current-top #company,
  .current-top #contact { display: block; }
  .current-top #company > .concept__cta { margin: 0 0 32px; }
  .current-top .top-contact__form { margin-top: 36px; }
  .current-top .top-interview { display: block; }
  .current-top .top-interview__more { margin-top: 38px; }
}

/* ---------- 860px以下：既存のモバイルヘッダー／メニュー（860/861px）に合わせる ---------- */
@media (max-width: 860px) {
  .current-top .site-header .menu-button { color: var(--top-ink); }
  /* ページ内リンク（#concept 等）の移動先が固定ヘッダーに隠れないようにする */
  .current-top main [id] { scroll-margin-top: 40px; }
  .current-top .hero { display: block; height: auto; min-height: 0; max-height: none; }
  .current-top .hero__copy { padding-top: calc(var(--header-height) + 56px); padding-bottom: 72px; }
  .current-top .hero__visual { display: none; }
  .current-top .hero__title { font-size: clamp(30px, 7.7vw, 46px); line-height: 1.6; }
  .current-top .hero__lead,
  .current-top .hero__body { font-size: 15px; line-height: 1.9; }
  .current-top .hero .button { flex: 0 0 auto; }
  .current-top .concept__body,
  .current-top .service__copy p { font-size: 15px; line-height: 1.95; }
  .current-top .service__main { padding: 0; }
  .current-top .brand-lockup,
  .current-top .service__copy { grid-row: auto; }
}

/* ---------- 700px以下（スマートフォン） ---------- */
@media (max-width: 700px) {
  .current-top {
    --top-pad-left: 24px;
    --top-pad-right: 24px;
    --top-section-space: 56px;
  }
  /* 波：ページ最上端から配置し、初画面内で白へフェードして終える（スクロールに追従しない）。 */
  .current-top .top-wave {
    position: absolute;
    width: min(40vw, 190px);
    height: min(64vw, 304px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 72%);
    mask-image: linear-gradient(90deg, transparent, #000 72%);
  }
  .current-top .top-wave::before {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 65%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 65%, transparent 100%);
  }
  .current-top .section-heading,
  .current-top .service__heading,
  .current-top .brands__heading,
  .current-top .information__heading h2,
  .current-top .closing-panel__index { gap: 4px 14px; margin-bottom: 30px; font-size: 13px; letter-spacing: .16em; }
  .current-top .hero__copy { padding-top: calc(var(--header-height) + 48px); padding-bottom: 56px; }
  .current-top .hero__eyebrow { gap: 10px; font-size: 11px; letter-spacing: .12em; }
  .current-top .hero__eyebrow::before { width: 24px; }
  .current-top .hero__title { margin: 24px 0 20px; font-size: clamp(28px, 7.7vw, 40px); line-height: 1.65; letter-spacing: .015em; }
  .current-top .hero__actions { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 28px; max-width: none; }
  .current-top .hero .button { width: 100%; min-width: 0; }
  .current-top .hero .button--outline { padding: 18px 20px; }
  .current-top .concept__title { font-size: clamp(22px, 6.7vw, 28px); line-height: 1.7; }
  .current-top .concept__body { padding-top: 8px; }
  .current-top .concept__copy .concept__cta,
  .current-top .concept__cta { min-width: 0; width: 100%; max-width: 280px; }
  .current-top .philosophy { margin-top: 40px; }
  .current-top .philosophy__label { margin-top: 22px; }
  .current-top .philosophy__items { grid-template-columns: 1fr; }
  .current-top .philosophy__items > div,
  .current-top .philosophy__items > div:first-child {
    display: grid;
    grid-template-columns: 7em 1fr;
    align-items: center;
    column-gap: 12px;
    padding: 18px 0;
    border-left: 0;
    border-bottom: 1px solid var(--top-line);
  }
  .current-top .philosophy h3 { margin: 0; font-size: 22px; }
  .current-top .service__main { display: flex; flex-direction: column; align-items: stretch; gap: 32px; }
  .current-top .brand-lockup { order: -1; align-self: center; }
  .current-top .brand-lockup img,
  .current-top .brand-lockup--cip img { width: 150px; }
  .current-top .service__copy h2 { font-size: clamp(18px, 5.8vw, 25px); line-height: 1.65; }
  .current-top .platform-logos { display: flex; gap: 18px; }
  .current-top .platform-logos li { width: auto; }
  .current-top .platform-logos img { height: 24px; max-width: 84px; }
  .current-top .service-values { margin-top: 40px; }
  .current-top .service-values__grid--four article { padding: 20px 14px 0 16px; }
  .current-top .service-values__grid--four article:nth-child(odd) { padding-left: 0; border-left: 0; }
  .current-top .service-values__grid--three { grid-template-columns: 1fr; }
  .current-top .service-values__grid--three article,
  .current-top .service-values__grid--three article:first-child,
  .current-top .service-values__grid--three article:last-child {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 4px 10px;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--top-line);
  }
  .current-top .service-values__grid--three article b { padding-top: 4px; }
  .current-top .service-values__grid--three h3 { margin: 0; }
  .current-top .service-values__grid--three article p { grid-column: 2; }
  .current-top .service-values h3 { font-size: 15px; }
  .current-top .brands__logo { justify-content: center; height: 100px; }
  .current-top .brands__heading { margin-bottom: 26px; }
  .current-top .information__item { grid-template-columns: minmax(0, 1fr) auto; padding: 20px 0; }
  .current-top .information__item:first-child { padding-top: 0; }
  .current-top .information__heading h2 { flex-direction: row; }
  .current-top .company-list div { grid-template-columns: 76px 1fr; gap: 16px; padding: 16px 0; }
  .current-top .top-interview__lead { margin-bottom: 30px; font-size: clamp(17px, 5.3vw, 24px); }
  .current-top .top-interview__title { font-size: 21px; }
  .current-top .top-interview__item-title { font-size: 19px; }
  .current-top .top-interview__links { flex-direction: column; gap: 4px; }
  .current-top #contact .closing-panel__lead { font-size: clamp(16px, 5vw, 24px); }
  .current-top .top-contact__form { margin-top: 30px; }
  .current-top .site-footer { padding-top: 44px; padding-bottom: 32px; }
}

/* ---------- 400px以下：CSUの4項目を1列（CIPと同じ行組み）、狭幅で文字が詰まらないように ---------- */
@media (max-width: 400px) {
  .current-top .service-values__grid--four { grid-template-columns: 1fr; row-gap: 0; }
  .current-top .service-values__grid--four article,
  .current-top .service-values__grid--four article:first-child,
  .current-top .service-values__grid--four article:nth-child(odd),
  .current-top .service-values__grid--four article:last-child {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 4px 10px;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--top-line);
  }
  .current-top .service-values__grid--four article b { padding-top: 4px; }
  .current-top .service-values__grid--four h3 { margin: 0; }
  .current-top .service-values__grid--four article p { grid-column: 2; }
  .current-top .service__copy .service__status { font-size: 10px; letter-spacing: .03em; }
  .current-top .company-list div { grid-template-columns: 68px 1fr; gap: 12px; }
}
