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

* {
  box-sizing: border-box;
}

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}

html {
  overflow-x: hidden;
}

body {
  line-height: 1;
  overflow-x: hidden;
  background: #fff;
}

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

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

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

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

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

/* ========================================
   委員長・部門挨拶 全体
======================================== */

.greeting-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

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

.greeting-title-image {
  position: relative;
  z-index: 3;

  width: 600px;
  max-width: 80%;

  /* 上・左右・下 */
  margin: 80px auto 50px;
}

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

  width: 100%;
  height: auto;
}
/* ========================================
   背景装飾
======================================== */

/* decoration-1 */

.greeting-blue-decoration {
  position: absolute;
  top: 200px;
  left: 0;
  width: 45%;
  height: auto;
  z-index: 0;
  pointer-events: none;
}


/* decoration-2 */

.greeting-background-2 {
  position: absolute;
  top: 980px;
  left: 60%;
  transform: translateX(-50%);
  width: 60%;
  height: auto;
  z-index: 0;
  pointer-events: none;
}


/* decoration-3 */

.greeting-background-3 {
  position: absolute;
  top: 400px;
  right: 0;
  width: 45%;
  height: auto;
  z-index: 0;
  pointer-events: none;
}


/* ========================================
   委員長エリア
======================================== */

.chairman-area {
  position: relative;
  width: 100%;
  z-index: 2;
  padding-top: 100px;
}


/* ========================================
   委員長タイトル
======================================== */

.chairman-title {
  position: relative;
  z-index: 3;

  margin-left: 0;
  margin-bottom: clamp(15px, 2vw, 30px);

  text-align: center;

  font-family:
    Arial,
    "Noto Sans JP",
    sans-serif;

  font-size: clamp(30px, 3vw, 80px);
  font-weight: 800;
}


/* ========================================
   委員長コンテンツ
======================================== */

.chairman-content {
  position: relative;
  z-index: 2;

  margin-top: 40px;
  padding: 0 50px;
}


/* ========================================
   委員長動画
======================================== */

.chairman-video {
  position: relative;
  z-index: 3;

  width: 100%;

  text-align: center;
}

.chairman-video video {
  display: inline-block;

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

  margin: 0 auto;
}


/* ========================================
   委員長 → 部門挨拶
======================================== */

.chairman-department-space {
  position: relative;
  z-index: 1;

  width: 100%;
  height: 250px;
}


/* ========================================
   部門挨拶エリア
======================================== */

.department-area {
  position: relative;
  z-index: 2;

  width: 70%;
  margin: 0 auto;
}


/* ========================================
   部門挨拶タイトル
======================================== */

.department-heading {
  position: relative;
  z-index: 3;

  margin-bottom: clamp(30px, 4vw, 60px);

  font-family:
    Arial,
    "Noto Sans JP",
    sans-serif;

  font-size: clamp(30px, 3vw, 80px);
  font-weight: 800;
}


/* ========================================
   部門1つ分
======================================== */

.department-item {
  position: relative;
  z-index: 2;

  display: flex;

  align-items: flex-start;

  width: 100%;
  min-height: 230px;

  margin-bottom: 70px;

  gap: 50px;
}


/* ========================================
   部門の左右配置

   HTMLの順番をそのまま使用

   left：
   写真 → 文章

   right：
   文章 → 写真
======================================== */

.department-item-left {
  flex-direction: row;
}

.department-item-right {
  flex-direction: row;
}


/* ========================================
   部門画像
======================================== */

.department-image {
  flex: 0 0 30%;
  overflow: visible;
}

.department-image img {
  display: block;

  position: relative;

  width: 80%;
  height: auto;

  object-fit: contain;
}


/* ========================================
   部門文章
======================================== */

.department-text {
  flex: 1;

  padding-top: 0;
}


/* ========================================
   部門タイトル
======================================== */

.department-text h3 {
  position: relative;
  z-index: 3;

  margin-bottom: clamp(15px, 2vw, 30px);

  font-family:
    Arial,
    "Noto Sans JP",
    sans-serif;

  font-size: clamp(30px, 3vw, 80px);
  font-weight: 800;
}


/* ========================================
   部門文章
======================================== */

.department-text p {
  margin: 0;

  font-size: clamp(13px, 1.2vw, 17px);

  line-height: 1.9;
}


/* ========================================
   最後の部門
======================================== */

.department-item:last-child {
  margin-bottom: 150px;
}

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

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


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

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

  /* ========================================
   ページタイトル画像
   スマートフォン
======================================== */

.greeting-title-image {
  width: 400px;
  max-width: 85%;

  margin: 50px auto 35px;
}


  /* ========================================
     decoration-1

     スマホでは縮小
  ======================================== */

  .greeting-blue-decoration {
    top: 2%;
    left: 0;

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

    height: auto;
  }


  /* ========================================
     decoration-2

     縮小しない
  ======================================== */

  .greeting-background-2 {
    top: 750px;

    left: 50%;

    transform: translateX(-50%);

    width: 600px;

    max-width: none;

    height: auto;
  }


  /* ========================================
     decoration-3
  ======================================== */

  .greeting-background-3 {
    top: 500px;

    right: 0;

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

    height: auto;
  }


  /* ========================================
     委員長エリア
  ======================================== */

  .chairman-area {
    padding-top: 80px;
  }


  /* ========================================
     委員長タイトル
  ======================================== */

  .chairman-title {
    text-align: center;

    font-size: 32px;

    margin-bottom: 20px;
  }


  /* ========================================
     委員長コンテンツ
  ======================================== */

  .chairman-content {
    margin-top: 25px;

    padding: 0 15px;
  }


  /* ========================================
     上部装飾
  ======================================== */

  .greeting-decoration-top {
    width: 100%;

    margin-bottom: 20px;
  }


  /* ========================================
     委員長動画

     スマホ：画面幅の70%
  ======================================== */

  .chairman-video {
    width: 100%;

    text-align: center;
  }

  .chairman-video video {
    display: block;

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

    height: auto;

    margin: 0 auto;
  }


  /* ========================================
     委員長 → 部門挨拶
  ======================================== */

  .chairman-department-space {
    height: 180px;
  }


  /* ========================================
     部門挨拶エリア
  ======================================== */

  .department-area {
    width: 88%;

    margin: 0 auto;
  }


  /* ========================================
     部門挨拶タイトル
  ======================================== */

  .department-heading {
    margin-bottom: 40px;

    font-size: 32px;

    text-align: center;
  }


  /* ========================================
     部門

     HTMLの順番をそのまま使用
  ======================================== */

  .department-item {
    display: flex;

    align-items: flex-start;

    width: 100%;

    gap: 15px;

    margin-bottom: 60px;

    min-height: auto;
  }


  /* 写真 → 文章 */

  .department-item-left {
    flex-direction: row;
  }


  /* 文章 → 写真 */

  .department-item-right {
    flex-direction: row;
  }


  /* ========================================
     部門画像
  ======================================== */

  .department-image {
    flex: 0 0 34%;

    width: auto;

    overflow: visible;

    order: initial;
  }

  .department-image img {
    display: block;

    width: 100%;

    height: auto;

    aspect-ratio: auto;

    object-fit: contain;
  }


  /* ========================================
     部門文章
  ======================================== */

  .department-text {
    flex: 1;

    width: auto;

    padding-top: 0;

    order: initial;
  }


  /* ========================================
     部門タイトル
  ======================================== */

  .department-text h3 {
    margin-bottom: 10px;

    font-size: 22px;

    line-height: 1.2;
  }


  /* ========================================
     部門文章
  ======================================== */

  .department-text p {
    margin: 0;

    font-size: 13px;

    line-height: 1.7;
  }


  /* ========================================
     最後の部門
  ======================================== */

  .department-item:last-child {
    margin-bottom: 150px;
  }


  
}


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

  /* 左上の青い装飾 */
  .greeting-blue-decoration {
    width: 35%;
    top: 5%;
    left: -2%;
  }

  /* 中央〜下側の装飾 */
  .greeting-background-2 {
    width: 480px;
    top: 720px;
    left: 50%;
    transform: translateX(-50%);
  }

  /* 右側の装飾 */
  .greeting-background-3 {
    width: 35%;
    top: 430px;
    right: -2%;
  }

}
