:root {
  --color-kuro: #1a1a18;
  --color-aka: #b30000;
  --color-shiro: #ffffff;
  --color-sumi: #4a4a4a;
  --color-gray-10: #f7f7f5;
  --color-yamabuki: #d4af37;
  --color-kachi: #13294b;
  --color-sand: #f0ede6;
  --font-serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Noto Sans", system-ui, -apple-system, sans-serif;
  --header-h: 80px;
  --container: 1200px;
  --gutter: 16px;
  --section-pad: 64px;
  --measure: 90ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-kuro);
  background: var(--color-gray-10);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8125;
  overflow-x: clip;
}

img {
  display: block;
}

h1,
h2,
h3,
p,
ul,
blockquote,
figure {
  margin: 0;
}

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

a:hover {
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--color-aka);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  background: var(--color-kuro);
  color: var(--color-shiro);
  font-size: 14px;
}

.skip-link:focus {
  width: auto;
  height: auto;
  padding: 8px 14px;
  clip: auto;
  clip-path: none;
  overflow: visible;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(var(--measure) + var(--gutter) * 2);
}

.text-aka {
  color: var(--color-aka);
}

.text-gold {
  color: var(--color-yamabuki);
}

.show-desktop {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-gray-10);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(26, 26, 24, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.site-header.is-scrolled::after {
  opacity: 1;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding-block: 12px;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .back-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.brand img {
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.brand__break {
  display: block;
}

.nav-toggle {
  position: relative;
  z-index: 22;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-kuro);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease, background-color 0.2s ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  z-index: 21;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100vw;
  height: calc(100svh - var(--header-h));
  padding: 12px var(--gutter) 32px;
  overflow-y: auto;
  background: var(--color-gray-10);
  font-size: 18px;
  font-weight: 500;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.nav-label--short {
  display: none;
}

.site-nav a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(26, 26, 24, 0.1);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-aka);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 48px 96px;
  background: var(--color-gray-10);
}

.hero__layout {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__kanji {
  display: none;
  flex-shrink: 0;
  width: clamp(56px, 20vw, 80px);
  height: auto;
  aspect-ratio: 166 / 535;
}

.hero__copy {
  min-width: 0;
  flex: 1;
}

.eyebrow {
  color: var(--color-aka);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  line-height: 15px;
}

.hero h1 {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin-top: 28px;
  max-width: 40rem;
  color: var(--color-sumi);
  font-size: clamp(18px, 4vw, 28px);
  line-height: 1.35;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  color: var(--color-sumi);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: var(--color-kuro);
}

.section {
  padding-block: var(--section-pad);
  border-top: 1px solid rgba(26, 26, 24, 0.08);
}

.section--light {
  background: var(--color-gray-10);
}

.section--sand {
  background: var(--color-sand);
}

.section--navy {
  background: var(--color-kachi);
  color: var(--color-shiro);
  border-top: 0;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 20px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--color-aka);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.section-label--gold {
  color: var(--color-yamabuki);
}

.section-label--kachi {
  color: var(--color-kachi);
}

.section-label__rule {
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.section-kicker {
  margin-top: 16px;
  color: var(--color-gray-10);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.split {
  display: grid;
  gap: 40px;
}

.split__copy p {
  max-width: var(--measure);
}

.split__copy p + p {
  margin-top: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(26, 26, 24, 0.1);
}

.stats__value {
  color: var(--color-aka);
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.stats__caption {
  margin-top: 4px;
  color: var(--color-sumi);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.gosoku-grid {
  display: grid;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid rgba(247, 247, 245, 0.18);
}

.gosoku-grid article {
  padding-block: 28px;
  border-bottom: 1px solid rgba(247, 247, 245, 0.18);
}

.gosoku-grid article:last-child {
  border-bottom: 0;
}

.gosoku-grid__kanji {
  color: var(--color-yamabuki);
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
}

.gosoku-grid__label {
  margin-top: 4px;
  color: var(--color-shiro);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.gosoku-grid p:last-child {
  margin-top: 16px;
  max-width: var(--measure);
  color: var(--color-gray-10);
  font-size: 14px;
  line-height: 1.75;
}

.gosoku-footnote {
  margin-top: 40px;
  max-width: var(--measure);
  line-height: 1.8125;
}

.profile {
  display: grid;
  gap: 40px;
  margin-top: 32px;
}

.profile p {
  max-width: var(--measure);
}

.profile p + p {
  margin-top: 20px;
}

.profile__meta {
  margin: 8px 0 32px;
  color: var(--color-aka);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.portrait {
  margin: 0;
  width: 100%;
  overflow: hidden;
  background: var(--color-kuro);
  aspect-ratio: 4 / 5;
}

.portrait img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.profile--photo-right > figure {
  order: -1;
}

.filosofia-intro {
  margin-top: 40px;
  max-width: var(--measure);
}

.values {
  list-style: none;
  padding: 0;
  margin: 36px 0 40px;
  border-left: 2px solid var(--color-kachi);
  padding-left: 26px;
}

.values li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding-block: 8px;
}

.values__term {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.4;
}

.values__dash {
  width: 16px;
  height: 1px;
  background: rgba(26, 26, 24, 0.25);
  align-self: center;
  flex-shrink: 0;
}

.values__desc {
  color: var(--color-sumi);
  flex: 1 1 12rem;
}

.quote {
  margin-top: 40px;
  padding-block: 40px;
  border-top: 1px solid rgba(26, 26, 24, 0.1);
  border-bottom: 1px solid rgba(26, 26, 24, 0.1);
}

.quote p {
  max-width: var(--measure);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.75;
}

.quote footer {
  margin-top: 20px;
  color: var(--color-aka);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.horario-grid {
  display: grid;
  gap: 48px;
}

.horario-lead {
  margin-top: 24px;
  max-width: var(--measure);
  color: var(--color-gray-10);
}

.btn-stack,
.btn-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  width: 100%;
}

.btn-stack {
  margin-top: 40px;
}

.btn-stack .btn,
.btn-row .btn {
  flex: 1 1 0;
  min-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--gold {
  background: var(--color-yamabuki);
  color: var(--color-kuro);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: #c49d2e;
}

.btn--dark {
  background: var(--color-kuro);
  color: var(--color-shiro);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  background: var(--color-aka);
  border-color: var(--color-aka);
  color: var(--color-shiro);
}

.btn--outline-light {
  border-color: var(--color-gray-10);
  color: var(--color-shiro);
}

.btn--outline-light:hover,
.btn--outline-light:focus-visible {
  background: var(--color-shiro);
  border-color: var(--color-shiro);
  color: var(--color-kachi);
}

.btn--outline-gray {
  border-color: var(--color-sumi);
  color: var(--color-sumi);
}

.btn--outline-gray:hover,
.btn--outline-gray:focus-visible {
  background: var(--color-kuro);
  border-color: var(--color-kuro);
  color: var(--color-shiro);
}

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

.schedule {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  min-width: 0;
}

.schedule th,
.schedule td {
  text-align: left;
  width: 33.33%;
  padding: 16px 12px 16px 0;
  border-bottom: 1px solid var(--color-gray-10);
  vertical-align: top;
  overflow-wrap: break-word;
}

.schedule th {
  color: var(--color-yamabuki);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding-top: 0;
}

.schedule td:first-child,
.schedule td:last-child {
  font-family: var(--font-serif);
  color: var(--color-shiro);
}

.schedule td:nth-child(2) {
  color: var(--color-gray-10);
}

.hero,
.section {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 15;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-kuro);
  color: var(--color-shiro);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s,
    background-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--color-aka);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

.contact-grid {
  display: grid;
  gap: 32px;
  margin-top: 20px;
}

.contact-grid > h2 {
  margin-top: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-block: 24px 28px;
  border-bottom: 1px solid rgba(26, 26, 24, 0.08);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(26, 26, 24, 0.12);
  flex-shrink: 0;
}

.contact-list__label {
  color: var(--color-kachi);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.contact-list a {
  display: inline-block;
  margin-top: 6px;
  line-height: 1.8125;
}

.contact-list a:hover {
  color: var(--color-aka);
}

.contact-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 6px;
}

.contact-social a {
  margin-top: 0;
}

.contact-note {
  margin-top: 40px;
  max-width: var(--measure);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
}

.btn-row {
  margin-top: 28px;
  flex-wrap: nowrap;
}

.map-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.map-frame {
  border: 1px solid rgba(26, 26, 24, 0.08);
  height: 320px;
  overflow: hidden;
  background: #eee;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  margin-top: 16px;
  align-self: flex-end;
  color: var(--color-kuro);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.45;
}

.map-link:hover {
  opacity: 1;
}

.site-footer {
  background: var(--color-kuro);
  color: var(--color-shiro);
  padding-block: 40px;
}

.footer-bar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand--light .brand__name {
  color: var(--color-shiro);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-gray-10);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--color-shiro);
}

.footer-social img {
  display: block;
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-social a:hover img,
.footer-social a:focus-visible img {
  opacity: 1;
}

.footer-copy {
  color: var(--color-gray-10);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 500px) {
  .hero__kanji {
    display: block;
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --section-pad: 96px;
  }

  .portrait {
    aspect-ratio: 704 / 640;
  }

  .portrait--soke img {
    object-position: center 12%;
  }

  .portrait--shihan img {
    object-position: center 28%;
  }

  .brand__name {
    font-size: 24px;
    line-height: 27px;
  }

  .back-to-top {
    right: 24px;
    bottom: 24px;
  }

  .hero {
    min-height: 888px;
    padding-block: 80px 120px;
  }

  .hero__layout {
    gap: 24px;
  }

  .hero__kanji {
    width: 166px;
  }

  .stats__value {
    font-size: 32px;
  }

  .horario-grid {
    gap: 48px;
  }

  .gosoku-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding-top: 40px;
  }

  .gosoku-grid article {
    padding-block: 0;
    border-bottom: 0;
  }

  .gosoku-grid__kanji {
    font-size: 40px;
  }

  .gosoku-footnote {
    margin-top: 48px;
  }

  .map-frame {
    height: 420px;
  }

  .footer-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-meta {
    align-items: flex-end;
  }

  .footer-copy {
    text-align: right;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-pad: 120px;
  }

  .nav-toggle {
    display: none;
  }

  body.nav-open {
    overflow: visible;
  }

  .site-nav {
    position: static;
    inset: auto;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    gap: 24px;
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
    background: transparent;
    font-size: 14px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .nav-label--short {
    display: inline;
  }

  .nav-label--full {
    display: none;
  }

  .site-nav a {
    padding: 0;
    border-bottom: 0;
  }

  .portrait--soke {
    max-width: 470px;
    aspect-ratio: 470 / 588;
  }

  .portrait--shihan {
    max-width: 560px;
    aspect-ratio: 560 / 700;
  }

  .portrait--soke img,
  .portrait--shihan img {
    object-position: center center;
  }

  .profile--photo-right > figure {
    order: 0;
  }

  .hero__copy {
    padding-top: 24px;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }

  .gosoku-grid {
    gap: 0;
    padding-top: 0;
    margin-top: 48px;
  }

  .gosoku-grid article {
    padding: 48px 40px;
  }

  .profile--photo-left,
  .profile--photo-right {
    grid-template-columns: 470px 1fr;
    gap: 80px;
    align-items: start;
    justify-content: space-between;
  }

  .profile--photo-right {
    grid-template-columns: 1fr 560px;
  }

  .show-desktop {
    display: block;
  }

  .horario-lead {
    max-width: 22rem;
  }

  .btn-stack {
    flex-direction: column;
    max-width: 22rem;
  }

  .btn-stack .btn {
    flex: none;
    width: 100%;
  }

  .btn-row .btn {
    flex: none;
    width: auto;
  }

  .horario-grid {
    grid-template-columns: 347px 1fr;
    align-items: start;
    gap: 64px;
  }

  .schedule th,
  .schedule td {
    padding: 28px 24px;
    vertical-align: middle;
  }

  .schedule th {
    padding-top: 0;
    padding-bottom: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 80px;
    row-gap: 0;
    margin-top: 32px;
  }

  .contact-grid > h2 {
    grid-column: 1;
    grid-row: 1;
  }

  .contact-details {
    grid-column: 1;
    grid-row: 2;
  }

  .contact-list {
    margin-top: 32px;
  }

  .map-block {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 767px) {
  .brand__name {
    font-size: 14px;
    line-height: 1.2;
  }
}

@media (max-width: 400px) {
  .brand__name {
    display: none;
  }
}

@media (min-width: 1200px) {
  .site-nav {
    gap: 32px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after,
  .site-nav,
  .site-header::after,
  .back-to-top {
    transition: none;
  }
}
