:root {
  --color-text: #333;
  --color-muted: #646464;
  --color-bg: #f7f5e7;
  --color-surface: #fff;
  --color-accent: #bc360a;
  --color-accent-soft: #e05d22;
  --color-nav-active: #ea9629;
  --color-contact: #a45c5a;
  --color-line: #e8e5ce;
  --color-footer: #2a2218;
  --font-base: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --max-width: 1080px;
  --header-max: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.8;
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

a:hover {
  color: var(--color-accent);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  background: #fff;
  padding: 0.5rem 1rem;
}

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

.pc-only {
  display: inline-block;
}

.sp-only {
  display: none;
}

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem 0;
}

.site-header__tagline {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand img {
  display: block;
  width: min(320px, 70vw);
  height: auto;
}

.site-header__contact img {
  display: block;
  height: auto;
  max-height: 40px;
  width: auto;
}

.site-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.site-header__toggle span:first-child,
.site-header__toggle span:first-child::before,
.site-header__toggle span:first-child::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: #333;
  margin: 0 auto;
  position: relative;
}

.site-header__toggle span:first-child::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.site-header__toggle span:first-child::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.site-nav {
  margin-top: 0.75rem;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
}

.site-nav__item {
  position: relative;
}

.site-nav__item > a {
  display: block;
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-bottom: 3px solid transparent;
}

.site-nav__item.is-active > a,
.site-nav__item > a[aria-current="page"] {
  color: var(--color-nav-active);
  border-bottom-color: var(--color-nav-active);
}

.site-nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  z-index: 40;
}

.site-nav__item.has-children:hover > .site-nav__sub,
.site-nav__item.has-children:focus-within > .site-nav__sub {
  display: block;
}

.site-nav__sub a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  color: #555;
}

.site-nav__sub a:hover {
  background: #faf8f0;
  color: var(--color-accent);
}

/* Hero */
.hero {
  background: #111;
}

.hero a,
.hero img {
  display: block;
  width: 100%;
}

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.section__head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.section__head img {
  max-width: 100%;
  height: auto;
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #2a2218;
}

.section__rule {
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin: 0.75rem auto 0;
  border: 0;
}

.lead-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  background: #fff;
  padding: 1.75rem;
  border: 1px solid var(--color-line);
}

.lead-panel p {
  margin: 0 0 1rem;
}

.btn-read {
  display: inline-block;
}

.btn-read img {
  height: 36px;
  width: auto;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-line);
  padding: 0.75rem 0.75rem 1.1rem;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.news {
  background: #fff;
  border: 1px solid var(--color-line);
  padding: 1.25rem 1.5rem;
}

.news__heading {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
}

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

.news__list li {
  border-top: 1px solid var(--color-line);
}

.news__list a {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  font-size: 0.92rem;
}

.news__date {
  color: var(--color-muted);
}

/* Page content */
.page-hero {
  background: #fff;
  border-bottom: 1px solid var(--color-line);
}

.page-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 1.25rem;
}

.page-hero h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
}

.content-block {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.content-block h2 {
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-accent);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.05rem;
  color: #5a3a2a;
}

.content-block p,
.content-block li {
  font-size: 0.95rem;
}

.content-block ul {
  padding-left: 1.25rem;
}

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

.school-card {
  background: #fff;
  border: 1px solid var(--color-line);
  padding: 1.25rem 1.4rem;
}

.school-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.school-card p {
  margin: 0;
  color: #555;
  font-size: 0.92rem;
}

/* Gallery */
.gallery-section {
  margin-bottom: 2.5rem;
}

.gallery-section h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-grid a {
  display: block;
  background: #fff;
  border: 1px solid var(--color-line);
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.04);
}

.gallery-grid figcaption {
  padding: 0.45rem 0.6rem 0.6rem;
  font-size: 0.78rem;
  color: #666;
  line-height: 1.4;
}

/* Contact */
.contact-note {
  background: #fff;
  border: 1px solid var(--color-line);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--color-line);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d0cdb8;
  border-radius: 2px;
  background: #fffcf5;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  border: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.75rem;
  font: inherit;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--color-accent-soft);
}

/* Home slider */
.home-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.home-slider a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: #fff;
}

.home-slider img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.home-slider a:hover img {
  transform: scale(1.03);
}

/* Footer */
.site-footer {
  background: var(--color-footer);
  color: #e8e2d4;
  margin-top: 2rem;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.site-footer__col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: #fff;
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__col a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.82rem;
  color: #d6cfbf;
}

.site-footer__col a:hover {
  color: #fff;
}

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.site-footer__logo img {
  margin-bottom: 0.75rem;
  filter: brightness(1.05);
}

.site-footer__copy,
.site-footer__notice {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #b8b09f;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(960px, 92vw);
  max-height: 88vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .card-grid--3,
  .gallery-grid,
  .home-slider,
  .site-footer__cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .lead-panel {
    grid-template-columns: 1fr;
  }

  .news__list a {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (max-width: 720px) {
  .pc-only {
    display: none;
  }

  .sp-only {
    display: inline-block;
  }

  .site-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    margin: 0.75rem -1.25rem 0;
    border-top: 1px solid var(--color-line);
    background: #fff;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    border-top: 0;
  }

  .site-nav__item > a {
    border-bottom: 1px solid var(--color-line);
  }

  .site-nav__sub {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    background: #faf8f0;
  }

  .card-grid--3,
  .card-grid--2,
  .gallery-grid,
  .home-slider,
  .site-footer__cols {
    grid-template-columns: 1fr;
  }
}
