:root {
  --color-bg: #fbf7ec;
  --color-surface: #fffdf8;
  --color-surface-strong: #f4ead8;
  --color-green: #1f4d3a;
  --color-green-deep: #153527;
  --color-ink: #262520;
  --color-muted: #666156;
  --color-line: #ddd0bb;
  --color-brown: #9b7b4f;
  --shadow-soft: 0 18px 45px rgba(38, 37, 32, 0.10);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-bg);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  font-size: 17px;
  line-height: 1.8;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section,
.section-band {
  padding: 84px 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--color-brown);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--color-ink);
  line-height: 1.35;
}

h1 {
  font-size: 4rem;
  max-width: 10.5em;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.16rem;
}

p {
  margin: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--color-green);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid rgba(221, 208, 187, 0.84);
  backdrop-filter: blur(12px);
}

.header-info {
  color: #fff;
  background: var(--color-green-deep);
  font-size: 0.88rem;
}

.header-info__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}

.header-info a {
  font-weight: 700;
  text-decoration: none;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--color-green-deep);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--color-green);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.26);
}

.brand strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.25;
}

.brand small {
  display: block;
  color: var(--color-muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.global-nav a {
  padding: 10px 12px;
  color: var(--color-ink);
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.global-nav a:hover,
.global-nav a:focus-visible {
  color: var(--color-green-deep);
  background: var(--color-surface-strong);
}

.global-nav .nav-contact {
  color: #fff;
  background: var(--color-green);
}

.global-nav .nav-contact:hover,
.global-nav .nav-contact:focus-visible {
  color: #fff;
  background: var(--color-green-deep);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
}

.menu-toggle__line {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-green-deep);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 118px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 77, 58, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(31, 77, 58, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 52px;
}

.hero__content {
  display: grid;
  gap: 22px;
}

.hero__kicker {
  margin-bottom: 2px;
  font-size: clamp(1rem, 1.6vw, 1.32rem);
  letter-spacing: 0.08em;
}

.hero__content h1 {
  max-width: 8.6em;
  line-height: 1.2;
}

.hero__lead {
  max-width: 620px;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.hero__actions,
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  color: #fff;
  background: var(--color-green);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--color-green-deep);
}

.button--secondary {
  color: var(--color-green-deep);
  background: var(--color-surface-strong);
  border-color: var(--color-line);
}

.button--ghost {
  color: var(--color-green-deep);
  background: rgba(255, 253, 248, 0.72);
  border-color: var(--color-line);
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.culture-collage {
  position: absolute;
  inset: 22px 12px 64px 0;
  overflow: hidden;
  border: 12px solid #d6b06e;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.72) 0 8%, transparent 8.5%),
    linear-gradient(135deg, #e9d5a9 0 34%, #c7ddcf 34% 67%, #e7c5b5 67% 100%);
  box-shadow: var(--shadow-soft);
  transform: rotate(-2deg);
}

.culture-collage::before,
.culture-collage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(31, 77, 58, 0.16);
}

.culture-collage::before {
  width: 210px;
  height: 210px;
  right: -45px;
  top: -60px;
}

.culture-collage::after {
  width: 160px;
  height: 160px;
  left: -50px;
  bottom: -55px;
}

.culture-tile {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 112px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(31, 77, 58, 0.18);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 12px 28px rgba(31, 77, 58, 0.14);
  color: var(--color-green-deep);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.culture-tile--art { left: 11%; top: 15%; transform: rotate(-6deg); }
.culture-tile--learn { right: 12%; top: 38%; transform: rotate(5deg); }
.culture-tile--meet { left: 27%; bottom: 11%; transform: rotate(2deg); }

.hero-card {
  position: absolute;
  right: 0;
  bottom: 12px;
  max-width: 290px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card strong {
  margin-bottom: 4px;
  color: var(--color-green-deep);
  font-size: 1.05rem;
}

.hero-card span {
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* Sections */
.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
}

.section-heading--center {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.section-heading p:not(.section-kicker),
.pricing__grid > div > p:not(.section-kicker),
.faq__grid > div > p {
  color: var(--color-muted);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: 48px;
}

.prose {
  display: grid;
  gap: 18px;
  color: var(--color-muted);
}

.notice-list,
.flow,
.card-grid,
.facility-grid {
  display: grid;
  gap: 18px;
}

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

.notice-item,
.flow-step,
.feature-card,
.program-card,
.facility-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.notice-item {
  padding: 22px;
}

.notice-item time {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--color-brown);
  font-weight: 700;
}

.notice-item p {
  margin-top: 8px;
  color: var(--color-muted);
}

.notice-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.notice-more[hidden] {
  display: none !important;
}

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

.flow-step {
  position: relative;
  padding: 26px;
}

.flow-step span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  color: #fff;
  background: var(--color-green);
  border-radius: 50%;
  font-weight: 700;
}

.flow-step p,
.feature-card p,
.program-card p,
.facility-card p {
  margin-top: 10px;
  color: var(--color-muted);
}

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

.feature-card,
.program-card {
  padding: 24px;
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--color-green-deep);
  background: var(--color-surface-strong);
  border: 1px solid var(--color-line);
  border-radius: 50%;
  font-weight: 700;
}

.program-card {
  border-top: 5px solid var(--color-green);
}

/* Pricing */
.pricing {
  background:
    linear-gradient(90deg, rgba(31, 77, 58, 0.06), transparent 38%),
    var(--color-bg);
}

.pricing__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1fr);
  align-items: start;
  gap: 42px;
}

.note {
  margin-top: 18px;
  padding: 14px 16px;
  color: var(--color-green-deep);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-left: 5px solid var(--color-green);
  border-radius: var(--radius);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-line);
}

thead th {
  color: #fff;
  background: var(--color-green);
  font-size: 0.95rem;
}

tbody th {
  width: 28%;
  color: var(--color-green-deep);
  font-weight: 700;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

/* Facilities */
.facility-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.facility-card {
  grid-column: span 2;
  overflow: hidden;
}

.facility-card[hidden],
.facilities[hidden] {
  display: none !important;
}

/* 表示枚数に合わせて自動整列し、PCでも不自然な空白を残さない */
.facility-grid[data-visible-count="1"] .facility-card[data-visible-index="1"] {
  grid-column: 3 / span 2;
}

.facility-grid[data-visible-count="2"] .facility-card[data-visible-index="1"] {
  grid-column: 2 / span 2;
}

.facility-grid[data-visible-count="2"] .facility-card[data-visible-index="2"] {
  grid-column: 4 / span 2;
}

.facility-grid[data-visible-count="4"] .facility-card {
  grid-column: span 3;
}

.facility-grid[data-visible-count="5"] .facility-card[data-visible-index="4"] {
  grid-column: 2 / span 2;
}

.facility-grid[data-visible-count="5"] .facility-card[data-visible-index="5"] {
  grid-column: 4 / span 2;
}

.facility-card h3,
.facility-card p {
  padding-inline: 18px;
}

.facility-card h3 {
  margin-top: 18px;
}

.facility-card p {
  padding-bottom: 22px;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  min-height: 170px;
  color: var(--color-green-deep);
  background:
    linear-gradient(135deg, rgba(31, 77, 58, 0.14), rgba(155, 123, 79, 0.14)),
    var(--color-surface-strong);
  border-bottom: 1px solid var(--color-line);
  font-weight: 700;
}

/* FAQ */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 42px;
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion-item {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 20px;
  color: var(--color-ink);
  background: transparent;
  border: 0;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.accordion-trigger span {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid var(--color-green);
  border-radius: 50%;
}

.accordion-trigger span::before,
.accordion-trigger span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: var(--color-green);
  transform: translate(-50%, -50%);
}

.accordion-trigger span::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity 160ms ease;
}

.accordion-trigger[aria-expanded="true"] span::after {
  opacity: 0;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}

.accordion-panel p {
  padding: 0 20px 20px;
  color: var(--color-muted);
}

/* Calendar */
.calendar-section .section-heading p:not(.section-kicker) {
  max-width: 760px;
  color: var(--color-muted);
}

.calendar-shell {
  padding: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 46px 1fr 46px auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.calendar-title {
  text-align: center;
  font-size: 1.45rem;
}

.calendar-nav-button,
.event-dialog__close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--color-green-deep);
  background: var(--color-surface-strong);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.calendar-nav-button:hover,
.calendar-nav-button:focus-visible,
.event-dialog__close:hover,
.event-dialog__close:focus-visible {
  background: #eadcc7;
}

.calendar-status {
  min-height: 1.7em;
  margin-bottom: 12px;
  color: var(--color-muted);
  font-weight: 700;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.event-dot {
  display: inline-grid;
  place-items: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid currentColor;
}

.event-dot--business {
  color: #2f7d55;
  background: #2f7d55;
}

.event-dot--closed,
.event-dot--temporary_closed {
  color: #8b3f31;
  background: #8b3f31;
}

.event-dot--lesson {
  color: #2368a0;
  background: #2368a0;
}

.event-dot--tournament {
  color: #8a5a12;
  background: #8a5a12;
}

.event-dot--private {
  color: #61504a;
  background: #61504a;
}

.event-dot--other {
  color: #5f5d8d;
  background: #5f5d8d;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  color: var(--color-green-deep);
  font-weight: 700;
  text-align: center;
}

.calendar-weekdays span {
  padding: 10px 6px;
  border-bottom: 1px solid var(--color-line);
}

.calendar-weekdays span:first-child {
  color: #b54848;
  background: #fff3f1;
}

.calendar-weekdays span:last-child {
  color: #35699a;
  background: #f1f6fc;
}

.calendar-grid {
  border-left: 1px solid var(--color-line);
  border-top: 1px solid var(--color-line);
}

.calendar-day {
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
  padding: 8px;
  overflow: auto;
  background: #fffdf8;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.calendar-day.is-muted {
  background: #f7efe0;
}

.calendar-day.is-saturday {
  background: #f5f9fd;
}

.calendar-day.is-sunday {
  background: #fff6f4;
}

.calendar-day.is-saturday .calendar-day__head {
  color: #35699a;
}

.calendar-day.is-sunday .calendar-day__head {
  color: #b54848;
}

.calendar-day.is-muted.is-saturday {
  background: #eef3f8;
}

.calendar-day.is-muted.is-sunday {
  background: #f9eeeb;
}

.calendar-day.is-today {
  outline: 3px solid rgba(31, 77, 58, 0.28);
  outline-offset: -3px;
}

.calendar-day__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 28px;
  margin-bottom: 6px;
  color: var(--color-muted);
  font-weight: 700;
}

.calendar-day.is-today .calendar-day__head {
  color: var(--color-green-deep);
}

.calendar-day__today {
  padding: 1px 6px;
  color: #fff;
  background: var(--color-green);
  border-radius: 999px;
  font-size: 0.7rem;
}

.calendar-event {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px;
  width: 100%;
  margin-top: 5px;
  padding: 6px 7px;
  color: var(--color-ink);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-left-width: 5px;
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.calendar-event:hover,
.calendar-event:focus-visible {
  background: #fff6e3;
}

.calendar-event__type {
  font-weight: 700;
}

.calendar-event__title {
  min-width: 0;
}

.calendar-event__meta {
  grid-column: 1 / -1;
  color: var(--color-muted);
  font-size: 0.76rem;
}

.calendar-event--business {
  border-left-color: #2f7d55;
}

.calendar-event--closed,
.calendar-event--temporary_closed {
  border-left-color: #8b3f31;
}

.calendar-event--lesson {
  border-left-color: #2368a0;
}

.calendar-event--tournament {
  border-left-color: #8a5a12;
}

.calendar-event--private {
  border-left-color: #61504a;
}

.calendar-event--other {
  border-left-color: #5f5d8d;
}

.event-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  color: #fff;
  background: var(--color-green);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.event-badge--danger {
  background: #8b3f31;
}

.event-badge--muted {
  color: var(--color-green-deep);
  background: var(--color-surface-strong);
  border: 1px solid var(--color-line);
}

.event-dialog {
  width: min(760px, calc(100% - 28px));
  padding: 0;
  color: var(--color-ink);
  background: transparent;
  border: 0;
}

.event-dialog::backdrop {
  background: rgba(21, 53, 39, 0.48);
}

.event-dialog__panel {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.event-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  font-size: 1.45rem;
}

.event-dialog__content {
  display: grid;
  gap: 12px;
  padding-right: 44px;
}

.event-dialog__meta,
.event-dialog__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-dialog__meta {
  color: var(--color-muted);
}

.reservation-form {
  display: grid;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
}

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

.form-grid label,
.privacy-check {
  display: grid;
  gap: 6px;
  color: var(--color-green-deep);
  font-weight: 700;
}

.form-grid__full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea,
.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--color-ink);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.form-grid textarea,
.admin-field textarea {
  resize: vertical;
}

.form-grid b {
  color: #8b3f31;
  font-size: 0.78rem;
}

.privacy-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--color-ink);
  font-weight: 400;
}

.privacy-check input {
  margin-top: 7px;
}

.turnstile-slot:empty {
  display: none;
}

.form-message {
  min-height: 1.7em;
  color: var(--color-muted);
  font-weight: 700;
}

.form-message.is-error {
  color: #8b3f31;
}

.form-message.is-success {
  color: var(--color-green-deep);
}

/* Access and contact */
.access__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 42px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-line);
}

.info-list dt {
  color: var(--color-green-deep);
  font-weight: 700;
}

.info-list dd {
  margin: 0;
  color: var(--color-muted);
}

.map-placeholder {
  min-height: 360px;
  padding: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.map-placeholder iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
}

.map-placeholder__inner {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 330px;
  color: var(--color-muted);
  background:
    linear-gradient(90deg, rgba(31, 77, 58, 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(31, 77, 58, 0.1) 1px, transparent 1px),
    var(--color-surface-strong);
  background-size: 32px 32px;
  border-radius: calc(var(--radius) - 2px);
  text-align: center;
}

.map-placeholder__inner strong {
  color: var(--color-green-deep);
  font-size: 1.2rem;
}

.contact__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  color: #fff;
  background: var(--color-green-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.contact__panel h2,
.contact__panel .section-kicker {
  color: #fff;
}

.contact__panel p {
  color: rgba(255, 255, 255, 0.86);
}

.contact__panel .button--secondary {
  color: var(--color-green-deep);
  background: #fffdf8;
}

/* Footer */
.site-footer {
  color: rgba(255, 255, 255, 0.88);
  background: #171a16;
  padding: 46px 0 22px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
}

.brand--footer {
  color: #fff;
}

.brand--footer small {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer p {
  margin-top: 18px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, auto));
  gap: 8px 22px;
}

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

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer__bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .header-info__inner {
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero__grid,
  .pricing__grid,
  .faq__grid,
  .access__grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 360px;
  }

  .notice-list,
  .flow,
  .card-grid--four,
  .facility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facility-grid .facility-card:not([hidden]) {
    grid-column: auto !important;
  }

  .calendar-day {
    min-height: 118px;
  }

  .contact__panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .section,
  .section-band {
    padding: 62px 0;
  }

  .header-info {
    display: none;
  }

  .header-main {
    min-height: 70px;
  }

  .brand strong {
    font-size: 1.08rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .global-nav {
    position: fixed;
    top: 70px;
    right: 14px;
    left: 14px;
    display: grid;
    gap: 6px;
    padding: 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .global-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .global-nav a {
    padding: 13px 14px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero__grid {
    gap: 34px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero__actions,
  .contact__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 315px;
  }

  .culture-collage {
    inset: 10px 0 48px;
  }

  .culture-tile {
    min-width: 88px;
    min-height: 68px;
    padding: 12px;
    font-size: 0.8rem;
  }

  .hero-card {
    right: 8px;
    left: 8px;
    max-width: none;
  }

  .notice-list,
  .flow,
  .card-grid--four,
  .facility-grid {
    grid-template-columns: 1fr;
  }

  .facility-grid .facility-card:not([hidden]) {
    grid-column: auto !important;
  }

  .calendar-shell {
    padding: 14px;
  }

  .calendar-toolbar {
    grid-template-columns: 42px 1fr 42px;
  }

  .calendar-today {
    grid-column: 1 / -1;
  }

  .calendar-title {
    font-size: 1.18rem;
  }

  .calendar-weekdays span {
    padding-inline: 2px;
  }

  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--color-line);
    border-left: 1px solid var(--color-line);
  }

  .calendar-day {
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 3px;
    overflow: hidden;
    border: 0;
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    border-radius: 0;
  }

  .calendar-day__head {
    min-height: 16px;
    margin-bottom: 1px;
    font-size: clamp(0.68rem, 3vw, 0.84rem);
    line-height: 1;
  }

  .calendar-day__today {
    display: none;
  }

  .calendar-event {
    display: block;
    width: calc(100% - 2px);
    height: 5px;
    min-height: 5px;
    margin: 2px 1px 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    font-size: 0;
    line-height: 0;
  }

  .calendar-event__type,
  .calendar-event__title,
  .calendar-event__meta {
    display: none;
  }

  .calendar-event--business { background: #2f7d55; }
  .calendar-event--closed,
  .calendar-event--temporary_closed { background: #8b3f31; }
  .calendar-event--lesson { background: #2368a0; }
  .calendar-event--tournament { background: #8a5a12; }
  .calendar-event--private { background: #61504a; }
  .calendar-event--other { background: #5f5d8d; }

  .event-dialog__panel {
    padding: 22px;
  }

  .event-dialog__content {
    padding-right: 36px;
  }

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

  table {
    min-width: 560px;
  }

  th,
  td {
    padding: 15px 16px;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .map-placeholder {
    min-height: 300px;
  }

  .map-placeholder iframe,
  .map-placeholder__inner {
    min-height: 270px;
  }

  .contact__panel {
    padding: 24px;
  }

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

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

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


/* Mobile calendar clarity: keep square cells while clearly showing business status. */
.calendar-event__mobile-label,
.calendar-day__more,
.calendar-legend--mobile {
  display: none;
}

@media (max-width: 760px) {
  .calendar-legend:not(.calendar-legend--mobile) {
    display: none;
  }

  .calendar-legend--mobile {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
    font-size: 0.72rem;
    font-weight: 700;
  }

  .calendar-legend--mobile span {
    justify-content: center;
    min-width: 0;
    padding: 5px 3px;
    white-space: nowrap;
  }

  .calendar-legend--mobile i {
    display: block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
  }

  .calendar-legend__business i { background: #2f7d55; }
  .calendar-legend__closed i { background: #a3483b; }
  .calendar-legend__event i { background: #2368a0; }

  .calendar-event {
    display: grid;
    place-items: center;
    width: calc(100% - 2px);
    height: 14px;
    min-height: 14px;
    margin: 2px 1px 0;
    padding: 0 1px;
    overflow: hidden;
    border: 0;
    border-radius: 3px;
    opacity: 1;
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    cursor: default;
  }

  .calendar-event:nth-of-type(n + 3) {
    display: none;
  }

  .calendar-event__mobile-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
  }

  .calendar-event__type,
  .calendar-event__title,
  .calendar-event__meta {
    display: none;
  }

  .calendar-event--business { background: #2f7d55; }
  .calendar-event--closed { background: #a3483b; }
  .calendar-event--temporary_closed { background: #c45f35; }
  .calendar-event--lesson,
  .calendar-event--tournament,
  .calendar-event--private,
  .calendar-event--other { background: #2368a0; }

  .calendar-day__more {
    display: block;
    margin-top: 1px;
    color: var(--color-muted);
    font-size: 0.52rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }
}

/* 管理画面から差し替える画像 */
.site-managed-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-managed-image {
  position: absolute;
  inset: 22px 12px 64px 0;
  z-index: 1;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background: var(--color-surface-strong);
}

.hero-visual .hero-card {
  z-index: 2;
}

.facility-image {
  aspect-ratio: 4 / 3;
  min-height: 170px;
  overflow: hidden;
  background: var(--color-surface-strong);
  border-bottom: 1px solid var(--color-line);
}

.facility-image .photo-placeholder {
  height: 100%;
  min-height: 0;
  border-bottom: 0;
}

.facility-image .site-managed-image {
  object-position: center;
}

@media (max-width: 760px) {
  .hero-managed-image {
    inset: 12px 0 64px;
  }
}

/* 管理画面から調整するトップ歓迎メッセージ */
.hero-card {
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.hero-card[hidden] {
  display: none !important;
}

.hero-card--overlay-top-left,
.hero-card--overlay-top-right,
.hero-card--overlay-bottom-left,
.hero-card--overlay-bottom-right {
  position: absolute;
  z-index: 2;
}

.hero-card--overlay-top-left { top: 12px; bottom: auto; left: 0; right: auto; }
.hero-card--overlay-top-right { top: 12px; bottom: auto; right: 0; left: auto; }
.hero-card--overlay-bottom-left { bottom: 12px; left: 0; right: auto; }
.hero-card--overlay-bottom-right { bottom: 12px; right: 0; left: auto; }

.hero-card--below-image {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-width: none;
  transform: translateY(58%);
}

.hero-card--theme-light {
  color: var(--color-text);
  background: rgba(255, 253, 248, 0.95);
  border-color: var(--color-line);
}

.hero-card--theme-green {
  color: #fff;
  background: rgba(31, 77, 58, 0.95);
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-card--theme-dark {
  color: #fff;
  background: rgba(25, 28, 27, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-card--theme-green strong,
.hero-card--theme-green span,
.hero-card--theme-dark strong,
.hero-card--theme-dark span {
  color: inherit;
}

.hero-card--size-compact { max-width: 230px; padding: 13px 15px; }
.hero-card--size-compact strong { font-size: 0.95rem; }
.hero-card--size-compact span { font-size: 0.8rem; }
.hero-card--size-standard { max-width: 290px; }
.hero-card--size-wide { max-width: 390px; }

.hero-visual.has-hero-card-below {
  margin-bottom: 84px;
}

@media (max-width: 760px) {
  .hero-card--overlay-top-left,
  .hero-card--overlay-top-right,
  .hero-card--overlay-bottom-left,
  .hero-card--overlay-bottom-right {
    right: 8px;
    left: 8px;
    max-width: none;
  }

  .hero-card--below-image {
    right: 8px;
    left: 8px;
    transform: translateY(64%);
  }

  .hero-visual.has-hero-card-below {
    margin-bottom: 108px;
  }
}

/* お知らせ一覧ページ */
.notice-more__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 290px);
  justify-content: center;
}

.news-page {
  min-height: 65vh;
}

.news-hero {
  padding: clamp(48px, 7vw, 88px) 0;
}

.news-hero__inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.news-hero h1 {
  margin: 8px 0 16px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.news-hero p:last-child {
  max-width: 680px;
  color: var(--color-muted);
}

.news-archive {
  padding-top: clamp(52px, 7vw, 92px);
}

.news-archive__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.news-archive__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.news-archive__heading h2 {
  margin-top: 6px;
}

.news-archive__count {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.news-archive__status {
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--color-muted);
}

.news-archive__status.is-error {
  color: #8a2f27;
}

.news-archive__status button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-green);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.news-archive__list {
  display: grid;
  gap: 16px;
}

.news-entry {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(56, 46, 29, 0.05);
}

.news-entry__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.news-entry__meta time {
  color: var(--color-brown);
  font-weight: 700;
}

.news-entry__meta span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(31, 77, 58, 0.08);
  color: var(--color-green);
  font-size: 0.8rem;
  font-weight: 700;
}

.news-entry__content h2 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

.news-entry__content p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.news-guide-card {
  position: sticky;
  top: 120px;
  padding: 28px;
  border-radius: 20px;
  background: var(--color-green);
  color: #fff;
}

.news-guide-card .section-kicker,
.news-guide-card p {
  color: rgba(255, 255, 255, 0.78);
}

.news-guide-card h2 {
  margin: 8px 0 14px;
  color: #fff;
  font-size: 1.45rem;
}

.news-guide-card .button {
  width: 100%;
  margin-top: 18px;
  background: #fff;
  color: var(--color-green);
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.news-pagination__pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.news-pagination button {
  min-width: 44px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.news-pagination button:hover:not(:disabled),
.news-pagination button:focus-visible,
.news-pagination button.is-current {
  border-color: var(--color-green);
  background: var(--color-green);
  color: #fff;
}

.news-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

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

  .news-guide-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .news-hero__inner,
  .news-archive__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-hero__back {
    width: 100%;
  }

  .news-entry {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .news-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .news-pagination__control {
    width: 100%;
  }
}

/* Privacy policy */
.privacy-check a {
  color: var(--color-green);
  font-weight: 700;
  text-underline-offset: 3px;
}

.legal-hero__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.legal-hero h1 {
  margin: 6px 0 14px;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
}

.legal-hero p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--color-muted);
  line-height: 1.9;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 120px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
}

.legal-toc > strong {
  display: block;
  margin: 6px 0 16px;
  font-size: 1.15rem;
}

.legal-toc nav {
  display: grid;
  gap: 4px;
}

.legal-toc a {
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--color-muted);
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  background: rgba(31, 77, 58, 0.08);
  color: var(--color-green);
}

.legal-document {
  min-width: 0;
}

.legal-intro,
.legal-note {
  padding: 22px 24px;
  border-left: 4px solid var(--color-gold);
  border-radius: 0 14px 14px 0;
  background: rgba(216, 173, 104, 0.1);
  line-height: 1.9;
}

.legal-document article {
  scroll-margin-top: 120px;
  padding: 30px 0;
  border-bottom: 1px solid var(--color-border);
}

.legal-document article:first-of-type {
  padding-top: 18px;
}

.legal-document h2 {
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.legal-document p,
.legal-document li {
  color: var(--color-muted);
  line-height: 1.95;
}

.legal-document ul {
  display: grid;
  gap: 8px;
  padding-left: 1.4em;
}

.legal-contact {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.legal-contact div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  border-bottom: 1px solid var(--color-border);
}

.legal-contact div:last-child {
  border-bottom: 0;
}

.legal-contact dt,
.legal-contact dd {
  margin: 0;
  padding: 15px 17px;
}

.legal-contact dt {
  background: rgba(31, 77, 58, 0.06);
  color: var(--color-green);
  font-weight: 700;
}

.legal-contact dd {
  overflow-wrap: anywhere;
}

.legal-revision {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 28px 0 18px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.legal-revision p {
  margin: 0;
}

/* Custom 404 */
.error-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(216, 173, 104, 0.22), transparent 34%),
    var(--color-bg);
}

.error-main {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 30px 18px;
}

.error-card {
  width: min(760px, 100%);
  padding: clamp(30px, 7vw, 68px);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 70px rgba(56, 46, 29, 0.12);
  text-align: center;
}

.error-card h1 {
  margin: 8px 0 16px;
  font-size: clamp(2rem, 6vw, 3.8rem);
}

.error-card > p:not(.section-kicker) {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-muted);
  line-height: 1.9;
}

.error-board {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  margin: 0 auto 26px;
  place-items: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,.8) 0 9%, transparent 10%),
    linear-gradient(135deg, var(--color-gold), #c7ddcf);
  color: var(--color-green);
}

.error-board strong {
  position: relative;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(248, 244, 232, 0.9);
  font-size: 2rem;
}

.error-stone {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.error-stone--white {
  top: 23px;
  left: 23px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
}

.error-stone--black {
  right: 22px;
  bottom: 22px;
  background: var(--color-text);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.error-privacy-link {
  display: inline-block;
  margin-top: 26px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .legal-hero__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-hero__inner .button {
    width: 100%;
  }

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

  .legal-toc {
    position: static;
  }

  .legal-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .legal-toc nav {
    grid-template-columns: 1fr;
  }

  .legal-contact div {
    grid-template-columns: 1fr;
  }

  .legal-contact dt {
    padding-bottom: 7px;
  }

  .legal-contact dd {
    padding-top: 7px;
  }

  .error-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .error-actions .button {
    width: 100%;
  }
}
