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

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


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


body {
  margin: 0;
  min-height: 100vh;

  overflow-x: hidden;

  background: #fff;
  color: #111;

  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;
}


img {
  display: block;

  max-width: 100%;
  height: auto;
}

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

.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);
}



/* ========================================
   ページ本体
======================================== */

.access-page {
  position: relative;

  width: 100%;
  max-width: 100%;

  min-height: 100vh;

  margin: 0 auto;

  padding:
    35px
    80px
    60px;

  background: #fff;

  overflow: hidden;
}



/* ========================================
   アクセスタイトル画像
======================================== */

.access-title {
  position: relative;

  width: min(520px, 72%);
  max-width: 100%;

  margin-left: auto;
  margin-right: auto;

  margin-bottom: 65px;

  z-index: 10;
}


.access-title img {
  display: block;

  width: 100%;
  max-width: 100%;

  height: auto;

  margin-left: auto;
  margin-right: auto;
}



/* ========================================
   左右の装飾画像
======================================== */

.decoration {
  position: absolute;

  width: auto;
  height: auto;

  max-width: none;

  z-index: 2;

  pointer-events: none;
}



/* ----------------------------------------
   左側装飾
---------------------------------------- */

.decoration-left {
  top: 115px;
  left: 0;

  width: 150px;
}



/* ----------------------------------------
   右側装飾
---------------------------------------- */

.decoration-right {
  right: 0;
  bottom: 0;

  width: 150px;
}



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

.route-section,
.map-section,
.bus-section {
  position: relative;

  z-index: 5;

  width: min(900px, 100%);
  max-width: 100%;

  min-width: 0;

  margin-left: auto;
  margin-right: auto;
}



/* ========================================
   セクション見出し
======================================== */

.section-heading {
  position: relative;

  width: 100%;
  max-width: 100%;

  margin: 0 0 22px;

  padding: 0;

  text-align: left;

  font-size: clamp(24px, 4vw, 30px);

  line-height: 1.5;

  font-weight: 900;

  letter-spacing: 0.02em;

  overflow-wrap: break-word;
}



/* ========================================
   路線図
======================================== */

.route-section {
  margin-bottom: 65px;
}


.route-image {
  width: 100%;
  max-width: 100%;

  min-width: 0;

  margin-left: auto;
  margin-right: auto;

  overflow: hidden;
}


.route-image img {
  display: block;

  width: 100%;
  max-width: 100%;

  height: auto;

  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   アクセス案内文
======================================== */

.access-description {
  width: 100%;
  max-width: 900px;

  margin: -40px auto 65px;
  padding: 0 10px;

  text-align: center;

  font-size: clamp(14px, 2.2vw, 20px);
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.03em;

  overflow-wrap: break-word;
}


/* ========================================
   スマートフォン
======================================== */

@media (max-width: 600px) {

  .access-description {
    margin-top: -25px;
    margin-bottom: 40px;

    font-size: 13px;
    line-height: 1.8;
  }

}


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

@media (max-width: 380px) {

  .access-description {
    margin-top: -22px;
    margin-bottom: 35px;

    font-size: 11px;
  }

}

/* ========================================
   新柏駅から学校への案内図
======================================== */

.map-section {
  margin-bottom: 65px;
}


.map-section .section-heading {
  text-align: right;
}


.map-image {
  width: 100%;
  max-width: 100%;

  min-width: 0;

  margin-left: auto;
  margin-right: auto;

  overflow: hidden;
}


.map-image img {
  display: block;

  width: 100%;
  max-width: 100%;

  height: auto;

  margin-left: auto;
  margin-right: auto;
}



/* ========================================
   スクールバス
======================================== */

.bus-section {
  margin-top: 0;
  margin-bottom: 0;
}


.bus-section .section-heading {
  margin-bottom: 22px;
}


.bus-image {
  width: 100%;
  max-width: 100%;

  min-width: 0;

  margin-left: auto;
  margin-right: auto;

  overflow: hidden;
}


.bus-image img {
  display: block;

  width: 100%;
  max-width: 100%;

  height: auto;

  margin-left: auto;
  margin-right: auto;
}



/* ========================================
   1200px以下
   左右装飾を非表示
======================================== */

@media (max-width: 1200px) {

  .decoration-left,
  .decoration-right {
    display: none;
  }

}



/* ========================================
   PC
======================================== */

@media (min-width: 901px) {

  .access-page {
    padding-top: 35px;
    padding-bottom: 60px;
  }


  /* ----------------------------------------
     タイトル
  ---------------------------------------- */

  .access-title {
    width: 520px;
    max-width: 70%;

    margin-left: auto;
    margin-right: auto;

    margin-bottom: 65px;
  }


  /* ----------------------------------------
     路線図
  ---------------------------------------- */

  .route-section {
    width: min(900px, 100%);
    max-width: 100%;

    margin-left: auto;
    margin-right: auto;

    margin-bottom: 65px;
  }


  /* ----------------------------------------
     案内図
  ---------------------------------------- */

  .map-section {
    width: min(900px, 100%);
    max-width: 100%;

    margin-left: auto;
    margin-right: auto;

    margin-bottom: 65px;
  }


  /* ----------------------------------------
     スクールバス
  ---------------------------------------- */

  .bus-section {
    width: min(900px, 100%);
    max-width: 100%;

    margin-left: auto;
    margin-right: auto;
  }

}



/* ========================================
   900px以下
======================================== */

@media (max-width: 900px) {

  .access-page {
    width: 100%;
    max-width: 100%;

    padding:
      30px
      30px
      50px;
  }


  /* ----------------------------------------
     タイトル
  ---------------------------------------- */

  .access-title {
    width: min(430px, 75%);
    max-width: 100%;

    margin-left: auto;
    margin-right: auto;

    margin-bottom: 50px;
  }


  /* ----------------------------------------
     路線図
  ---------------------------------------- */

  .route-section {
    width: 100%;
    max-width: 750px;

    min-width: 0;

    margin-left: auto;
    margin-right: auto;

    margin-bottom: 50px;
  }


  /* ----------------------------------------
     案内図
  ---------------------------------------- */

  .map-section {
    width: 100%;
    max-width: 750px;

    min-width: 0;

    margin-left: auto;
    margin-right: auto;

    margin-bottom: 50px;
  }


  /* ----------------------------------------
     スクールバス
  ---------------------------------------- */

  .bus-section {
    width: 100%;
    max-width: 750px;

    min-width: 0;

    margin-left: auto;
    margin-right: auto;
  }


  /* ----------------------------------------
     見出し
  ---------------------------------------- */

  .section-heading {
    font-size: 26px;

    margin-bottom: 20px;
  }

}



/* ========================================
   スマートフォン
======================================== */

@media (max-width: 600px) {

  .access-page {
    width: 100%;
    max-width: 100%;

    padding:
      22px
      35px
      40px;
  }


  /* ----------------------------------------
     タイトル
  ---------------------------------------- */

  .access-title {
    width: 340px;
    max-width: 90%;

    margin-left: auto;
    margin-right: auto;

    margin-bottom: 40px;
  }


  /* ----------------------------------------
     路線図
  ---------------------------------------- */

  .route-section {
    width: 100%;
    max-width: 100%;

    margin-left: auto;
    margin-right: auto;

    margin-bottom: 40px;
  }


  .route-image {
    width: 100%;
    max-width: 100%;
  }


  /* ----------------------------------------
     案内図
  ---------------------------------------- */

  .map-section {
    width: 100%;
    max-width: 100%;

    margin-left: auto;
    margin-right: auto;

    margin-bottom: 40px;
  }


  .map-image {
    width: 100%;
    max-width: 100%;
  }


  /* ----------------------------------------
     スクールバス
  ---------------------------------------- */

  .bus-section {
    width: 100%;
    max-width: 100%;

    margin-left: auto;
    margin-right: auto;
  }


  .bus-image {
    width: 100%;
    max-width: 100%;
  }


  /* ----------------------------------------
     見出し
  ---------------------------------------- */

  .section-heading {
    width: 100%;
    max-width: 100%;

    font-size: 21px;

    line-height: 1.5;

    margin-bottom: 16px;
  }

}



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

@media (max-width: 380px) {

  .access-page {
    width: 100%;
    max-width: 100%;

    padding-left: 28px;
    padding-right: 28px;
  }


  /* ----------------------------------------
     タイトル
  ---------------------------------------- */

  .access-title {
    width: 300px;
    max-width: 94%;

    margin-left: auto;
    margin-right: auto;

    margin-bottom: 35px;
  }


  /* ----------------------------------------
     見出し
  ---------------------------------------- */

  .section-heading {
    font-size: 18px;

    line-height: 1.5;

    margin-bottom: 13px;
  }


  /* ----------------------------------------
     各セクションの間隔
  ---------------------------------------- */

  .route-section {
    margin-bottom: 35px;
  }


  .map-section {
    margin-bottom: 35px;
  }

}

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

.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 {
  width: 100%;

  height: 100%;

  object-fit: cover;

  object-position: center;
}


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

.footer-title {
  height: 88px;

  display: flex;

  align-items: flex-end;

  gap: 18px;

  padding-left: 36px;
  padding-bottom: 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(100px, 0.5fr)
    minmax(130px, 0.6fr)
    minmax(175px, 0.7fr)
    minmax(170px, 0.9fr);

  column-gap: 40px;

  padding:
    25px
    55px
    35px;

  align-items: start;
}


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

.footer-contact {
  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;

  gap: 20px;

  margin-top: 18px;

  flex-wrap: wrap;
}

.footer-sns a {
  display: flex;

  justify-content: center;
  align-items: center;

  width: 30px;
  height: 30px;

  flex-shrink: 0;

  color: #000000;

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

.footer-sns i {
  font-size: 40px;

  line-height: 1;
}

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

  opacity: 0.7;
}


/* Xだけ少し小さく */

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


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

.theme-logo {
  width: 100%;

  display: flex;

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

.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(150px, 0.9fr)
      minmax(120px, 0.6fr)
      minmax(160px, 1fr)
      minmax(160px, 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) {

  /* ----------------------------
     ホーム4枚画像
  ---------------------------- */

  .home-cards {
    gap: 18px;

    padding:
      50px 0;
  }

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


  /* ----------------------------
     フッター
  ---------------------------- */

  .footer-decoration {
    height: 120px;
  }

  .footer-title {
    height: 60px;

    gap: 10px;

    padding-left: 20px;
    padding-bottom: 6px;

    font-size: 20px;
  }

  .footer-content {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);

    gap: 30px 20px;

    padding:
      25px
      20px
      35px;
  }

  .footer-contact {
    grid-column: 1;
    grid-row: 1;

    font-size: 16px;

    min-width: 0;
  }

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

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

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

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

    width: 100%;

    min-width: 0;
  }

  .theme-logo img {
    width: 100%;

    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;

    flex-wrap: wrap;
  }

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

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

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


  /* ----------------------------
     カウントダウン
  ---------------------------- */

  .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) {

  /* ----------------------------
     ホーム4枚画像
  ---------------------------- */

  .home-cards {
    gap: 14px;

    padding:
      35px 0;
  }

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


  /* ----------------------------
     フッター
  ---------------------------- */

  .footer-content {
    padding-left: 15px;
    padding-right: 15px;

    gap: 25px 12px;
  }

  .footer-title {
    padding-left: 15px;

    font-size: 17px;
  }

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

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

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

  .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;
  }
}
/* ========================================
   フッター下部の線を削除
======================================== */

.footer {
  border: none;
  outline: none;
  box-shadow: none;
}

.footer::after {
  content: none;
}

.footer a {
  border-bottom: none;
  text-decoration: none;
}

/* ========================================
   リンクの基本設定
======================================== */

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

/* ========================================
   フッター内のリンク
======================================== */

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

/* メールアドレス・電話番号 */
.footer-contact a {
  color: inherit;
  text-decoration: none;
}

/* ナビゲーション */
.footer-navigation a {
  color: inherit;
  text-decoration: none;
}

/* マウスを乗せたとき */
.footer a:hover {
  color: inherit;
}

/* ========================================
   フッターの境界線
======================================== */

.footer {
  border: none;
  outline: none;
  box-shadow: none;
}