/* Front page
--------------------------------------------- */

/* Hero
--------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  background: #d8c9b3;
}
.hero-media,
.hero-overlay,
.hero-content {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  background: linear-gradient(180deg, rgba(34, 27, 20, .16) 0%, rgba(34, 27, 20, .18) 24%, rgba(34, 27, 20, .34) 100%);
}
.hero-content {
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 140px 40px 60px;
}
.hero-logo-wrap {
  margin: 0;
  display: grid;
  place-items: center;
  width: min(55vw, 686px);
}
.hero-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 18px rgba(255,255,255,.38));
}
.hero-logo-mobile { display: none; }
.hero-copy {
  text-align: center;
  color: #fff;
  max-width: 760px;
}
.hero-copy-desktop { display: block; }
.hero-copy-mobile { display: none; }
.hero-subtitle {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(16px, 1.55vw, 24px);
  letter-spacing: .42em;
}
.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 104px);
  line-height: 1.18;
  letter-spacing: .18em;
  font-weight: 600;
}
.hero-lead {
  margin: 24px auto 0;
  max-width: 600px;
  font-size: clamp(14px, 1.25vw, 17px);
  color: rgba(255,255,255,.92);
}

/* Statement
--------------------------------------------- */
.statement-section {
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(247,243,234,.72));
  border-bottom: 1px solid var(--line);
}
.statement-inner {
  display: grid;
  place-items: center;
}
.statement-copy {
  max-width: 900px;
  text-align: center;
  font-family: var(--serif);
  color: var(--ink);
  font-size: 18px;
  line-height: 2.25;
  letter-spacing: .08em;
}
.statement-copy p {
  margin: 0;
}
.statement-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 2;
  letter-spacing: .08em;
  color: var(--ink);
}
.statement-copy p + p {
  margin-top: 30px;
}
.statement-copy strong {
  display: inline-block;
  margin: 8px 0 4px;
  color: var(--green-dark);
  font-size: clamp(24px, 2vw, 40px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: .16em;
}

/* Profile
--------------------------------------------- */
.intro-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}
.intro-photo {
  border-radius: 8px 34px 34px 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.intro-photo img {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}
.signature {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: fit-content;
  margin: 34px 0 0 auto;
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.8;
  letter-spacing: .08em;
}
.signature-role {
  display: block;
  padding-right: 5.5em;
  font-size: 15px;
}
.signature-name {
  display: block;
  font-size: 18px;
  font-weight: 600;
}


/* Classroom
--------------------------------------------- */
.classroom-container {
  display: grid;
  gap: clamp(26px, 4vw, 46px);
}

.classroom-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: stretch;
}

.classroom-photo {
  border-radius: 8px 34px 34px 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--accent);
}

.classroom-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.classroom-info-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 10px 35px rgba(34,48,40,.06);
}

.classroom-detail-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.classroom-detail-list div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 14px;
  align-items: start;
}

.classroom-detail-list dt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-dark);
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: .08em;
  white-space: nowrap;
}

.classroom-detail-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .04em;
}

.classroom-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 14px;
  width: min(100%, 360px);
  margin: 0 auto;
  align-self: center;
}

.classroom-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--green-dark);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease, color .2s ease;
}

.classroom-button::after {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  transition: transform .2s ease;
}

.classroom-button:hover::after {
  transform: translateX(3px) rotate(45deg);
}

.classroom-button:hover {
  opacity: .86;
  transform: translateY(-1px);
}

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

.classroom-button-secondary {
  background: #fff;
  color: var(--green-dark);
}

.classroom-map-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 10px 35px rgba(34,48,40,.06);
  background: var(--paper);
}

.classroom-map {
  display: block;
  width: 100%;
  height: clamp(320px, 32vw, 430px);
  border: 0;
}

/* Kitsuke
--------------------------------------------- */
.kitsuke-main {
  display: grid;
  grid-template-columns: minmax(320px, .46fr) 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: stretch;
}

.kitsuke-photo {
  border-radius: 8px 34px 34px 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--accent);
}

.kitsuke-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: center;
}

.kitsuke-info-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(22px, 3vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 52px);
  box-shadow: 0 10px 35px rgba(34,48,40,.06);
}

.kitsuke-copy {
  color: var(--green-dark);
  font-family: var(--serif);
  font-size: clamp(19px, 1.75vw, 28px);
  line-height: 1.9;
  letter-spacing: .08em;
}

.kitsuke-copy p {
  margin: 0;
}

.kitsuke-copy p + p {
  margin-top: 20px;
}





.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

.tag {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--green-dark);
  background: rgba(255,255,255,.56);
  font-size: 13px;
}

.kitsuke-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(100%, 430px);
  margin: 0 auto;
}

.kitsuke-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  min-height: 58px;
  padding: 13px 30px;
  border-radius: 999px;
  border: 1.5px solid var(--green-dark);
  color: var(--green-dark);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease, color .2s ease;
}

.kitsuke-button::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.kitsuke-button:hover {
  opacity: .86;
  transform: translateY(-1px);
}

.kitsuke-button:hover::after {
  transform: translateX(3px) rotate(45deg);
}

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

.kitsuke-button-secondary {
  background: #fff;
  color: var(--green-dark);
}

/* Gallery
--------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid a {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: var(--accent);
  cursor: zoom-in;
}
.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-grid a:hover img {
  transform: scale(1.05);
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  background: rgba(18, 28, 23, .82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.gallery-lightbox-image {
  display: block;
  max-width: min(1120px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}
.gallery-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

/* Responsive
--------------------------------------------- */
@media (max-width: 900px) {
  .hero-copy-desktop { display: none; }
  .hero-logo-wrap {
    width: min(22vw, 118px);
  }
  .hero-logo-desktop { display: none; }
  .hero-logo-mobile { display: block; }
  .hero-content {
    place-items: center;
    padding: 92px 20px 34px;
  }
  .hero {
    min-height: 100svh;
    height: 100svh;
  }

  .statement-copy {
    text-align: center;
    font-size: 16px;
    line-height: 2.05;
    letter-spacing: .055em;
  }
  .statement-copy p + p {
    margin-top: 24px;
  }
  .statement-copy strong {
    display: block;
    text-align: center;
    font-size: clamp(30px, 9vw, 42px);
    letter-spacing: .12em;
  }

  .intro-grid,
  .classroom-main,
  .kitsuke-main {
    grid-template-columns: 1fr;
  }

  .signature {
    margin-top: 28px;
  }

  .classroom-main {
    gap: 22px;
  }

  .classroom-photo img {
    min-height: auto;
    aspect-ratio: 4 / 5;
  }

 .classroom-info-card {
    padding: 24px 18px;
  }

  .classroom-detail-list {
    gap: 12px;
  }

  .classroom-detail-list div {
    grid-template-columns: 6.6em 1fr;
    gap: 10px;
  }

  .classroom-detail-list dt {
    min-height: 28px;
    padding: 4px 9px;
    font-size: 12px;
  }

  .classroom-detail-list dd {
    font-size: 14px;
    line-height: 1.75;
  }

  .classroom-actions {
    flex-direction: column;
  }

  .classroom-button {
    width: 100%;
    min-width: 0;
  }

  .kitsuke-main {
    gap: 22px;
  }

  .kitsuke-photo img {
    min-height: auto;
    aspect-ratio: 4 / 5;
  }

  .kitsuke-info-card {
    padding: 24px 18px;
  }

  .kitsuke-copy {
    font-size: 17px;
    line-height: 1.8;
    letter-spacing: .06em;
  }




  .kitsuke-button {
    min-height: 54px;
    font-size: 15px;
  }

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

@media (max-width: 560px) {
  .time-table {
    font-size: 12px;
  }
  .time-table th,
  .time-table td {
    padding: 10px 5px;
  }
  .gallery-grid {
    gap: 9px;
  }
}
