@charset "UTF-8";
/*
  新ヘッダー / フッター用 コンポーネントCSS
  ※元の header.css にあった全体リセット( * {} )と body{} のグローバル指定は
    既存サイトのレイアウト崩れを避けるため除外し、各コンポーネントにスコープしています。
*/

/* フォントはヘッダー/フッター/モーダルにのみ適用 */
#header,
.hero-bg,
.site-footer,
.copyright-bar,
.sns-float,
.menu-modal-overlay {
  font-family: 'BIZ UDGothic', sans-serif;
  box-sizing: border-box;
}

#header *,
.hero-bg *,
.site-footer *,
.sns-float *,
.menu-modal-overlay * {
  box-sizing: border-box;
}

/* 固定ヘッダー分の余白（コンテンツが隠れないように） */
body.l-body {
  padding-top: 90px;
}

/* ヒーロー表示ページは hero-bg の margin-top で余白を取るため padding は無し */
body.l-body.has-hero {
  padding-top: 0;
}

/* ========== 表示切替ヘルパー ========== */
.hf-pc-only { display: flex; }
.hf-sp-only { display: none !important; }

/* ========== HEADER ========== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 90px;
  padding: 0 0 0 90px;
  max-width: 100%;
  margin: 0;
}

/* ロゴブロック */
.header-logo {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  text-decoration: none;
}

.header-logo img.logo {
  height: 64px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo-text img.catch {
  height: 16px;
  width: auto;
}

.period-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 25px;
  min-width: 220px;
}

.period-wrap img.period-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.period-text {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 10px 0 8px;
  line-height: 25px;
  letter-spacing: 0.02em;
}

/* ナビゲーション */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  padding-right: 20px;
}

.header-nav a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #333;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  padding: 0 8px;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: #ff6fa2;
}

.nav-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #ff6fa2;
  flex-shrink: 0;
}

.header-nav .nav-arrow {
  border-left-color: #ff0069;
}

/* 文字サイズ */
.header-fontsize {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding-right: 10px;
}

.header-fontsize img.mojisize-label {
  height: 12px;
  width: auto;
}

.header-fontsize .mojisize-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  line-height: 0;
  transition: opacity 0.2s;
}

.header-fontsize .mojisize-btn:hover {
  opacity: 0.8;
}

.header-fontsize .mojisize-btn svg {
  display: block;
}

/* ボタンサイズ（小＜中＜大） */
.header-fontsize .mojisize-small svg { width: 25px; height: 25px; }
.header-fontsize .mojisize-medium svg { width: 29px; height: 29px; }
.header-fontsize .mojisize-big svg { width: 33px; height: 33px; }

/* 円の色（通常は青、選択中はピンク） */
.header-fontsize .mojisize-btn .mj-bg { fill: #4db6e5; transition: fill 0.2s; }
.header-fontsize .mojisize-btn.is-active .mj-bg { fill: #ff6fa2; }

/* 文字 */
.header-fontsize .mojisize-btn .mj-ch {
  fill: #ffffff;
  font-weight: 700;
  font-size: 20px;
  font-family: 'Noto Sans JP', 'BIZ UDGothic', sans-serif;
}

/* PC メニューボタン */
.header-menu-btn {
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.2s;
  display: block;
  height: 90px;
  width: 90px;
}

.header-menu-btn:hover {
  opacity: 0.85;
}

.header-menu-btn img {
  width: 90px;
  height: 90px;
  display: block;
}

/* ========== SP: 期間バー ========== */
.header-sp-period {
  width: 100%;
}

.header-sp-period .period-wrap {
  width: max-content;
  min-width: unset;
  height: 20px;
}

.header-sp-period .period-text {
  font-size: 13px;
  line-height: 34px;
  padding: 0 14px;
}

/* SP メニューボタン */
.header-menu-btn-sp {
  margin-left: auto;
  flex-shrink: 0;
  cursor: pointer;
  display: block;
  transition: opacity 0.2s;
}

.header-menu-btn-sp:hover {
  opacity: 0.85;
}

.header-menu-btn-sp img {
  display: block;
  height: 100%;
  width: auto;
}

/* ========== HERO BG ========== */
.hero-bg {
  position: relative;
  margin-top: 100px;
  width: 100%;
  height: 315px;
  overflow: hidden;
  line-height: 0;
}

.hero-bg img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== ページタイトル ========== */
.page-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1.2;
}

.page-title-en {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 60px;
  font-weight: 700;
  color: #ff6fa2;
  letter-spacing: 0.05em;
}

.page-title-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.3em;
  margin-top: 4px;
}

/* ===== heroと直後コンテンツの間隔をほぼゼロに ===== */
body.l-body.has-hero main.main-content,
body.l-body.has-hero main.l-main {
  padding-top: 0 !important;
}

body.l-body.has-hero main.main-content > *:first-child,
body.l-body.has-hero main.l-main > *:first-child {
  margin-top: 0 !important;
}

/* マイページ専用の上余白調整(l-spacer + mw-wrapの負マージンを相殺) */
body.l-body.has-hero .l-spacer-secondary { margin-top: 0 !important; }
body.l-body.has-hero .mw-wrap { margin-top: 0 !important; }

/* PC: SP用ヒーロー画像を非表示 */
.hero-bg .hero-sp { display: none; }
.hero-bg .hero-pc { display: block; }

/* ========== FOOTER ========== */
.site-footer {
  width: 100%;
  background: #fff;
}

.footer-inner {
  max-width: 1302px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 16px 50px;
}

.footer-logo img {
  width: 160px;
  height: auto;
  margin-bottom: 40px;
}

.footer-mypage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff6fa2;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  border-radius: 30px;
  padding: 14px 60px;
  margin-bottom: 50px;
  transition: opacity 0.2s;
}

.footer-mypage-btn:hover {
  opacity: 0.85;
}

.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #333;
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  white-space: nowrap;
  padding: 0 16px;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #ff6fa2;
}

.copyright-bar {
  width: 100%;
  background: #ff6fa2;
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 14px 0;
}

/* ========== フローティングSNSボタン ========== */
.sns-float .sns-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.sns-float .sns-btn:hover { opacity: .85; }

.sns-float {
  display: flex;
  position: fixed;
  right: 0;
  top: 65%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 9px;
  z-index: 200;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 22px;
  padding: 10px 7px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

/* ========== メニューモーダル ========== */
.menu-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.menu-modal-overlay.active {
  display: flex;
}

.menu-modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 50px 40px;
  width: 100%;
  max-width: 960px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.menu-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  transition: opacity 0.2s;
}

.menu-modal-close:hover {
  opacity: 0.6;
}

/* ---------- モーダル内：SPメニュー ---------- */
.menu-modal-nav {
  margin-bottom: 30px;
}

.menu-modal-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.menu-modal-nav a:last-child {
  border-bottom: none;
}

.menu-modal-nav a:hover {
  color: #ff6fa2;
}

/* ---------- モーダル内：検索エリア ---------- */
.search-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.search-left { width: 600px; max-width: 100%; flex: 1 1 600px; }
.search-right { width: 328px; max-width: 100%; flex: 1 1 280px; }

.field-label {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.field-group { margin-bottom: 24px; }

.date-range { display: flex; align-items: center; gap: 10px; }

.date-input {
  position: relative;
  flex: 1;
  height: 52px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.date-input input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
  color: #333333;
  font-family: inherit;
  background: transparent;
}

.date-input img { display: none; }

.tilde { color: #b3b3b3; font-size: 16px; }

.keyword-input {
  width: 100%;
  height: 52px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  padding: 0 18px;
  font-size: 16px;
  color: #333333;
  font-family: inherit;
  outline: none;
}
.keyword-input::placeholder { color: #b3b3b3; }

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 330px;
  height: 54px;
  margin: 30px auto 0;
  background: #ff6fa2;
  border: none;
  border-radius: 30px;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  font-family: inherit;
  cursor: pointer;
}

.search-btn img { width: 27px; height: 27px; }

.search-btn {
  transition: background-color .2s ease, box-shadow .2s ease;
}
.search-btn:hover {
  background: #ff5c95;
  box-shadow: 0 4px 12px rgba(255, 92, 149, .35);
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.genre-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  margin: 0 auto;
}

.genre-btn {
  display: block;
  width: 100%;
  text-decoration: none;
  transition: opacity .2s ease;
}
.genre-btn:hover {
  opacity: .75;
}

/* ========== SP レスポンシブ (〜768px) ========== */
@media (max-width: 1260px) {
  .hf-pc-only { display: none !important; }
  .hf-sp-only { display: block !important; }
  .header-sp-period { display: block !important; }

  body.l-body {
    padding-top: 95px;
  }

  body.l-body.has-hero {
    padding-top: 0;
  }

  /* ヘッダー行：グリッドレイアウト */
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    height: auto;
    padding: 0 0 0 12px;
    max-width: 100%;
  }

  /* ロゴ：1列1行 */
  .header-logo {
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    gap: 8px;
    height: auto;
    padding: 8px 0 4px;
  }

  .header-logo img.logo {
    display: none !important;
  }

  .header-logo img.logo-sp {
    display: block !important;
    width: 120px;
    height: auto;
  }

  /* SP キャッチ */
  img.catch-sp {
    display: block;
    width: 96px;
    height: auto;
  }

  /* 期間バー：1列2行 */
  .header-sp-period {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    padding-bottom: 8px;
    margin-top: 2px;
  }

  /* SP メニューボタン：2列・両行にまたがる */
  .header-menu-btn-sp {
    grid-column: 2;
    grid-row: 1 / 3;
    height: auto;
    width: auto;
    align-self: stretch;
    display: flex !important;
    align-items: stretch;
  }

  .header-menu-btn-sp img {
    width: 63px;
    height: auto;
    align-self: flex-start;
  }

  .sns-float {
    top: 78%;
    transform: translateY(-50%);
  }

  .sns-float .sns-btn img {
    width: 30px;
    height: 30px;
  }

  /* モーダル */
  .menu-modal {
    padding: 40px 24px;
  }

  .search-section {
    gap: 32px;
  }

  .search-left,
  .search-right {
    flex-basis: 100%;
  }
}

/* ===== タブレット（769〜1260px）：SPメニュー時も文字サイズ［大小］を表示 ===== */
@media (min-width: 769px) and (max-width: 1260px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
  }
  .header-fontsize {
    display: flex !important;
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    padding-right: 14px;
  }
  .header-menu-btn-sp {
    grid-column: 3;
  }
}

/* ===== ヒーロー・フッターは768px以下のみSP表示（769〜1260pxはPC表示） ===== */
@media (max-width: 768px) {
  /* 文字サイズは768px以下では非表示 */
  .header-fontsize {
    display: none !important;
  }

  /* フッター */
  .footer-inner {
    padding: 40px 16px 30px;
  }

  .footer-logo img {
    width: 120px;
    margin-bottom: 30px;
  }

  .footer-mypage-btn {
    font-size: 15px;
    padding: 12px 48px;
    margin-bottom: 30px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }

  .footer-nav a {
    padding: 0;
    font-size: 15px;
  }

  .copyright-bar {
    font-size: 9px;
    line-height: 14px;
  }

  /* ヒーロー：SP用画像・margin調整 */
  .hero-bg {
    margin-top: 95px;
    height: auto;
  }

  .hero-bg .hero-pc { display: none; }
  .hero-bg .hero-sp { display: block; }

  /* SP: ページタイトル */
  .page-title {
    top: 20px;
    transform: translate(-50%, 0);
  }

  .page-title-en {
    font-size: 30px;
  }

  .page-title-ja {
    font-size: 13px;
  }
}
