/* ============================================
   長崎県立佐世保西高等学校 - Main Stylesheet
   Compiled from SCSS
============================================ */

/* Variables */
:root {
  --color-navy: #031d65;
  --color-orange: #e87400;
  --color-yellow: #ffff00;
  --color-gray-dark: #666666;
  --color-gray-mid: #707070;
  --color-gray-light: #aaaaaa;
  --color-border: #c7c7c7;
  --color-bg: #f5f5f5;
  --font-mincho: 'Noto Serif JP', serif;
  --font-gothic: 'Noto Sans JP', sans-serif;
  --font-en: 'Cormorant Garamond', serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-gothic);
  font-size: 1rem;
  line-height: 1.7;
  color: #000;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}
a:hover { opacity: 0.7; }

ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: normal; }
p { margin: 0; }

/* ============================================
   Header
============================================ */
.site-header {
    position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.site-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
    margin: 0 auto;
    text-align: center;
}

.site-header__logo img { height: 40px; width: auto; }

.site-header__logo-text {
  font-family: var(--font-mincho);
  line-height: 1.4;
}

.site-header__hamburger {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  font-family: var(--font-gothic);
  color: #000;
    position: absolute;
    right: 0;
}

.site-header__hamburger-label { display: none; }

.site-header__hamburger-icon {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-header__hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #000;
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform-origin: center;
}

.site-header__hamburger.is-open .site-header__hamburger-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header__hamburger.is-open .site-header__hamburger-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header__hamburger.is-open .site-header__hamburger-icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   Global Nav
============================================ */
.global-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 99;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease;
  opacity: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.global-nav.is-open {
  max-height: 600px;
  opacity: 1;
}

.global-nav__inner {
  padding: 30px 20px 40px;
}

.global-nav__label {
  color: #707070;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.global-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.global-nav__item {
  border-bottom: 1px solid #c7c7c7;
}

.global-nav__item:first-child { border-top: 1px solid #c7c7c7; }

.global-nav__category {
  display: block;
  font-weight: 700;
  padding: 14px 0;
  color: var(--color-navy);
}

.global-nav__sublist { padding-bottom: 14px; }

.global-nav__subitem {
  color: #666;
  line-height: 2;
}

.global-nav__subitem a:hover { color: var(--color-navy); opacity: 1; }

/* ============================================
   Nav Overlay
============================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.3);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nav-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

/* ============================================
   Main / Site Main
============================================ */
.site-main { padding-top: 0; }

/* ============================================
   Hero Slider
============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 400px;
  max-height: 700px;
  overflow: hidden;
}

.hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero__slide.is-active { opacity: 1; }

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}

.hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    color: #fff;
    top: 50%;
    transform: translateY(-50%);
    width: 90%;
    margin: auto;
    text-align: center;
}

.hero__title {
  font-family: var(--font-en);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-family: var(--font-mincho);
  font-size: clamp(1.2rem, 3vw, 2rem);
  letter-spacing: 0.15em;
}

.hero__indicators {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.hero__indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero__indicator.is-active {
  background-color: #fff;
  transform: scale(1.3);
}

/* ============================================
   News
============================================ */
.news {
  padding: 50px 0 60px;
  background-color: #fff;
}

.news__inner {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
    width: 90%;
    margin: 0 auto;
}

.news__title {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 24px;
}

.news__list { border-top: 1px solid #c7c7c7; }

.news__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 1.5rem 0;
  border-bottom: 1px solid #c7c7c7;
  flex-wrap: wrap;
}

.news__date {
  color: #707070;
  white-space: nowrap;
  min-width: 110px;
}

.news__category {
  display: inline-block;
  padding: 2px 10px;
  white-space: nowrap;
  border: 1px solid currentColor;
  font-size:0.8rem;
}
.news__summary {
    display: block;
    width: 100%;
    font-weight: bold;
}

.news__category--school-event { background-color: var(--color-navy); color: #fff; }
.news__category--admission { background-color: var(--color-orange); color: #fff; }
.news__category--notice { background-color: #707070; color: #fff; }

.news__text { flex: 1; min-width: 0; }

.news__more { margin-top: 32px; text-align: center; }

.news__more-btn {
  display: inline-block;
  padding: 12px 60px;
  border: 1px solid #000;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.news__more-btn:hover {
  background-color: #000;
  color: #fff;
  opacity: 1;
}

/* ============================================
   School Photo
============================================ */
.school-photo {
  width: 100%;
    height: 26vh;
    overflow: hidden;
    background-color: #EFEFEF;
}

.school-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

/* ============================================
   Philosophy
============================================ */
.philosophy {
  padding: 60px 0 70px;
}

.philosophy__inner {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.philosophy__heading { margin-bottom: 30px; }

.philosophy__title {
  font-family: var(--font-mincho);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.1em;

    text-align: center;
    font-size: 11vw;
    font-family: serif;
    font-weight: normal;
    letter-spacing: 0.8rem;
    margin-bottom: 1.5rem;
}

.philosophy__en-label {
  font-family: var(--font-en);
  font-size: 1.2rem;
  color: #aaa;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.philosophy__text {
  line-height: 2.0;
  color: #000;
  margin-bottom: 36px;
}

/* Highlight (黄色アンダーライン) */
.highlight {
      background: linear-gradient(transparent 0%, rgb(255, 255, 0) 0%);
    display: inline;
    font-weight: bold;
    padding: 0.25rem 0;
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: background-size 1.5s;
}
.highlight.on {
    background-size: 100% 100%;
}

/* .highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #ffff00;
  transition: width 0.6s ease;
}

.highlight.is-underlined::after { width: 100%; } */

.philosophy__btns {
    display: flex;
    justify-content: space-between;
  gap: 16px;
}

.__btn {
    display: block;
    text-align: center;
    border: solid 2px #000;
    border-radius: 999rem;
    padding: 0.5rem 0;
    font-weight: bold;
    margin: 0 auto 1.5rem auto;
  transition: background-color 0.3s ease, color 0.3s ease;
          max-width: 430px;
}
.philosophy__btns .__btn {
        width: 45%;
        margin: 0;
}

.philosophy__btn:hover {
  background-color: #000;
  color: #fff;
  opacity: 1;
}

/* ============================================
   Menu Grid
============================================ */
.menu-grid {
  padding: 0 0 60px;
}

.menu-grid__inner {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.menu-grid__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.menu-grid__item { display: block; overflow: hidden; text-align: center; }

.menu-grid__item:hover .menu-grid__img img {
  transform: scale(1.04);
  opacity: 1;
}

.menu-grid__img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 14px;
}

.menu-grid__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-grid__en-title {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 3rem;;
}

.menu-grid__ja-title {
  font-size: 1.2rem;
  color: #707070;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* ============================================
   Sub Menu Grid
============================================ */
.sub-menu-grid {
  background-color: #f5f5f5;
  padding: 50px 0 60px;
}

.sub-menu-grid__inner {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.sub-menu-grid__list {
  display: grid;
  grid-template-columns: 1fr;
}

.sub-menu-grid__item {
  display: block;
  padding: 40px 30px;
  text-align: center;
  border-bottom: 1px solid #c7c7c7;
  transition: background-color 0.3s ease;
}

.sub-menu-grid__item:last-child { border-bottom: none; }

.sub-menu-grid__item:hover {
  background-color: #ebebeb;
  opacity: 1;
}

.sub-menu-grid__en-title {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.sub-menu-grid__ja-title {
  font-size: 1.2rem;
  color: #707070;
  letter-spacing: 0.1em;
}

/* ============================================
   Footer
============================================ */
.site-footer {
  background-color: #fff;
  padding: 50px 0 20px;
  border-top: 1px solid #c7c7c7;
}

.site-footer__inner {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-footer__logo-area {
  text-align: center;
  margin-bottom: 40px;
}

.site-footer__logo-area img {
  height: 60px;
  width: auto;
  margin: 0 auto 12px;
}

.site-footer__school-name {
  font-family: var(--font-mincho);
  font-size: 2rem;
  margin-bottom: 4px;
}

.site-footer__school-name-en {
  font-size: 1.1rem;
  color: #aaa;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.site-footer__address {
  color: #707070;
  line-height: 1.9;
  font-style: normal;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 16px;
  margin-bottom: 40px;
}

.site-footer__nav-col-title {
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #c7c7c7;
}

.site-footer__nav-col-list li {
  font-size: 1rem;
  line-height: 2.2;
  color: #666;
}

.site-footer__copyright {
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
  padding-top: 20px;
  border-top: 1px solid #c7c7c7;
}

/* ============================================
   Tablet & PC (768px+)
============================================ */
@media screen and (min-width: 768px) {
  .site-header { height: 80px; padding: 0 40px; }
  .site-header__logo img { height: 50px; }
  .site-header__logo-text { font-size: 1.6rem; }

.site-header__hamburger {
    right: initial;
    left: 0;
}
.site-header__hamburger-label {display: block;}

  .global-nav { top: 80px; }

  .global-nav__inner {
    display: flex;
    gap: 40px;
    padding: 40px 140px 50px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .global-nav__label { display: none; }

  .global-nav__list {
    flex-direction: row;
    width: 100%;
  }

  .global-nav__item {
    border-bottom: none;
    border-top: none;
    flex: 1;
  }

  .global-nav__item:first-child { border-top: none; }

  .global-nav__category {
    padding: 0 0 12px 0;
    border-bottom: 2px solid var(--color-navy);
    margin-bottom: 12px;
  }

  .global-nav__sublist { padding-bottom: 0; }

  .site-main { padding-top: 0; }

  .hero { max-height: 100vh; }
  .hero__indicators { right: 140px; bottom: 30px; }

  .news { padding: 70px 0 80px; }
  .news__inner { max-width: 1200px;}
  .news__title { font-size: 2.4rem; margin-bottom: 32px; }
  .news__item { align-items: center; gap: 2rem; flex-wrap: nowrap; }

  .school-photo { height: 500px; }

  .philosophy { padding: 80px 0 100px; }
  .philosophy__inner {
    display: flex;
    align-items: flex-start;
    gap: 60px;
  width: 75%;
  max-width: 1200px;
  }

  .philosophy__heading {
    margin-bottom: 0;
    min-width: 240px;
    flex-shrink: 0;
  }

  .philosophy__title { font-size: 3.6rem; }

    .-Btn {
        padding: 0.7rem 0;
    }

  .menu-grid { padding: 0 0 80px; }
  .menu-grid__inner { padding-left: 140px; padding-right: 140px; }
  .menu-grid__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .menu-grid__en-title { font-size: 3rem; }

  .sub-menu-grid { padding: 70px 0 80px; }
  .sub-menu-grid__inner { padding-left: 140px; padding-right: 140px; }
  .sub-menu-grid__list { grid-template-columns: repeat(3, 1fr); }

  .sub-menu-grid__item {
    border-bottom: none;
    border-right: 1px solid #c7c7c7;
  }

  .sub-menu-grid__item:last-child {
    border-right: none;
    border-bottom: none;
  }

  .sub-menu-grid__en-title { font-size: 3rem; }

  .site-footer__nav { grid-template-columns: repeat(5, 1fr); gap: 0; }

  .site-footer__logo-area img { height: 80px; }
}

/* Utility */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
