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

*,
*::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;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

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


/* ========================================
   変数
======================================== */

:root {
  --page-max: 1120px;
  --card-gap: 16px;
  --text: #111;
  --border: #202020;
}


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

.page-frame {
  position: relative;

  width: min(100%, 1280px);

  min-height: 100vh;

  margin: 0 auto;

  padding:
    54px
    32px
    90px
    20px;
}


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

.header {
  position: relative;
  z-index: 1000;

  margin: 0;
}


/* ========================================
   ハンバーガーボタン
   PC・タブレット・スマホすべて表示
======================================== */

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


/* ========================================
   左側装飾
======================================== */

.side-decoration {
  position: absolute;

  top: 0;
  bottom: 0;

  left: 0;

  width: 48px;

  pointer-events: none;
}


/* 縦線 */

.side-decoration::before {
  content: "";

  position: absolute;

  top: 0;
  bottom: 72px;

  left: 8px;

  width: 2px;

  background: #222;
}


/* ========================================
   メイン
======================================== */

.page {
  width:
    min(100%, var(--page-max));

  margin: 0 auto;
}


/* ========================================
   ページタイトル画像
======================================== */

.page-header {
  margin-bottom: 40px;
}

.page-title-image {
  width: 600px;

  max-width: 80%;

  margin: 0 auto;
}

.page-title-image img {
  display: block;

  width: 100%;

  height: auto;
}


/* ========================================
   検索
======================================== */

.search-box {
  position: relative;

  margin-bottom: 28px;

  padding:
    17px
    20px
    18px;

  border:
    2px solid
    var(--border);

  border-radius: 6px;

  background: #fff;
}

.search-box label {
  display: block;

  margin-bottom: 7px;

  font-size: 15px;

  font-weight: 800;
}

.search-row {
  position: relative;
}

.search-row input {
  display: block;

  width: 100%;

  height: 42px;

  padding:
    0
    92px
    0
    13px;

  border:
    1px solid
    #c9c9c9;

  border-radius: 3px;

  outline: none;

  background: #fff;
}

.search-row input::placeholder {
  color: #bdbdbd;
}

.search-row input:focus {
  border-color: #888;

  box-shadow:
    0 0 0 3px
    rgba(0, 0, 0, .06);
}


/* 検索アイコン */

.search-icon {
  position: absolute;

  top: 50%;
  right: 13px;

  width: 30px;
  height: 30px;

  transform:
    translateY(-50%);
}

.search-icon::before {
  content: "";

  position: absolute;

  top: 2px;
  left: 2px;

  width: 15px;
  height: 15px;

  border:
    3px solid
    #5f6265;

  border-radius: 50%;
}

.search-icon::after {
  content: "";

  position: absolute;

  width: 12px;
  height: 3px;

  background: #5f6265;

  transform: rotate(45deg);

  transform-origin:
    left center;

  top: 18px;
  left: 17px;
}


/* クリア */

.clear-button {
  position: absolute;

  z-index: 2;

  top: 50%;
  right: 52px;

  width: 26px;
  height: 26px;

  display: none;

  transform:
    translateY(-50%);

  border: 0;

  border-radius: 50%;

  background: #eee;

  color: #555;

  cursor: pointer;
}

.search-status {
  margin:
    10px
    0
    0;

  font-size: 14px;
}


/* ========================================
   カテゴリー
======================================== */

.category {
  --accent: #48aee7;

  margin-bottom: 35px;
}

.category-title {
  display: flex;

  align-items: center;

  gap: 15px;

  margin:
    0
    0
    12px
    5px;

  font-size:
    clamp(28px, 3vw, 39px);

  line-height: 1.15;

  font-weight: 900;
}

.category-title::before {
  content: "";

  width: 14px;

  height: 41px;

  flex: 0 0 auto;

  background:
    var(--accent);
}


/* ========================================
   カードエリア
======================================== */

.slider {
  width: 100%;
}

.track {
  display: flex;

  flex-wrap: wrap;

  gap: var(--card-gap);

  width: 100%;
}


/* ========================================
   カード
======================================== */

.card {
  position: relative;

  flex:
    0 0
    calc(
      (100% - (var(--card-gap) * 2))
      / 3
    );

  min-width: 0;

  min-height: 100px;

  padding:
    16px
    48px
    12px
    16px;

  overflow: hidden;

  border:
    2px solid
    color-mix(
      in srgb,
      var(--accent) 72%,
      white
    );

  border-radius: 9px;

  background:
    color-mix(
      in srgb,
      var(--accent) 7%,
      white
    );

  cursor: pointer;

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.card:hover {
  transform:
    translateY(-4px);

  box-shadow:
    0 7px 18px
    rgba(0, 0, 0, .12);

  background:
    color-mix(
      in srgb,
      var(--accent) 14%,
      white
    );
}

.card:focus-visible {
  outline:
    3px solid
    rgba(0, 0, 0, .4);

  outline-offset: 3px;
}


/* ========================================
   カードタイトル
======================================== */

.card-title {
  margin:
    0
    0
    7px;

  font-size: 16px;

  line-height: 1.2;

  font-weight: 800;

  color: #333;
}


/* ========================================
   場所
======================================== */

.card-meta {
  margin:
    0
    0
    8px;

  font-size: 12px;

  line-height: 1.2;

  color: #333;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}


/* ========================================
   タグ
======================================== */

.tags {
  display: flex;

  flex-wrap: wrap;

  gap: 5px;
}

.tag {
  display: inline-flex;

  align-items: center;

  height: 18px;

  padding:
    0
    9px;

  border-radius: 99px;

  color: #ffffff;

  font-size: 9px;

  line-height: 1;

  font-weight: 700;
}


/* ========================================
   学年タグ
======================================== */

/* 高校1年 */

.tag.grade[data-grade="高校1年"] {
  background: #ADD9F0;
}


/* 高校2年 */

.tag.grade[data-grade="高校2年"] {
  background: #FFC6ED;
}


/* 高3有志 */

.tag.grade[data-grade="高3有志"] {
  background: #96E392;
}


/* 中学1年 */

.tag.grade[data-grade="中学1年"] {
  background: #FFCD8B;
}


/* 中学2年 */

.tag.grade[data-grade="中学2年"] {
  background: #FF8B8B;
}


/* 中学3年 */

.tag.grade[data-grade="中学3年"] {
  background: #FFF58B;
}

.tag.grade[data-grade="PTA・同窓会"] {
  background: #DCFF8B;
}


/* 部活動 */

.tag.grade[data-grade="部活動"] {
  background: #6a1b9a;
}


/* 登録されていない学年 */

.tag.grade {
  background: #888;
}


/* ========================================
   種類タグ
======================================== */

.tag.type {
  background: #ef78c4;
}


/* ========================================
   場所タグ
======================================== */

.tag.place[data-building="中央棟"] {
  background: #65ADD3;
}

.tag.place[data-building="中学棟"] {
  background: #FF9ADF;
}

.tag.place[data-building="高校棟"] {
  background: #7EB57E;
}

.tag.place[data-building="ホール棟"] {
  background: #C294ED;
}

.tag.place[data-building="大体育館"] {
  background: #FFAF47;
}

.tag.place[data-building="中庭・外周"] {
  background: #E37777;
}


/* ========================================
   カード右側マーク
======================================== */

.card-mark {
  position: absolute;

  top: 50%;
  right: 8px;

  width: 34px;
  height: 42px;

  transform:
    translateY(-50%);
}

.card-mark::before,
.card-mark::after {
  content: "";

  position: absolute;

  display: block;

  width: 12px;
  height: 25px;

  background: #dfe7f2;

  clip-path:
    polygon(
      0 0,
      100% 50%,
      0 100%
    );
}

.card-mark::before {
  top: 7px;
  left: 1px;

  transform:
    rotate(-18deg);
}

.card-mark::after {
  right: 0;
  bottom: 4px;

  transform:
    rotate(12deg);

  background: #cdd8eb;
}


/* ========================================
   カテゴリーカラー
======================================== */

.category[data-category="food"] {
  --accent: #45aee8;
}

.category[data-category="sales"] {
  --accent: #7cbd7d;
}

.category[data-category="haunted"] {
  --accent: #164de5;
}

.category[data-category="exhibition"] {
  --accent: #f2d800;
}

.category[data-category="stage"] {
  --accent: #8735c6;
}

.category[data-category="game"] {
  --accent: #b2dc43;
}

.category[data-category="workshop"] {
  --accent: #ff9c00;
}

.category[data-category="club"] {
  --accent: #f052bf;
}

.category[data-category="gourmet"] {
  --accent: #a997d3;
}


/* ========================================
   検索結果なし
======================================== */

.no-results {
  margin:
    50px 0;

  text-align: center;

  font-size: 18px;

  color: #666;
}


/* ==================================================
   モーダル
================================================== */

.modal {
  position: fixed;

  z-index: 9999;

  inset: 0;
}


/* ========================================
   背景
======================================== */

.modal-overlay {
  position: absolute;

  inset: 0;

  background:
    rgba(0, 0, 0, .68);

  backdrop-filter:
    blur(3px);
}


/* ========================================
   モーダル本体
======================================== */

.modal-content {
  position: relative;

  z-index: 1;

  display: grid;

  grid-template-columns:
    minmax(220px, 38%)
    1fr;

  gap: 35px;

  width:
    min(90%, 900px);

  max-height:
    85vh;

  overflow-y: auto;

  margin:
    7vh auto
    0;

  padding:
    42px;

  border-radius: 16px;

  background: #fff;

  box-shadow:
    0 20px 60px
    rgba(0, 0, 0, .4);

  animation:
    modalOpen
    .25s ease;
}


/* ========================================
   モーダル情報
======================================== */

.modal-info {
  margin-bottom: 22px;
}


/* 見出し */

.modal-info h3 {
  margin:
    0
    0
    6px;

  font-size: 15px;

  font-weight: 900;

  color: #111;
}


/* 内容 */

.modal-info p {
  margin: 0;

  font-size: 17px;

  line-height: 1.6;

  color: #333;
}


/* ========================================
   モーダルアニメーション
======================================== */

@keyframes modalOpen {
  from {
    opacity: 0;

    transform:
      translateY(15px)
      scale(.97);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}


/* ========================================
   モーダルレイアウト
======================================== */

.modal-layout {
  display: flex;

  align-items: flex-start;

  gap: 30px;
}


/* ========================================
   ポスター部分
======================================== */

.modal-poster-area {
  display: flex;

  justify-content:
    flex-start;

  align-items:
    flex-start;

  background:
    transparent;

  padding: 0;

  margin: 0;
}

#modalPoster {
  display: block;

  width: 100%;

  max-width: 420px;

  height: auto;

  object-fit: contain;

  margin: 0;

  background:
    transparent;
}


/* ========================================
   ポスター未設定
======================================== */

#posterPlaceholder {
  display: none;

  align-items: center;

  justify-content: center;
}


/* ========================================
   右側詳細
======================================== */

.modal-details {
  min-width: 0;

  padding-top: 5px;
}


/* ========================================
   閉じる
======================================== */

.modal-close {
  position: absolute;

  z-index: 3;

  top: 12px;
  right: 15px;

  width: 38px;
  height: 38px;

  border: none;

  border-radius: 50%;

  background: #eee;

  color: #333;

  font-size: 25px;

  line-height: 1;

  cursor: pointer;
}

.modal-close:hover {
  background: #ddd;
}


/* ========================================
   モーダルカテゴリー
======================================== */

.modal-category {
  margin:
    0
    0
    8px;

  font-size: 14px;

  font-weight: 700;

  color: #777;
}


/* ========================================
   モーダルタイトル
======================================== */

.modal-title {
  min-width: 0;

  width: 100%;

  margin:
    0
    0
    25px;

  padding-bottom: 15px;

  border-bottom:
    3px solid
    #48aee7;

  font-size: 38px;

  line-height: 1.2;

  white-space: nowrap;

  overflow: hidden;
}


/* ========================================
   モーダルタグ
======================================== */

.modal-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 28px;
}

.modal-tags .tag {
  height: 26px;

  padding:
    0
    14px;

  font-size: 12px;
}


/* ========================================
   説明
======================================== */

.modal-description {
  padding-top: 22px;

  border-top:
    1px solid
    #ddd;
}

.modal-description p {
  margin: 0;

  font-size: 15px;

  line-height: 1.9;

  white-space: pre-line;
}


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

@media (max-width: 900px) {

  .page-frame {
    padding-left: 20px;

    padding-right: 22px;
  }


  .card {
    flex:
      0 0
      calc(
        (100% - var(--card-gap))
        / 2
      );
  }


  .modal-content {
    width: 90%;

    grid-template-columns:
      minmax(190px, 35%)
      1fr;

    gap: 25px;

    padding: 35px;
  }

}


/* ========================================
   スマホ
======================================== */

@media (max-width: 620px) {

  .page-frame {
    padding:
      30px
      15px
      60px;
  }


  .side-decoration {
    display: none;
  }


  .page-header {
    margin-bottom: 30px;
  }


  /* ========================================
     ページタイトル画像
  ======================================== */

  .page-title-image {
    width: 400px;

    max-width: 85%;
  }


  .search-box {
    padding: 14px;

    margin-bottom: 25px;
  }


  .category {
    margin-bottom: 30px;
  }


  .category-title {
    gap: 11px;

    margin-left: 0;

    margin-bottom: 10px;
  }


  .category-title::before {
    width: 9px;

    height: 31px;
  }


  /* 1列 */

  .card {
    flex:
      0 0 100%;

    width: 100%;

    min-height: 100px;
  }


  .track {
    gap: 12px;
  }


  /* ========================================
     縦画面では左側装飾を非表示
  ======================================== */

  .side-decoration {
    display: none;
  }


  /* =========================
     スマホ モーダル
  ========================= */

  .modal-content {
    display: block;

    width: 92%;

    max-height: 88vh;

    margin:
      6vh auto
      0;

    padding:
      35px
      20px
      25px;
  }


  .modal-poster {
    width: 70%;

    max-width: 280px;

    margin:
      0
      auto
      25px;
  }


  .modal-details {
    padding-top: 0;
  }


  .modal-title {

    /*
       JavaScript側で
       実際の横幅に合わせて
       自動的に縮小するため、
       固定の27px指定はしない
    */

    width: 100%;

    white-space: nowrap;

    overflow: hidden;
  }

}


/* ========================================
   動きを減らす設定
======================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


  .card {
    transition: none;
  }


  .modal-content {
    animation: none;
  }

}


/* ========================================
   基本リセット
======================================== */

* {
  margin: 0;
  padding: 0;

  box-sizing: border-box;
}

html,
body {
  width: 100%;

  margin: 0;
  padding: 0;

  overflow-x: hidden;
}

body {
  background: #ffffff;
}

img {
  display: block;

  max-width: 100%;
}

a {
  color: inherit;

  text-decoration: none;
}


/* ========================================
   縦画面では左側の装飾を非表示
======================================== */

@media (orientation: portrait) {

  .side-decoration {
    display: none;
  }

}


/* ========================================
   縦画面・小型画面では左側装飾を非表示
======================================== */

@media screen and (max-width: 900px) and (orientation: portrait) {

  .side-decoration {
    display: none;
  }

}


/* ========================================
   縦画面では左側装飾を非表示
======================================== */

@media screen and (orientation: portrait) {

  .side-decoration {
    display: none;
  }

}


/* ========================================
   1450px以下で左側装飾を非表示
======================================== */

@media screen and (max-width: 1450px) {

  .side-decoration {
    display: none;
  }

}

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

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