/*
Theme Name: ALPHA MARINE
Theme URI: https://test-site-mw.jpn.org/am-test-wp/
Author: ALPHA MARINE
Description: 小型船舶免許スクール ALPHA MARINE の公式サイト用ブロックテーマ（FSE）。静的HTMLワイヤーフレームから移行。マリンカラーのデザイントークンと整理済みコンポーネントCSSを内包。
Version: 1.0.4
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: alpha-marine
Tags: full-site-editing, block-patterns, custom-colors, blog, business
*/

/* =====================================================================
   以下は元サイト styles.css をそのまま移植したコンポーネントCSSです。
   :root のデザイントークン（マリンカラー等）も維持しているため、
   var(--marine-navy) などの既存指定がそのまま機能します。
   色・余白・タイポはエディタ連携用に theme.json 側にも定義しています。
   ===================================================================== */

:root {
  --white: #ffffff;
  --gray-50: #f8f8f8;
  --gray-100: #f2f2f2;
  --gray-200: #e6e6e6;
  --gray-300: #d6d6d6;
  --gray-400: #b7b7b7;
  --gray-500: #8b8b8b;
  --gray-600: #666666;
  --gray-700: #424242;
  --gray-800: #242424;
  --black: #000000;
  --line: #dcdcdc;
  --radius: 8px;
  --max: 1200px;
  --anchor-offset: 104px;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

:where(section, article, div)[id] {
  scroll-margin-top: var(--anchor-offset);
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto;
  gap: clamp(14px, 2vw, 24px);
  align-items: center;
  min-height: 82px;
  padding: 14px max(18px, calc((100% - var(--max)) / 2));
  background: var(--gray-300);
  border-bottom: 1px solid var(--gray-400);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--gray-800);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 62px;
  height: auto;
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.25;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  margin-top: 3px;
  color: var(--gray-700);
  font-size: 12px;
}

.global-nav {
  display: grid;
  grid-template-columns: repeat(6, max-content);
  justify-content: center;
  row-gap: 0;
  column-gap: clamp(16px, 1.7vw, 28px);
  align-items: center;
  min-width: 0;
  font-weight: 700;
  font-size: clamp(13px, 1.08vw, 15px);
  white-space: nowrap;
}

.global-nav a {
  padding: 4px 0;
}

.global-nav > a:nth-child(1) { grid-column: 1; grid-row: 1; }
.global-nav > a:nth-child(2) { grid-column: 2; grid-row: 1; }
.global-nav > a:nth-child(4) { grid-column: 3; grid-row: 1; }
.global-nav > a:nth-child(5) { grid-column: 4; grid-row: 1; }
.global-nav > a:nth-child(6) { grid-column: 5; grid-row: 1; }
.global-nav > a:nth-child(7) { grid-column: 6; grid-row: 1; }

.course-nav-row {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  gap: clamp(24px, 3vw, 40px);
}

.course-nav-row a {
  color: var(--marine-blue);
  font-size: inherit;
}

.header-action {
  display: flex;
  align-items: center;
}

.header-consult-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(150px, 17vw, 214px);
  min-height: 52px;
  padding: 10px 18px;
  color: var(--white);
  background: var(--black);
  border-radius: var(--radius);
  flex: 0 0 auto;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.phone {
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--black);
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.2;
}

.button-dark {
  color: var(--white);
  background: var(--black);
}

.button-light {
  color: var(--black);
  background: var(--white);
}

.button-small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 14px;
}

.button-outline {
  color: var(--black);
  background: transparent;
}

.menu-button {
  display: none;
  position: relative;
  width: 48px;
  min-height: 48px;
  padding: 0;
  background: var(--white);
  border-color: var(--marine-line);
  font-size: 0;
  gap: 0;
}

.menu-button::before,
.menu-button::after,
.menu-button span {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 2px;
  background: var(--marine-navy);
  border-radius: 999px;
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.menu-button::before {
  top: 15px;
}

.menu-button span {
  top: 22px;
}

.menu-button::after {
  top: 29px;
}

.menu-button.is-open::before {
  top: 22px;
  transform: rotate(45deg);
}

.menu-button.is-open span {
  opacity: 0;
}

.menu-button.is-open::after {
  top: 22px;
  transform: rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 40%);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: 640px;
  padding: clamp(58px, 8vw, 110px) max(20px, calc((100% - var(--max)) / 2));
  background: var(--gray-100);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-heading p {
  margin: 0 0 10px;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 24px;
    font-size: clamp(38px, 4.5vw, 64px);
    line-height: 1.2;
}
.hero h1 span {
  display: block;
}

.hero-title-sub {
  font-size: 0.7em;
}

.hero p {
  max-width: 650px;
  margin: 0 0 28px;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 700;
}

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

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--gray-400);
  border-radius: var(--radius);
}

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  background: var(--gray-300);
  color: var(--black);
  isolation: isolate;
}

.stats::before {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: var(--gray-300);
  content: "";
}

.stat {
  display: grid;
  min-height: 170px;
  align-content: center;
  padding: 26px 28px;
  text-align: center;
  border-right: 4px solid var(--black);
}

.stat:last-child {
  border-right: 0;
}

.stat span,
.stat small {
  color: var(--black);
  font-weight: 700;
}

.stat strong {
  margin: 4px 0;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1;
}

.contact-band,
.section,
.final-cta {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.contact-band {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  justify-items: center;
  width: 100%;
  max-width: none;
  padding: 46px max(20px, calc((100% - var(--max)) / 2)) 52px;
  margin-top: 0;
  background: var(--gray-200);
  border: 0;
  border-radius: 0;
  text-align: center;
}

.contact-band h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.4;
}

.sp-only-break {
  display: none;
}

.contact-band .contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 420px));
  gap: clamp(24px, 4vw, 52px);
  justify-content: center;
  width: 100%;
}

.contact-band .button {
  min-height: 74px;
  border-radius: 0;
  font-size: 20px;
}

.section {
  padding: clamp(48px, 6vw, 80px) 0;
}

.section-gray {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - var(--max)) / 2));
  padding-left: max(20px, calc((100% - var(--max)) / 2));
  background: var(--gray-50);
}

.section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.3;
}

.section-heading span {
  display: block;
  margin-top: 8px;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 700;
}

.inline-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
}

.text-link,
.panel-heading a {
  color: var(--gray-700);
  font-weight: 800;
  text-decoration: underline;
}

.purpose-grid,
.course-grid,
.feature-grid,
.flow-grid,
.trust-grid {
  display: grid;
  gap: 36px;
}

.purpose-grid {
  grid-template-columns: repeat(4, 1fr);
}

.purpose-card {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  text-align: center;
}

.purpose-media {
  position: relative;
  margin-bottom: 64px;
}

.purpose-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--gray-400);
  border-radius: var(--radius);
}

.round-icon {
  position: absolute;
  bottom: -47px;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 94px;
  height: 94px;
  margin: 0;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--gray-400);
  border-radius: 50%;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 800;
  transform: translateX(-50%);
}

.purpose-card h3 {
  margin: 0;
  font-size: 17px;
}

.course-grid {
  grid-template-columns: repeat(3, 1fr);
}

.course-card,
.feature-card,
.flow-card,
.info-panel,
.trust-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.course-card {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.course-card:focus-visible {
  outline: 3px solid var(--marine-orange);
  outline-offset: 4px;
}

#courses .course-card {
  display: flex;
  flex-direction: column;
}

#courses .card-body {
  flex: 1;
}

.course-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.card-body {
  display: flex;
  min-height: 268px;
  flex-direction: column;
  padding: 24px;
}

.card-body h3,
.feature-card h3,
.flow-card h3,
.info-panel h2,
.news-item h3,
.access-copy h3,
.trust-grid h3 {
  margin: 0;
  line-height: 1.4;
}

.card-body p,
.feature-card p,
.flow-card p,
.info-panel p,
.access-copy p {
  color: var(--gray-700);
}

.card-body strong {
  display: block;
  margin: 18px 0;
  font-size: 32px;
  line-height: 1.25;
}

.card-body strong .price-mark {
  display: inline-block;
  margin-left: 0.02em;
  font-size: 0.52em;
  line-height: 1;
  vertical-align: 0.08em;
}

.card-body strong small {
  font-size: 0.42em;
  line-height: 1;
  vertical-align: 0.12em;
}

.chip-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: auto;
}

.chip-row span,
.chip-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.chip-row .detail-chip {
  color: var(--marine-navy);
  background: var(--marine-pale);
  border-color: var(--marine-line);
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  padding: 26px 18px;
  text-align: center;
}

.feature-card span,
.flow-card span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  color: var(--white);
  background: var(--black);
  border-radius: 50%;
  font-weight: 800;
}

.icon-box {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  place-items: center;
  color: var(--gray-700);
  background: var(--gray-200);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.flow-card .icon-box {
  width: 96px;
  height: 96px;
  background: var(--white);
  border-color: var(--marine-line);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 45, 87, 0.12);
}

.flow-card .icon-box img {
  width: 66px;
  height: 66px;
  background: transparent;
  border: 0;
  box-shadow: none;
  object-fit: contain;
}

.feature-card .icon-box {
  width: 118px;
  height: 118px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.feature-card .icon-box img {
  width: 104px;
  height: 104px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.price-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  min-width: 680px;
  border-bottom: 1px solid var(--line);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row > div {
  padding: 22px;
  border-right: 1px solid var(--line);
  font-weight: 800;
}

.table-row > div:last-child {
  border-right: 0;
}

.table-head {
  background: var(--gray-200);
}

.voice-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.voice-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  align-items: center;
  min-width: 240px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.voice-card img {
  width: 76px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}

.voice-card h3,
.voice-card p {
  margin: 0;
}

.voice-card p {
  margin-top: 6px;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.5;
}

.flow-grid {
  grid-template-columns: repeat(6, 1fr);
}

.flow-card {
  position: relative;
  padding: 26px 16px;
  text-align: center;
}

.flow-card:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -24px;
  content: "";
  width: 16px;
  height: 16px;
  border-top: 3px solid var(--gray-400);
  border-right: 3px solid var(--gray-400);
  transform: translateY(-50%) rotate(45deg);
}

.faq-list {
  width: min(800px, 100%);
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item summary {
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  color: var(--white);
  background: var(--black);
  border-radius: 50%;
  content: "Q";
  font-size: 14px;
}

.faq-item summary::after {
  margin-left: auto;
  color: var(--gray-600);
  content: "+";
  font-size: 22px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px 66px;
  color: var(--gray-700);
}

.section-action {
  margin-top: 24px;
  text-align: center;
}

#courses .section-action .button-small,
#features .section-action .button-small {
  min-height: 50px;
  padding: 13px 26px;
  font-size: 16px;
}

.section-action-right {
  text-align: right;
}

.column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.column-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.column-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.column-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.column-body {
  padding: 22px;
}

.column-body span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  color: var(--gray-800);
  background: var(--gray-200);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.column-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.column-body h3 a {
  color: inherit;
  text-decoration: none;
}

.column-body h3 a:hover {
  color: var(--marine-blue);
}

.column-body p {
  margin: 10px 0;
  color: var(--gray-700);
}

time {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
}

.news-list {
  width: min(900px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.news-row {
  display: grid;
  grid-template-columns: 120px 110px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.news-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  background: var(--gray-200);
  border-radius: 4px;
  color: var(--gray-800);
  font-size: 12px;
  font-weight: 800;
}

.news-row h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.access-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.access-map {
  display: grid;
  min-height: 300px;
  place-items: center;
  color: var(--gray-700);
  background: var(--gray-300);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 20px;
  font-weight: 800;
  overflow: hidden;
}

.access-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}

.access-copy {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.access-copy ul {
  padding-left: 1.2em;
  color: var(--gray-700);
}

.trust-section {
  width: 100%;
  padding: 34px max(20px, calc((100% - var(--max)) / 2));
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: start;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.trust-bar article {
  text-align: center;
}

.trust-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.trust-link:hover h3,
.trust-link:focus-visible h3 {
  color: var(--blue);
}

.trust-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(170px, 100%);
  height: 88px;
  margin: 0 auto 8px;
}

.trust-logo-box img {
  display: block;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
}

.trust-logo-box img.trust-logo-marine-shop {
  max-height: 56px;
}

.final-cta {
  display: grid;
  gap: 32px;
  justify-items: center;
  width: 100%;
  max-width: none;
  padding: 46px max(20px, calc((100% - var(--max)) / 2)) 52px;
  margin-bottom: 94px;
  color: var(--black);
  background: var(--gray-200);
  border-radius: 0;
  text-align: center;
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.4;
}

.final-cta .contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 420px));
  gap: clamp(24px, 4vw, 52px);
  justify-content: center;
  width: 100%;
}

.final-cta .button {
  min-height: 74px;
  border-radius: 0;
  font-size: 20px;
}

.breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px max(20px, calc((100% - var(--max)) / 2));
  color: var(--gray-700);
  background: var(--gray-100);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb span::before,
.breadcrumb strong::before {
  margin-right: 12px;
  color: var(--gray-500);
  content: ">";
}

.course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 48%);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: 590px;
  padding: clamp(52px, 7vw, 90px) max(20px, calc((100% - var(--max)) / 2));
  background: var(--gray-50);
}

.course-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.2;
}

.course-hero h1 span {
  font-size: 0.86em;
}

.course-price-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 28px;
}

.course-price-line span {
  padding: 12px 24px;
  color: var(--white);
  background: var(--black);
  font-weight: 800;
}

.course-price-line strong {
  display: inline-flex;
  align-items: flex-end;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1;
}

.course-price-line .price-yen {
  padding: 0;
  color: var(--marine-orange);
  background: transparent;
  font-size: 0.42em;
  line-height: 1;
}

.course-price-line small {
  color: var(--gray-700);
  font-weight: 800;
}

.course-price-line .price-tax {
  margin-left: -8px;
  color: var(--marine-orange);
  font-size: clamp(14px, 1.9vw, 24px);
  line-height: 1;
}

.course-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px;
  max-width: 620px;
}

.course-hero-actions .button {
  min-height: 68px;
  font-size: 18px;
}

.course-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.course-point-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  width: min(var(--max), calc(100% - 40px));
  margin: -58px auto 0;
  position: relative;
  z-index: 2;
}

.course-point-band article,
.range-card,
.price-card,
.condition-grid article,
.document-grid article,
.course-flow article,
.course-voice-grid article,
.course-gallery-grid article,
.related-course-grid a,
.review-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.course-point-band article {
  display: grid;
  grid-template-columns: 92px 1fr;
  grid-template-areas:
    "icon title"
    "icon text";
  gap: 18px;
  align-items: center;
  padding: 24px;
}

.course-point-band .icon-box {
  grid-area: icon;
  margin: 0;
  background: transparent;
  border-color: transparent;
}

.course-point-band .icon-box img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.course-point-band h2,
.course-point-band p {
  margin: 0;
}

.course-point-band h2 {
  grid-area: title;
  font-size: 20px;
  line-height: 1.4;
}

.course-point-band p {
  grid-area: text;
  color: var(--gray-700);
}

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

.course-overview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.course-overview > div > p {
  color: var(--gray-700);
  font-size: 17px;
}

.range-card {
  padding: 24px;
}

.range-card h3,
.range-card p {
  margin: 0;
}

.range-card img {
  width: 100%;
  margin: 18px 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.course-detail-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px;
}

.price-card-grid,
.condition-grid,
.document-grid,
.course-flow,
.course-voice-grid,
.course-gallery-grid,
.related-course-grid {
  display: grid;
  gap: 22px;
}

.price-card-grid {
  grid-template-columns: repeat(2, 1fr);
}

.price-card {
  overflow: hidden;
}

.price-card h3 {
  margin: 0;
  padding: 16px 20px;
  color: var(--white);
  background: var(--black);
  font-size: 18px;
  text-align: center;
}

.price-card strong {
  display: block;
  padding: 26px 20px 8px;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1;
  text-align: center;
}

.price-card strong .price-yen {
  font-size: 0.5em;
  line-height: 1;
}

.price-card p {
  margin: 0;
  padding: 8px 22px;
  color: var(--gray-700);
  font-weight: 800;
}

.price-card p:last-child {
  padding-bottom: 24px;
}

.course-detail-stack {
  display: grid;
  grid-template-columns: minmax(480px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4vw, 48px);
  width: min(var(--max), calc(100% - 40px));
  align-items: start;
}

.course-detail-stack > div {
  width: 100%;
}

.course-detail-stack .section-heading {
  margin-bottom: 32px;
}

.course-detail-stack .price-card-grid {
  height: clamp(240px, 21vw, 300px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 24px);
}

.course-detail-stack .price-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.course-detail-stack .price-card h3 {
  padding: 16px 16px;
  font-size: clamp(17px, 1.3vw, 20px);
}

.course-detail-stack .price-card strong {
  padding: 24px 14px 8px;
  font-size: clamp(26px, 2.5vw, 38px);
  white-space: nowrap;
}

.course-detail-stack .price-card p {
  padding: 7px 16px;
  font-size: clamp(13px, 1vw, 15px);
}

.course-detail-stack .price-card p:last-child {
  margin-top: auto;
  padding-bottom: 22px;
  color: var(--marine-orange);
  font-size: clamp(24px, 2.25vw, 34px);
  line-height: 1.05;
  text-align: center;
}

.course-detail-stack .price-card p.price-card-subline {
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.18;
}

.course-detail-stack .note-text {
  font-size: 16px;
}

.course-detail-stack .detail-stack-note {
  grid-column: 1 / -1;
  margin-top: -14px;
  text-align: center;
}

.course-detail-stack .curriculum-table strong,
.course-detail-stack .curriculum-table span {
  padding: 14px 14px;
  font-size: clamp(13px, 0.95vw, 15px);
}

.course-detail-stack .curriculum-table strong {
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: clamp(14px, 1vw, 16px);
}

.course-detail-stack .curriculum-table {
  display: grid;
  grid-template-rows: auto repeat(3, 1fr);
  height: clamp(240px, 21vw, 300px);
}

.note-text {
  margin: 16px 0 0;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 800;
}

.note-text.center {
  text-align: center;
}

.curriculum-table {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.curriculum-table > div {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.curriculum-table > div + div {
  border-top: 1px solid var(--line);
}

.curriculum-table strong,
.curriculum-table span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.curriculum-table strong:last-child,
.curriculum-table span:last-child {
  border-right: 0;
}

.curriculum-table strong {
  background: var(--gray-100);
}

.condition-grid {
  grid-template-columns: repeat(3, 1fr);
}

.course-gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}

.course-gallery-grid article {
  overflow: hidden;
}

.course-gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.course-gallery-grid h3,
.course-gallery-grid p {
  margin: 0;
  padding: 0 20px;
}

.course-gallery-grid h3 {
  padding-top: 18px;
  font-size: 18px;
}

.course-gallery-grid p {
  padding-top: 8px;
  padding-bottom: 22px;
  color: var(--gray-700);
}

.condition-grid article,
.document-grid article {
  padding: 26px;
}

.condition-grid .icon-box,
.document-grid .icon-box {
  margin: 0 auto 18px;
}

.condition-grid .icon-box img,
.document-grid .icon-box img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.condition-grid .icon-box img {
  mix-blend-mode: multiply;
}

.condition-grid h3,
.condition-grid p,
.document-grid h3,
.document-grid p {
  margin: 0;
}

.condition-grid p,
.document-grid p {
  margin-top: 8px;
  color: var(--gray-700);
}

.osaka-layout {
  display: grid;
  gap: 30px;
  width: min(var(--max), calc(100% - 40px));
  box-sizing: border-box;
  margin-right: auto;
  margin-left: auto;
  padding: clamp(28px, 4vw, 46px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.osaka-copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.osaka-copy h2,
.osaka-copy p {
  margin: 0;
}

.osaka-copy h2 {
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.25;
}

.osaka-copy p {
  margin-top: 14px;
  color: var(--gray-700);
  max-width: 920px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}

.tag-row span {
  padding: 8px 18px;
  background: var(--gray-100);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.osaka-access {
  display: grid;
  grid-template-columns: minmax(420px, 1.35fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 4vw, 44px);
  align-items: start;
}

.osaka-access iframe {
  width: 100%;
  min-height: 360px;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.osaka-access dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.osaka-access dt {
  margin: 0 0 4px;
  color: var(--black);
  font-size: clamp(20px, 1.45vw, 23px);
  line-height: 1.4;
  font-weight: 800;
}

.osaka-access dt:not(:first-child) {
  margin-top: 22px;
}

.osaka-access dd {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.7;
}

.document-grid {
  grid-template-columns: repeat(3, 1fr);
}

.document-grid-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.document-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.document-grid-compact article {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.document-grid-compact .icon-box {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  font-size: 13px;
}

.document-grid-compact .icon-box img {
  mix-blend-mode: multiply;
}

.document-grid-compact h3 {
  font-size: 18px;
  line-height: 1.35;
}

.document-grid-compact p {
  font-size: 14px;
  line-height: 1.75;
}

.document-grid .button {
  width: 100%;
  margin-top: 18px;
}

.document-grid-compact .button {
  min-height: 42px;
  margin-top: auto;
  padding: 10px 12px;
  font-size: 13px;
}

.course-list-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-bottom: 36px;
  border: 1px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
}

.course-list-tabs a {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 10px 12px;
  background: var(--white);
  border-right: 1px solid var(--black);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.course-list-tabs a:last-child {
  border-right: 0;
}

.course-list-tabs a.is-popular {
  color: var(--white);
  background: var(--black);
}

.course-list-detail {
  display: grid;
  gap: 24px;
}

.course-list-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.course-list-card.is-featured {
  border-color: var(--black);
  box-shadow: 0 0 0 2px var(--black);
}

.course-list-card-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  color: var(--white);
  background: var(--gray-800);
}

.course-list-card.is-featured .course-list-card-head {
  background: var(--black);
}

.course-list-card-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

.course-list-card-head span {
  padding: 5px 12px;
  color: var(--black);
  background: var(--white);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.course-list-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
}

.course-list-table {
  display: grid;
}

.course-list-table dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.course-list-table dl:last-child {
  border-bottom: 0;
}

.course-list-table dt,
.course-list-table dd {
  margin: 0;
  padding: 13px 16px;
}

.course-list-table dt {
  background: var(--gray-100);
  border-right: 1px solid var(--line);
  font-weight: 800;
}

.course-list-table dd {
  color: var(--gray-700);
}

.course-list-price {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 22px;
  background: var(--gray-50);
  border-left: 1px solid var(--line);
  text-align: center;
}

.course-list-price span,
.course-list-price small {
  color: var(--marine-navy);
  font-size: 12px;
  font-weight: 800;
}

.course-list-price strong {
  font-size: 26px;
  line-height: 1.25;
}

.course-list-price strong .price-mark {
  color: var(--marine-orange);
  font-size: 0.5em;
  line-height: 1;
}

.course-list-price .button {
  width: 100%;
  margin-top: 6px;
}

.course-flow {
  grid-template-columns: repeat(5, 1fr);
}

.course-flow article {
  position: relative;
  padding: 24px;
}

.course-flow article:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -18px;
  width: 14px;
  height: 14px;
  border-top: 3px solid var(--gray-400);
  border-right: 3px solid var(--gray-400);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.course-flow span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  place-items: center;
  color: var(--white);
  background: var(--black);
  border-radius: 50%;
  font-weight: 800;
}

.course-flow .icon-box {
  margin: 0 auto 14px;
}

.course-flow h3,
.course-flow p {
  margin: 0;
}

.course-flow p {
  margin-top: 8px;
  color: var(--gray-700);
}

.course-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 22px;
}

.course-voice-grid {
  grid-template-columns: repeat(3, 1fr);
}

.course-voice-grid article {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
}

.course-voice-grid img {
  width: 110px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}

.course-voice-grid h3,
.course-voice-grid p {
  margin: 0;
}

.course-voice-grid p {
  margin-top: 8px;
  color: var(--gray-700);
}

.review-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.review-panel strong,
.review-panel p {
  display: block;
  margin: 0;
}

.review-stars {
  display: block;
  margin-bottom: 6px;
  color: #f6b500;
  font-size: 28px;
  letter-spacing: 0;
  line-height: 1;
}

.review-panel strong {
  font-size: 24px;
  line-height: 1.35;
}

.review-panel p {
  margin-top: 8px;
  color: var(--gray-700);
}

.related-course-grid {
  grid-template-columns: repeat(4, 1fr);
}

.related-course-grid a {
  display: grid;
  gap: 8px;
  padding: 24px;
}

.related-course-grid span {
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 800;
}

.related-course-grid strong {
  font-size: 18px;
  line-height: 1.45;
}

/* ==============================
   下層ページ共通（コース系以外）
   ============================== */

.page-hero {
  display: grid;
  gap: 12px;
  padding: clamp(48px, 6vw, 80px) max(20px, calc((100% - var(--max)) / 2));
  background: var(--gray-100);
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.3;
}

.page-hero .lead {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--gray-700);
  font-weight: 700;
}

.layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 110px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-nav h3 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--gray-600);
  text-transform: uppercase;
}

.side-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-nav li + li {
  border-top: 1px solid var(--line);
}

.side-nav a {
  display: block;
  padding: 12px 4px;
  font-weight: 800;
}

.side-nav a[aria-current="page"] {
  padding-left: 10px;
  background: var(--gray-100);
  border-left: 4px solid var(--black);
}

.content-block {
  margin-bottom: 56px;
}

.content-block > h2 {
  margin: 0 0 18px;
  padding-bottom: 10px;
  /* border-bottom: 2px solid var(--black); */
  font-size: clamp(22px, 2.6vw, 30px);
}

.content-block > h3 {
  margin: 28px 0 10px;
  font-size: 18px;
}

.content-block > p {
  color: var(--gray-700);
}

.compare-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

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

.compare-table th {
  background: var(--gray-200);
  font-weight: 800;
}

.compare-table tbody th {
  background: var(--gray-100);
  white-space: nowrap;
}

.company-overview-table tbody th {
  width: 1%;
  min-width: 0;
  padding-right: 22px;
}

.course-outline-table table {
  table-layout: fixed;
}

.course-outline-table tbody th {
  width: clamp(150px, 16vw, 190px);
}

.course-outline-table tbody td {
  width: auto;
}

.compare-table.course-outline-table tbody td:last-child {
  width: auto;
  min-width: 0;
  white-space: normal;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table th:last-child,
.compare-table td:last-child {
  border-right: 0;
}

.compare-table th:last-child,
.compare-table td:last-child,
.compare-table td:last-child .text-link {
  white-space: nowrap;
}

.compare-table th:last-child,
.compare-table td:last-child {
  width: 92px;
  min-width: 92px;
}

.callout {
  padding: 22px 24px;
  margin: 24px 0;
  background: var(--gray-100);
  border-left: 6px solid var(--black);
  border-radius: 4px;
}

.callout strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.note-list {
  padding-left: 1.2em;
  color: var(--gray-700);
}

.note-list li {
  margin-bottom: 6px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--black);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge-fill {
  background: var(--black);
  color: var(--white);
}

.course-popular-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 28px;
  margin-left: 10px;
  padding: 4px 14px;
  color: var(--white);
  background: var(--marine-navy);
  border-radius: 999px;
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}

.step-list {
  display: grid;
  gap: 16px;
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-list li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  font-weight: 800;
  font-size: 18px;
}

.step-list h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.step-list p {
  margin: 0;
  color: var(--gray-700);
}

/* 選ばれる理由 */

.reason-detail-list {
  display: grid;
  gap: 24px;
}

.reason-detail {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) 1fr;
  gap: clamp(22px, 4vw, 44px);
  align-items: stretch;
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reason-detail-media {
  display: grid;
  min-height: 220px;
  place-items: center;
  color: var(--gray-700);
  background: var(--gray-200);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 800;
  overflow: hidden;
}

.reason-detail-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.reason-detail h2 {
  margin: 14px 0 12px;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.45;
}

.reason-detail p {
  margin: 0;
  color: var(--gray-700);
}

.google-review-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 5vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.google-review-panel h2,
.google-review-panel p {
  margin: 0;
}

.google-review-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
}

.google-review-panel p:not(.eyebrow) {
  color: var(--gray-700);
}

.review-score-box {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 24px;
  color: var(--white);
  background: var(--black);
  border-radius: var(--radius);
  text-align: center;
}

.review-score-box .review-stars {
  margin: 0;
  color: var(--white);
  font-size: 22px;
}

.review-score-box strong {
  font-size: 34px;
  line-height: 1.2;
}

.review-score-box small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.reason-voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.reason-voice-grid article {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reason-voice-grid h3,
.reason-voice-grid p {
  margin: 0;
}

.reason-voice-grid h3 {
  font-size: 18px;
  line-height: 1.45;
}

.reason-voice-grid p {
  color: var(--gray-700);
  font-size: 14px;
}

.reason-voice-grid small {
  color: var(--gray-600);
  font-weight: 800;
}

.trust-bar-detail article {
  align-content: start;
  min-height: 230px;
  padding: 24px;
}

.trust-bar-detail p {
  margin: 10px 0 0;
  color: var(--gray-700);
  font-size: 14px;
}

/* フォーム */

.form {
  display: grid;
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-intro {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  background: var(--gray-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-intro strong {
  font-size: 16px;
}

.form-intro span,
.form-help {
  color: var(--gray-700);
  font-size: 12px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group > label {
  font-weight: 800;
  font-size: 15px;
}

.form-group .required {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  background: var(--black);
  color: var(--white);
  border-radius: 4px;
}

.form-group .optional {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  background: var(--gray-200);
  color: var(--gray-700);
  border-radius: 4px;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="date"],
.form input[type="number"],
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--gray-400);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  color: var(--black);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form .input-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form .input-row-zip {
  grid-template-columns: 190px 1fr;
  align-items: start;
}

.form .check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.form .check-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.form .check-row-stack {
  flex-direction: column;
  gap: 10px;
}

.form .check-row-stack label {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  background: #fff;
}

.form-section-title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0 -6px;
  padding: 12px 14px;
  background: var(--gray-100);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--black);
}

.form-section-title span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--white);
  background: var(--black);
  border-radius: 50%;
  font-size: 13px;
}

.type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.type-button {
  position: relative;
  cursor: pointer;
}

.type-button input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.type-button span {
  display: grid;
  place-items: center;
  padding: 18px 8px;
  border: 2px solid var(--gray-400);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 15px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.type-button:hover span {
  border-color: var(--black);
}

.type-button input:checked + span {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.type-button input:focus-visible + span {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.form-submit {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.doc-download {
  display: grid;
  gap: 0;
  padding: 18px;
  background: var(--gray-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.doc-download h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.doc-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.doc-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--black);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
}

.doc-info {
  display: grid;
  gap: 2px;
}

.doc-info strong {
  font-size: 20px;
}

.doc-info span {
  color: var(--gray-600);
  font-size: 12px;
}

.after-submit {
  padding: 22px 24px;
  background: var(--gray-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.after-submit h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.after-submit ol {
  margin: 0;
  padding-left: 1.4em;
  color: var(--gray-700);
}

.after-submit li + li {
  margin-top: 6px;
}

/* コラム / お知らせ一覧 */

.tag-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
	    width: min(800px, 100%);
    margin-inline: auto;

}

.tag-bar a {
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.tag-bar a[aria-current="page"] {
  background: var(--black);
  color: var(--white);
}

.back-to-list {
  margin-top: 48px;
  text-align: center;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.pagination a[aria-current="page"],
.pagination span[aria-current="page"] {
  background: var(--black);
  color: var(--white);
}

/* サイトマップ / 法的ページ */

.sitemap-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.sitemap-list section h2 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-300);
  font-size: 18px;
}

.sitemap-list ul {
  margin: 0;
  padding-left: 1.2em;
  line-height: 2;
}

.sitemap-list ul ul {
  padding-left: 1.2em;
  font-size: 14px;
  color: var(--gray-700);
}

.policy-doc {
  max-width: 860px;
  margin: 0 auto;
}

.policy-doc h2 {
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-300);
  font-size: 20px;
}

.policy-doc p,
.policy-doc li {
  color: var(--gray-700);
}

/* 簡易診断 / 完了画面 / FAQカテゴリ */

.quiz-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quiz-card h3 {
  margin: 0;
  font-size: 18px;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quiz-options a {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 12px;
  background: var(--gray-100);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  text-align: center;
}

.thanks-card {
  display: grid;
  gap: 18px;
  justify-items: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.thanks-card .icon-box {
  margin: 0;
}

.faq-cat {
    margin-bottom: 64px;
}

.faq-cat h3 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    /* border-bottom: 2px solid var(--black); */
    font-size: 24px;
    width: min(800px, 100%);
    margin-inline: auto;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.doc-card {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.doc-card .icon-box {
  margin: 0;
}

.doc-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.doc-card p {
  margin: 0;
  font-size: 13px;
  color: var(--gray-600);
}

.site-footer-main {
  padding: 56px 0 0;
  color: var(--white);
  background: var(--gray-800);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) 2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding-bottom: 34px;
}

.site-footer-main .brand {
  min-width: 0;
  color: var(--white);
}

.site-footer-main .brand-mark {
  color: var(--gray-800);
  background: var(--white);
}

.site-footer-main .brand small,
.footer-brand p,
.footer-brand dd {
  color: rgba(255, 255, 255, 0.72);
}

.footer-brand p {
  max-width: 420px;
  margin: 22px 0;
  font-size: 14px;
}

.footer-brand dl {
  display: grid;
  gap: 8px;
  margin: 0;
  font-size: 14px;
}

.footer-brand dl div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
}

.footer-brand dt {
  color: var(--white);
  font-weight: 800;
}

.footer-brand dd {
  margin: 0;
}

.footer-brand a,
.footer-nav a,
.footer-legacy-links a {
  transition: opacity 0.2s ease;
}

.footer-brand a:hover,
.footer-nav a:hover,
.footer-legacy-links a:hover {
  opacity: 0.72;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-nav h2 {
  margin: 0 0 14px;
  font-size: 15px;
}

.footer-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.footer-nav a + a {
  margin-top: 7px;
}

.footer-legacy-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-legacy-links a {
  position: relative;
  padding-left: 18px;
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
}

.footer-legacy-links a::before {
  position: absolute;
  top: 50%;
  left: 0;
  color: rgba(255, 255, 255, 0.48);
  content: "›";
  transform: translateY(-50%);
}

.footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 26px 0;
  font-size: 16px;
  font-weight: 800;
}

.instagram-icon {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 34px;
  border: 3px solid var(--white);
  border-radius: 10px;
}

.instagram-icon::before {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--white);
  border-radius: 50%;
  content: "";
}

.instagram-icon::after {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 5px;
  height: 5px;
  background: var(--white);
  border-radius: 50%;
  content: "";
}

.footer-copy {
  margin: 0;
  padding: 18px;
  color: var(--white);
  background: var(--black);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.site-footer,
.fixed-contact-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 100%;
  border-top: 1px solid var(--black);
  box-sizing: border-box;
}

.site-footer a,
.fixed-contact-bar a {
  display: grid;
  min-width: 0;
  min-height: 70px;
  place-items: center;
  color: var(--white);
  background: var(--gray-800);
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: center;
}

.site-footer a + a,
.fixed-contact-bar a + a {
  color: var(--black);
  background: var(--gray-200);
}

.site-footer span,
.fixed-contact-bar span {
  font-size: 15px;
}

.fixed-contact-bar a[href^="tel:"] {
  overflow-wrap: normal;
  white-space: nowrap;
}

.fixed-contact-bar-tel-break {
  display: none;
}

/* Supplied top design skin: keep the wireframe order, refine the visual layer. */
:root {
  --marine-navy: #003c74;
  --marine-deep: #002d57;
  --marine-blue: #0e65a7;
  --marine-pale: #eef6fb;
  --marine-line: #c9dbea;
  --marine-orange: #ed7a18;
  --marine-orange-dark: #d7640c;
  --marine-text: #06305c;
  --marine-muted: #61758a;
  --white: #ffffff;
  --gray-50: #f7fbff;
  --gray-100: #edf5fb;
  --gray-200: #dfeaf3;
  --gray-300: #cbdbea;
  --gray-400: #abc0d4;
  --gray-500: #7c91a7;
  --gray-600: #61758a;
  --gray-700: #27445f;
  --gray-800: #06305c;
  --black: #002d57;
  --line: #c9dbea;
  --radius: 8px;
  --max: 1180px;
}

body {
  color: var(--marine-text);
  background:
    linear-gradient(90deg, rgba(0, 60, 116, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  background-size: 68px 68px, auto;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Yu Gothic", Meiryo, serif;
}

.site-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 1.2vw, 16px);
  min-height: 68px;
  padding-top: 8px;
  padding-bottom: 8px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 60, 116, 0.16);
  box-shadow: 0 12px 30px rgba(0, 45, 87, 0.08);
  backdrop-filter: blur(10px);
}

.brand-mark {
  width: 54px;
  height: 34px;
  color: transparent;
  background:
    radial-gradient(ellipse at 70% 10%, #0e65a7 0 16%, transparent 17%),
    linear-gradient(145deg, transparent 0 38%, var(--marine-navy) 39% 50%, transparent 51%),
    linear-gradient(165deg, transparent 0 45%, var(--marine-blue) 46% 58%, transparent 59%);
  border-radius: 0;
}

.brand strong {
  color: var(--marine-navy);
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 19px;
}

.brand small,
.global-nav,
.header-consult-link,
.phone,
.button,
.section-heading p,
.card-body,
.faq-item,
.news-row,
.fixed-contact-bar a {
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.global-nav {
  color: var(--marine-text);
  font-size: 13px;
  justify-content: center;
  row-gap: 0;
  column-gap: clamp(16px, 1.7vw, 28px);
}

.global-nav a {
  position: relative;
}

.global-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--marine-orange);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 0.2s ease;
}

.global-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-action {
  display: flex;
  align-items: center;
}

.phone {
  display: grid;
  color: var(--marine-deep);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
}

.phone::before {
  content: "TEL";
  color: var(--marine-orange);
  font-size: 10px;
  letter-spacing: 0;
}

.phone span {
  color: var(--marine-muted);
  font-size: 10px;
  font-weight: 700;
}

.header-consult-link,
.button-accent {
  color: var(--white);
  background: linear-gradient(180deg, #f58a23 0%, var(--marine-orange) 100%);
  border-color: var(--marine-orange-dark);
  box-shadow: 0 10px 22px rgba(237, 122, 24, 0.24);
}

.header-consult-link {
  min-width: 210px;
  min-height: 58px;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
}

.button-glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.button-dark {
  background: var(--marine-navy);
  border-color: var(--marine-navy);
}

.button-outline {
  color: var(--marine-navy);
  background: var(--white);
  border-color: var(--marine-line);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 610px;
  padding-top: clamp(78px, 9vw, 116px);
  padding-bottom: clamp(72px, 8vw, 100px);
  overflow: visible;
  color: var(--white);
  background: var(--marine-deep);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(90deg, rgba(0, 38, 72, 0.3) 0%, rgba(0, 38, 72, 0.16) 44%, rgba(0, 38, 72, 0) 72%);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 880px;
  text-shadow: 0 3px 16px rgba(0, 25, 50, 0.42);
}

.hero .eyebrow {
  display: inline-flex;
  padding: 6px 14px;
  color: var(--white);
  background: rgba(0, 60, 116, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-size: 13px;
}

.hero h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(40px, 4.5vw, 58px);
  line-height: 1.38;
  letter-spacing: 0;
}

.hero-title-sub {
  font-size: 1em;
}

.hero p {
  max-width: 760px;
  padding: 8px 0;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  font-size: clamp(16px, 1.5vw, 20px);
}

.hero-actions .button {
  min-width: 230px;
  min-height: 60px;
  border-radius: 8px;
  font-size: 17px;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 45, 87, 0.92) 0%, rgba(0, 56, 105, 0.72) 32%, rgba(0, 56, 105, 0.32) 50%, rgba(0, 56, 105, 0) 68%, rgba(0, 56, 105, 0) 100%);
  content: "";
}

.hero-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 80%;
  border: 0;
  border-radius: 0;
}

@media (min-width: 1600px) {
  .hero-media img {
    object-position: center 80%;
  }
}

.hero-review-mark {
  position: absolute;
  right: max(24px, calc((100% - var(--max)) / 2));
  bottom: -117px;
  z-index: 30;
  width: clamp(110px, 12vw, 168px);
  overflow: hidden;
  border-radius: 18px;
  filter: drop-shadow(0 10px 18px rgba(0, 32, 62, 0.28));
}

.hero-review-mark::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, transparent 36%, rgba(255, 255, 255, 0.2) 43%, rgba(255, 255, 255, 0.88) 50%, rgba(255, 255, 255, 0.2) 57%, transparent 64%, transparent 100%);
  background-position: 180% 180%;
  background-repeat: no-repeat;
  background-size: 260% 260%;
  content: "";
  -webkit-mask-image: url("assets/google-review-mark.webp");
  mask-image: url("assets/google-review-mark.webp");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  mask-position: center;
  pointer-events: none;
  animation: reviewMarkShine 5.8s ease-in-out infinite;
  mix-blend-mode: screen;
}

.hero-review-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.72s ease, transform 0.72s ease;
  will-change: opacity, transform;
}

.scroll-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-card {
  opacity: 0;
  transform: translateY(30px);
}

.scroll-reveal.is-revealed .scroll-reveal-card {
  animation: purposeCardRise 0.68s ease both;
  animation-delay: var(--reveal-delay, 0s);
}

@keyframes purposeCardRise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal-card {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}

@keyframes reviewMarkShine {
  0%,
  70% {
    background-position: 180% 180%;
    opacity: 0;
  }
  74% {
    opacity: 0.86;
  }
  88% {
    background-position: -180% -180%;
    opacity: 0;
  }
  100% {
    background-position: -180% -180%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-review-mark::after {
    animation: none;
  }
}

.stats {
  position: relative;
  z-index: 3;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: -56px;
  background: transparent;
}

.stats::before {
  display: none;
}

.stat {
  min-height: 146px;
  padding: 26px 20px;
  background: #ffffff;
  border: 1px solid var(--marine-line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 45, 87, 0.08);
}

.stat strong,
.stat span,
.stat small {
  color: var(--marine-navy);
}

.stat strong {
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--marine-orange);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: 0;
}

.stat-unit {
  color: var(--marine-orange);
  display: inline-block;
  margin-left: 0.02em;
  font-size: 0.5em;
  font-weight: 900;
  line-height: 1;
  vertical-align: baseline;
}

.stat strong .stat-unit {
  color: var(--marine-orange);
}

.contact-band,
.final-cta {
  color: var(--white);
  background:
    linear-gradient(0deg, rgba(0, 60, 116, 0.74), rgba(0, 60, 116, 0.74)),
    url("assets/generated-hero-cruiser.png") center / cover;
}

.contact-band .button,
.final-cta .button {
  border-radius: 8px;
}

.section-heading p {
  color: var(--marine-blue);
  letter-spacing: 0.05em;
}

.section-heading h2 {
  color: var(--marine-navy);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(28px, 3.4vw, 42px);
}

.section-heading h2::after {
  display: block;
  width: 54px;
  height: 3px;
  margin: 14px auto 0;
  background: var(--marine-orange);
  content: "";
}

.section-heading-left h2::after {
  margin-left: 0;
  margin-right: auto;
}

.inline-heading h2::after {
  margin-right: auto;
  margin-left: 0;
}

.purpose-card,
.course-card,
.feature-card,
.flow-card,
.column-card,
.voice-card,
.access-copy,
.faq-item,
.trust-bar article {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--marine-line);
  box-shadow: 0 10px 28px rgba(0, 45, 87, 0.07);
}

.purpose-card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.purpose-card img,
.course-card img,
.column-card img {
  border-color: var(--marine-line);
}

.round-icon,
.icon-box {
  color: var(--marine-navy);
  background: var(--marine-pale);
  border-color: var(--marine-line);
}

.round-icon {
  color: var(--marine-navy);
  background: var(--white);
  border-color: var(--marine-line);
  font-size: 15px;
}

.round-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.purpose-card h3,
.card-body h3,
.feature-card h3,
.flow-card h3,
.column-body h3,
.voice-card h3,
.access-copy h3,
.trust-bar h3 {
  color: var(--marine-navy);
}

.card-body strong {
  color: var(--marine-orange);
}

.chip-row span,
.chip-row a {
  color: var(--marine-navy);
  background: var(--gray-50);
  border-color: var(--marine-line);
}

.feature-card span,
.flow-card span,
.faq-item summary::before {
  background: var(--marine-navy);
}

.price-table,
.table-row > div,
.news-list,
.news-row,
.access-map,
.trust-section {
  border-color: var(--marine-line);
}

.table-head {
  color: var(--white);
  background: var(--marine-navy);
}

.table-row > div:last-child {
  color: var(--marine-navy);
}

.voice-strip {
  overflow: visible;
}

.voice-card img {
  border: 3px solid var(--marine-pale);
}

.faq-item summary {
  color: var(--marine-navy);
}

.faq-item summary::after,
.text-link,
.panel-heading a {
  color: var(--marine-blue);
}

.column-body span,
.news-row span {
  color: var(--marine-navy);
  background: var(--marine-pale);
}

.access-map {
  color: var(--marine-blue);
  background: var(--white);
}

.trust-section {
  background: var(--white);
}

.site-footer-main {
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(135deg, #002d57 0%, #004b87 100%);
}

.site-footer-main .brand strong,
.site-footer-main .brand small,
.site-footer-main h2,
.site-footer-main a,
.site-footer-main dt,
.site-footer-main dd,
.site-footer-main p {
  color: var(--white);
}

.footer-copy {
  background: rgba(0, 0, 0, 0.18);
}

.fixed-contact-bar {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.fixed-contact-bar a {
  background: var(--marine-orange);
}

.fixed-contact-bar a + a {
  color: var(--white);
  background: var(--marine-navy);
}

@media (max-width: 1200px) {
  :root {
    --anchor-offset: 96px;
  }

  .site-header {
    grid-template-columns: auto auto;
  }

  .global-nav,
  .header-action,
  .header-consult-link {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    justify-self: end;
  }

  .site-header.is-menu-open {
    align-items: start;
  }

  .site-header.is-menu-open .global-nav {
    display: grid;
    grid-column: 1 / -1;
    width: 100%;
    padding: 16px 0 4px;
    gap: 0;
    justify-content: stretch;
    white-space: normal;
  }

  .site-header.is-menu-open .global-nav a {
    grid-column: auto;
    grid-row: auto;
    padding: 13px 4px;
    border-top: 1px solid var(--marine-line);
  }

  .site-header.is-menu-open .course-nav-row {
    display: contents;
  }

  .site-header.is-menu-open .header-action {
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 10px;
  }

  .site-header.is-menu-open .header-consult-link {
    display: inline-flex;
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .course-hero,
  .course-overview,
  .course-detail-grid {
    grid-template-columns: 1fr;
  }

  .osaka-copy,
  .osaka-access {
    grid-template-columns: 1fr;
  }

  .course-point-band {
    margin-top: 0;
  }

  .course-list-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .course-list-card-body {
    grid-template-columns: 1fr;
  }

  .course-list-price {
    border-top: 1px solid var(--marine-navy);
    border-left: 0;
  }

  .course-list-card.is-featured .course-list-price {
    border-top-color: var(--black);
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .flow-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .flow-card::after {
    display: none;
  }

  .course-flow article::after {
    display: none;
  }

  .access-layout {
    grid-template-columns: 1fr;
  }

  .reason-detail,
  .google-review-panel {
    grid-template-columns: 1fr;
  }

  .reason-voice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-2col {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
  }

  .doc-grid,
  .sitemap-list,
  .quiz-options {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --anchor-offset: 84px;
  }

  .site-header {
    min-height: 68px;
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 60vh;
    padding: 20px 20px 96px;
    align-items: start;
  }

  .hero::after {
    background: none;
  }

  .hero-media img {
    object-position: 82% 80%;
  }

  .hero-media::after {
    display: none;
  }

  .hero-copy {
    margin-top: 0;
  }

  .sp-only-break {
    display: initial;
  }

  .pc-only-break {
    display: none;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-review-mark {
    right: 20px;
    bottom: -70px;
    width: 94px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    min-height: 120px;
    border-bottom: 1px solid var(--marine-line);
  }

  .contact-band,
  .inline-heading,
  .final-cta {
    display: grid;
  }

  .purpose-grid,
  .course-grid,
  .column-grid,
  .price-card-grid,
  .condition-grid,
  .document-grid,
  .course-flow,
  .course-faq-grid,
  .course-voice-grid,
  .course-gallery-grid,
  .related-course-grid,
  .feature-grid,
  .flow-grid,
  .reason-voice-grid,
  .trust-bar {
    grid-template-columns: 1fr;
  }

  .course-point-band {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 32px;
  }

  .course-point-band article {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "title"
      "text";
    gap: 4px;
    padding: 12px 8px 10px;
    text-align: center;
    justify-items: center;
  }

  .course-point-band .icon-box img {
    width: 80px;
    height: 80px;
  }

  .course-point-band h2 {
    font-size: 13px;
  }

  .course-point-band p {
    font-size: 11px;
    line-height: 1.4;
  }

  .news-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .price-table {
    overflow-x: auto;
  }

  .final-cta {
    grid-template-columns: 1fr;
  }

  .course-price-line {
    margin-bottom: 72px;
  }

  .course-hero-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .course-hero-actions .button {
    min-height: 48px;
    font-size: 13px;
    padding: 8px 6px;
  }

  .type-selector {
    grid-template-columns: 1fr;
  }

  .form .input-row {
    grid-template-columns: 1fr;
  }

  .form .input-row-zip {
    grid-template-columns: 1fr;
  }

  .doc-card {
    grid-template-columns: 1fr;
  }

  .doc-item {
    grid-template-columns: 38px 1fr;
  }

  .doc-item .text-link {
    grid-column: 2;
    justify-self: start;
  }

  .form {
    padding: 22px;
  }

  .site-footer-main {
    padding-top: 42px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-legacy-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  body {
    padding-bottom: 78px;
  }

  .contact-band,
  .section,
  .final-cta {
    width: min(100% - 28px, var(--max));
  }

  .contact-band,
  .final-cta {
    width: 100%;
  }

  .section-gray {
    width: 100%;
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
  }

  .contact-band .contact-actions,
  .final-cta .contact-actions {
    grid-template-columns: 1fr;
  }

  .breadcrumb {
    flex-wrap: wrap;
    padding-right: 14px;
    padding-left: 14px;
  }

  .course-hero {
    padding: 40px 14px;
  }

  .course-hero h1 {
    font-size: 34px;
  }

  .course-point-band {
    width: calc(100% - 28px);
  }

  .course-list-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .course-list-tabs a {
    min-height: 50px;
    border-bottom: 1px solid var(--black);
    font-size: 12px;
  }

  .course-list-card-head {
    display: grid;
  }

  .course-list-table dl {
    grid-template-columns: 1fr;
  }

  .course-list-table dt {
    border-right: 0;
    border-bottom: 1px solid var(--marine-navy);
  }

  .course-list-card.is-featured .course-list-table dt {
    border-bottom-color: var(--black);
  }

  .course-voice-grid article {
    grid-template-columns: 1fr;
  }

  .course-point-band article {
    padding: 8px 6px;
    gap: 3px;
  }

  .course-point-band .icon-box img {
    width: 64px;
    height: 64px;
  }

  .course-point-band h2 {
    font-size: 11px;
  }

  .course-point-band p {
    font-size: 10px;
  }

  .review-panel {
    grid-template-columns: 1fr;
  }

  .curriculum-table {
    overflow-x: auto;
  }

  .curriculum-table > div {
    min-width: 560px;
  }

  .osaka-access dl {
    grid-template-columns: 1fr;
  }

  .chip-row {
    grid-template-columns: 1fr;
  }

  .voice-strip {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .voice-card {
    grid-template-columns: 64px 1fr;
  }

  .voice-card img {
    width: 64px;
  }

  .faq-item summary {
    padding: 16px;
  }

  .faq-item p {
    padding: 0 16px 18px 60px;
  }

  .footer-brand dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-legacy-links {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-copy {
    font-size: 13px;
  }

  .site-footer a,
  .fixed-contact-bar a {
    min-height: 66px;
    padding: 0 6px;
    font-size: clamp(10px, 3.4vw, 15px);
    line-height: 1.3;
  }
}

.stats {
  margin-bottom: 54px;
}

#voices {
  overflow: hidden;
}

#voices .voice-strip {
  display: flex;
  width: max-content;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding: 10px 0 18px;
  gap: 26px;
  overflow: visible;
  animation: voiceScroll 58s linear infinite;
  will-change: transform;
}

#voices .voice-strip:hover {
  animation-play-state: paused;
}

#voices .voice-card {
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 28px;
  flex: 0 0 clamp(440px, 32vw, 560px);
  min-width: 0;
  min-height: 178px;
  padding: 34px 38px;
}

#voices .voice-card img {
  width: 116px;
  height: 116px;
}

#voices .voice-card h3 {
  font-size: clamp(23px, 1.8vw, 30px);
  line-height: 1.35;
}

#voices .voice-card p {
  margin-top: 10px;
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.65;
}

@keyframes voiceScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@media (prefers-reduced-motion: reduce) {
  #voices .voice-strip {
    width: auto;
    overflow-x: auto;
    animation: none;
  }
}

@media (max-width: 820px) {
  #voices .voice-strip {
    display: flex;
    grid-template-columns: none;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    overflow: visible;
  }

  #voices .voice-card {
    grid-template-columns: 86px 1fr;
    flex-basis: 360px;
    min-height: 150px;
    padding: 24px;
    gap: 18px;
  }

  #voices .voice-card img {
    width: 86px;
    height: 86px;
  }

  #voices .voice-card h3 {
    font-size: 21px;
  }

  #voices .voice-card p {
    font-size: 15px;
  }
}

/* ==============================
   Site-wide design skin from TOP
   Wireframe structure remains unchanged.
   ============================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand-logo {
  width: 78px;
}

.site-footer-main .brand-logo {
  width: 58px;
  padding: 5px;
  background: var(--white);
  border-radius: 6px;
}

.breadcrumb {
  color: var(--marine-muted);
  background: linear-gradient(180deg, #f6fbff 0%, #edf6fc 100%);
  border-bottom: 1px solid rgba(0, 60, 116, 0.12);
  font-size: 12px;
}

.breadcrumb a {
  color: var(--marine-blue);
}

.breadcrumb strong {
  color: var(--marine-navy);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 7vw, 92px);
  padding-bottom: clamp(56px, 7vw, 92px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 54%, rgba(238, 246, 251, 0.76) 100%),
    radial-gradient(circle at 86% 30%, rgba(14, 101, 167, 0.16), transparent 32%),
    linear-gradient(180deg, #f8fcff 0%, #eef6fb 100%);
  border-bottom: 1px solid var(--marine-line);
}

.page-hero::after {
  position: absolute;
  right: max(20px, calc((100% - var(--max)) / 2));
  bottom: -34px;
  width: min(34vw, 360px);
  height: min(16vw, 150px);
  background:
    linear-gradient(180deg, rgba(14, 101, 167, 0.14), rgba(14, 101, 167, 0.02)),
    repeating-linear-gradient(0deg, rgba(0, 60, 116, 0.08) 0 1px, transparent 1px 24px);
  border: 1px solid rgba(0, 60, 116, 0.12);
  border-radius: 8px;
  content: "";
  transform: skewX(-12deg);
}

.page-hero p:first-child,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  color: var(--marine-blue);
  background: var(--white);
  border: 1px solid var(--marine-line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0;
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  color: var(--marine-navy);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(32px, 4.8vw, 56px);
  letter-spacing: 0;
}

.page-hero .lead {
  position: relative;
  z-index: 1;
  max-width: 820px;
  color: var(--marine-text);
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.9;
}

.reason-hero {
  display: block;
  min-height: clamp(360px, 32vw, 460px);
  padding: clamp(56px, 7vw, 92px) max(20px, calc((100% - var(--max)) / 2)) clamp(82px, 8vw, 116px);
  background: #eef6fc;
}

.reason-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 32%, rgba(255, 255, 255, 0.58) 52%, rgba(255, 255, 255, 0.12) 70%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 48%, rgba(14, 101, 167, 0.08) 100%);
  content: "";
  pointer-events: none;
}

.reason-hero::after {
  display: none;
}

.reason-hero-copy {
  position: relative;
  z-index: 2;
  width: min(780px, 58vw);
}

.reason-hero h1 {
  font-size: clamp(30px, 3.7vw, 46px);
  line-height: 1.28;
  white-space: nowrap;
}

.reason-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.reason-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.visual-page-hero {
  display: block;
  height: clamp(360px, 32vw, 460px);
  min-height: 0;
  padding: clamp(56px, 7vw, 92px) max(20px, calc((100% - var(--max)) / 2)) clamp(82px, 8vw, 116px);
  background: #eef6fc;
}

.visual-page-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 32%, rgba(255, 255, 255, 0.58) 52%, rgba(255, 255, 255, 0.12) 70%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 48%, rgba(14, 101, 167, 0.08) 100%);
  content: "";
  pointer-events: none;
}

.visual-page-hero::after {
  display: none;
}

.visual-page-hero-copy {
  position: relative;
  z-index: 2;
  width: min(780px, 58vw);
}

.visual-page-hero h1 {
  font-size: clamp(30px, 3.7vw, 46px);
  line-height: 1.28;
}

.visual-page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.visual-page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.course-hero {
  position: relative;
  overflow: hidden;
  color: var(--marine-navy);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 48%, rgba(238, 246, 251, 0.34) 100%),
    linear-gradient(180deg, #f8fcff 0%, #edf6fc 100%);
}

.course-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(14, 101, 167, 0.1));
  content: "";
  pointer-events: none;
}

.course-hero-copy,
.course-hero-media {
  position: relative;
  z-index: 1;
}

.course-hero h1 {
  color: var(--marine-navy);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  letter-spacing: 0;
}

.course-hero h1 span,
.course-price-line strong,
.price-card strong,
.course-list-price strong {
  color: var(--marine-orange);
}

.course-price-line span,
.price-card h3,
.course-list-card-head,
.course-flow span,
.step-list li::before,
.form-section-title span,
.doc-icon {
  background: var(--marine-navy);
}

.course-list-card {
  border-color: var(--marine-navy);
}

.course-list-card.is-featured {
  border-color: var(--black);
  box-shadow: 0 0 0 2px var(--black);
}

.course-list-table dl {
  border-bottom-color: var(--marine-navy);
}

.course-list-table dt {
  border-right-color: var(--marine-navy);
}

.course-list-price {
  border-left-color: var(--marine-navy);
}

.course-list-card.is-featured .course-list-table dl {
  border-bottom-color: var(--black);
}

.course-list-card.is-featured .course-list-table dt {
  border-right-color: var(--black);
}

.course-list-card.is-featured .course-list-price {
  border-left-color: var(--black);
}

.course-hero-actions .button-dark {
  background: linear-gradient(180deg, #f58a23 0%, var(--marine-orange) 100%);
  border-color: var(--marine-orange-dark);
  box-shadow: 0 12px 26px rgba(237, 122, 24, 0.26);
}

.course-hero-actions .button-outline {
  color: var(--marine-navy);
  background: var(--white);
  border-color: var(--marine-line);
}

.course-hero-media img,
.course-gallery-grid img,
.column-card img,
.purpose-card img,
.course-card img {
  box-shadow: 0 16px 34px rgba(0, 45, 87, 0.12);
}

.course-hero-fullbleed {
  display: block;
  min-height: clamp(620px, 68vw, 820px);
  padding: clamp(76px, 8vw, 112px) max(20px, calc((100% - var(--max)) / 2)) clamp(132px, 12vw, 178px);
  background: #eef6fc;
}

.course-hero-compact {
  min-height: clamp(372px, 40.8vw, 492px);
  padding-top: clamp(46px, 4.8vw, 67px);
  padding-bottom: clamp(79px, 7.2vw, 107px);
}

.course-hero-fullbleed::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 30%, rgba(255, 255, 255, 0.62) 48%, rgba(255, 255, 255, 0.1) 68%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 42%, rgba(14, 101, 167, 0.08) 100%);
  content: "";
  pointer-events: none;
}

.course-hero-fullbleed .course-hero-copy {
  position: relative;
  z-index: 2;
  width: min(650px, 52vw);
}

.course-hero-fullbleed .course-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.course-hero-fullbleed .course-hero-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center right;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.course-hero-fullbleed + .course-point-band {
  margin-top: -86px;
}

.purpose-card .round-icon {
  background: var(--white);
  border-color: var(--marine-line);
  box-shadow: 0 10px 24px rgba(0, 45, 87, 0.12);
}

.purpose-card .round-icon img {
  width: 60px;
  height: 60px;
  aspect-ratio: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.course-point-band article,
.range-card,
.price-card,
.condition-grid article,
.document-grid article,
.course-flow article,
.course-voice-grid article,
.course-gallery-grid article,
.related-course-grid a,
.review-panel,
.content-block,
.form,
.doc-card,
.quiz-card,
.thanks-card,
.reason-detail,
.google-review-panel,
.reason-voice-grid article {
  box-shadow: 0 10px 28px rgba(0, 45, 87, 0.07);
}

.layout-2col > *,
.course-detail-grid > *,
.course-overview > *,
.osaka-layout > *,
.content-block,
.range-card,
.compare-table {
  min-width: 0;
}

.content-block {
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--marine-line);
  border-radius: 8px;
}

.content-block > h2,
.faq-cat h3 {
  color: var(--marine-navy);
  /* border-bottom-color: var(--marine-line); */
}

.content-block > h2::after,
.faq-cat h3::after {
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 10px;
  background: var(--marine-orange);
  content: "";
}

.compare-table {
  background: var(--white);
  border-color: var(--marine-line);
  box-shadow: 0 8px 20px rgba(0, 45, 87, 0.05);
}

.compare-table th,
.curriculum-table strong {
  color: var(--marine-navy);
  background: #eef6fb;
}

.compare-table thead th {
  color: var(--white);
  background: var(--marine-navy);
}

.compare-table td,
.compare-table th,
.curriculum-table,
.curriculum-table > div + div,
.curriculum-table strong,
.curriculum-table span,
.doc-card,
.form,
.form-intro,
.form-section-title,
.after-submit,
.doc-download,
.doc-item,
.side-nav,
.side-nav li + li {
  border-color: var(--marine-line);
}

.callout {
  color: var(--marine-navy);
  background: #fff8f0;
  border-left-color: var(--marine-orange);
}

.side-nav {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(0, 45, 87, 0.06);
}

.side-nav a[aria-current="page"] {
  background: var(--marine-pale);
  border-left-color: var(--marine-orange);
}

.tag-bar a[aria-current="page"],
.pagination a[aria-current="page"],
.pagination span[aria-current="page"],
.badge-fill,
.form-group .required {
  background: var(--marine-navy);
}

.tag-bar a,
.pagination a,
.pagination span,
.badge {
  color: var(--marine-navy);
  border-color: var(--marine-line);
}

.button,
.header-consult-link {
  border-radius: 6px;
}

.fixed-contact-bar,
.fixed-contact-bar a,
.fixed-contact-bar a:first-child,
.fixed-contact-bar a:last-child {
  border-radius: 0 !important;
}

.button-dark,
.fixed-contact-bar a + a {
  background: var(--marine-navy);
  border-color: var(--marine-navy);
}

.final-cta,
.contact-band {
  background:
    linear-gradient(90deg, rgba(0, 45, 87, 0.9), rgba(0, 60, 116, 0.62)),
    url("assets/img_0011201.webp") center / cover;
}

#contact.contact-band {
  background:
    linear-gradient(90deg, rgba(0, 45, 87, 0.9), rgba(0, 60, 116, 0.62)),
    url("assets/img_0011201.webp") center / cover;
}

.final-cta .button:first-child,
.contact-band .button:first-child {
  background: var(--white);
  border-color: var(--white);
  color: var(--marine-navy);
}

.final-cta .button:last-child,
.contact-band .button:last-child {
  background: linear-gradient(180deg, #f58a23 0%, var(--marine-orange) 100%);
  border-color: var(--marine-orange-dark);
}

@media (max-width: 820px) {
  .brand-logo {
    width: 64px;
  }

  .page-hero::after {
    display: none;
  }

  .reason-hero {
    min-height: 60vh;
    padding: 18px 18px 92px;
  }

  .reason-hero::before {
    display: block;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.72) 28%, rgba(255, 255, 255, 0) 52%);
  }

  .reason-hero-copy {
    width: min(100%, 560px);
  }

  .reason-hero h1 {
    font-size: clamp(30px, 8.5vw, 40px);
    white-space: normal;
  }

  .reason-hero-media img {
    object-position: 70% 16px;
    transform: scale(1.5);
  }

  .visual-page-hero {
    height: 430px;
    min-height: 0;
    padding: 42px 18px 92px;
  }

  .visual-page-hero::before {
    display: block;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.72) 28%, rgba(255, 255, 255, 0) 52%);
  }

  .visual-page-hero-copy {
    width: min(100%, 560px);
  }

  .visual-page-hero h1 {
    font-size: clamp(30px, 8.5vw, 40px);
  }

  .visual-page-hero-media img {
    object-position: 70% 16px;
    transform: scale(1.5);
  }

  .content-block {
    padding: 20px;
  }

  .compare-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  .course-hero {
    min-height: auto;
  }

  .course-hero-fullbleed {
    min-height: 620px;
    padding: 44px 18px 120px;
  }

  .course-hero-compact {
    min-height: 372px;
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .course-hero-fullbleed::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.72) 28%, rgba(255, 255, 255, 0) 52%);
  }

  .course-hero-fullbleed .course-hero-copy {
    width: min(100%, 560px);
  }

  .course-hero-fullbleed .course-hero-media img {
    object-position: 85% 57px;
    transform: scale(1.2);
  }

  .course-hero-fullbleed + .course-point-band {
    margin-top: 28px;
  }

  .course-detail-stack .price-card-grid {
    height: auto;
    grid-template-columns: 1fr;
  }

  .course-detail-stack {
    grid-template-columns: 1fr;
  }

  .course-detail-stack .curriculum-table {
    height: auto;
  }
}

/* Mobile slide-in navigation */
.menu-overlay {
  display: none;
}

@media (max-width: 1200px) {
  body.is-menu-open {
    overflow: hidden;
  }

  .site-header,
  .site-header.is-menu-open {
    align-items: center;
  }

  .site-header.is-menu-open {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header .menu-button {
    z-index: 1202;
  }

  .site-header .global-nav {
    position: fixed;
    z-index: 1200;
    top: 0;
    right: 0;
    display: flex;
    width: min(88vw, 390px);
    height: 100vh;
    height: 100dvh;
    padding: 84px 22px max(22px, env(safe-area-inset-bottom));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    color: var(--marine-text);
    background: var(--white);
    box-shadow: -18px 0 44px rgba(0, 45, 87, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transition:
      opacity 0.2s ease,
      visibility 0s linear 0.3s;
    white-space: normal;
  }

  .site-header.is-menu-open .global-nav {
    display: flex;
    width: min(88vw, 390px);
    padding: 84px 22px max(22px, env(safe-area-inset-bottom));
    gap: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.2s ease;
  }

  .site-header .global-nav a,
  .site-header.is-menu-open .global-nav a {
    display: flex;
    width: 100%;
    min-height: 52px;
    padding: 14px 8px;
    align-items: center;
    border-top: 0;
    border-bottom: 1px solid var(--marine-line);
    font-size: 15px;
    line-height: 1.45;
  }

  .site-header .global-nav > a:first-child {
    border-top: 1px solid var(--marine-line);
  }

  .site-header .global-nav a::after {
    display: none;
  }

  .site-header .course-nav-row,
  .site-header.is-menu-open .course-nav-row {
    display: contents;
  }

  .site-header .course-nav-row a {
    padding-left: 24px;
    color: var(--marine-blue);
    font-size: 14px;
  }

  .site-header .course-nav-row a::before {
    margin-right: 8px;
    color: var(--marine-orange);
    content: "—";
  }

  .site-header .header-action,
  .site-header.is-menu-open .header-action {
    position: static;
    display: flex;
    width: 100%;
    margin-top: auto;
    padding: 20px 0 0;
    background: var(--white);
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .site-header .header-consult-link,
  .site-header.is-menu-open .header-consult-link {
    display: inline-flex;
    width: 100%;
    min-height: 54px;
  }

  .menu-overlay {
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: block;
    width: 100%;
    min-height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(0, 28, 54, 0.5);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.25s ease,
      visibility 0s linear 0.25s;
  }

  .menu-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease;
  }
}

@media (max-width: 520px) {
  .fixed-contact-bar a[href^="tel:"] {
    display: block;
    padding-top: 15px;
    padding-bottom: 15px;
    line-height: 1.12;
    white-space: normal;
  }

  .fixed-contact-bar-tel-break {
    display: block;
  }

  .site-header .global-nav,
  .site-header.is-menu-open .global-nav {
    width: min(92vw, 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .global-nav,
  .site-header .header-action,
  .menu-overlay {
    transition-duration: 0.01ms;
  }
}

/* =====================================================================
   WP theme.json グローバル見出し色対策（v1.0.1）
   暗背景セクションの見出しは親の color を継承して白を維持する。
   :root :where(h1..h6) のグローバル指定に負けないよう明示する。
   ===================================================================== */
.hero h1,
.hero h1 span,
.hero-title-sub {
  color: var(--white);
}

/* =====================================================================
   記事詳細ページ — 見出し・余白共通スタイル
   ===================================================================== */

/* 記事本文エリアの最大幅・余白 */
.entry-content.wp-block-post-content {
  max-width: 1080px;
  margin-right: auto;
  margin-left: auto;
}

/* アイキャッチ画像を本文幅に合わせる */
article.section .wp-block-post-featured-image {
  max-width: 1080px;
  margin-right: auto;
  margin-left: auto;
}

/* h2: 爽やかな青色の帯スタイル */
.entry-content h2.wp-block-heading {
  margin-top: 64px;
  margin-bottom: 32px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--marine-blue), var(--marine-navy));
  color: var(--white);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.5;
  border-radius: 6px;
}

/* 最初の h2 は上余白を控えめに */
.entry-content h2.wp-block-heading:first-child,
.entry-content > :first-child + .wp-block-heading,
.entry-content figure + h2.wp-block-heading {
  margin-top: 40px;
}

/* h3: 左ボーダーアクセント */
.entry-content h3.wp-block-heading {
  margin-top: 48px;
  margin-bottom: 24px;
  padding: 8px 0 8px 16px;
  border-left: 4px solid var(--marine-blue);
  color: var(--marine-navy);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  line-height: 1.5;
}

/* h4 */
.entry-content h4.wp-block-heading {
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--marine-navy);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  line-height: 1.5;
}

/* 投稿メタ情報（日付・カテゴリ） */
article.section .post-meta {
  gap: 12px;
  margin-bottom: 24px;
  color: var(--marine-muted);
  font-size: 14px;
}

/* 記事全体を1080pxに収める */
article.section {
  max-width: 1080px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

/* 記事タイトル */
article.section > h1 {
  margin-bottom: 16px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.5;
  color: var(--marine-navy);
}

/* アイキャッチ画像 */
article.section .wp-block-post-featured-image img {
  border-radius: var(--radius);
  margin-bottom: 32px;
}

/* 本文の行間・字間・文字サイズ */
.entry-content {
  font-size: 16px;
  letter-spacing: 0.06em;
  font-feature-settings: "palt";
}

.entry-content p {
  line-height: 1.9;
  margin-bottom: 1.6em;
}

/* リスト行間 */
.entry-content ul,
.entry-content ol {
  line-height: 1.9;
  margin-bottom: 1.6em;
}

/* テーブル（表組）の上余白 */
.entry-content .wp-block-table,
.entry-content figure.wp-block-table {
  margin-top: 40px;
  margin-bottom: 40px;
}
