:root {
  --ink: #1c1b19;
  --paper: #faf8f5;
  --paper-alt: #f1ede6;
  --red: #b8362a;
  --line: #e2ddd3;
  --muted: #6b665c;
  --max: 1080px;
  --font-body: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --font-display: "Shippori Mincho", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 20px;
}

h2 {
  font-size: 1.9rem;
  position: relative;
  padding-bottom: 14px;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--red);
}

a { color: var(--red); }

.section { padding: 80px 0; }
.section.alt { background: var(--paper-alt); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: block;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo-text em { font-style: normal; color: var(--red); }

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.main-nav a:hover { border-color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* Hero */
.hero {
  padding: 140px 0 120px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(18,16,14,0.72), rgba(18,16,14,0.82)),
    radial-gradient(circle at 50% 0%, rgba(184,54,42,0.25), transparent 60%),
    url("images/Aikido_Background_01.jpg") center 35% / cover no-repeat;
}

.hero-kicker {
  color: #f0a99a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
}

.hero-sub {
  max-width: 520px;
  margin: 0 auto 32px;
  color: #e4dfd6;
}

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 2px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.fact-list {
  list-style: none;
  margin: 0;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.fact-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.fact-list li:last-child { border-bottom: none; }

.fact-list strong {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.benefits {
  list-style: none;
  margin: 4px 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}

.benefits li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
}

.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  gap: 16px;
}

.two-col + .gallery {
  margin-top: 48px;
}

.gallery-item {
  position: relative;
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: zoom-in;
  overflow: hidden;
  display: block;
  font: inherit;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(3) {
  grid-row: span 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(to top, rgba(28,27,25,0.75), transparent);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.gallery:has(.gallery-item:only-child) {
  grid-template-columns: minmax(0, 320px);
  grid-auto-rows: auto;
  justify-content: center;
}

.gallery:has(.gallery-item:only-child) .gallery-item {
  grid-column: auto;
  grid-row: auto;
  aspect-ratio: 3 / 4;
}

.gallery:has(.gallery-item:nth-child(4):last-child) {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
}

.gallery:has(.gallery-item:nth-child(4):last-child) .gallery-item {
  grid-column: auto;
  grid-row: auto;
  aspect-ratio: 4 / 3;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 14, 12, 0.92);
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox-figure {
  margin: 0;
  max-width: min(900px, 90vw);
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.15);
}

.lightbox-caption {
  color: #cfc9bd;
  margin-top: 14px;
  font-size: 0.9rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close {
  top: 20px;
  right: 24px;
  font-size: 2.2rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  padding: 12px;
  opacity: 0.8;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  opacity: 1;
  color: var(--red);
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* Schedule */
.schedule {
  border-top: 1px solid var(--line);
}

.schedule-row {
  display: grid;
  grid-template-columns: 140px 200px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.schedule-row .day {
  font-family: var(--font-display);
  font-weight: 600;
}

.schedule-row .time { color: var(--red); }
.schedule-row .who { color: var(--muted); }

.note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.price-card {
  border: 1px solid var(--line);
  padding: 32px 24px;
  text-align: center;
  background: var(--paper);
}

.price-card.featured {
  border-color: var(--red);
  background: #fff;
}

.price-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 0 0 8px;
}

.price span {
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--muted);
}

/* Contact */
.contact-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list a { color: var(--ink); }

.transit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.transit-block h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.transit-block p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.map-wrap {
  border: 1px solid var(--line);
  min-height: 320px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
  filter: grayscale(0.3) contrast(1.05);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cfc9bd;
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}

.footer-sub { color: #8a8478; }

.footer-sub a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-sub a:hover { color: #cfc9bd; }

/* Responsive */
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .schedule-row { grid-template-columns: 1fr; gap: 4px; }
  .transit { grid-template-columns: 1fr; gap: 32px; }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    display: none;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle { display: flex; }
}

@media (max-width: 520px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 1.3rem;
    padding: 8px;
  }
}
