/* =========================================================
   Stepping Stones — Editorial JP site
   Paper × Ink × 朱
   ========================================================= */

:root {
  --paper: #ffffff;
  --paper-2: #f4f4f4;
  --ink: #0a0a0a;
  --ink-soft: #6b6b6b;
  --line: #e5e5e5;
  --accent: #e64323;
  --accent-ink: #b0301a;
  --accent-soft: #fbe3dc;

  --maxw: 1440px;
  --pad-x: clamp(20px, 4vw, 64px);

  --f-display-en: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-display-jp: 'Noto Sans JP', sans-serif;
  --f-body: 'Noto Sans JP', 'Helvetica Neue', Helvetica, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  /* clip (not hidden) stops horizontal scroll/rubber-band bounce from
     oversized decorative text without creating a scroll container —
     so it does NOT break the page's position:sticky elements. */
  overflow-x: clip;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.7;
  font-feature-settings: 'palt' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: 0;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

/* ---------- Grain texture overlay ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Utilities ---------- */
.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.label-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
}
.label-row::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--ink-soft);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.section {
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
  position: relative;
}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
}

/* Reveal animation defaults */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.reveal-stagger.in > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.in > *:nth-child(2) {
  transition-delay: 0.08s;
}
.reveal-stagger.in > *:nth-child(3) {
  transition-delay: 0.16s;
}
.reveal-stagger.in > *:nth-child(4) {
  transition-delay: 0.24s;
}
.reveal-stagger.in > *:nth-child(5) {
  transition-delay: 0.32s;
}
.reveal-stagger.in > *:nth-child(6) {
  transition-delay: 0.4s;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  color: var(--ink);
  transition:
    background 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.site-header.solid {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--f-display-en);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.logo .ja {
  font-family: var(--f-display-jp);
  font-size: 11px;
  letter-spacing: 0.3em;
  font-weight: 500;
  opacity: 0.7;
}
.logo .stone {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  transform: translateY(-1px);
}
.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav a {
  font-family: var(--f-display-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  text-align: center;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
.nav a:hover::after {
  width: 100%;
}
.nav .ja {
  display: block;
  font-family: var(--f-display-jp);
  font-size: 9px;
  letter-spacing: 0.2em;
  opacity: 0.6;
  margin-top: 2px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--f-display-en);
  font-size: 13px;
  font-weight: 500;
  transition:
    background 0.3s,
    color 0.3s;
}
.cta-btn:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.cta-btn .arr {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.cta-btn:hover .arr {
  transform: translateX(4px);
}

/* ---------- Mobile menu toggle ---------- */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 110;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition:
    transform 0.4s var(--ease),
    opacity 0.3s,
    width 0.3s;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile-menu-only extras: hidden on desktop, revealed in the overlay below */
.nav .mobile-brand,
.nav .mobile-cta {
  display: none;
}

@media (max-width: 880px) {
  .site-header .cta-btn {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    color: var(--paper);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 28px;
    padding: 80px var(--pad-x) 60px;
    transform: translateY(-101%);
    transition: transform 0.55s var(--ease);
    z-index: 95;
    mix-blend-mode: normal;
  }
  .nav.open {
    transform: translateY(0);
  }
  .nav a {
    font-family: var(--f-display-en);
    font-weight: 700;
    font-size: 36px;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--paper);
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.5s var(--ease),
      transform 0.5s var(--ease);
  }
  .nav.open a {
    opacity: 1;
    transform: translateY(0);
  }
  .nav.open a:nth-child(1) {
    transition-delay: 0.18s;
  }
  .nav.open a:nth-child(2) {
    transition-delay: 0.24s;
  }
  .nav.open a:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav.open a:nth-child(4) {
    transition-delay: 0.36s;
  }
  .nav.open a:nth-child(5) {
    transition-delay: 0.42s;
  }
  .nav.open a:nth-child(6) {
    transition-delay: 0.48s;
  }
  .nav a::after {
    display: none;
  }
  .nav a .ja {
    display: block;
    font-family: var(--f-display-jp);
    font-size: 12px;
    letter-spacing: 0.2em;
    margin-top: 6px;
    opacity: 0.5;
    color: var(--accent);
  }
  .nav .mobile-cta {
    margin-top: 16px;
    font-size: 14px;
    padding: 14px 24px;
    border: 1px solid var(--paper);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .nav .mobile-cta .ja {
    display: none;
  }
  .nav .mobile-cta {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--paper);
    font-family: var(--f-display-en);
    font-weight: 600;
  }
  /* Company logo inside the open overlay, aligned to the X-button row
     (top:18px + height:44px == .site-header padding + .menu-toggle box). */
  .nav .mobile-brand {
    display: flex;
    align-items: center;
    position: absolute;
    top: 18px;
    left: var(--pad-x);
    height: 44px;
    font-family: var(--f-display-en);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--paper);
    opacity: 1;
    transform: none;
  }
  .nav .mobile-brand::after {
    display: none;
  }

  /* Body lock when menu open */
  body.menu-open {
    overflow: hidden;
  }

  /* Header tweaks while menu open */
  .site-header.menu-active {
    mix-blend-mode: normal;
    color: var(--paper);
    background: transparent;
  }
  /* The overlay shows its own .mobile-brand; hide the header logo so
     it doesn't stack as a duplicate. The X (menu-toggle) stays. */
  .site-header.menu-active .logo {
    opacity: 0;
    pointer-events: none;
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  min-height: 100vh;
  padding: 140px var(--pad-x) 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}
.hero-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 70% at 20% 50%, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.85) 70%),
    linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.6) 0%,
      rgba(10, 10, 10, 0.4) 50%,
      rgba(10, 10, 10, 0.9) 100%
    );
  z-index: 2;
}
.hero-bg-image .ss-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  --is-bg: #14110e;
  --is-border: rgba(245, 242, 234, 0.12);
  --is-fg: rgba(245, 242, 234, 0.4);
}
/* When user drops an image into the slot, hide the placeholder hint by darkening */
.hero-bg-image .ss-img[data-filled='true'] ~ * {
}
.hero-bg-num,
.hero-headline,
.hero-foot {
  position: relative;
  z-index: 3;
}
.hero-bg-num {
  position: absolute;
  right: -2vw;
  bottom: -4vw;
  font-family: var(--f-display-en);
  font-size: clamp(280px, 42vw, 720px);
  font-weight: 700;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 242, 234, 0.08);
  pointer-events: none;
  user-select: none;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(245, 242, 234, 0.7);
}
.hero-meta strong {
  color: var(--paper);
  font-weight: 600;
}

.hero-headline {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-kicker .bar {
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero-title .l1 {
  display: block;
}
.hero-title .l2 {
  display: block;
}
.hero-title .accent {
  color: var(--accent);
  font-style: normal;
}
.hero-title .en-mark {
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 500;
  font-size: 0.5em;
  color: rgba(245, 242, 234, 0.55);
  letter-spacing: -0.01em;
  vertical-align: 0.15em;
  margin-left: 0.2em;
}

.hero-foot {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 40px;
  align-items: end;
  margin-top: 64px;
}
.hero-lead {
  font-size: 15px;
  line-height: 1.9;
  max-width: 420px;
  color: rgba(245, 242, 234, 0.78);
}
.hero-lead strong {
  color: var(--paper);
  font-weight: 600;
}
.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 242, 234, 0.6);
}
.scroll-cue .line {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, currentColor);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 760px) {
  .hero-foot {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .scroll-cue {
    justify-self: start;
  }
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: inline-flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--f-display-en);
  font-size: clamp(36px, 6vw, 84px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee-track .ja {
  font-family: var(--f-display-jp);
  font-size: 0.45em;
  font-weight: 500;
  color: var(--ink-soft);
  vertical-align: middle;
}
.marquee-track .star {
  color: var(--accent);
  font-size: 0.6em;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   About preview
   ========================================================= */
.about-preview {
  padding: clamp(100px, 14vw, 180px) var(--pad-x);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 8vw, 120px);
  max-width: var(--maxw);
  margin: 0 auto;
  align-items: start;
}
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.section-eyebrow .num {
  color: var(--accent);
  font-weight: 700;
}
.section-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 80px;
}
.about-preview .lead-stack {
  position: sticky;
  top: 120px;
}
.about-preview h2 {
  margin-top: 24px;
  font-family: var(--f-display-jp);
  font-weight: 800;
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.about-preview h2 em {
  font-style: normal;
  color: var(--accent);
}
.about-preview h2 .en {
  display: block;
  margin-top: 14px;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  font-size: 0.4em;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}
.about-preview .body p {
  font-size: 16px;
  line-height: 2;
  max-width: 540px;
  color: var(--ink);
}
.about-preview .body p + p {
  margin-top: 1.4em;
}
.about-preview .stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.stat .num {
  font-family: var(--f-display-en);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat .num .unit {
  font-size: 0.5em;
  color: var(--ink-soft);
  margin-left: 4px;
}
.stat .label {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .about-preview {
    grid-template-columns: 1fr;
  }
  .about-preview .lead-stack {
    position: static;
  }
}

/* =========================================================
   Services
   ========================================================= */
.services {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(100px, 14vw, 180px) var(--pad-x);
  border-radius: 32px 32px 0 0;
}
.services .container {
  max-width: var(--maxw);
}
.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 80px;
}
.services-head h2 {
  font-family: var(--f-display-jp);
  font-weight: 800;
  font-size: clamp(48px, 7.6vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.services-head h2 .line {
  display: inline-block;
  white-space: nowrap;
}
.services-head h2 .en-italic {
  display: block;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 0.62em;
  margin-top: 8px;
  letter-spacing: -0.01em;
}
.services-head .blurb {
  max-width: 380px;
  color: rgba(245, 242, 234, 0.75);
  font-size: 15px;
  line-height: 1.9;
}
.services-head .blurb .ja-mark {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.service-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid rgba(245, 242, 234, 0.12);
  align-items: start;
  position: relative;
  cursor: pointer;
  transition: padding 0.5s var(--ease);
}
.service-row:last-child {
  border-bottom: 1px solid rgba(245, 242, 234, 0.12);
}
.service-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
  z-index: 0;
}
.service-row:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}
.service-row:hover {
  color: var(--ink);
}
.service-row > * {
  position: relative;
  z-index: 1;
}
.service-row .num {
  font-family: var(--f-display-en);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--accent);
  transition: color 0.4s;
}
.service-row:hover .num {
  color: var(--ink);
}
.service-row .name-en {
  font-family: var(--f-display-en);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.service-row .name-jp {
  display: block;
  font-family: var(--f-display-jp);
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
  color: rgba(245, 242, 234, 0.6);
}
.service-row:hover .name-jp {
  color: rgba(20, 17, 14, 0.7);
}
.service-row .desc {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(245, 242, 234, 0.7);
  max-width: 440px;
}
.service-row:hover .desc {
  color: rgba(20, 17, 14, 0.85);
}
.service-row .arrow {
  justify-self: end;
  font-family: var(--f-display-en);
  font-size: 24px;
  transition: transform 0.5s var(--ease);
}
.service-row:hover .arrow {
  transform: translate(8px, -8px);
}
.service-row .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.service-row .tags span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .services-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .service-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .service-row .desc,
  .service-row .arrow {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   Education spotlight
   ========================================================= */
.education {
  --edu-blue: #0490de;
  --edu-blue-ink: #0670a8;
  background: var(--edu-blue);
  color: var(--paper);
  padding: clamp(100px, 14vw, 180px) var(--pad-x);
  position: relative;
  overflow: hidden;
}
.education::before {
  content: 'GAKUSHU'; /* 学習 */
  position: absolute;
  bottom: -6vw;
  left: -2vw;
  font-family: var(--f-display-en);
  font-weight: 800;
  font-size: clamp(220px, 30vw, 480px);
  letter-spacing: -0.03em;
  color: rgba(245, 242, 234, 0.08);
  line-height: 0.8;
  pointer-events: none;
}
.education .container {
  max-width: var(--maxw);
  position: relative;
  z-index: 2;
}
.education-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 80px;
}
.education-head h2 {
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.education-head h2 .line {
  display: inline-block;
  white-space: nowrap;
}
.education-head h2 .en {
  display: block;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  font-size: 0.4em;
  margin-top: 12px;
  opacity: 0.8;
}
.education-head p {
  max-width: 440px;
  line-height: 1.9;
  font-size: 16px;
}
.education-head .instr-link {
  color: var(--paper);
  border-bottom: 1px solid rgba(245, 242, 234, 0.5);
  text-decoration: none;
  transition: border-color 0.3s;
}
.education-head .instr-link:hover {
  border-bottom-color: var(--paper);
}
.education-head .instr-link strong {
  font-weight: 700;
}

.course-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.course-card {
  background: var(--paper);
  color: var(--ink);
  padding: 40px 36px;
  border-radius: 6px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  transition: transform 0.4s var(--ease);
}
.course-card:hover {
  transform: translateY(-6px);
}
.course-card .badge {
  display: inline-flex;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--edu-blue, var(--accent));
  text-transform: uppercase;
}
.course-card h3 {
  margin-top: 32px;
  font-family: var(--f-display-jp);
  font-weight: 800;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.course-card h3 .en {
  display: block;
  margin-top: 6px;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  font-size: 0.5em;
  color: var(--edu-blue-ink, var(--ink-soft));
}
.course-card .meta {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.course-card .meta .k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.course-card .meta .v {
  font-family: var(--f-display-en);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.course-card .more {
  position: absolute;
  top: 36px;
  right: 36px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 20px;
  transition:
    background 0.3s,
    color 0.3s;
}
.course-card:hover .more {
  background: var(--edu-blue, var(--accent));
  color: var(--paper);
  border-color: var(--edu-blue, var(--accent));
}

@media (max-width: 900px) {
  .education-head {
    grid-template-columns: 1fr;
  }
  .course-grid {
    grid-template-columns: 1fr;
  }
}

/* Instructor strip (education section) */
.instructor-strip {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
  background: rgba(245, 242, 234, 0.08);
  border: 1px solid rgba(245, 242, 234, 0.15);
  border-radius: 6px;
  padding: 28px;
  margin-bottom: 32px;
}
.instructor-photo {
  aspect-ratio: 3 / 4;
  background: rgba(245, 242, 234, 0.06);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.instructor-photo .ss-img {
  --is-bg: rgba(245, 242, 234, 0.04);
  --is-border: rgba(245, 242, 234, 0.15);
  --is-fg: rgba(245, 242, 234, 0.7);
  position: absolute;
  inset: 0;
}
.instructor-body .badge {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--paper);
  text-transform: uppercase;
  opacity: 0.7;
}
.instructor-body h3 {
  margin-top: 14px;
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
}
.instructor-body h3 .en {
  display: block;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  font-size: 0.5em;
  margin-top: 6px;
  opacity: 0.85;
}
.instructor-body p {
  margin-top: 16px;
  line-height: 1.85;
  max-width: 540px;
  font-size: 14px;
}
.instructor-body .creds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.instructor-body .creds span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid rgba(245, 242, 234, 0.3);
  border-radius: 999px;
}
@media (max-width: 720px) {
  .instructor-strip {
    grid-template-columns: 1fr;
  }
  .instructor-photo {
    max-width: 280px;
  }
}

/* =========================================================
   Works
   ========================================================= */
.works {
  padding: clamp(100px, 14vw, 180px) var(--pad-x);
}
.works .container {
  max-width: var(--maxw);
}
.works-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
  align-items: end;
}
.works-head h2 {
  font-family: var(--f-display-jp);
  font-weight: 800;
  font-size: clamp(48px, 7.6vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.works-head h2 .line {
  display: inline-block;
  white-space: nowrap;
}
.works-head h2 .en {
  display: block;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 0.62em;
  margin-top: 8px;
}
.works-head .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}
.works-head .filters button {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.3s;
}
.works-head .filters button.active,
.works-head .filters button:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.work-card {
  position: relative;
  cursor: pointer;
}
.work-card .frame {
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.work-card .frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0 14px,
    rgba(20, 17, 14, 0.05) 14px 15px
  );
}
.work-card .frame::after {
  content: attr(data-placeholder);
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 4px 8px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.work-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
}
.work-card .meta .left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.work-card .title-en {
  font-family: var(--f-display-en);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.work-card .title-jp {
  font-family: var(--f-display-jp);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-soft);
}
.work-card .meta .right {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.work-card .meta .right .cat {
  color: var(--accent);
}
.work-card:hover .frame {
  transform: scale(1.02);
  transition: transform 0.6s var(--ease);
}
.work-card .frame {
  transition: transform 0.6s var(--ease);
}

@media (max-width: 760px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   News
   ========================================================= */
.news {
  background: var(--paper-2);
  padding: clamp(100px, 14vw, 180px) var(--pad-x);
}
.news .container {
  max-width: var(--maxw);
}
.news-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 64px;
  gap: 40px;
  flex-wrap: wrap;
}
.news-head h2 {
  font-family: var(--f-display-jp);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.news-head h2 .en {
  display: block;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 0.5em;
  margin-top: 6px;
}
.news-list {
  display: grid;
  gap: 0;
}
.news-item {
  display: grid;
  grid-template-columns: 100px 120px 1fr auto;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  transition: padding 0.3s var(--ease);
}
.news-item:last-child {
  border-bottom: 1px solid var(--line);
}
.news-item:hover {
  padding-left: 16px;
}
.news-item .date {
  font-family: var(--f-display-en);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.news-item .cat {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  width: fit-content;
}
.news-item .cat.education {
  --edu-blue: #0490de;
  background: var(--edu-blue);
  color: var(--paper);
  border-color: var(--edu-blue);
}
.news-item .cat.event {
  background: var(--ink);
  color: var(--paper);
}
.news-item .title {
  font-family: var(--f-display-jp);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.news-item .arr {
  font-family: var(--f-display-en);
  font-size: 20px;
  transition: transform 0.3s;
}
.news-item:hover .arr {
  transform: translateX(6px);
  color: var(--accent);
}

@media (max-width: 760px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .news-item .arr {
    display: none;
  }
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  padding: clamp(100px, 14vw, 200px) var(--pad-x);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta .container {
  max-width: 1100px;
  margin: 0 auto;
}
.cta .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.cta .eyebrow::before,
.cta .eyebrow::after {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--accent);
}
.cta h2 {
  margin-top: 24px;
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(50px, 9vw, 144px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.cta h2 em {
  font-style: normal;
  color: var(--accent);
}
.cta h2 .en {
  display: block;
  margin-top: 24px;
  font-family: var(--f-display-en);
  font-weight: 400;
  font-style: italic;
  font-size: 0.32em;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}
.cta-actions {
  margin-top: 56px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-big {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 22px 44px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--f-display-en);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  transition:
    background 0.3s,
    transform 0.3s;
}
.cta-big:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.cta-big.outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.cta-big.outline:hover {
  background: var(--ink);
  color: var(--paper);
}
.cta-big .arr {
  font-size: 20px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px var(--pad-x) 32px;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(245, 242, 234, 0.15);
}
.footer-brand .logo {
  font-size: 28px;
  color: var(--paper);
}
.footer-brand p {
  margin-top: 24px;
  color: rgba(245, 242, 234, 0.7);
  font-size: 14px;
  line-height: 1.9;
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: rgba(245, 242, 234, 0.85);
  transition: color 0.3s;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(245, 242, 234, 0.55);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-huge {
  font-family: var(--f-display-en);
  font-weight: 800;
  font-size: clamp(80px, 18vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin-top: 60px;
  color: rgba(245, 242, 234, 0.06);
  user-select: none;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Sub pages (services.html / about.html)
   ========================================================= */
.page-hero {
  padding: 160px var(--pad-x) 80px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero .container {
  max-width: var(--maxw);
  margin: 0 auto;
}
.page-hero .crumbs {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: center;
}
.page-hero .crumbs span.sep {
  color: var(--accent);
}
.page-hero h1 {
  margin-top: 32px;
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(56px, 10vw, 160px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.page-hero h1 .en {
  display: block;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 0.4em;
  margin-top: 16px;
  letter-spacing: -0.01em;
}
.page-hero .lead {
  margin-top: 40px;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink);
}

/* Service detail blocks */
.svc-detail {
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
}
.svc-detail .container {
  max-width: var(--maxw);
  margin: 0 auto;
}
.svc-block {
  display: grid;
  grid-template-columns: 0.4fr 0.8fr 1.2fr;
  gap: 32px;
  padding: 60px 0;
  border-top: 1px solid var(--line);
}
.svc-block:last-child {
  border-bottom: 1px solid var(--line);
}
.svc-block .num {
  font-family: var(--f-display-en);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 80px);
  color: var(--accent);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.svc-block h3 {
  font-family: var(--f-display-jp);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.svc-block h3 .en {
  display: block;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  font-size: 0.45em;
  color: var(--ink-soft);
  margin-top: 8px;
}
.svc-block .desc {
  font-size: 15px;
  line-height: 2;
}
.svc-block .tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.svc-block .tags span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}
@media (max-width: 900px) {
  .svc-block {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 40px 0;
  }
}

/* About blocks */
.about-section {
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
}
.about-section .container {
  max-width: var(--maxw);
  margin: 0 auto;
}
/* Philosophy split: image + text side by side, stacked on mobile */
.about-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 760px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* photo on top, text below */
  .about-split-media {
    order: -1;
    margin-inline: auto;
  }
}
.about-section h2 {
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.about-section h2 .en {
  display: block;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 0.45em;
  margin-top: 8px;
}
.about-info {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
}
.info-row {
  display: contents;
}
.info-row dt,
.info-row dd {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.info-row:last-child dt,
.info-row:last-child dd {
  border-bottom: 1px solid var(--line);
}
.info-row dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.info-row dd {
  font-family: var(--f-display-jp);
  font-size: 16px;
  font-weight: 500;
}

.about-section.dark {
  background: var(--ink);
  color: var(--paper);
}
.about-section.dark h2 {
  color: var(--paper);
}
.about-section.dark .info-row dt {
  color: rgba(245, 242, 234, 0.5);
}
.about-section.dark .info-row dt,
.about-section.dark .info-row dd {
  border-color: rgba(245, 242, 234, 0.15);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.value-card {
  padding: 36px 28px;
  background: var(--paper);
  border-radius: 4px;
  position: relative;
  border: 1px solid var(--line);
}
.about-section.dark .value-card {
  background: rgba(245, 242, 234, 0.04);
  border-color: rgba(245, 242, 234, 0.1);
  color: var(--paper);
}
.value-card .num {
  font-family: var(--f-display-en);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.value-card h3 {
  margin-top: 24px;
  font-family: var(--f-display-jp);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.2;
}
.value-card h3 .en {
  display: block;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 0.55em;
  margin-top: 8px;
}
.value-card p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
  opacity: 0.85;
}
@media (max-width: 760px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
  .about-info {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .info-row dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .info-row dd {
    padding-top: 8px;
    border-top: 0;
  }
}

/* =========================================================
   Image slot
   ========================================================= */
.ss-img {
  --is-bg: var(--paper-2);
  --is-border: var(--line);
  --is-fg: var(--ink-soft);
  --is-accent: var(--accent);
  display: block;
  position: relative;
  background: var(--paper-2);
  width: 100%;
  height: 100%;
}
.work-card .frame .ss-img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* =========================================================
   Tweaks panel
   ========================================================= */
#tweaks-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 320px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(20, 17, 14, 0.25);
  z-index: 500;
  padding: 22px 22px 24px;
  font-family: var(--f-body);
  color: var(--ink);
  display: none;
  flex-direction: column;
  gap: 20px;
}
#tweaks-panel.open {
  display: flex;
}
#tweaks-panel .tp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
#tweaks-panel .tp-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--f-display-en);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
}
#tweaks-panel .tp-title .ja {
  font-family: var(--f-display-jp);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}
#tweaks-panel .tp-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: background 0.2s;
}
#tweaks-panel .tp-close:hover {
  background: var(--accent);
  color: var(--paper);
}
#tweaks-panel .tp-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#tweaks-panel .tp-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
#tweaks-panel .tp-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
#tweaks-panel .tp-swatch {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: border 0.2s;
}
#tweaks-panel .tp-swatch:hover {
  border-color: var(--line);
}
#tweaks-panel .tp-swatch.active {
  border-color: var(--ink);
}
#tweaks-panel .tp-swatch .chip {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(20, 17, 14, 0.06);
}
#tweaks-panel .tp-swatch .name {
  font-family: var(--f-display-jp);
  font-size: 10px;
  text-align: center;
  color: var(--ink-soft);
}
#tweaks-panel .tp-swatch.active .name {
  color: var(--ink);
  font-weight: 600;
}
#tweaks-panel .tp-radio {
  display: flex;
  gap: 6px;
  background: var(--paper-2);
  padding: 4px;
  border-radius: 10px;
}
#tweaks-panel .tp-radio button {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-family: var(--f-display-en);
  transition: all 0.2s;
  white-space: nowrap;
}
#tweaks-panel .tp-radio button.active {
  background: var(--ink);
  color: var(--paper);
}
#tweaks-panel .tp-radio button .ja {
  display: block;
  font-family: var(--f-display-jp);
  font-size: 9px;
  letter-spacing: 0.1em;
  margin-top: 2px;
  opacity: 0.6;
}
#tweaks-panel .tp-hint {
  font-family: var(--f-display-jp);
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* =========================================================
   Works detail page
   ========================================================= */
.case-list {
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
}
.case-list .container {
  max-width: var(--maxw);
  margin: 0 auto;
}
.case-item {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  padding: 80px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.case-item:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}
.case-item:nth-child(even) .case-visual {
  order: 2;
}
.case-item:last-child {
  border-bottom: 1px solid var(--line);
}
.case-visual {
  aspect-ratio: 4 / 3;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-2);
}
.case-visual .ss-img {
  position: absolute;
  inset: 0;
}
.case-body .case-meta {
  display: flex;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.case-body .case-meta .cat {
  color: var(--accent);
  font-weight: 700;
}
.case-body h3 {
  font-family: var(--f-display-jp);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.case-body h3 .en {
  display: block;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  font-size: 0.48em;
  color: var(--ink-soft);
  margin-top: 8px;
  letter-spacing: -0.005em;
}
.case-body .summary {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.95;
}
.case-body dl.case-detail {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
}
.case-detail dt {
  padding: 12px 0;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.case-detail dd {
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid var(--line);
}
.case-detail .row-last dt,
.case-detail .row-last dd {
  border-bottom: 1px solid var(--line);
}
.case-body .case-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-family: var(--f-display-en);
  font-weight: 600;
  font-size: 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: color 0.3s;
}
.case-body .case-link:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .case-item,
  .case-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
  }
  .case-item:nth-child(even) .case-visual {
    order: 0;
  }
}

/* =========================================================
   Recruit page
   ========================================================= */
.recruit-intro {
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
  background: var(--paper-2);
}
.recruit-intro .container {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.recruit-intro h2 {
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.recruit-intro h2 em {
  font-style: normal;
  color: var(--accent);
}
.recruit-intro h2 .en {
  display: block;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  font-size: 0.38em;
  margin-top: 16px;
  color: var(--ink-soft);
}
.recruit-intro p {
  line-height: 2;
  max-width: 520px;
  font-size: 15px;
}
.recruit-intro p + p {
  margin-top: 1.2em;
}

.benefits {
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
}
.benefits .container {
  max-width: var(--maxw);
  margin: 0 auto;
}
.benefits h2 {
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  margin-bottom: 40px;
}
.benefits h2 .en {
  display: block;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 0.45em;
  margin-top: 8px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.benefit-card {
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  position: relative;
}
.benefit-card .icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--f-display-en);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.benefit-card h3 {
  margin-top: 20px;
  font-family: var(--f-display-jp);
  font-weight: 700;
  font-size: 17px;
}
.benefit-card h3 .en {
  display: block;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  font-size: 0.7em;
  color: var(--ink-soft);
  margin-top: 4px;
}
.benefit-card p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
}
@media (max-width: 900px) {
  .recruit-intro .container {
    grid-template-columns: 1fr;
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* Open positions */
.positions {
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
  background: var(--ink);
  color: var(--paper);
}
.positions .container {
  max-width: var(--maxw);
  margin: 0 auto;
}
.positions h2 {
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.05;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}
.positions h2 .en {
  display: block;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 0.4em;
  margin-top: 8px;
}
.position-row {
  display: grid;
  grid-template-columns: 60px 1.4fr 1.6fr 120px auto;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid rgba(245, 242, 234, 0.12);
  align-items: center;
  cursor: pointer;
  transition: padding 0.3s var(--ease);
}
.position-row:last-child {
  border-bottom: 1px solid rgba(245, 242, 234, 0.12);
}
.position-row:hover {
  padding-left: 16px;
}
.position-row .num {
  font-family: var(--f-display-en);
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.05em;
}
.position-row .title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.position-row .title .en {
  font-family: var(--f-display-en);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.position-row .title .ja {
  font-family: var(--f-display-jp);
  font-size: 13px;
  color: rgba(245, 242, 234, 0.6);
}
.position-row .desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 242, 234, 0.75);
  max-width: 380px;
}
.position-row .type {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  width: fit-content;
}
.position-row .arr {
  font-family: var(--f-display-en);
  font-size: 22px;
}
@media (max-width: 900px) {
  .position-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }
  .position-row .arr {
    display: none;
  }
}

/* Application flow */
.flow {
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
}
.flow .container {
  max-width: var(--maxw);
  margin: 0 auto;
}
.flow h2 {
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}
.flow h2 .en {
  display: block;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 0.45em;
  margin-top: 8px;
}
.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  position: relative;
}
.flow-step {
  padding: 24px 20px;
  background: var(--paper-2);
  border-radius: 6px;
  position: relative;
}
.flow-step .num {
  font-family: var(--f-display-en);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}
.flow-step h3 {
  margin-top: 16px;
  font-family: var(--f-display-jp);
  font-weight: 700;
  font-size: 16px;
}
.flow-step p {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
}
@media (max-width: 900px) {
  .flow-steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .flow-steps {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Online-lesson page
   ========================================================= */
.lesson-hero {
  --edu-blue: #0490de;
  background: var(--edu-blue);
  color: var(--paper);
  padding: 200px var(--pad-x) 120px;
  position: relative;
  overflow: hidden;
}
.lesson-hero .container {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.lesson-hero::before {
  content: 'ONLINE';
  position: absolute;
  bottom: -8vw;
  right: -3vw;
  font-family: var(--f-display-en);
  font-weight: 800;
  font-size: clamp(220px, 32vw, 520px);
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.08);
  line-height: 0.8;
  pointer-events: none;
}
.lesson-hero .crumbs {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
}
.lesson-hero .crumbs a {
  color: var(--paper);
}
.lesson-hero .crumbs .sep {
  color: var(--paper);
}
.lesson-hero .label {
  margin-top: 32px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lesson-hero h1 {
  margin-top: 16px;
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.lesson-hero h1 .en {
  display: block;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.32em;
  margin-top: 24px;
}
.lesson-hero p.lead {
  margin-top: 40px;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.95;
}

/* Flow steps */
.lesson-flow {
  padding: clamp(80px, 12vw, 140px) var(--pad-x);
  background: var(--paper);
}
.lesson-flow .container {
  max-width: var(--maxw);
  margin: 0 auto;
}
.lesson-flow .section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 32px;
  flex-wrap: wrap;
}
.lesson-flow h2 {
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.lesson-flow h2 .en {
  display: block;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  color: #0490de;
  font-size: 0.45em;
  margin-top: 8px;
}
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.flow-card {
  padding: 36px 32px;
  background: var(--paper-2);
  border-radius: 6px;
  position: relative;
}
.flow-card .step {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0490de;
  font-weight: 700;
}
.flow-card h3 {
  margin-top: 20px;
  font-family: var(--f-display-jp);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.flow-card p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
}
@media (max-width: 900px) {
  .flow-grid {
    grid-template-columns: 1fr;
  }
}

/* Instructor block */
.lesson-instructor {
  padding: clamp(80px, 12vw, 140px) var(--pad-x);
  background: var(--paper-2);
}
.lesson-instructor .container {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}
.lesson-instructor .photo {
  aspect-ratio: 3 / 4;
  background: var(--paper);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.lesson-instructor .photo .ss-img {
  position: absolute;
  inset: 0;
}
.lesson-instructor .body .label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0490de;
  font-weight: 700;
}
.lesson-instructor .body h2 {
  margin-top: 16px;
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.lesson-instructor .body h2 .reading {
  display: block;
  font-family: var(--f-display-jp);
  font-weight: 400;
  font-size: 0.32em;
  margin-top: 12px;
  color: var(--ink-soft);
}
.lesson-instructor .body .creds {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.95;
}
.lesson-instructor .body .creds em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(transparent 65%, rgba(4, 144, 222, 0.18) 0);
}
@media (max-width: 900px) {
  .lesson-instructor .container {
    grid-template-columns: 1fr;
  }
  .lesson-instructor .photo {
    max-width: 360px;
  }
}

/* Course cards */
.lesson-courses {
  padding: clamp(80px, 12vw, 140px) var(--pad-x);
}
.lesson-courses .container {
  max-width: var(--maxw);
  margin: 0 auto;
}
.lesson-courses h2 {
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}
.lesson-courses h2 .en {
  display: block;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  color: #0490de;
  font-size: 0.45em;
  margin-top: 8px;
}
.lc-card {
  display: grid;
  grid-template-columns: 0.5fr 1.8fr;
  gap: 56px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.lc-card:last-child {
  border-bottom: 1px solid var(--line);
}
.lc-cover {
  /* 教材表紙画像（≈2:3）に合わせ、上下が切れないようにする */
  aspect-ratio: 2 / 3;
  background: var(--paper-2);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.lc-cover .ss-img {
  position: absolute;
  inset: 0;
}
.lc-card .step {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0490de;
  font-weight: 700;
}
.lc-card h3 {
  margin-top: 16px;
  font-family: var(--f-display-jp);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.lc-pricing {
  margin-top: 24px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.lc-pricing .item .k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.lc-pricing .item .v {
  margin-top: 6px;
  font-family: var(--f-display-jp);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.lc-pricing .item .v small {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 4px;
}
.lc-summary {
  margin-top: 28px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink);
}
.lc-materials {
  margin-top: 28px;
  background: var(--paper-2);
  padding: 24px 28px;
  border-radius: 6px;
}
.lc-materials .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.lc-materials ul {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.7;
}
.lc-materials ul li::before {
  content: '—  ';
  color: #0490de;
}
.lc-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.lc-actions .primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: #0490de;
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--f-display-en);
  font-weight: 600;
  font-size: 14px;
  transition:
    background 0.3s,
    transform 0.3s;
}
.lc-actions .primary:hover {
  background: #0670a8;
  transform: translateY(-2px);
}
.lc-actions .secondary {
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.lc-actions .secondary:hover {
  color: #0490de;
}
@media (max-width: 900px) {
  .lc-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
  }
  .lc-cover {
    max-width: 180px;
  }
}

/* Sample video */
.lesson-video {
  padding: 0 var(--pad-x) clamp(80px, 12vw, 140px);
}
.lesson-video .container {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.lesson-video .frame {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.lesson-video .frame .ss-img {
  --is-bg: #0a0a0a;
  --is-border: rgba(245, 242, 234, 0.15);
  --is-fg: rgba(245, 242, 234, 0.6);
  position: absolute;
  inset: 0;
}
.lesson-video .frame .lesson-embed,
.lesson-video .frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.lesson-video .caption {
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* FAQ */
.lesson-faq {
  padding: clamp(80px, 12vw, 140px) var(--pad-x);
  background: var(--paper-2);
}
.lesson-faq .container {
  max-width: 980px;
  margin: 0 auto;
}
.lesson-faq h2 {
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.lesson-faq h2 .en {
  display: block;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  color: #0490de;
  font-size: 0.45em;
  margin-top: 8px;
}
.faq-group {
  margin-top: 56px;
}
.faq-group .group-title {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0490de;
  font-weight: 700;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(4, 144, 222, 0.3);
  margin-bottom: 8px;
}
.faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item:first-of-type {
  border-top: 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  gap: 16px;
  align-items: start;
  font-family: var(--f-display-jp);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary .q {
  font-family: var(--f-display-en);
  font-weight: 700;
  color: #0490de;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.faq-item summary .toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--ink-soft);
  transition:
    transform 0.3s,
    background 0.3s;
}
.faq-item[open] summary .toggle {
  transform: rotate(45deg);
  background: #0490de;
  color: var(--paper);
}
.faq-item .a {
  margin-top: 14px;
  padding-left: 48px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-soft);
}
.faq-item .a a {
  color: #0490de;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .faq-item summary {
    grid-template-columns: 24px 1fr 24px;
    font-size: 14.5px;
  }
  .faq-item .a {
    padding-left: 40px;
  }
}

/* Compact instructor strip (expandable details) */
.lesson-instructor-compact {
  padding: clamp(40px, 6vw, 70px) var(--pad-x);
  background: var(--paper);
}
.lesson-instructor-compact .container {
  max-width: var(--maxw);
  margin: 0 auto;
}
.instr-details {
  background: var(--paper-2);
  border-radius: 10px;
  overflow: hidden;
  transition: background 0.3s;
}
.instr-details > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 24px 32px;
  transition: background 0.3s;
}
.instr-details > summary::-webkit-details-marker {
  display: none;
}
.instr-details > summary:hover {
  background: rgba(4, 144, 222, 0.05);
}
.instr-details > summary .avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--paper);
  display: block;
}
.instr-details > summary .avatar .ss-img {
  position: absolute;
  inset: 0;
  /* 円形アバター：顔（上部）が切れないよう上寄せでトリミング */
  object-position: top center;
}
.instr-details > summary .body {
  display: block;
}
.instr-details > summary .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0490de;
  font-weight: 700;
  display: block;
}
.instr-details > summary .name {
  margin-top: 6px;
  font-family: var(--f-display-jp);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: block;
}
.instr-details > summary .name .reading {
  font-family: var(--f-display-jp);
  font-weight: 400;
  font-size: 11px;
  color: var(--ink-soft);
  margin-left: 4px;
  letter-spacing: 0.08em;
}
.instr-details > summary .brief {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.instr-details > summary .toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-family: var(--f-display-en);
  font-weight: 600;
  font-size: 13px;
  color: #0490de;
}
.instr-details > summary .toggle .arr {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0490de;
  color: var(--paper);
  font-size: 18px;
  font-family: var(--f-display-en);
  font-weight: 400;
  transition:
    transform 0.3s,
    background 0.3s;
}
.instr-details > summary .toggle .close {
  display: none;
}
.instr-details[open] > summary .toggle .more {
  display: none;
}
.instr-details[open] > summary .toggle .close {
  display: inline;
}
.instr-details[open] > summary .toggle .arr {
  transform: rotate(45deg);
  background: var(--ink);
}

.instr-full {
  padding: 0 32px 36px;
  border-top: 1px solid rgba(4, 144, 222, 0.2);
  margin: 0 32px;
  padding-top: 28px;
}
.instr-full p {
  font-size: 14px;
  line-height: 2;
  color: var(--ink);
  margin-bottom: 1em;
}
.instr-full p strong {
  font-weight: 700;
}
.instr-block {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.instr-block-title {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0490de;
  font-weight: 700;
  margin-bottom: 16px;
}
.instr-block-title small {
  font-family: var(--f-display-jp);
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 400;
  margin-left: 8px;
}
.instr-block ul {
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.8;
}
.instr-block ul li::before {
  content: '—  ';
  color: #0490de;
}
.instr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.instr-grid-h {
  font-family: var(--f-display-jp);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--ink);
}
.instr-grid p {
  font-size: 13px;
  line-height: 1.95;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  .instr-details > summary {
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 20px;
  }
  .instr-details > summary .avatar {
    width: 56px;
    height: 56px;
  }
  .instr-details > summary .toggle {
    grid-column: 1 / -1;
    justify-self: end;
  }
  .instr-details > summary .toggle .more,
  .instr-details > summary .toggle .close {
    display: none;
  }
  .instr-details[open] > summary .toggle .close {
    display: none;
  }
  .instr-full {
    margin: 0 20px;
    padding: 24px 20px 28px;
  }
  .instr-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   News list page (news.html)
   ========================================================= */
.news-list-page {
  padding: clamp(60px, 9vw, 120px) var(--pad-x) clamp(80px, 12vw, 160px);
}
.news-list-page .container {
  max-width: var(--maxw);
  margin: 0 auto;
}

.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}
.news-filter button {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.3s;
}
.news-filter button.active,
.news-filter button:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.news-listing {
  display: grid;
  gap: 0;
}
.news-row {
  display: grid;
  grid-template-columns: 110px 130px 1fr 32px;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  transition: padding 0.3s var(--ease);
}
.news-row:last-of-type {
  border-bottom: 1px solid var(--line);
}
.news-row:hover {
  padding-left: 16px;
}
.news-row .date {
  font-family: var(--f-display-en);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}
.news-row .cat {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  width: fit-content;
  font-weight: 700;
}
.news-row .cat.education {
  --edu-blue: #0490de;
  background: var(--edu-blue);
  color: var(--paper);
  border-color: var(--edu-blue);
}
.news-row .cat.case {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.news-row .cat.notice {
  background: transparent;
  color: var(--ink);
}
.news-row .title {
  font-family: var(--f-display-jp);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.55;
}
.news-row .arr {
  justify-self: end;
  font-family: var(--f-display-en);
  font-size: 18px;
  color: var(--ink-soft);
  transition:
    transform 0.3s,
    color 0.3s;
}
.news-row:hover .arr {
  transform: translateX(6px);
  color: var(--accent);
}

@media (max-width: 760px) {
  .news-row {
    grid-template-columns: auto auto;
    gap: 12px 16px;
    padding: 22px 0;
  }
  .news-row .date {
    grid-column: 1;
  }
  .news-row .cat {
    grid-column: 2;
    justify-self: start;
  }
  .news-row .title {
    grid-column: 1 / -1;
    font-size: 15px;
  }
  .news-row .arr {
    display: none;
  }
  .news-row:hover {
    padding-left: 0;
  }
}

/* Pagination */
.news-pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.news-pagination a,
.news-pagination .ends,
.news-pagination .dots {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: var(--f-display-en);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  transition:
    background 0.3s,
    color 0.3s;
}
.news-pagination a:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.news-pagination a.current {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.news-pagination .dots {
  color: var(--ink-soft);
}
.news-pagination .ends {
  font-family: var(--f-display-en);
  font-weight: 600;
}

/* =========================================================
   News detail page (news-detail.html)
   ========================================================= */
.news-article {
  padding: clamp(60px, 9vw, 110px) var(--pad-x) clamp(80px, 12vw, 140px);
}
.news-article .container {
  max-width: 880px;
  margin: 0 auto;
}
.news-article .meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.news-article .meta-line .date {
  font-family: var(--f-display-en);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}
.news-article .meta-line .cat {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
}
.news-article .meta-line .cat.education {
  background: #0490de;
  color: var(--paper);
  border-color: #0490de;
}
.news-article .meta-line .cat.case {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.news-article .meta-line .tags {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.news-article .meta-line .tags::before {
  content: 'TAGS';
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-right: 4px;
}

.news-article h1 {
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.news-article .cover {
  margin-top: 48px;
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.news-article .cover .ss-img {
  position: absolute;
  inset: 0;
}

.article-body {
  margin-top: 56px;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 2;
  color: var(--ink);
}
.article-body > * + * {
  margin-top: 1.4em;
}
.article-body p {
  font-size: 16px;
  line-height: 2;
}
.article-body p strong {
  font-weight: 700;
}
.article-body h2 {
  margin-top: 2.4em;
  font-family: var(--f-display-jp);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.01em;
  line-height: 1.35;
  padding-left: 18px;
  border-left: 4px solid var(--accent);
}
.article-body h3 {
  margin-top: 2em;
  font-family: var(--f-display-jp);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.article-body ul,
.article-body ol {
  padding-left: 1.5em;
}
.article-body ul li,
.article-body ol li {
  margin-top: 0.5em;
  line-height: 1.85;
}
.article-body ul li::marker {
  color: var(--accent);
}
.article-body blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  background: var(--paper-2);
  border-left: 4px solid var(--ink);
  font-family: var(--f-display-jp);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  border-radius: 0 6px 6px 0;
}
.article-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-style: normal;
  color: var(--ink-soft);
}
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.3s;
}
.article-body a:hover {
  color: var(--accent-ink);
}
.article-body .figure {
  margin: 2em 0;
  display: grid;
  gap: 12px;
}
.article-body .figure .frame {
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.article-body .figure .frame .ss-img {
  position: absolute;
  inset: 0;
}
.article-body .figure figcaption,
.article-body .figure .caption {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-align: center;
}
.article-body .info-box {
  margin: 2em 0;
  padding: 24px 28px;
  background: var(--paper-2);
  border-radius: 6px;
}
.article-body .info-box .info-title {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.article-body .info-box dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 6px 16px;
  font-size: 14.5px;
  line-height: 1.75;
}
.article-body .info-box dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 4px;
}
@media (max-width: 600px) {
  .article-body .info-box dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .article-body .info-box dt {
    padding-top: 8px;
  }
}

/* Share / Back */
.article-foot {
  margin-top: 80px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.article-foot .share {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.article-foot .share a {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  transition:
    background 0.3s,
    color 0.3s;
}
.article-foot .share a:hover {
  background: var(--accent);
  color: var(--paper);
}
.article-foot .back {
  font-family: var(--f-display-en);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
}
.article-foot .back:hover {
  color: var(--accent);
}

/* Prev / Next */
.article-nav {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.article-nav a {
  padding: 24px 28px;
  background: var(--paper-2);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.3s;
}
.article-nav a:hover {
  background: var(--ink);
  color: var(--paper);
}
.article-nav .dir {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
}
.article-nav a:hover .dir {
  color: rgba(255, 255, 255, 0.7);
}
.article-nav .title {
  font-family: var(--f-display-jp);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.5;
}
.article-nav .next {
  text-align: right;
}
@media (max-width: 600px) {
  .article-nav {
    grid-template-columns: 1fr;
  }
  .article-nav .next {
    text-align: left;
  }
}

/* Related */
.related-news {
  padding: clamp(60px, 9vw, 100px) var(--pad-x) clamp(80px, 12vw, 140px);
  background: var(--paper-2);
}
.related-news .container {
  max-width: var(--maxw);
  margin: 0 auto;
}
.related-news h2 {
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-grid a {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--paper);
  border-radius: 6px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.related-grid a:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.12);
}
.related-grid .meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.related-grid .meta .date {
  font-family: var(--f-display-en);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-soft);
}
.related-grid .meta .cat {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
}
.related-grid .meta .cat.education {
  background: #0490de;
  color: var(--paper);
  border-color: #0490de;
}
.related-grid .meta .cat.case {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
.related-grid .title {
  font-family: var(--f-display-jp);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.55;
}
@media (max-width: 760px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Contact page (contact.html)
   ========================================================= */
.contact-section {
  padding: clamp(40px, 7vw, 80px) var(--pad-x) clamp(80px, 12vw, 140px);
}
.contact-section .container {
  /* Sidebar removed — single, centred form column */
  max-width: 760px;
  margin: 0 auto;
}

/* Form */
.contact-form {
  display: grid;
  gap: 28px;
}
.contact-form .form-intro {
  padding: 20px 24px;
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-soft);
  border-radius: 0 6px 6px 0;
}
.contact-form .form-intro strong {
  color: var(--ink);
  font-weight: 700;
}

.field {
  display: grid;
  gap: 10px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display-jp);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.field label .req {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 3px 7px;
  background: var(--accent);
  color: var(--paper);
  border-radius: 3px;
  font-weight: 700;
}
.field label .opt {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 3px 7px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 3px;
  font-weight: 700;
}
.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 17, 14, 0.06);
}
.field textarea {
  resize: vertical;
  min-height: 180px;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='%23000' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.field .hint {
  font-family: var(--f-display-jp);
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Checkbox cards */
.check-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.check-card {
  position: relative;
  cursor: pointer;
}
.check-card input[type='checkbox'],
.check-card input[type='radio'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check-card .box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--f-display-jp);
  font-weight: 600;
  font-size: 14px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.check-card .box::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  flex-shrink: 0;
  transition:
    border-color 0.2s,
    background 0.2s;
  position: relative;
}
.check-card input[type='radio'] + .box::before {
  border-radius: 50%;
}
.check-card input:checked + .box {
  border-color: var(--ink);
  background: var(--paper-2);
}
.check-card input:checked + .box::before {
  background: var(--ink);
  border-color: var(--ink);
}
.check-card input[type='checkbox']:checked + .box::after {
  content: '✓';
  position: absolute;
  left: 19px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
.check-card input[type='radio']:checked + .box::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--paper);
  border-radius: 50%;
  pointer-events: none;
}
.check-card:hover .box {
  border-color: var(--ink-soft);
}
@media (max-width: 600px) {
  .check-group {
    grid-template-columns: 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* Consent + submit */
.consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px 24px;
  background: var(--paper-2);
  border-radius: 8px;
}
.consent input[type='checkbox'] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.consent label {
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink);
}
.consent label a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.submit-row {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.submit-row button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 22px 56px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--f-display-en);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.3s;
}
.submit-row button:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.submit-row button .arr {
  font-size: 20px;
  transition: transform 0.3s;
}
.submit-row button:hover .arr {
  transform: translateX(4px);
}

/* =========================================================
   Contact Form 7 bridge — make CF7's default markup adopt
   the theme's contact-form design. Pair with the Form-tab
   template documented in the theme README / handover note.
   ========================================================= */
.contact-form .wpcf7-form > p {
  margin: 0;
}
.contact-form .wpcf7 .field,
.contact-form .wpcf7 .field-row {
  margin-bottom: 28px;
}
/* form-control wrappers must be block so width:100% fills the field */
.contact-form .wpcf7-form-control-wrap {
  display: block;
}
.contact-form .wpcf7-form-control-wrap > input[type='text'],
.contact-form .wpcf7-form-control-wrap > input[type='email'],
.contact-form .wpcf7-form-control-wrap > input[type='tel'],
.contact-form .wpcf7-form-control-wrap > select,
.contact-form .wpcf7-form-control-wrap > textarea {
  width: 100%;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.contact-form .wpcf7-form-control-wrap > textarea {
  resize: vertical;
  min-height: 180px;
}
.contact-form .wpcf7-form-control-wrap > select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='%23000' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.contact-form .wpcf7-form-control-wrap > :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 17, 14, 0.06);
}

/* Radio / checkbox groups → card grid like .check-group/.check-card */
.contact-form .wpcf7-radio,
.contact-form .wpcf7-checkbox {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.contact-form .wpcf7-list-item {
  margin: 0;
}
.contact-form .wpcf7-list-item > label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--f-display-jp);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.contact-form .wpcf7-list-item > label:hover {
  border-color: var(--ink-soft);
}
.contact-form .wpcf7-list-item > label:has(input:checked) {
  border-color: var(--ink);
  background: var(--paper-2);
}
.contact-form .wpcf7-list-item input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

/* Consent (acceptance) → .consent box */
.contact-form .wpcf7-acceptance {
  display: block;
  padding: 20px 24px;
  background: var(--paper-2);
  border-radius: 8px;
}
.contact-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}
.contact-form .wpcf7-acceptance label {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink);
  cursor: pointer;
}
.contact-form .wpcf7-acceptance input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.contact-form .wpcf7-acceptance a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Submit → .submit-row button look (wrap [submit] in <div class="submit-row">) */
.contact-form .submit-row .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 22px 56px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 999px;
  font-family: var(--f-display-en);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.3s;
}
.contact-form .submit-row .wpcf7-submit:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.contact-form .wpcf7-spinner {
  margin: 0 0 0 16px;
}

/* Validation tips + response banner */
.contact-form .wpcf7-not-valid-tip {
  margin-top: 8px;
  font-size: 12px;
  color: var(--accent-ink);
}
.contact-form .wpcf7-form-control-wrap > :is(input, select, textarea).wpcf7-not-valid {
  border-color: var(--accent);
}
.contact-form .wpcf7-response-output {
  margin: 28px 0 0;
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.8;
  border: 1px solid var(--line);
}
.contact-form .wpcf7-form.invalid .wpcf7-response-output,
.contact-form .wpcf7-form.unaccepted .wpcf7-response-output,
.contact-form .wpcf7-form.payment-required .wpcf7-response-output {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.contact-form .wpcf7-form.sent .wpcf7-response-output {
  background: var(--paper-2);
  border-color: var(--ink);
  color: var(--ink);
}
@media (max-width: 600px) {
  .contact-form .wpcf7-radio,
  .contact-form .wpcf7-checkbox {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Industry Index (works.html — additional)
   ========================================================= */
.industry-index {
  padding: clamp(80px, 12vw, 140px) var(--pad-x);
  background: var(--paper-2);
}
.industry-index .container {
  max-width: var(--maxw);
  margin: 0 auto;
}
.industry-index .index-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
  align-items: end;
}
.industry-index h2 {
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.industry-index .index-head p {
  max-width: 440px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-soft);
}

/* Metric strip */
.industry-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 56px;
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
}
.industry-metrics .metric {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.industry-metrics .metric:last-child {
  border-right: 0;
}
.industry-metrics .metric .num {
  font-family: var(--f-display-en);
  font-weight: 800;
  font-size: clamp(40px, 4.5vw, 56px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.industry-metrics .metric .num .unit {
  font-size: 0.45em;
  color: var(--ink-soft);
  margin-left: 4px;
}
.industry-metrics .metric .label {
  margin-top: 12px;
  font-family: var(--f-display-jp);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* Industry rows */
.industry-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.industry-row:last-of-type {
  border-bottom: 1px solid var(--line);
}
.industry-row .industry-label {
  position: sticky;
  top: 100px;
}
.industry-row .industry-label .num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
}
.industry-row .industry-label h3 {
  margin-top: 8px;
  font-family: var(--f-display-jp);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.industry-row .industry-label .en {
  display: block;
  margin-top: 4px;
  font-family: var(--f-display-en);
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-soft);
}
.industry-row .industry-label .count {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.industry-row .industry-items {
  display: grid;
  gap: 0;
}
.industry-item {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 24px;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  transition: padding 0.3s var(--ease);
}
.industry-row .industry-items .industry-item:first-child {
  border-top: 0;
}
.industry-item:hover {
  padding-left: 12px;
}
.industry-item .name {
  font-family: var(--f-display-jp);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.industry-item .name .lock {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 6px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
  font-weight: 700;
  vertical-align: middle;
}
.industry-item .scope {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.industry-item .scope span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.industry-item .scope span.long {
  color: var(--accent);
  border-color: var(--accent);
}
.industry-item .arr {
  font-family: var(--f-display-en);
  font-size: 16px;
  color: var(--ink-soft);
  text-align: right;
  transition:
    transform 0.3s,
    color 0.3s;
}
.industry-item:hover .arr {
  transform: translateX(4px);
  color: var(--accent);
}

@media (max-width: 900px) {
  .industry-index .index-head {
    grid-template-columns: 1fr;
  }
  .industry-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .industry-metrics .metric:nth-child(2) {
    border-right: 0;
  }
  .industry-metrics .metric:nth-child(1),
  .industry-metrics .metric:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .industry-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .industry-row .industry-label {
    position: static;
  }
  .industry-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .industry-item .arr {
    display: none;
  }
  .industry-item:hover {
    padding-left: 0;
  }
}

/* =========================================================
   Representative experience (about.html)
   ========================================================= */
.rep-experience {
  padding: clamp(80px, 12vw, 140px) var(--pad-x);
  background: var(--paper-2);
}
.rep-experience .container {
  max-width: var(--maxw);
  margin: 0 auto;
}
.rep-experience .head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
  align-items: end;
}
.rep-experience h2 {
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.rep-experience .head p {
  max-width: 460px;
  line-height: 1.95;
  font-size: 15px;
  color: var(--ink-soft);
}

.rep-profile {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  padding: 32px;
  background: var(--paper);
  border-radius: 10px;
  margin-bottom: 48px;
  align-items: center;
}
.rep-profile .photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--paper-2);
}
.rep-profile .photo .ss-img {
  position: absolute;
  inset: 0;
}
.rep-profile .body .label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.rep-profile .body h3 {
  margin-top: 12px;
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(26px, 3.5vw, 36px);
  letter-spacing: -0.01em;
}
.rep-profile .body h3 .reading {
  font-family: var(--f-display-jp);
  font-weight: 400;
  font-size: 0.5em;
  color: var(--ink-soft);
  margin-left: 8px;
  letter-spacing: 0.05em;
}
.rep-profile .body p {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink);
}

@media (max-width: 720px) {
  .rep-profile {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .rep-profile .photo {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }
  .rep-profile .body {
    text-align: center;
  }
  .rep-experience .head {
    grid-template-columns: 1fr;
  }
}

/* Industry experience grid (abstracted) */
.rep-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.rep-card {
  padding: 24px 22px;
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.rep-card .industry {
  font-family: var(--f-display-jp);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.rep-card .years {
  margin-top: 14px;
  font-family: var(--f-display-en);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--accent);
}
.rep-card .years .unit {
  font-size: 0.4em;
  color: var(--ink-soft);
  margin-left: 4px;
  font-weight: 600;
}
.rep-card .scope {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.rep-card .scope span {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  background: var(--paper-2);
  color: var(--ink-soft);
  border-radius: 999px;
}
.rep-card .count {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
@media (max-width: 900px) {
  .rep-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .rep-grid {
    grid-template-columns: 1fr;
  }
  .rep-card {
    min-height: 0;
  }
}

.rep-foot {
  margin-top: 40px;
  padding: 22px 26px;
  background: var(--paper);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.95;
  color: var(--ink-soft);
}
.rep-foot strong {
  color: var(--ink);
}

/* =========================================================
   System Capabilities (works.html — system grid)
   ========================================================= */
.system-capabilities {
  padding: clamp(80px, 12vw, 140px) var(--pad-x);
  background: var(--ink);
  color: var(--paper);
}
.system-capabilities .container {
  max-width: var(--maxw);
  margin: 0 auto;
}
.system-capabilities .sc-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: end;
}
.system-capabilities .sc-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}
.system-capabilities h2 {
  font-family: var(--f-display-jp);
  font-weight: 900;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.system-capabilities .sc-head p {
  max-width: 480px;
  font-size: 15px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.7);
}
.system-capabilities .sc-head p strong {
  color: var(--paper);
  font-weight: 600;
}

.sc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}
.sc-card {
  padding: 32px 28px 28px;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 240px;
  transition: background 0.4s var(--ease);
  position: relative;
}
.sc-card:hover {
  background: rgba(230, 67, 35, 0.08);
}
.sc-card .sc-num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
}
.sc-card h3 {
  margin-top: 24px;
  font-family: var(--f-display-jp);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.sc-card p {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.65);
}
.sc-card .sc-tags {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.sc-card .sc-tags span {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
}

.sc-foot {
  margin-top: 56px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.sc-foot > div {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}
.sc-foot > div strong {
  color: var(--accent);
  margin-right: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.sc-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--f-display-en);
  font-weight: 600;
  font-size: 13px;
  transition:
    background 0.3s,
    transform 0.3s;
}
.sc-cta:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-2px);
}
.sc-cta .arr {
  transition: transform 0.3s;
}
.sc-cta:hover .arr {
  transform: translateX(4px);
}

@media (max-width: 1100px) {
  .sc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .system-capabilities .sc-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 540px) {
  .sc-grid {
    grid-template-columns: 1fr;
  }
}

:root[data-jp-font='zen'] {
  --f-display-jp: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  --f-body: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
}
:root[data-jp-font='shippori'] {
  --f-display-jp: 'Shippori Mincho B1', serif;
}
:root[data-en-font='bricolage'] {
  --f-display-en: 'Bricolage Grotesque', 'Helvetica Neue', sans-serif;
}
:root[data-en-font='inter'] {
  --f-display-en: 'Inter', 'Helvetica Neue', sans-serif;
}

/* =========================================================
   WordPress integration supplement (Stepping Stones theme)
   ========================================================= */
/* Unified image system — plain <img> for photos, <span> for placeholders.
   No custom element / no JS dependency. */
img.ss-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
span.ss-img {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--is-bg, var(--paper-2));
}
span.ss-img[data-ph]::after {
  content: attr(data-ph);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--is-fg, var(--ink-soft));
  font-family: var(--f-mono);
}

/* WordPress core / editor content */
.article-body img,
.article-body iframe {
  max-width: 100%;
  height: auto;
}
.article-body .wp-caption {
  max-width: 100%;
}
.article-body .wp-caption-text {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 8px;
}
.article-body .alignleft {
  float: left;
  margin: 6px 28px 20px 0;
}
.article-body .alignright {
  float: right;
  margin: 6px 0 20px 28px;
}
.article-body .aligncenter {
  display: block;
  margin: 24px auto;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.admin-bar .site-header {
  top: 32px;
}
/* ≤782px: WP admin bar is position:absolute (scrolls away with the page),
   so a fixed header must NOT be offset — a 46px offset would leave a strip
   at the very top exposing the scrolling page content once the bar scrolls
   off. Pin the header flush to the top instead. */
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 0;
  }
}

/* Form feedback (custom contact handler) */
.form-notice {
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.form-notice.ok {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.form-notice.err {
  background: #fbe3dc;
  color: #b0301a;
}
.field .err-msg {
  color: #c0392b;
  font-size: 12px;
  margin-top: 6px;
}

/* ============================================================
   ヘッダー最上部（透明・非solid）の視認性
   フロントの hero は暗色設計のため、透明状態は明色テキスト＋
   ごく薄い上部スクリムで、背景に依らず常に読める。
   .solid（スクロール後 paper 背景）は従来どおり濃色のまま。
   ============================================================ */
.site-header:not(.solid) {
  color: var(--paper);
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(10, 10, 10, 0.16) 55%,
    rgba(10, 10, 10, 0) 100%
  );
}
.site-header:not(.solid) .logo .ja {
  opacity: 0.85;
}
.site-header:not(.solid) .cta-btn:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}
