/* Google Fontsのインポート */
@import url("https://fonts.googleapis.com/css2?family=Kaisei+Opti:wght@400;700&display=swap");

/* 基本設定 */
body {
  background-color: whitesmoke;
  background-size: 150px 150px;
  padding-top: 120px;
  margin: 0;
  font-family: "Kaisei Opti", Arial, sans-serif;
  text-align: center;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ヘッダー表示制御 */
.header-mobile,
.header-desktop {
  display: none;
}

@media screen and (max-width: 768px) {
  .header-mobile {
    display: block;
  }
}

@media screen and (min-width: 769px) {
  .header-desktop {
    display: block;
  }
}

/* ヘッダー共通スタイル */
header {
  display: flex;
  align-items: center;
  padding-top: 1rem;
  background-color: #fff4eb;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo .emblem {
  width: 100px;
  height: auto;
}

.header-logo .header-title {
  font-size: 1.5rem;
  color: #000;
  margin-left: 10px;
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  white-space: nowrap;
}

/* ナビゲーション */
.header-nav {
  display: flex;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-right: 40px;
  padding: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: #444;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.nav-menu li a:hover {
  color: #e09494;
}

/* ハンバーガーメニュー */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #e09494;
  position: absolute;
  right: 5%;
  top: 0;
  font-size: 5rem;
  padding-inline: 1px;
}

.menu-button {
  margin-right: 20px;
  width: 50px;
}

.menu-button.small {
  width: 50px;
  height: 50px;
}

.hamburger-menu {
  display: flex;
  position: fixed;
  top: -100%;
  width: 100%;
  height: 65%;
  background-color: #fff4eb;
  color: #444;
  z-index: 10;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
  transition: top 0.5s ease, visibility 0.5s ease, opacity 0.5s ease;
  visibility: hidden;
  opacity: 0;
}

.hamburger-menu.active {
  top: 0;
  visibility: visible;
  opacity: 0.95;
  height: 600px;
}

.hamburger-menu.closing {
  top: -100%;
  visibility: hidden;
  opacity: 0;
}

.hamburger-menu nav ul {
  list-style: none;
  text-align: center;
  padding: 0;
}

.hamburger-menu nav ul li {
  margin: 1rem 0;
}

.hamburger-menu nav ul li a {
  text-decoration: none;
  color: #e09494;
  font-weight: bold;
  font-size: 1.8rem;
  transition: color 0.3s ease;
}

.hamburger-menu nav ul li a:hover {
  color: #c7644b;
}

.close-menu {
  position: absolute;
  background: none;
  border: none;
  font-size: 2rem;
  color: #e09494;
  cursor: pointer;
  bottom: 10px;
}

.disable {
  pointer-events: none;
  opacity: 0.5;
}

footer {
  position: relative;
  bottom: 0;
  width: 100%;
  background-color: white;
}

.footer_upper {
  position: relative;
  background-color: #239ca0;
  color: white;
  font-size: 1.2em;
  max-width: 100%;
  padding: 1rem 0;
}

.footer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 300px;
  overflow: hidden;
  background: whitesmoke;
}

.left {
  left: -50%;
}

.social-icons {
  display: flex;
  justify-content: center; /* 中央寄せ */
  flex-wrap: wrap; /* はみ出し防止 */
  gap: 12px; /* アイコン間の余白 */
  margin-top: 16px;
}

.social-icons img {
  width: 32px; /* アイコンサイズ調整（適宜変更可） */
  height: 32px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.social-icons a:hover img {
  transform: scale(1.1); /* ホバーで少し拡大（お好みで） */
}

/* 背景画像つきの装飾（オプション） */
.footer-visual {
  height: 250px;
  background-image: url(../../img/footer/footer.png);
  background-size: contain;
  background-repeat: no-repeat;
}

/* 下部のカラー帯（コピーライト等） */
.footer_lower {
  background-color: #465daa;
  color: white;
  padding: 1rem 0;
  font-size: 1.2em;
}

.footer_lower a {
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap; /* テキストの折り返しを防ぐ */
}

.policy-link {
  margin-left: 20px;
  color: #ffffff;
  gap: 10px;
}

.social-icons a {
  margin: 0 1rem;
  text-decoration: none;
}

.social-icons img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-copyright a {
  color: #ffffff;
  text-decoration: none;
}

/* フッターメニューのスタイル */
.footer-nav {
  text-align: center;
  margin-bottom: 40px;
  margin-top: 40px;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2rem; /* メニュー間の間隔 */
}

.footer-menu li {
  display: inline;
}

.footer-menu li a {
  display: block;
  text-decoration: none;
  color: #ffffff; /* フッターの文字色に合わせる */
  padding: 10px;
  font-weight: bold;
  font-size: 1.5rem;
  transition: color 0.3s ease;
  position: relative; /* 下線のために相対位置を指定 */
}

.footer-menu li a::after {
  content: "";
  position: absolute;
  bottom: 0; /* 一時的に位置を調整 */
  left: 0;
  width: 100%; /* 常に下線を表示 */
  height: 2px;
  background-color: #ffffff; /* デバッグ用に目立つ色を指定 */
}

.footer-menu li a:hover {
  color: #c7644b; /* ホバー時の色変更 */
}

.footer-wave.double {
  display: flex;
  width: 100%;
  overflow: hidden;
  margin-bottom: -1px; /* 隙間を埋めるための調整 */
}

.wave {
  width: 60vw;
  height: 60px;
}

.flipped {
  transform: scaleX(-1);
}

/* スマホ (最大767px) */
@media (max-width: 767px) {
  .footer-menu {
    flex-direction: column; /* メニューを縦並びに */
    gap: 1rem; /* メニュー間の間隔を狭く */
  }

  .footer-menu li a {
    font-size: 1.2rem; /* フォントサイズを小さく */
  }

  .footer-menu li a::after {
    width: 50%; /* 常に下線を表示 */
    left: 25%; /* 中央に配置 */
  }
}

/* タブレット (768px～991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .footer-menu {
    gap: 1.5rem; /* メニュー間の間隔を調整 */
  }

  .footer-menu li a {
    font-size: 1.3rem; /* フォントサイズを中間に */
  }
}

/* PC (992px以上) */
@media (min-width: 992px) {
  .footer-menu {
    gap: 5rem; /* メニュー間の間隔を広く */
  }

  .footer-menu li a {
    font-size: 1.5rem; /* フォントサイズを大きく */
  }
}

/* スマホ (最大767px) */
@media (max-width: 767px) {
  body {
    padding-top: 95px; /* ヘッダーの高さを調整 */
  }

  .header-logo .header-title {
    font-size: 1.2rem; /* フォントサイズを小さく */
    left: 50px; /* 位置を調整 */
  }

  .nav-menu {
    gap: 1rem; /* メニュー間の間隔を狭く */
    margin-right: 20px;
  }

  .footer {
    height: 200px; /* フッターの高さを調整 */
  }

  .social-icons img {
    width: 40px; /* アイコンを小さく */
    height: 40px;
  }
}

/* タブレット (768px～991px) */
@media (min-width: 768px) and (max-width: 991px) {
  body {
    padding-top: 95px; /* ヘッダーの高さを調整 */
  }

  .header-logo .header-title {
    font-size: 1.4rem; /* フォントサイズを中間に */
    left: 55px; /* 位置を調整 */
  }

  .nav-menu {
    gap: 1.5rem; /* メニュー間の間隔を調整 */
    margin-right: 30px;
  }

  .footer {
    height: 250px; /* フッターの高さを調整 */
  }

  .social-icons img {
    width: 45px; /* アイコンを中間サイズに */
    height: 45px;
  }
}

/* PC (992px以上) */
@media (min-width: 992px) {
  body {
    padding-top: 95px; /* ヘッダーの高さを維持 */
  }

  .header-logo .header-title {
    font-size: 1.5rem; /* フォントサイズを大きく */
    left: 60px; /* 位置を調整 */
  }

  .nav-menu {
    gap: 2rem; /* メニュー間の間隔を広く */
    margin-right: 40px;
  }

  .footer {
    height: 300px; /* フッターの高さを維持 */
  }

  .social-icons img {
    width: 50px; /* アイコンを大きく */
    height: 50px;
  }
}
