:root {
  --ink: #171717;
  --muted: #5f646d;
  --paper: #f7f3ea;
  --paper-deep: #e8ddca;
  --panel: #fffaf0;
  --line: rgba(23, 23, 23, 0.14);
  --red: #a82020;
  --red-dark: #731414;
  --gold: #bd8b2d;
  --black: #0b0c0f;
  --shadow: 0 24px 70px rgba(15, 17, 20, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 23, 23, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 23, 23, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  font-family: "Public Sans", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

a,
button {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(247, 243, 234, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 1.7rem);
}

.site-nav a {
  color: #30343a;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--red);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  min-height: calc(100vh - 78px);
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(11, 12, 15, 0.92), rgba(11, 12, 15, 0.78) 52%, rgba(168, 32, 32, 0.82)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  color: #fffaf0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
}

.hero-media {
  position: absolute;
  right: clamp(-3rem, 4vw, 2rem);
  top: 50%;
  width: min(46vw, 560px);
  opacity: 0.1;
  transform: translateY(-50%);
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

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

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "Noto Serif JP", Georgia, serif;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 880px;
  font-size: clamp(2.7rem, 7.2vw, 6.4rem);
  line-height: 0.98;
}

.hero-content > p:not(.eyebrow) {
  max-width: 650px;
  margin: 1.6rem 0 2rem;
  color: rgba(255, 250, 240, 0.84);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 18px 36px rgba(115, 20, 20, 0.26);
}

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

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fffaf0;
}

.btn-full {
  width: 100%;
  margin-top: 0.8rem;
}

.hero-panel {
  display: grid;
  gap: 0;
  border: 1px solid rgba(255, 250, 240, 0.2);
  background: rgba(255, 250, 240, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-panel > div {
  padding: 1.35rem;
  border-bottom: 1px solid rgba(255, 250, 240, 0.16);
}

.hero-panel > div:last-child {
  border-bottom: 0;
}

.panel-label {
  display: block;
  margin-bottom: 0.25rem;
}

.hero-panel strong {
  display: block;
  font-size: 1.05rem;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  max-width: 900px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section h2 {
  color: var(--black);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.section p {
  color: var(--muted);
}

.section-intro {
  background: var(--panel);
}

.dojo-copy {
  display: grid;
  gap: 1rem;
  max-width: 920px;
  margin: -0.5rem auto 2.25rem;
  text-align: center;
}

.dojo-copy p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
}

.dojo-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto 1rem;
}

.dojo-gallery figure {
  position: relative;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--black);
}

.dojo-gallery img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.dojo-gallery figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  background: rgba(11, 12, 15, 0.78);
  color: #fffaf0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-grid,
.classes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature,
.class-card {
  min-height: 255px;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--panel);
}

.feature span {
  display: block;
  color: var(--red);
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 2.2rem;
}

.feature h3,
.class-card h3 {
  margin: 1.2rem 0 0.7rem;
  color: var(--black);
  font-size: 1.25rem;
}

.feature p,
.class-card p {
  margin: 0;
}

.schedule-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
}

.schedule-list div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.schedule-list dt {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-list dd {
  margin: 0.2rem 0 0;
  color: var(--black);
  font-size: 1.18rem;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 410px) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.portrait-card {
  display: grid;
  align-items: end;
  gap: 1.2rem;
  padding: 0;
  background: var(--black);
  color: #fffaf0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.portrait-card p {
  margin: 0;
  padding: 1.4rem;
  color: rgba(255, 250, 240, 0.74);
  text-align: center;
}

.split-copy {
  max-width: 760px;
}

.split-copy p:not(.section-kicker) {
  max-width: 680px;
  font-size: 1.04rem;
}

.school-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  overflow: hidden;
  background: var(--red-dark);
  color: #fffaf0;
}

.school-band::before {
  content: "";
  position: absolute;
  right: clamp(-4rem, 2vw, 2rem);
  top: 50%;
  width: min(42vw, 430px);
  aspect-ratio: 1;
  background: url("assets/image/logo_shinshukan.png") center / contain no-repeat;
  opacity: 0.08;
  transform: translateY(-50%);
  pointer-events: none;
}

.school-band h2 {
  color: #fffaf0;
}

.school-heading,
.school-copy {
  position: relative;
  z-index: 1;
}

.school-heading {
  display: grid;
  justify-items: start;
  gap: 0;
}

.school-band p:not(.section-kicker) {
  color: rgba(255, 250, 240, 0.82);
  font-size: 1.1rem;
}

.school-copy {
  display: grid;
  gap: 1rem;
}

.school-copy p {
  margin: 0;
}

.text-link {
  color: #fffaf0;
  font-weight: 800;
  text-decoration-color: rgba(255, 250, 240, 0.48);
  text-underline-offset: 0.28em;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration-color: #fffaf0;
}

.history-section {
  background: var(--paper);
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.history-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  background: var(--panel);
}

.history-tag {
  color: var(--red);
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.history-card h3 {
  margin: 0;
  color: var(--black);
  font-size: 1.45rem;
}

.history-card p {
  margin: 0;
}

.inline-link {
  margin-top: auto;
  color: var(--red);
  font-weight: 800;
  text-decoration-color: rgba(168, 32, 32, 0.32);
  text-underline-offset: 0.28em;
}

.inline-link:hover,
.inline-link:focus-visible {
  text-decoration-color: var(--red);
}

.class-card {
  position: relative;
}

.class-number {
  color: rgba(168, 32, 32, 0.18);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  background: var(--panel);
}

.contact-copy {
  max-width: 720px;
}

.contact-copy p:not(.section-kicker) {
  font-size: 1.08rem;
}

.contact-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-card p {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-card strong {
  color: var(--black);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-card a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.contact-card .btn-primary {
  color: #fff;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  text-decoration: underline;
}

.contact-card .btn-primary:hover,
.contact-card .btn-primary:focus-visible {
  color: #fff;
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.5rem clamp(1rem, 5vw, 5rem);
  background: var(--black);
  color: rgba(255, 250, 240, 0.72);
}

.site-footer span {
  color: #fffaf0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer p {
  margin: 0;
}

.blog-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 320px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: 52vh;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(11, 12, 15, 0.94), rgba(11, 12, 15, 0.82) 60%, rgba(168, 32, 32, 0.86)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  color: #fffaf0;
}

.blog-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
}

.blog-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.blog-hero h1 {
  margin: 0;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(2.3rem, 5.8vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.blog-hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 1.4rem 0 0;
  color: rgba(255, 250, 240, 0.82);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.blog-hero-mark {
  position: relative;
  z-index: 1;
  justify-self: center;
  opacity: 0.22;
}

.blog-hero-mark img {
  width: min(28vw, 280px);
  min-width: 170px;
}

.blog-section {
  background: var(--panel);
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.blog-posts {
  display: grid;
  gap: 1rem;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(160px, 260px) minmax(0, 1fr);
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.post-card-featured {
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1fr);
  min-height: 330px;
}

.post-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.post-card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.post-category {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-status {
  margin-top: auto;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.post-card h3,
.blog-sidebar h2 {
  margin: 0;
  color: var(--black);
}

.post-card h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.18;
}

.post-card p,
.blog-sidebar p {
  margin: 0;
  color: var(--muted);
}

.blog-sidebar {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 102px;
}

.sidebar-panel {
  padding: clamp(1.25rem, 3vw, 1.7rem);
  border: 1px solid var(--line);
  background: #fff;
}

.sidebar-panel h2 {
  font-size: 1.2rem;
}

.topic-list {
  display: grid;
  gap: 0;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.topic-list li {
  display: block;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  color: var(--red);
  font-weight: 800;
}

.sidebar-contact {
  background: var(--black);
  color: #fffaf0;
}

.sidebar-contact h2 {
  color: #fffaf0;
}

.sidebar-contact p {
  margin-top: 0.75rem;
  color: rgba(255, 250, 240, 0.76);
}

.gallery-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 0.72fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(78vh - 78px);
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
  background:
    linear-gradient(115deg, rgba(11, 12, 15, 0.95), rgba(11, 12, 15, 0.82) 58%, rgba(168, 32, 32, 0.78)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  color: #fffaf0;
}

.gallery-hero-copy {
  max-width: 820px;
}

.gallery-hero h1 {
  margin: 0;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.gallery-hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 1.4rem 0 0;
  color: rgba(255, 250, 240, 0.82);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.gallery-hero-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.18);
  box-shadow: var(--shadow);
}

.gallery-hero-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
}

.gallery-hero-photo img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.gallery-section {
  background: var(--panel);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--black);
}

.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img,
.gallery-item:focus-within img {
  transform: scale(1.04);
}

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 0.1rem;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(11, 12, 15, 0.88), rgba(11, 12, 15, 0));
  color: #fffaf0;
}

.gallery-item span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-item strong {
  font-size: 1.05rem;
}

.gallery-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--paper);
}

.gallery-callout div {
  max-width: 760px;
}

.gallery-callout h2 {
  margin: 0;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.1;
}

@media (max-width: 920px) {
  .site-nav {
    position: fixed;
    inset: 78px 0 auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(247, 243, 234, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.active {
    display: flex;
  }

  .menu-toggle {
    display: grid;
  }

  .hero,
  .split-section,
  .school-band,
  .contact-section,
  .blog-hero,
  .blog-layout,
  .post-card,
  .post-card-featured,
  .gallery-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    max-width: 560px;
  }

  .intro-grid,
  .classes-grid,
  .dojo-gallery,
  .history-grid {
    grid-template-columns: 1fr;
  }

  .feature,
  .class-card {
    min-height: auto;
  }

  .blog-sidebar {
    position: static;
  }

  .post-card img {
    max-height: 330px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 230px;
  }

  .gallery-callout {
    display: grid;
  }
}

@media (max-width: 560px) {
  .brand strong {
    font-size: 0.88rem;
  }

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

  .brand-mark {
    width: 42px;
    height: 42px;
  }

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

  .site-footer {
    display: block;
  }

  .site-footer p {
    margin-top: 0.4rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .gallery-item-large {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-hero-photo img {
    min-height: 300px;
  }
}
