@charset "utf-8";

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

ul,
ol {
  list-style: none;
}

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

a:hover {
  opacity: 0.7;
}

body {
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-size: 18px;
  color: #333;
  line-height: 1.8;
  background-color: #fff;
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
}

img {
  max-width: 100%;
}

/* ヘッダーここから */
/* <header class="header"> を画面上部に固定 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background-color: #fff;
  z-index: 1000;
  display: flex;
  align-items: center;
  /* 縦方向：中央寄せ */
}

/* 本文をヘッダーの下から開始させる */
.page-content {
  margin-top: 120px;
  padding: 0 20px;
}

/* ─── ヘッダー内を左右に振り分ける ─── */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* 縦方向：中央寄せ */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ロゴは自動サイズ */
.header-logo {
  flex: 0 1 auto;
  /* 幅固定（画像の幅） */
}

/* コントロールも自動サイズ */
.header-controls {
  flex: 0 0 auto;
  /* 幅は中身のサイズに */
  display: flex;
  gap: 40px;
}

/* ロゴ画像はそのままの大きさで */
.header-logo img {
  display: block;
  height: 60px;
  width: auto;
}

/* アイコン類はそのまま表示 */
.header-instagram img {
  display: block;
  width: auto;
  height: 40px;
}

.toggle-menu-button {
  display: block;
  width: 40px;
  height: 40px;
  background: url("../images/common/icon-menu.svg") no-repeat center;
  background-size: contain;
  border: none;
  cursor: pointer;
}

/* ─── ハンバーガーメニューなかみ ─── */
.Menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  background: #fff;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 1;
  visibility: visible;
}

.Menu.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ─── ハンバーガーメニュー内「閉じる」 ─── */
.Menu-CloseBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  padding: 6px 8px;
  letter-spacing: 0.05em;
  font-family: inherit;
  /* ← 共通フォントを継承 */
  transition: opacity 0.2s;
}

.Menu-CloseBtn:hover,
.Menu-CloseBtn:focus {
  opacity: 0.7;
}

/* ─── メニューリスト ─── */
.Menu-Group {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 12px;
}

.Menu-Group-Item {
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.Menu-Group-Item-Link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.8em 1em;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, background-color 0.2s;
}

.Menu-Group-Item-Link:hover,
.Menu-Group-Item-Link:focus {
  opacity: 0.7;
  background-color: #f7f7f7;
  border-radius: 4px;
}

.Menu-Notice {
  max-width: 768px;
  margin-top: 54px;
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  text-align: left;
  letter-spacing: 0.05em;
  font-family: inherit;
  /* 共通フォント継承 */
  text-align: left;
  padding: 0 20px;
  display: block;
  margin: 0 auto;
}

.Menu-Notice .caution {
  display: block;
  text-align: center;
  line-height: 1.8;
  margin: 0 auto;
}


/* レスポンシブモード */
@media (max-width: 768px) {
  .page-content {
    margin-top: 110px;
    padding: 0 20px;
  }

  .header {
    height: 110px;
  }

  .header-inner {
    padding: 0 20px;
  }

  .header-logo {
    margin-right: 35px;
  }

  .header-controls {
    gap: 35px;
  }

  .header-instagram img {
    height: 35px;
  }

  .toggle-menu-button {
    width: 35px;
    height: 35px;

  }
}

@media (max-width: 480px) {
  .header {
    height: 80px;
  }

  .page-content {
    margin-top: 80px;
    padding: 0 15px;
  }

  .header-inner {
    padding: 0 15px;
  }

  .header-logo {
    margin-right: 30px;
  }

  .header-controls {
    gap: 20px;
  }

  .header-instagram img {
    height: 30px;
  }

  .toggle-menu-button {
    width: 30px;
    height: 30px;

  }
}

/* ─── フッターここから ─── */
.footer {
  color: #333333;
  background-color: #ffffff;
  max-width: 1200px;
  /* ← 追加 */
  margin: 0 auto;
  /* ← 追加（左右中央寄せ） */
  padding: 0 30px 20px;
  /* ← 既存の padding をそのまま */
  text-align: center;
}


/* ─── フッターロゴ ─── */

.footer-logo {
  display: block;
  width: 600px;
  height: auto;
  margin: 0 auto;
  margin-top: 224px;
  /* 最上部との余白 */
}

.footer-logo img {
  display: block;
  height: auto;
}

.footer-related-sites {
  margin-top: 140px;
  /* ロゴとの間の余白 */
}

.footer-related-sites ul {
  display: flex;
  justify-content: center;
  /* 横並びを中央揃え */
  gap: 28px;
  /* リンク間のスペース */
  list-style: none;
  margin: 0;
  /* 念のためリセット */
  padding: 0;
  /* 念のためリセット */
}

.footer-related-sites,
.footer-related-sites a {
  position: relative;
  display: inline-block;
  color: #333;
  font-weight: 300;
  font-size: 14px;
  text-decoration: none;
  padding-bottom: 2px;
  /* 下線用スペース */
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  transition: border-color 0.2s, opacity 0.2s;
}

.footer-related-sites a:hover {
  border-bottom-color: #707f89;
  opacity: 0.7;
}

.footer-related-sites a::after {
  content: "↗";
  /* 外部リンクを示す矢印 */
  font-size: 12px;
  margin-left: 4px;
  vertical-align: baseline;
}


/* ニュース本文リンク：フッターと数値を揃える */
.news-item__body a {
  display: inline;

text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #fff;
  /* 初期は薄グレー */
  text-underline-position: under;
  /* ← 和文で下側に配置 */
  text-underline-offset: 0.30em;
  /* ← 距離を十分にとる（0.35〜0.45emで好みに調整） */
  text-decoration-skip-ink: none;
  /* 下ぶり字で線が欠けないように */
}

.news-item__body a:hover {
  text-decoration-color: #707f89;
  /* ホバー色を合わせる */
  opacity: .7;
}

.news-item__body a::after {
  content: "↗";
  /* 外部リンク矢印 */
  font-size: 16px;
  vertical-align: baseline;
}

/* デスクトップでは改行タグを消す */
.mobile-only {
  display: none;
}

/* 著作権表示 */
.copyright {
  font-size: 12px;
  font-weight: 400;
  margin-top: 30px;
  /* 関連リンクとの間の余白 */
}

@media (max-width: 768px) {
  .footer {
    padding: 0 20px 15px;
  }

  .footer-logo {
    margin-top: 186px;
    width: 90%;
  }

  .footer-related-sites {
    margin-top: 120px;
  }

  .mobile-only {
    display: block;
  }

  .footer-related-sites ul {
    display: block;
    text-align: center;
    padding: 0;
    margin: 0 auto;
  }

  .footer-related-sites li {
    display: block;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-logo {
    margin-top: 116px;
    width: 90%;
  }

  .footer-related-sites {
    margin-top: 100px;
  }
}