:root {
  --otokomae-bg: #09090b;
  --otokomae-panel: rgba(18, 18, 21, 0.84);
  --otokomae-ink: #f3efe6;
  --otokomae-muted: rgba(243, 239, 230, 0.66);
  --otokomae-line: rgba(243, 239, 230, 0.14);
  --otokomae-accent: #f5c400;
  --otokomae-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --otokomae-font-en: Anton, "Arial Narrow", Arial, sans-serif;
  --otokomae-font-jp: "NotoSansJP", "Noto Sans JP", sans-serif;
}

body.page-template-page-what-is-otokomae,
body.page-template-page-what-is-otokomae-php,
body.page-id-what-is-otokomae {
  background: var(--otokomae-bg);
  color: var(--otokomae-ink);
}

.otokomae-page {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(80% 70% at 90% 12%, rgba(245, 196, 0, 0.18), transparent 55%),
    radial-gradient(70% 60% at 0% 100%, rgba(245, 196, 0, 0.09), transparent 58%),
    linear-gradient(180deg, #111114 0%, var(--otokomae-bg) 64%);
  color: var(--otokomae-ink);
  font-family: var(--otokomae-font-jp);
}

.otokomae-hero {
  padding: clamp(120px, 18vh, 190px) clamp(22px, 6vw, 92px) clamp(48px, 8vh, 88px);
}

.otokomae-hero__inner,
.otokomae-principles__panel {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.otokomae-hero__eyebrow {
  margin: 0 0 18px;
  color: var(--otokomae-accent);
  font-family: var(--otokomae-font-en);
  font-size: clamp(0.9rem, 1.4vw, 1.2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.otokomae-hero__title {
  margin: 0;
  font-family: var(--otokomae-font-jp);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
}

.otokomae-hero__lead {
  max-width: 720px;
  margin: clamp(24px, 4vh, 40px) 0 0;
  color: var(--otokomae-muted);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 700;
  line-height: 2;
}

.otokomae-principles {
  padding: 0 clamp(22px, 6vw, 92px) clamp(80px, 12vh, 140px);
}

.otokomae-principles__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
  padding: clamp(24px, 3.6vw, 54px);
  border: 1px solid var(--otokomae-line);
  border-radius: clamp(28px, 4vw, 48px);
  background: var(--otokomae-panel);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.otokomae-principles__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(420px, 58vh, 620px);
  padding: clamp(26px, 5vw, 68px);
  border-radius: clamp(22px, 3vw, 36px);
  background:
    linear-gradient(135deg, rgba(245, 196, 0, 0.11), transparent 42%),
    rgba(8, 8, 10, 0.7);
  overflow: hidden;
}

.otokomae-principles__content::after {
  content: "OTOKOMAE";
  position: absolute;
  right: -0.08em;
  bottom: -0.18em;
  color: rgba(243, 239, 230, 0.04);
  font-family: var(--otokomae-font-en);
  font-size: clamp(4rem, 13vw, 12rem);
  letter-spacing: 0.04em;
  pointer-events: none;
}

.otokomae-principles__content.is-switching {
  animation: otokomae-content-switch 0.42s var(--otokomae-ease);
}

.otokomae-principles__number {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  color: var(--otokomae-accent);
  font-family: var(--otokomae-font-en);
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  letter-spacing: 0.05em;
  line-height: 0.86;
}

.otokomae-principles__label {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--otokomae-muted);
  font-family: var(--otokomae-font-en);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.otokomae-principles__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.18;
}

.otokomae-principles__description {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: clamp(24px, 4vh, 40px) 0 0;
  color: var(--otokomae-muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 600;
  line-height: 2.2;
}

.otokomae-principles__icons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.otokomae-principles__icon {
  display: flex;
  min-height: 174px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--otokomae-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--otokomae-ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.35s var(--otokomae-ease), box-shadow 0.35s var(--otokomae-ease), transform 0.35s var(--otokomae-ease), background 0.35s var(--otokomae-ease);
}

.otokomae-principles__icon:hover,
.otokomae-principles__icon:focus-visible,
.otokomae-principles__icon.is-active {
  border-color: var(--otokomae-accent);
  background: rgba(245, 196, 0, 0.12);
  box-shadow: 0 18px 54px rgba(245, 196, 0, 0.16);
  transform: translateY(-4px);
  outline: 0;
}

.otokomae-principles__icon-number {
  color: var(--otokomae-accent);
  font-family: var(--otokomae-font-en);
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.otokomae-principles__icon-svg {
  width: 62px;
  height: 62px;
  margin: 12px 0;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.otokomae-principles__icon-label {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

@keyframes otokomae-content-switch {
  0% {
    opacity: 0.55;
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .otokomae-principles__panel {
    grid-template-columns: 1fr;
  }

  .otokomae-principles__content {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .otokomae-hero {
    padding-top: 110px;
  }

  .otokomae-principles__icons {
    grid-template-columns: 1fr;
  }

  .otokomae-principles__icon {
    min-height: 142px;
  }
}
