@charset "UTF-8";

/* ==========================================================================
   Keiko - Design Tokens
   ========================================================================== */
:root {
  /* Palette */
  --color-forest: #ff6347;
  --color-gold: #c49a6c;
  --color-ivory: #f7f5f2;
  --color-navy: #1a1a2e;
  --color-sage: #ffcc66;
  --color-lavender: #ffe0b2;
  --color-white: #ffffff;

  /* Semantic alpha variants (forest base: 255,99,71) */
  --forest-5: rgba(255, 99, 71, 0.05);
  --forest-8: rgba(255, 99, 71, 0.08);
  --forest-10: rgba(255, 99, 71, 0.1);
  --forest-12: rgba(255, 99, 71, 0.12);
  --forest-15: rgba(255, 99, 71, 0.15);
  --forest-20: rgba(255, 99, 71, 0.2);
  --forest-25: rgba(255, 99, 71, 0.25);
  --forest-35: rgba(255, 99, 71, 0.35);

  /* Semantic alpha variants (sage base: 255,204,102) */
  --sage-15: rgba(255, 204, 102, 0.15);
  --sage-18: rgba(255, 204, 102, 0.18);
  --sage-24: rgba(255, 204, 102, 0.24);
  --sage-65: rgba(255, 204, 102, 0.65);

  /* Semantic alpha variants (lavender base: 255,224,178) */
  --lavender-35: rgba(255, 224, 178, 0.35);
  --lavender-45: rgba(255, 224, 178, 0.45);

  /* Borders */
  --color-border: #d8ddd7;
  --border-light: 1px solid var(--forest-12);
  --border-subtle: 1px solid var(--forest-15);

  /* Elevation */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 30px rgba(255, 99, 71, 0.18);

  /* Radius */
  --radius-button: 8px;
  --radius-card: 12px;

  /* Layout */
  --container: min(1120px, 92vw);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-xxl: 5rem;

  /* Accessibility */
  --touch-min: 44px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.menu-open {
  overflow: hidden;
  touch-action: none;
}

body {
  margin: 0;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  font-family: 'Noto Sans JP', 'Source Sans 3', sans-serif;
  color: var(--color-navy);
  background: radial-gradient(circle at 15% -20%, var(--lavender-35), transparent 40%),
    radial-gradient(circle at 90% 0%, var(--sage-18), transparent 42%), var(--color-ivory);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: #000;
  color: #fff;
  z-index: 999;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

.mt-md {
  margin-top: 1rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: var(--container);
  margin-inline: auto;
}

section,
.page-section {
  padding: var(--space-xxl) 0;
}

h1,
h2,
h3,
h4 {
  font-family: 'Noto Serif JP', 'Cormorant Garamond', serif;
  color: var(--color-forest);
  line-height: 1.3;
  margin: 0 0 var(--space-md);
}

h1 {
  font-size: clamp(1.75rem, 3vw, 3.2rem);
}

h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: #28334a;
}

.kicker {
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.8rem;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(247, 245, 242, 0.92);
  border-bottom: 1px solid var(--forest-15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.08rem;
  color: var(--color-forest);
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--color-forest), #c94a35);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand-mark::before,
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.brand-mark::after {
  inset: 3px;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.35);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  gap: 0.15rem;
}

.nav-list a {
  text-decoration: none;
  color: var(--color-navy);
  padding: 0.55rem 0.72rem;
  border-radius: 8px;
  font-size: 0.92rem;
}

.nav-list a:is(:hover, :focus-visible, [aria-current='page']) {
  background: var(--sage-18);
  color: var(--color-forest);
}

.nav-group {
  position: relative;
}

.nav-group > button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.72rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  line-height: inherit;
  color: var(--color-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.nav-group > button:is(:hover, :focus-visible) {
  background: var(--sage-18);
}

.dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 0.45rem;
  display: none;
}

.nav-group:hover .dropdown,
.nav-group:focus-within .dropdown,
.nav-group.open .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  text-decoration: none;
  padding: 0.5rem 0.68rem;
  border-radius: 7px;
}

.dropdown a:is(:hover, :focus-visible) {
  background: var(--sage-15);
}

.btn,
button.btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-button);
  min-height: 44px;
  padding: 0.68rem 1.15rem;
  font-size: 0.94rem;
  font-weight: 500;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn-primary {
  background: var(--color-forest);
  color: #fff;
}

.btn-primary:is(:hover, :focus-visible) {
  transform: scale(1.03);
  box-shadow: 0 6px 16px var(--forest-35);
}

.btn-secondary {
  background: #fff;
  color: var(--color-forest);
  border: 1px solid var(--color-forest);
}

.btn-secondary:is(:hover, :focus-visible) {
  background: var(--sage-24);
}

.menu-toggle {
  display: none;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-forest);
  margin: 5px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--forest-15);
  padding: 0.9rem 0;
  max-height: calc(100vh - 74px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-panel a,
.mobile-panel summary {
  display: block;
  text-decoration: none;
  color: var(--color-navy);
  padding: 0.58rem;
  padding-block: 0.75rem;
  min-height: var(--touch-min);
  box-sizing: border-box;
  border-radius: 8px;
}

.mobile-panel summary {
  list-style: none;
  cursor: pointer;
}

.mobile-panel summary::-webkit-details-marker {
  display: none;
}

.mobile-panel details[open] summary {
  margin-bottom: 0.25rem;
}

.mobile-panel details a {
  padding-left: 1.5rem;
}

.mobile-panel a:is(:hover, :focus-visible),
.mobile-panel summary:is(:hover, :focus-visible) {
  background: var(--sage-18);
}

.mobile-panel details {
  border-radius: 8px;
}

.mobile-panel .btn {
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: clip;
  padding: 4rem 0;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  z-index: -1;
}

.hero::before {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle at 35% 35%, var(--sage-65), transparent);
  top: -180px;
  right: -140px;
}

.hero::after {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle at 45% 40%, rgba(255, 224, 178, 0.55), rgba(255, 224, 178, 0));
  bottom: -240px;
  left: -170px;
}

.hero-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--color-forest);
}

.hero-copy p {
  max-width: 50ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero-image-wrap {
  position: relative;
}

.hero-image {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 28px 50px rgba(26, 26, 46, 0.2);
}

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

.hero-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(247, 245, 242, 0.94);
  border: 1px solid var(--forest-25);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow-card);
}

/* Grid utilities: .grid-2, .grid-3, .grid-4 */
[class^='grid-'] {
  display: grid;
  gap: var(--space-md);
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ==========================================================================
   Curriculum Section
   ========================================================================== */
.curriculum-section {
  padding: var(--space-xl) 0 0;
}

.curriculum-card {
  background: #fff;
  border: 1px solid var(--forest-12);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.curriculum-header {
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2.2rem) clamp(1.2rem, 3vw, 2rem) 0;
}

.curriculum-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.curriculum-title {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  margin-bottom: 0.5rem;
}

.curriculum-desc {
  font-size: 0.92rem;
  color: #4a5668;
  margin-bottom: 0;
  line-height: 1.7;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--forest-8);
  margin: clamp(1.2rem, 2.5vw, 1.8rem) clamp(1.2rem, 3vw, 2rem);
  border-radius: 12px;
  overflow: hidden;
}

.curriculum-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  background: var(--color-ivory);
  text-decoration: none;
  color: var(--color-navy);
  transition: background 0.2s ease;
  min-height: var(--touch-min);
}

.curriculum-item:is(:hover, :focus-visible) {
  background: var(--sage-24);
}

.curriculum-icon {
  color: var(--color-forest);
  font-size: 1rem;
  flex-shrink: 0;
  width: 1.2rem;
  text-align: center;
}

.curriculum-name {
  flex: 1;
  font-size: 0.93rem;
  font-weight: 500;
}

.curriculum-arrow {
  color: var(--color-gold);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.curriculum-item:is(:hover, :focus-visible) .curriculum-arrow {
  transform: translateX(3px);
}

.curriculum-footer {
  text-align: center;
  padding: 0 clamp(1.2rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem);
}

@media (max-width: 767px) {
  .curriculum-section {
    padding: var(--space-lg) 0 0;
  }

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

/* ==========================================================================
   Patent Section
   ========================================================================== */
.patent-section {
  padding: 0 0 var(--space-xl);
}

.patent-card {
  position: relative;
  background: linear-gradient(160deg, #0f0f1e 0%, #1a1a2e 40%, #1e1632 100%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(196, 154, 108, 0.2);
}

.patent-ornament {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 90% 50%, rgba(196, 154, 108, 0.1), transparent),
    radial-gradient(ellipse 40% 60% at 10% 20%, rgba(196, 154, 108, 0.06), transparent);
  pointer-events: none;
}

.patent-ornament::before,
.patent-ornament::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(196, 154, 108, 0.12);
  border-radius: 999px;
}

.patent-ornament::before {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -60px;
}

.patent-ornament::after {
  width: 200px;
  height: 200px;
  bottom: -60px;
  left: -40px;
}

.patent-inner {
  position: relative;
  z-index: 1;
  padding: clamp(2.2rem, 4.5vw, 3.5rem) clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

.patent-kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid rgba(196, 154, 108, 0.35);
  border-radius: 999px;
  padding: 0.35rem 1.2rem;
  margin-bottom: 1.2rem;
}

.patent-heading {
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.patent-body {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.93rem;
  line-height: 2;
  margin-bottom: 2rem;
  max-width: 580px;
  margin-inline: auto;
}

.patent-body strong {
  color: var(--color-gold);
  font-weight: 600;
}

.patent-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.patent-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(196, 154, 108, 0.08);
  border: 1px solid rgba(196, 154, 108, 0.2);
  border-radius: 16px;
  padding: 1.2rem 1.6rem;
  text-decoration: none;
  color: var(--color-gold);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.patent-badge:is(:hover, :focus-visible) {
  background: rgba(196, 154, 108, 0.15);
  border-color: rgba(196, 154, 108, 0.4);
  transform: translateY(-3px);
}

.patent-seal {
  flex-shrink: 0;
  opacity: 0.85;
}

.patent-seal svg {
  display: block;
}

.patent-detail {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.patent-country {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.15rem;
}

.patent-status {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.08rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.06em;
}

@media (max-width: 767px) {
  .patent-inner {
    padding: 2rem 1.4rem;
  }

  .patent-body br {
    display: none;
  }

  .patent-badges {
    flex-direction: column;
    gap: 0.8rem;
    align-items: stretch;
  }

  .patent-badge {
    justify-content: center;
    padding: 1rem 1.2rem;
  }
}

/* ==========================================================================
   Components: Cards, Buttons, Forms
   ========================================================================== */
.card {
  background: #fff;
  border: 1px solid var(--forest-8);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.2rem;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.card > img:first-child {
  width: calc(100% + 2.4rem);
  margin: -1.2rem -1.2rem 1rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  display: block;
}

figure.card {
  padding: 0;
  overflow: hidden;
}

figure.card > img:first-child,
figure.card img {
  width: 100%;
  max-height: 420px;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  display: block;
}

figure.card.card-portrait img {
  max-height: 420px;
  object-fit: cover;
  object-position: center 10%;
}

figure.card.card-concept img {
  max-height: none;
  object-fit: contain;
}

figure.card figcaption {
  padding: 1rem 1.2rem;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-grid;
  place-content: center;
  margin-bottom: 0.8rem;
  background: linear-gradient(130deg, var(--forest-15), rgba(196, 154, 108, 0.2));
  color: var(--color-forest);
  font-weight: 700;
}

.metrics {
  background: linear-gradient(140deg, var(--forest-12), rgba(255, 255, 255, 0.8));
  border-top: 1px solid var(--forest-12);
  border-bottom: 1px solid var(--forest-12);
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-family: 'Cormorant Garamond', serif;
  color: var(--color-forest);
  white-space: nowrap;
}

.metric-label {
  font-size: 0.9rem;
  color: #394358;
}

.testimonial-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.testimonial-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.4s ease;
  width: 100%;
}

.testimonial-item {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.3rem;
}

.quote-card {
  background: #fff;
  border-left: 5px solid var(--color-gold);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
}

.quote-mark {
  font-size: 1.6rem;
  color: var(--color-sage);
  line-height: 1;
}

.stars {
  color: #cc9c4a;
  letter-spacing: 0.06em;
}

.carousel-controls {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 0.8rem;
}

.carousel-controls button {
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--forest-25);
  background: #fff;
  color: var(--color-forest);
  cursor: pointer;
  font-size: 1.2rem;
}

.blog-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

/* note.com 埋め込みリスト */
.note-embed-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 680px;
}

.note-embed-list blockquote {
  margin: 0;
}

.note-cta {
  margin-top: 1rem;
}

.section-divider {
  width: 88px;
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  margin: 0 0 1rem;
}

.cta-band {
  background: linear-gradient(120deg, var(--color-forest), #c94a35);
  color: #fff;
  border-radius: 18px;
  padding: clamp(1.4rem, 3.5vw, 2.3rem);
  display: grid;
  gap: 1rem;
  align-items: center;
  grid-template-columns: 1.2fr auto;
}

.cta-band h2,
.cta-band p {
  color: #fff;
}

.breadcrumb {
  padding: 1rem 0 0;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: #4a5668;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
}

.page-hero {
  padding: 3.5rem 0 2.4rem;
}

.page-hero h1 {
  margin-bottom: 0.6rem;
}

.timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--sage-65);
}

.timeline li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.1rem;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid var(--color-forest);
  background: #fff;
}

.message-box {
  border: 1px dashed var(--forest-35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  padding: 1.2rem;
  font-family: 'Noto Serif JP', serif;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--forest-15);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: #fff;
}

th,
td {
  padding: 0.9rem;
  border-bottom: 1px solid var(--forest-12);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--sage-18);
  color: var(--color-forest);
  font-weight: 600;
}

.price-card {
  border: 1px solid var(--forest-15);
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
}

.price {
  font-size: 1.45rem;
  font-family: 'Cormorant Garamond', serif;
  color: var(--color-forest);
}

/* Service page — anchor nav & blocks */
.service-anchor-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--color-ivory);
  border-bottom: 1px solid var(--forest-12);
  padding: 0.7rem 0;
}

.anchor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.anchor-list::-webkit-scrollbar { display: none; }

.anchor-list a {
  display: block;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--forest-25);
  color: var(--color-forest);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.anchor-list a:is(:hover, :focus-visible) {
  background: var(--color-forest);
  color: #fff;
}

.service-block {
  scroll-margin-top: 4rem;
}

.service-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--color-forest);
  line-height: 1;
  opacity: 0.35;
}

.service-tag {
  display: inline-block;
  margin-left: 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--forest-10);
  color: var(--color-forest);
  padding: 0.2em 0.6em;
  border-radius: 999px;
  vertical-align: middle;
}

.service-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.theme-quote {
  margin: 0.8rem 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--color-forest);
  background: var(--forest-5);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.steps li {
  display: flex;
  gap: 0.8rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--forest-10);
  padding: 0.9rem;
}

.step-no {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--color-forest);
  color: #fff;
  display: grid;
  place-content: center;
  flex: 0 0 30px;
  font-size: 0.88rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border-radius: 10px;
  border: 1px solid var(--forest-20);
  background: #fff;
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  font: inherit;
  color: var(--color-navy);
  padding: 0.95rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.faq-item button .icon {
  transition: transform 0.3s ease;
  color: var(--color-forest);
}

.faq-item[open] button .icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1rem 1rem;
}

/* LINE CTA Banner */
.line-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  background: #fff;
  border: 2px solid #06C755;
  border-radius: 16px;
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: 0 4px 20px rgba(6, 199, 85, 0.12);
}

.line-cta-icon {
  flex-shrink: 0;
}

.line-cta-heading {
  font-family: var(--ff-serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  margin: 0;
}

.line-cta-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #06C755;
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.btn-line:hover {
  background: #05b04c;
  transform: translateY(-1px);
  color: #fff;
}

@media (max-width: 767px) {
  .line-cta {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 0.8rem;
  }

  .btn-line {
    width: 100%;
    justify-content: center;
  }
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.filter-btn {
  border: 1px solid var(--forest-25);
  background: #fff;
  color: var(--color-forest);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:is(:hover, :focus-visible) {
  background: var(--color-forest);
  color: #fff;
}

.testimonial-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--forest-12);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 1rem;
}

.testimonial-meta {
  font-size: 0.87rem;
  color: #5a6679;
  margin-bottom: 0.45rem;
}

.before-after {
  background: var(--sage-15);
  border: 1px solid var(--forest-12);
  border-radius: 12px;
  padding: 1rem;
}

.compare-bar {
  display: grid;
  gap: 0.45rem;
}

.compare-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 0.7rem;
}

.compare-meter {
  height: 12px;
  border-radius: 999px;
  background: var(--sage-18);
  overflow: hidden;
}

.compare-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-forest));
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #526176;
  font-size: 0.9rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--lavender-45);
  color: #4f4560;
  font-size: 0.8rem;
}

.blog-article {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--forest-8);
  border-radius: 14px;
  padding: clamp(1.2rem, 2vw, 2rem);
}

.blog-article h2 {
  margin-top: 1.8rem;
}

.blog-article img {
  border-radius: 12px;
  margin-bottom: 1.2rem;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.share-row a {
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--forest-25);
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Contact method cards */
.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.contact-method-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border: 2px solid var(--forest-12);
  border-radius: 14px;
  text-decoration: none;
  color: var(--color-navy);
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-method-card:hover {
  border-color: var(--color-forest);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.contact-method-line {
  border-color: rgba(6, 199, 85, 0.25);
}

.contact-method-line:hover {
  border-color: #06C755;
  box-shadow: 0 12px 30px rgba(6, 199, 85, 0.18);
}

.contact-method-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest-5);
  border-radius: 12px;
}

.contact-method-line .contact-method-icon {
  background: rgba(6, 199, 85, 0.08);
}

.contact-method-card h2 {
  font-size: 1.15rem;
  margin: 0 0 0.3rem;
}

.contact-method-card p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

.contact-method-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: #06C755;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
}

/* LINE CTA box */
.line-cta-box {
  background: linear-gradient(135deg, rgba(6, 199, 85, 0.06) 0%, rgba(6, 199, 85, 0.02) 100%);
  border: 2px solid rgba(6, 199, 85, 0.2);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
}

.line-cta-content {
  max-width: 520px;
  margin: 0 auto;
}

.line-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: rgba(6, 199, 85, 0.1);
  border-radius: 50%;
  margin-bottom: 1rem;
}

.line-cta-box h2 {
  font-size: 1.4rem;
  margin: 0 0 0.7rem;
}

.line-cta-box p {
  color: #444;
  line-height: 1.7;
  margin: 0 0 1.2rem;
}

.line-cta-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.line-cta-features span {
  display: inline-block;
  background: rgba(6, 199, 85, 0.1);
  color: #06A04A;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #06C755;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-button);
  border: none;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-line:hover {
  background: #05a847;
  transform: translateY(-1px);
}

.btn-line.btn-sm {
  font-size: 0.9rem;
  padding: 0.6rem 1.3rem;
}

/* Contact grid (form + sidebar) */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-panel {
  background: #fff;
  border: 1px solid var(--forest-12);
  border-radius: 14px;
  padding: 2rem;
}

.contact-panel h2 {
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 1.25rem;
}

.form-group-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Contact sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-info-card {
  background: #fff;
  border: 1px solid var(--forest-12);
  border-radius: 14px;
  padding: 1.5rem;
}

.contact-info-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.8rem;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-info-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info-line {
  background: rgba(6, 199, 85, 0.04);
  border-color: rgba(6, 199, 85, 0.2);
}

.contact-info-line p {
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.form-row {
  display: grid;
  gap: 0.8rem;
}

label {
  display: block;
  font-weight: 500;
  color: #22304c;
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--color-navy);
  border: 0;
  border-bottom: 2px solid var(--forest-25);
  padding: 0.62rem 0.2rem;
  background: transparent;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-bottom-color: var(--color-forest);
}

.radio-row,
.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.radio-row label,
.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
}

input[type='radio'],
input[type='checkbox'] {
  width: auto;
}

.error {
  color: #9a2f2f;
  font-size: 0.84rem;
  min-height: 1.25em;
}

.booking-embed {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--forest-12);
  overflow: hidden;
  min-height: 520px;
}

.booking-embed iframe {
  width: 100%;
  min-height: 520px;
  border: 0;
}

.service-voices {
  margin-top: 1.5rem;
}

.service-voices h3 {
  font-size: 1.05rem;
  margin: 0 0 0.8rem;
  color: var(--color-navy);
}

.voice-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.voice-card {
  background: var(--forest-5);
  border-left: 3px solid var(--color-forest);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 1.2rem;
  margin: 0;
  font-style: normal;
}

.voice-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #333;
  margin: 0 0 0.7rem;
}

.voice-card footer {
  font-size: 0.78rem;
  color: #888;
  font-weight: 500;
}

/* Note article cards */
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Video course banner */
.video-course-banner {
  background: linear-gradient(135deg, var(--forest-5) 0%, var(--color-ivory) 100%);
  border: 2px solid var(--color-forest);
  border-radius: 16px;
  padding: 2.5rem;
}

.video-course-content {
  max-width: 680px;
}

.video-course-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.video-course-head h2 {
  margin: 0;
}

.video-course-content > p {
  color: #444;
  line-height: 1.7;
  margin: 0 0 1.2rem;
}

.video-course-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.video-course-points span {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--forest-15);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  color: var(--color-navy);
}

.video-course-compare {
  margin-bottom: 1.5rem;
}

.video-course-compare-note {
  font-size: 0.84rem;
  color: #777;
  margin: 0;
  line-height: 1.6;
}

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

.compare-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--forest-12);
  text-align: left;
}

.compare-table thead th {
  font-weight: 600;
  background: var(--forest-5);
}

.compare-table thead th:first-child {
  width: 5rem;
}

.note-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--forest-12);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-navy);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.note-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.note-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.note-card-body {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.note-card-body time {
  font-size: 0.78rem;
  color: #999;
  font-weight: 500;
}

.note-card-body h3 {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.note-cta {
  text-align: center;
  margin-top: 0.5rem;
}

/* SNS link grid (blog page) */
.sns-section-lead {
  color: #555;
  margin: -0.3rem 0 1.5rem;
}

.sns-link-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.sns-link-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--forest-12);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--color-navy);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sns-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-forest);
}

.sns-link-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest-5);
  border-radius: 12px;
}

.sns-link-card--line .sns-link-icon {
  background: rgba(6, 199, 85, 0.08);
}

.sns-link-card--instagram .sns-link-icon {
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.08), rgba(253, 29, 29, 0.08), rgba(252, 176, 69, 0.08));
}

.sns-link-card--note .sns-link-icon {
  background: rgba(65, 195, 121, 0.08);
  color: #41c379;
}

.sns-link-card--litlink .sns-link-icon {
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
}

.sns-link-card--x .sns-link-icon {
  background: rgba(0, 0, 0, 0.06);
}

.sns-link-card h3 {
  font-size: 0.95rem;
  margin: 0;
}

.sns-link-card p {
  font-size: 0.78rem;
  color: #888;
  margin: 0;
}

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

.sns-link-card--youtube .sns-link-icon {
  background: rgba(255, 0, 0, 0.08);
}

.sns-litlink-wrap {
  text-align: center;
  margin-top: 1.2rem;
}

.sns-litlink {
  display: inline-block;
  color: #6366f1;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.6rem 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-button);
  transition: background 0.2s ease;
}

.sns-litlink:hover {
  background: rgba(99, 102, 241, 0.06);
}

.sns-link-arrow {
  margin-left: auto;
  font-size: 1.1rem;
  color: #bbb;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sns-link-card:hover .sns-link-arrow {
  color: var(--color-forest);
  transform: translateX(3px);
}

.calendar-btn {
  margin-top: 1rem;
}

/* ==========================================================================
   Upcoming Curriculum Highlight
   ========================================================================== */
.upcoming-section {
  padding: 2.5rem 0 1.5rem;
}

.upcoming-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.upcoming-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.upcoming-pulse {
  width: 12px;
  height: 12px;
  background: var(--color-forest);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 99, 71, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(255, 99, 71, 0); }
}

.upcoming-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1rem;
}

.upcoming-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.3rem;
  background: #fff;
  border: 1px solid var(--forest-12);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--color-navy);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.upcoming-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-forest);
}

.upcoming-card--featured {
  background: linear-gradient(135deg, var(--forest-5) 0%, #fff 60%);
  border: 2px solid var(--color-forest);
  grid-row: span 1;
}

.upcoming-badge {
  display: inline-block;
  width: fit-content;
  background: var(--color-forest);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.upcoming-card--featured .upcoming-badge {
  background: var(--color-forest);
}

.upcoming-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-forest);
}

.upcoming-card h3 {
  font-size: 1.1rem;
  margin: 0.15rem 0 0;
}

.upcoming-card--featured h3 {
  font-size: 1.25rem;
}

.upcoming-card p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

.upcoming-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
}

.upcoming-price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: #777;
}

.upcoming-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-forest);
  margin-top: 0.3rem;
  transition: letter-spacing 0.2s ease;
}

.upcoming-card:hover .upcoming-cta {
  letter-spacing: 0.03em;
}

.upcoming-lead {
  color: #555;
  margin: -0.5rem 0 1.5rem;
}

.upcoming-all {
  text-align: center;
  margin-top: 1.5rem;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 1.5rem auto;
  padding-bottom: 56.25%;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.download-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--forest-12);
  border-radius: 12px;
  padding: 1rem;
}

.site-footer {
  margin-top: 4rem;
  background: #b8402e;
  color: rgba(255, 255, 255, 0.94);
  padding: 2.3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.footer-title {
  font-family: 'Noto Serif JP', serif;
  margin-bottom: 0.7rem;
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
}

.footer-links a:is(:hover, :focus-visible) {
  text-decoration: underline;
}

.sns-row {
  display: flex;
  gap: 0.6rem;
}

.sns-row + .footer-links {
  margin-top: 0.8rem;
}

.sns-row a {
  display: inline-grid;
  place-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.copyright {
  margin-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.8rem;
  font-size: 0.85rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--forest-20);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
  padding: 0.9rem;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.loading {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--sage-65), var(--forest-15));
  margin: 0 auto;
  animation: breath 8s ease-in-out infinite;
}

@keyframes breath {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Pathway Cards (Booking page)
   ========================================================================== */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.pathway-card {
  background: #fff;
  border: 1px solid var(--forest-12);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.pathway-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pathway-card h2 {
  margin-bottom: 0;
}

.pathway-card ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 0.35rem;
}

.pathway-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ==========================================================================
   Dual CTA Band
   ========================================================================== */
.cta-band--dual {
  grid-template-columns: 1fr;
  text-align: center;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ==========================================================================
   External Link Button & Icon
   ========================================================================== */
.btn-external {
  gap: 0.4rem;
}

.icon-external {
  width: 0.85em;
  height: 0.85em;
  vertical-align: -0.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   Responsive: Tablet
   ========================================================================== */
@media (max-width: 1023px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-panel.show {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 2.3rem;
  }

  .hero::before,
  .hero::after {
    width: 280px;
    height: 280px;
  }

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

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

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

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

  .grid-3,
  .grid-4,
  .testimonial-grid,
  .footer-grid,
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

/* ==========================================================================
   Responsive: Mobile
   ========================================================================== */
@media (max-width: 767px) {
  .container {
    width: 100%;
    padding-inline: max(1rem, 4vw);
    box-sizing: border-box;
  }

  section,
  .page-section {
    padding: 3.3rem 0;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand span:not(.brand-mark) {
    max-width: 10em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-panel {
    max-height: calc(100dvh - 68px);
  }

  .hero {
    padding: 2rem 0 2.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    line-height: 1.35;
  }

  .hero-copy p {
    max-width: none;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .quote-card {
    min-height: auto;
    padding: 1.1rem;
  }

  .carousel-controls {
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
  }

  .cta-band {
    padding: 1.5rem;
    text-align: center;
  }

  .cta-band .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-band-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-band-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .download-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

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

  .upcoming-card--featured {
    grid-row: auto;
  }

  .video-course-banner {
    padding: 1.5rem;
  }

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

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

  .sns-link-grid {
    grid-template-columns: 1fr;
  }

  .form-group-pair {
    grid-template-columns: 1fr;
  }

  .line-cta-box {
    padding: 1.5rem;
  }

  .contact-method-card {
    padding: 1.2rem;
  }

  .grid-3,
  .grid-4,
  .testimonial-grid,
  .footer-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    position: static;
    margin-top: 0.7rem;
  }

  .compare-row {
    grid-template-columns: 64px 1fr;
  }

  .cookie-banner {
    left: max(0.6rem, env(safe-area-inset-left));
    right: max(0.6rem, env(safe-area-inset-right));
    bottom: max(0.6rem, env(safe-area-inset-bottom));
  }

  .site-footer {
    margin-top: 3rem;
    padding: 1.8rem 0;
  }

  .footer-grid {
    gap: 1.5rem;
    text-align: center;
  }

  .footer-title {
    font-size: 1.1rem;
  }

  .sns-row {
    justify-content: center;
  }
}

/* ==========================================================================
   Accessibility: Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
