
/* ========================================
   リセットCSS
======================================== */

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: #fff;
  color: #111;
  font-family:
    "Noto Sans JP",
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;
  line-height: 1.5;
}

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

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

/* ========================================
   ヘッダー
======================================== */

.header {
  position: relative;
  z-index: 1000;
  margin: 0;
}


/* ========================================
   ハンバーガーボタン
======================================== */

.hamburger {
  display: block;

  position: fixed;

  top: 20px;
  right: 20px;

  z-index: 1200;

  width: 55px;
  height: 55px;

  padding: 10px;

  border: none;

  background: #fff;

  cursor: pointer;
}

.hamburger span {
  display: block;

  width: 100%;
  height: 3px;

  margin: 6px 0;

  background: #333;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}


/* ========================================
   ハンバーガー → ×
======================================== */

.hamburger.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* ========================================
   メニューパネル
======================================== */

.menu-panel {
  position: fixed;

  top: 0;
  right: 0;

  z-index: 1100;

  width: 380px;
  max-width: 90vw;
  height: 100vh;

  padding: 100px 30px 30px;

  display: flex;
  flex-direction: column;

  justify-content: flex-start;
  align-items: stretch;

  gap: 25px;

  background: rgba(255, 255, 255, 0.97);

  box-shadow:
    -5px 0 20px rgba(0, 0, 0, 0.12);

  transform: translateX(100%);

  transition:
    transform 0.35s ease;

  overflow-y: auto;
}

.menu-panel.is-open {
  transform: translateX(0);
}


/* ========================================
   ナビゲーション
======================================== */

.nav-item {
  position: relative;

  font-family: "Inter", sans-serif;

  font-size: 35px;
  font-weight: 400;

  line-height: 1;

  white-space: nowrap;
}

.nav-row {
  display: flex;

  align-items: center;

  gap: 5px;
}

.nav-row > a {
  color: inherit;
  text-decoration: none;
}


/* ========================================
   サブメニュー開閉ボタン
======================================== */

.submenu-toggle {
  padding: 0;

  border: 0;

  background: transparent;

  color: inherit;

  font-size: 22px;

  line-height: 1;

  cursor: pointer;

  transition:
    transform 0.3s ease;
}


/* ========================================
   ナビゲーションカラー
======================================== */

.menu {
  color: #007aba;
}

.nav-info {
  color: rgba(185, 98, 157, 0.75);
}

.nav-visit {
  color: #3d8739;
}

.other {
  color: rgba(173, 111, 231, 0.75);
}


/* ========================================
   サブメニュー
======================================== */

.submenu {
  position: static;

  min-width: 0;

  margin-top: 15px;

  padding: 0;

  background: transparent;

  border-radius: 0;

  box-shadow: none;

  opacity: 0;

  visibility: hidden;

  max-height: 0;

  overflow: hidden;

  transform: none;

  transition:
    opacity 0.25s ease,
    max-height 0.3s ease,
    visibility 0.25s ease;
}

.nav-item.is-open .submenu {
  opacity: 1;

  visibility: visible;

  max-height: 500px;
}

.submenu a {
  display: block;

  padding: 10px 15px;

  color: #333;

  font-family: "Inter", sans-serif;

  font-size: 18px;

  line-height: 1.3;

  text-decoration: none;

  transition:
    background-color 0.2s ease,
    padding-left 0.2s ease;
}

.submenu a:hover {
  background: rgba(0, 0, 0, 0.05);

  padding-left: 22px;
}

.nav-item.is-open .submenu-toggle {
  transform: rotate(90deg);
}

/* ========================================
   ページ全体
======================================== */

.visit-page {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
}

/* ========================================
   上部の三角形
======================================== */

.top-triangle {
  position: relative;
  z-index: 1;
  width: 100%;
  pointer-events: none;
}

.top-triangle img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

/* ========================================
   各セクション共通
======================================== */

.notice-section,
.access-section,
.floor-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
}

/* ========================================
   黒い装飾
======================================== */

.black-decoration {
  position: absolute;
  z-index: 2;
  top: 0;
  width: auto;
  height: 100%;
  max-width: 15vw;
  max-height: 100%;
  pointer-events: none;
  user-select: none;
}

.black-left {
  left: 0;
}

.black-right {
  right: 0;
}

/* ========================================
   見出し共通
======================================== */

.section-title {
  margin: 0;
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

/* ========================================
   詳しくはこちらボタン
======================================== */

.more-button {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  min-height: 45px;
  margin: 28px auto 0;
  padding: 7px 18px;
  border-radius: 5px;
  background: linear-gradient(
    90deg,
    #ee82c9 0%,
    #b57ee5 50%,
    #4ba9d4 100%
  );
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.more-button:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

/* ========================================
   ご来場の前に
======================================== */

.notice-section {
  min-height: 450px;
  padding: 35px 0 45px;
}

.notice-content {
  position: relative;
  z-index: 10;
  width: min(720px, 76%);
  margin: 0 auto;
}

.notice-text {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.8;
}

.notice-content .more-button {
  margin: 22px 0 0 auto;
}

/* ========================================
   学校までのアクセス
======================================== */

.access-content {
  position: relative;
  z-index: 10;
  width: min(800px, 78%);
  margin: 0 auto;
}

.access-content .section-title {
  padding-right: 40px;
  text-align: right;
}

.access-image {
  width: 100%;
  margin-top: 25px;
}

.access-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 駅からのアクセス */

.access-route {
  margin-top: 20px;
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.access-content .more-button {
  margin: 25px 0 0 25px;
}

/* ========================================
   フロアマップ
======================================== */

.floor-section {
  min-height: 480px;
  padding: 35px 0 60px;
}

.floor-content {
  position: relative;
  z-index: 10;
  width: min(800px, 78%);
  margin: 0 auto;
}

.floor-image {
  width: min(100%, 650px);
  margin: 25px auto 0;
}

.floor-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.floor-content .more-button {
  margin: 25px 0 0 auto;
}

/* ========================================
   カウントダウン・ホーム画像
======================================== */

@media screen and (max-width: 900px) {
  .home-cards {
    gap: 18px;
    padding: 50px 0;
  }

  .home-cards > a {
    width: 80%;
  }

  .count-area {
    height: clamp(350px, 70vw, 500px);
  }

  .count-backgrounds {
    height: 100%;
    min-height: 0;
  }

  .countdown-wrapper {
    width: 75%;
  }

  .countdown-title {
    top: 8%;
    font-size: clamp(24px, 5vw, 45px);
  }

  .countdown {
    top: 45%;
  }

  .count-content span {
    font-size: clamp(18px, 5vw, 55px);
  }

  .count-content small {
    font-size: clamp(6px, 1.8vw, 12px);
  }
}

@media screen and (max-width: 480px) {
  .home-cards {
    gap: 14px;
    padding: 35px 0;
  }

  .home-cards > a {
    width: 80%;
  }
}

/* ========================================
   900px以下：タブレット
======================================== */

@media screen and (max-width: 900px) {
  /* ご来場の前に */

  .notice-section {
    min-height: 240px;
    padding: 30px 0 40px;
  }

  .notice-content {
    width: 70%;
    margin-left: 18%;
    margin-right: auto;
  }

  .section-title {
    font-size: 30px;
  }

  .notice-text {
    font-size: 13px;
  }

  /* アクセス */

  .access-section {
    min-height: 420px;
    padding: 30px 0 45px;
  }

  .access-content {
    width: 70%;
    margin-left: 18%;
    margin-right: auto;
  }

  .access-image {
    margin-top: 20px;
  }

  .access-route {
    font-size: 16px;
  }

  /* フロアマップ */

  .floor-section {
    min-height: 400px;
    padding: 30px 0 45px;
  }

  .floor-content {
    width: 70%;
    margin-left: 18%;
    margin-right: auto;
  }

  /* 黒い装飾 */

  .black-decoration {
    max-width: 10vw;
  }
}

/* ========================================
   600px以下：スマートフォン
======================================== */

@media screen and (max-width: 600px) {
  /* ご来場の前に */

  .notice-section {
    min-height: 200px;
    padding: 25px 0 35px;
  }

  .notice-content {
    width: 76%;
    margin-left: 18%;
    margin-right: auto;
  }

  .section-title {
    font-size: 20px;
  }

  .notice-text {
    margin-top: 12px;
    font-size: 11px;
  }

  .notice-content .more-button {
    margin-top: 18px;
  }

  /* アクセス */

  .access-section {
    min-height: 330px;
    padding: 25px 0 35px;
  }

  .access-content {
    width: 76%;
    margin-left: 18%;
    margin-right: auto;
  }

  .access-content .section-title {
    text-align: right;
  }

  .access-image {
    width: 80%;
    margin: 16px auto 0 5%;
  }

  .access-route {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.8;
  }

  .access-content .more-button {
    margin: 20px 0 0 5%;
  }

  /* ボタン */

  .more-button {
    width: 130px;
    min-height: 35px;
    margin-top: 20px;
    font-size: 13px;
  }

  /* フロアマップ */

  .floor-section {
    min-height: 330px;
    padding: 25px 0 35px;
  }

  .floor-content {
    width: 76%;
    margin-left: 18%;
    margin-right: auto;
  }

  .floor-image {
    margin-top: 18px;
  }

  .floor-content .more-button {
    margin: 20px 0 0 auto;
  }
}

/* ========================================
   380px以下：小型スマートフォン
======================================== */

@media screen and (max-width: 380px) {
  /* ご来場の前に */

  .notice-section {
    min-height: 180px;
    padding: 20px 0 25px;
  }

  .notice-content {
    width: 78%;
    margin-left: 16%;
  }

  .section-title {
    font-size: 18px;
  }

  .notice-text {
    font-size: 10px;
  }

  /* アクセス */

  .access-section {
    min-height: 280px;
    padding: 20px 0 30px;
  }

  .access-content {
    width: 78%;
    margin-left: 16%;
  }

  .access-content .section-title {
    font-size: 18px;
    text-align: right;
  }

  .access-image {
    width: 85%;
    margin: 14px auto 0 3%;
  }

  .access-route {
    font-size: 11px;
  }

  .access-content .more-button {
    margin-top: 16px;
  }

  /* フロアマップ */

  .floor-section {
    min-height: 270px;
    padding: 20px 0 30px;
  }

  .floor-content {
    width: 78%;
    margin-left: 16%;
  }

  .floor-image {
    margin-top: 15px;
  }

  /* ボタン */

  .more-button {
    width: 120px;
    min-height: 33px;
    font-size: 12px;
  }
}

/* ========================================
   フッター
======================================== */

.footer {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(
    110deg,
    #b9e4fa 0%,
    #d9ecfa 45%,
    #eee6fb 100%
  );
  font-family: Arial, "Noto Sans JP", sans-serif;
  overflow: hidden;
}

/* ========================================
   フッター上部装飾
======================================== */

.footer-decoration {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.footer-decoration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ========================================
   フッタータイトル
======================================== */

.footer-title {
  height: 88px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 0 36px 5px;
  color: #000;
  font-size: 30px;
  line-height: 1;
}

.footer-title-en {
  font-style: italic;
  font-weight: 900;
}

.footer-title-jp {
  font-style: normal;
  font-weight: 900;
}

/* ========================================
   タイトル下横線
======================================== */

.footer-line {
  width: 100%;
  height: 3px;
  background: #000;
}

/* ========================================
   フッター本体
======================================== */

.footer-content {
  width: 100%;
  display: grid;
  grid-template-columns:
    minmax(0, 0.5fr)
    minmax(0, 0.6fr)
    minmax(0, 0.7fr)
    minmax(0, 0.9fr);
  column-gap: 30px;
  padding: 25px 55px 45px;
  align-items: start;
}

/* ========================================
   連絡先
======================================== */

.footer-contact {
  min-width: 0;
  color: #000;
  font-size: 18px;
  line-height: 1.2;
}

.contact-name {
  margin-bottom: 3px;
}

.contact-mail {
  margin-bottom: 14px;
  font-size: 16px;
  word-break: break-word;
}

.contact-school {
  margin-bottom: 13px;
  font-size: 14px;
  line-height: 1.35;
}

.contact-tel {
  font-size: 14px;
  line-height: 1.4;
}

/* ========================================
   SNS
======================================== */

.footer-sns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
}

.footer-sns a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: #000;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-sns i {
  font-size: 40px;
  line-height: 1;
}

.footer-sns .sns-x i {
  font-size: 36px;
}

.footer-sns a:hover {
  transform: translateY(-3px);
  opacity: 0.7;
}

/* ========================================
   テーマロゴ
======================================== */

.theme-logo {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.theme-logo img {
  display: block;
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
}

/* ========================================
   フッターナビ
======================================== */

.footer-navigation {
  display: flex;
  flex-direction: column;
  gap: 45px;
  min-width: 0;
}

.footer-menu {
  position: relative;
}

.footer-menu-title {
  display: block;
  margin-bottom: 8px;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  color: inherit;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.footer-menu-title:hover {
  opacity: 0.65;
}

.footer-menu-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 12px;
}

.footer-menu-list::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: currentColor;
}

.footer-menu-list a {
  font-size: 15px;
  line-height: 1.2;
  color: inherit;
  transition: opacity 0.2s ease;
}

.footer-menu-list a:hover {
  opacity: 0.65;
}

/* ========================================
   フッターメニューカラー
======================================== */

.menu-home {
  color: #333;
}

.menu-about {
  color: #0082c4;
}

.menu-visit {
  color: #3c963b;
}

.menu-info {
  color: #d889bd;
}

.menu-other {
  color: #ae7ae9;
}

/* ========================================
   タブレット
======================================== */

@media screen and (max-width: 1200px) {
  .footer-content {
    grid-template-columns:
      minmax(0, 0.9fr)
      minmax(0, 0.6fr)
      minmax(0, 1fr)
      minmax(0, 1fr);
    column-gap: 25px;
    padding-left: 35px;
    padding-right: 35px;
  }

  .footer-menu-title {
    font-size: 22px;
  }

  .theme-logo img {
    max-width: 200px;
  }
}

/* ========================================
   スマートフォン・タブレット
======================================== */

@media screen and (max-width: 900px) {
  .footer-decoration {
    height: 120px;
  }

  .footer-title {
    height: 60px;
    gap: 10px;
    padding: 0 20px 6px;
    font-size: 20px;
  }

  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
    padding: 25px 20px 35px;
  }

  .footer-contact {
    grid-column: 1;
    grid-row: 1;
    font-size: 16px;
  }

  .contact-mail {
    font-size: 13px;
  }

  .contact-school,
  .contact-tel {
    font-size: 12px;
  }

  .theme-logo {
    grid-column: 2;
    grid-row: 1;
  }

  .theme-logo img {
    max-width: 200px;
  }

  .footer-navigation {
    grid-column: 1;
    grid-row: 2;
    gap: 30px;
  }

  .footer-navigation-right {
    grid-column: 2;
    grid-row: 2;
    gap: 30px;
  }

  .footer-menu-title {
    font-size: 18px;
    white-space: normal;
  }

  .footer-menu-list {
    padding-left: 10px;
    gap: 4px;
  }

  .footer-menu-list a {
    font-size: 12px;
    line-height: 1.3;
  }

  .footer-sns {
    gap: 8px;
    margin-top: 12px;
  }

  .footer-sns a {
    width: 38px;
    height: 38px;
  }

  .footer-sns i {
    font-size: 32px;
  }

  .footer-sns .sns-x i {
    font-size: 29px;
  }
}

/* ========================================
   小さいスマートフォン
======================================== */

@media screen and (max-width: 480px) {
  .footer-content {
    gap: 25px 12px;
    padding: 25px 15px 35px;
  }

  .footer-title {
    padding-left: 15px;
    font-size: 17px;
  }

  .footer-contact {
    font-size: 14px;
  }

  .contact-mail {
    font-size: 11px;
  }

  .contact-school,
  .contact-tel {
    font-size: 10px;
  }

  .theme-logo img {
    max-width: 180px;
  }

  .footer-menu-title {
    font-size: 16px;
  }

  .footer-menu-list a {
    font-size: 11px;
  }

  .footer-sns {
    gap: 6px;
  }

  .footer-sns a {
    width: 32px;
    height: 32px;
  }

  .footer-sns i {
    font-size: 27px;
  }

  .footer-sns .sns-x i {
    font-size: 25px;
  }
}

/* ========================================
   動きが苦手な場合の配慮
======================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .more-button,
  .footer-sns a,
  .footer-menu-title,
  .footer-menu-list a {
    transition: none;
  }
}