 :root {
  --bg: #f8f4ec;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #666666;
  --red: #9f1d20;
  --red-dark: #721316;
  --line: rgba(0, 0, 0, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 999;
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(23, 23, 23, 0.88);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a[aria-current="page"] {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 25px rgba(159, 29, 32, 0.28);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #111;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.2)),
    url("../imagens/photos/h1.jpg") center 20% / cover no-repeat;
  z-index: -2;
}

.hero::after {
  content: "剣道";
  position: absolute;
  right: clamp(16px, 8vw, 120px);
  bottom: clamp(24px, 8vw, 100px);
  font-size: clamp(5rem, 18vw, 15rem);
  font-weight: 800;
  opacity: 0.12;
  line-height: 1;
  z-index: -1;
}

.hero-content {
  max-width: 760px;
  padding: 96px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--red);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 24px 0 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.page-hero {
  min-height: 460px;
}

.page-hero::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.18)),
    var(--hero-image, url("../imagens/photos/h1.jpg")) center 35% / cover no-repeat;
}

section {
  padding: 88px 0;
}

.section-title {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-title span {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.section-title h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-title p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

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

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.about-layout,
.feature-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.about-image,
.feature-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ddd;
}

.about-image img,
.feature-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.story-block {
  display: grid;
  gap: 28px;
  margin-top: 34px;
}

.story-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.story-item.reverse .story-copy {
  order: 2;
}

.story-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.04rem;
}

.story-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ddd;
}

.story-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}

.image-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote-card {
  background: #171717;
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  position: relative;
  overflow: hidden;
}

.quote-card::after {
  content: "道";
  position: absolute;
  right: 30px;
  bottom: -30px;
  font-size: 10rem;
  opacity: 0.08;
  font-weight: 900;
}

.quote-card p {
  position: relative;
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.sensei-feature {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: start;
}

.sensei-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ddd;
}

.sensei-photo img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.sensei-info h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.sensei-info .rank {
  margin: 12px 0 24px;
  color: var(--red);
  font-weight: 900;
  font-size: 1.1rem;
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfaf7;
  color: var(--muted);
}

.timeline strong {
  color: var(--ink);
}

.sensei-card {
  overflow: hidden;
  padding: 0;
}

.sensei-card img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  display: block;
}

.sensei-card-content {
  padding: 22px;
}

.sensei-card-content h3 {
  margin: 0 0 8px;
}

.sensei-card-content p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.training-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.training-content {
  padding: clamp(28px, 5vw, 48px);
}

.schedule-list {
  display: grid;
  gap: 14px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.schedule-list li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfaf7;
}

.schedule-list strong {
  display: block;
  color: var(--red);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.training-image {
  min-height: 420px;
  background: url("../imagens/photos/h3.jpg") center / cover no-repeat;
}

.media-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 18px;
  background: #000;
}

.gallery-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none;
  background: #111;
  min-height: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
  opacity: 0.68;
}

.gallery-card span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.location-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 24px;
  align-items: stretch;
}

.map iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #ddd;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
  background: #fff;
}

.site-footer {
  padding: 32px 0;
  background: #171717;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-links .desktop-cta {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .page-hero {
    min-height: 420px;
  }

  section {
    padding: 64px 0;
  }

  .grid-3,
  .grid-2,
  .about-layout,
  .feature-layout,
  .training-card,
  .location-layout,
  .story-item,
  .sensei-feature,
  .image-pair {
    grid-template-columns: 1fr;
  }

  .story-item.reverse .story-copy {
    order: initial;
  }

  .training-image {
    min-height: 280px;
    order: -1;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .card {
    padding: 22px;
  }
}
