*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  font-family: "Noto Sans JP", sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.pc-br {
  display: inline;
}

@media (max-width: 768px) {
  .pc-br {
    display: none;
  }

  .sp-br {
    display: inline;
  }
}

/* デフォルト：非表示（JSで is-visible になったら表示） */
.cta-float {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;

  padding: 10px 12px;

  background-image:
    url("img/sp/sp_gradation-left.png"), url("img/sp/sp_gradation-right.png");

  background-position:
    left center,
    right center;

  background-repeat: no-repeat, no-repeat;

  background-size:
    50% auto,
    50% auto;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.25s;
}

.cta-float.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 中身（画像） */
.cta-float__inner {
  display: block;
  max-width: 800px;
  /* サイト幅に合わせて調整 */
  margin: 0 auto;
}

.cta-float img {
  display: block;
  width: 320px;
  height: auto;
  margin: 0 auto;
}

/* PCではSP追従バナーを出さない */
@media (min-width: 768px) {
  .cta-float--sp {
    display: none;
  }
}

/* SPだけ：下の安全余白（iPhoneのホームバー対策） */
@media (max-width: 767px) {
  .cta-float {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

.wrap {
  max-width: 960px;
  margin: auto;
  border-left: 10px solid #244a96;
  border-right: 10px solid #244a96;
  position: relative;
}

@media screen and (max-width: 767px) {
  .wrap {
    width: 100%;
    max-width: 100%;
    border-left: none;
    border-right: none;
  }
}

.wrapper {
  margin: 0 auto;
}

h1 {
  font-size: 32px;
  margin-bottom: 40px;
}

h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

p {
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

/* =========================
   FV
========================= */

.fv {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.fv-layer {
  position: absolute;
  inset: 0;
}

.movie {
  z-index: 1;
}

.movie video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kirakira {
  z-index: 2;
  mix-blend-mode: lighten;
  opacity: 0.4;
}

.kirakira video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fv-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fv-logo img {
  opacity: 0;
}

/* PC */
@media screen and (min-width: 768px) {
  .logo-pc {
    display: block;
    animation: logoFadeInLR 0.8s ease-out forwards;
  }

  .logo-sp {
    display: none;
  }
}

/* SP */
@media screen and (max-width: 767px) {
  .logo-sp {
    display: block;
    animation: logoFadeInLR 0.8s ease-out forwards;
  }

  .logo-pc {
    display: none;
  }
}

@keyframes logoFadeInLR {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.logo-pc,
.logo-sp {
  max-width: none;
}

.logo-sp {
  display: none;
}

/* PC */
.logo-pc {
  display: block;
  height: auto;
  max-height: 50vh;
}

/* SP */
@media screen and (max-width: 767px) {
  .logo-pc {
    display: none;
  }

  .logo-sp {
    display: block;
    width: 88vw;
    height: auto;
    max-height: 75vh;
  }
}

@keyframes logoReveal {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }

  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@media screen and (max-width: 767px) {
  .logo-pc {
    display: none !important;
  }

  .logo-sp {
    display: block !important;
    animation: logoReveal 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }

  .kirakira {
    display: none;
  }
}

.story-lead {
  position: relative;
  isolation: isolate;

  height: 540px;

  /* ▼PCの手紙は背景にせず、::beforeで表示＆アニメさせる（デザイン維持） */
  background: none;

  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.story-lead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  /* 背景より上 / バラ(z=4)と文字(z=5)の下 */
  pointer-events: none;
  background: url("img/letter.png") center top / min(800px, 100%) auto no-repeat;
  opacity: 1;
}

#story.is-story-play::before {
  animation: letterFade 0.9s ease forwards;
}

/* テキスト */
.story-txt-area {
  position: relative;
  z-index: 5;

  padding: 100px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}

/* テキスト画像共通（picture） */
.story-lead-text-1,
.story-lead-text-2,
.story-lead-text-3,
.story-lead-text-4 {
  display: block;
  margin: 0 auto;
  padding: 0;
  line-height: 0;
  width: 100%;
}

.story-lead-text-1 {
  max-width: 428px;
}

.story-lead-text-2 {
  max-width: 449.5px;
}

.story-lead-text-3 {
  max-width: 259px;
}

.story-lead-text-4 {
  max-width: 318px;
}

/* ▼文字（img）は初期非表示（スクロール時にJSが animate__ クラス付与） */
.story-lead-img.js-lead {
  opacity: 0;
}

/* アイコンレイヤー */
.story-icon {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.story-ico {
  position: absolute;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

/* --- PC位置 --- */
.story-ico--lt {
  top: 90px;
  left: 50px;
  width: clamp(100px, 15vw, 124px);
}

.story-ico--lmid {
  opacity: 0;
  top: 165px;
  left: 125px;
  width: clamp(77.5px, 12vw, 96px);
}

#story.is-story-play .story-ico--lmid {
  animation: fadeIn 0.9s ease 0.4s forwards;
}

.story-ico--rb {
  right: 40px;
  bottom: 75px;
  width: clamp(110px, 18vw, 250px);
}

/* ▼アニメ対象のバラ（2枚だけ）初期非表示 */
.story-ico.js-rose-bounce,
.story-ico.js-rose-right {
  opacity: 0;
}

/* ▼バラのアニメ速度（任意） */
.story-ico--lt.animate__animated {
  --animate-duration: 0.9s;
}

/* bounceIn */
.story-ico--rb.animate__animated {
  --animate-duration: 0.9s;
}

/* fadeInRight */

/* =========================
   SP
========================= */
@media (max-width: 767px) {
  .story-lead {
    height: 370px;

    /* SP背景：左右グラ（奥） */
    background-image:
      url("img/sp/sp_gradation-left.png"), url("img/sp/sp_gradation-right.png");

    background-repeat: no-repeat, no-repeat;

    background-position:
      left top,
      right top;

    background-size:
      50% 100%,
      50% 100%;

    box-sizing: border-box;
  }

  /* ▼SPはカード（手紙）不要 */
  .story-lead::before {
    display: none;
  }

  .story-txt-area {
    padding: 76px 0 76px 0;
    gap: 23px;
  }

  .story-lead-text-1 {
    max-width: 300px;
  }

  .story-lead-text-2 {
    max-width: 328px;
  }

  .story-lead-text-3 {
    max-width: 190px;
  }

  .story-lead-text-4 {
    max-width: 218px;
  }

  .story-ico--lt {
    top: 17px;
    left: 10px;
    width: clamp(72px, 18vw, 96px);
  }

  .story-ico--lmid {
    top: 30px;
    left: 55px;
    width: clamp(56px, 14vw, 80px);
  }

  .story-ico--rb {
    right: 10px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-lead::before {
    opacity: 1 !important;
    animation: none !important;
  }

  .story-lead-img.js-lead,
  .story-ico.js-rose-bounce,
  .story-ico.js-rose-right {
    opacity: 1 !important;
    animation: none !important;
  }
}

/* =========================
   Season（0220安定パララックス復帰版）
========================= */

.season {
  position: relative;
  background-image: url("img/season4_back.png");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 1200px auto;
  background-position: 50% 0;

  min-height: 100vh;
  padding: 140px 0;
}

/* 中身 */
.season-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  /* ← innerで余白を作らない */
}

.season::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 300px;
  pointer-events: none;
  z-index: 1;

  background: linear-gradient(to bottom,
      rgba(36, 74, 150, 0) 0%,
      rgba(36, 74, 150, 0.25) 40%,
      rgba(36, 74, 150, 0.6) 60%,
      rgba(36, 74, 150, 0.6) 85%,
      rgba(36, 74, 150, 1) 100%);
}

/* =========================
   SP
========================= */

@media (max-width: 767px) {
  .season {
    background-attachment: scroll;
    /* SPは固定しない */
    background-size: cover;
    background-position: center top;

    min-height: auto;
    padding: 85px 0 95px;
  }

  .season-inner {
    padding: 0;
    /* ← 親の余白を一旦リセット */
  }

  .season-card-wrap {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    margin: 0 auto;
    /* ← 明示的に中央寄せ */
    box-sizing: border-box;
  }
}

/* =========================
   カードラッパー
========================= */

.season-card-wrap {
  --shadow-offset: 10px;
  /* 影のズレ量（PC/SP共通） */

  margin: 0 auto;
  position: relative;
  z-index: 1;

  max-width: 740px;
  box-sizing: border-box;
}

/* 以前の影要素は使わない（HTML残す場合の保険） */
.card-shadow {
  display: none;
}

@media (max-width: 767px) {
  .season-card-wrap {
    width: 100%;
    max-width: none;
    /* ← これ追加 */
    padding: 0 16px;
    /* 余白で調整 */
  }
}

/* =========================
   カード本体（影は疑似要素で生成）
========================= */

.season-card {
  position: relative;

  width: 100%;
  min-height: 480px;

  background: #234fa3;
  padding: 35px;
  padding-right: 20px;
  padding-left: 20px;

  box-sizing: border-box;
  z-index: 1;
  /* ここ重要：カード内で基準を作る */
  isolation: isolate;

  display: flex;
  flex-direction: column;
  gap: 14px;

  color: #fff;
  font-family: "Noto Sans JP", system-ui, sans-serif;

  /* ★ここが重要：本体をtransformで動かさない */
  transform: none;
  box-shadow: 20px 20px 0 #b02c63;
}

@media screen and (max-width: 767px) {
  .season-card {
    min-height: auto;
    box-shadow: 10px 10px 0 #b02c63;
    padding: 28px 20px;
    /* ← これにする */
  }
}

/* =========================
   episodeバッジ（お椀形）
========================= */

.episode-badge {
  position: absolute;
  top: -50px;
  left: 80%;
}

.episode-badge img {
  height: 130px;
}

@media screen and (max-width: 767px) {
  .episode-badge {
    position: absolute;
    top: -30px;
    left: 75%;
  }

  .episode-badge img {
    height: 70px;
  }
}

/* =========================
   見出し画像
========================= */

.season-heading {
  height: 36.5px;
  overflow: hidden;
}

.season-heading img {
  height: 100%;
  width: auto;
  display: block;
}

@media screen and (max-width: 767px) {
  .season-heading {
    height: 24px;
    overflow: hidden;
    margin-bottom: 10px;
  }

  .season-heading img {
    height: 100%;
    width: auto;
    display: block;
  }
}

/* =========================
   テキスト
========================= */

.season-text {
  margin-bottom: 10px;
}

.season-text p {
  width: 100%;
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  opacity: 0.95;
  margin: 0;
}

@media (max-width: 767px) {
  .season-text {
    display: block;
    justify-content: center;
  }

  .season-text p {
    margin: 0;
    text-align: left;
    font-size: 14px;
  }
}

/* =========================
   動画（16:9固定で安定）
========================= */

.season-movie {
  width: 100%;
  max-width: 100%;
  position: relative;
  padding-top: 56.25%;
  /* 16:9 */
  overflow: hidden;
  margin-top: auto;
  margin: 0 auto;
}

.season-movie iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

@media screen and (min-width: 768px) {
  .season-movie {
    margin-top: auto;
  }
}

.season-thumb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.season-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   Story Gallery 本文＋動画ブロック
========================= */

.story-gallery {
  background-color: #244a96;
  padding: 40px 0 70px;
}

.story-gallery-main {
  max-width: 960px;
  margin: 80px auto 0;
  padding: 0 20px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  gap: 32px;
}

.story-title {
  position: relative;
  margin-top: 0;
  padding-top: 0px;
  text-align: center;
  line-height: 0;
}

.story-title picture {
  display: block;
  margin: 0 auto;
  width: 243px;
  /* relationと揃えるなら同じ値 */
}

.story-title img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .story-title {
    padding-top: 0px;
    padding-bottom: 32px;
  }

  .story-title picture {
    max-width: 100%;
    height: 24px;
  }
}

.story-text {
  font-weight: 300;
  max-width: 960px;
  margin: 20px auto 0;
  padding: 0 20px;
  text-align: center;
}

.story-text p {
  margin: 0 auto;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.8;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: #fff;
}

@media (max-width: 767px) {
  .story-text {
    padding: 0 16px;
  }

  .story-text p {
    font-size: 14px;
  }
}

/* PC：左動画・右テキスト */
.story-gallery-movie,
.story-gallery-content {
  flex: 1 1 0;
}

/* 動画ラッパー（16:9固定） */
.story-gallery-movie-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 */
  overflow: hidden;
}

.story-gallery-movie-inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* サムネイル全体（iframeの代わりに全面を覆う） */
.story-gallery-thumb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  cursor: pointer;
}

.story-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================
   再生ボタン（共通）
========================= */

.play-btn {
  position: relative;
  width: 110px;
  height: 110px;
  border: 2.2px solid #fff;
  border-radius: 50%;
  pointer-events: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* hover */
.story-gallery-thumb:hover .play-btn,
.season-thumb:hover .play-btn {
  transform: scale(1.06);
  box-shadow:
    0 0 12px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.95);
}

/* ▶ 三角 */
.play-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 18px 0 18px 28px;
  border-color: transparent transparent transparent #fff;
}

/* SP */
@media (max-width: 768px) {
  .play-btn {
    width: 78px;
    height: 78px;
    border-width: 1.2px;
  }

  .play-btn::after {
    border-width: 11px 0 11px 18px;
  }
}

/* =========================
YouTube 再生ボタン群
========================= */

.story-gallery-play {
  background: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* 三角アイコン */
.story-gallery-play-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;

  background: transparent;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);

  position: relative;
}

.story-gallery-heading picture {
  display: block;
}

.story-gallery-heading img {
  display: block;
  max-width: 100%;
  height: 30px;
  margin-bottom: 10px;
}

.story-gallery-heading img[src*="seasen_title_1.png"] {
  height: 26px;
  width: auto;
}

.story-gallery-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #fff;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 300;
}

/* =========================
   Story Gallery SP
========================= */
@media (max-width: 767px) {
  .story-gallery {
    padding: 32px 0 80px;
  }

  .story-gallery-heading img[src*="seasen_title_1.png"] {
    height: 22px;
    width: auto;
  }

  .story-gallery-main {
    flex-direction: column;
    gap: 20px;
    padding: 0 16px;

    align-items: stretch;
  }

  .story-gallery-movie,
  .story-gallery-content {
    width: 100%;
  }

  .story-gallery-body p {
    font-size: 14px;
  }

  .story-gallery-obj {
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    font-size: 11px;
  }

  .story-gallery-heading {
    margin-bottom: 12px;
  }

  .story-gallery-heading img {
    display: block;
    max-width: 100%;
    height: 24px;
  }
}

/* =========================
   追従CTA
========================= */

.cta-fixed {
  position: fixed;
  bottom: 40px;
  right: max(20px, calc((100% - 960px) / 2));

  width: 160px;
  height: 160px;

  background-image: url("img/sticy_btn_1.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

@media (max-width: 960px) {
  .cta-fixed {
    display: none;
  }
}

.cta-fixed.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cta-fixed:hover {
  background-image: url("img/sticy_btn_2.png");
}

/* =========================
   CTA 表示分岐
========================= */

.cta-pc-only,
.cta-sp-only {
  display: none;
}

/* PC */
@media (min-width: 768px) {
  .cta-pc-only {
    display: block;
  }
}

/* SP */
@media (max-width: 767px) {
  .cta-sp-only {
    display: block;
  }
}

/* =========================
   CTA wrapper
========================= */
.cta-wrapper {
  text-align: center;
  margin: 40px 0;
}

.cta-img-switch {
  display: inline-block;
  line-height: 0;
}

.cta-switch-img {
  display: block;
  width: 620px;
  height: auto;
  transition: none;
}

/* PCのみhover切替 */
@media (hover: hover) and (pointer: fine) {
  .cta-img-switch:hover .cta-switch-img {
    content: url("img/button_1_hover.png");
  }
}

/* =========================
   CTA 本体
========================= */

.cta.btn-flash {
  position: relative;
  display: block;

  width: 600px;
  max-width: 100%;

  padding: 26px 40px;

  text-align: center;
  text-decoration: none;
  color: #244a96;

  background-image: linear-gradient(45deg,
      #f7dc6f 0%,
      #e6b94f 35%,
      #fff1a8 55%,
      #cfa63c 100%);

  border: 6px solid #244a96;
  border-radius: 22px;

  box-sizing: border-box;

  transition: transform 0.2s ease;
}

/* hover 浮き */

.cta.btn-flash:hover {
  transform: translateY(-3px);
}

/* =========================
   CTA テキスト
========================= */

.cta-text {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  gap: 6px;

  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900;

  text-align: center;

  text-shadow:
    2px 0 0 #fff,
    -2px 0 0 #fff,
    0 2px 0 #fff,
    0 -2px 0 #fff;
}

/* メイン */
.cta-line-main {
  font-size: 32px;
  display: inline-block;
}

@media (min-width: 1024px) {
  .cta-line-main {
    font-size: 36px;
  }
}

.cta.btn-flash::before,
.cta.btn-flash::after {
  content: "";
  position: absolute;

  width: 60px;
  height: 60px;

  background-image: url("img/rose_rainbow.svg");
  background-size: contain;
  background-repeat: no-repeat;

  opacity: 0;
  transform: scale(0.8);

  pointer-events: none;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* 左上 */

.cta.btn-flash::before {
  top: -28px;
  left: -28px;
}

/* 右下 */

.cta.btn-flash::after {
  bottom: -28px;
  right: -28px;
}

/* hover表示 */

.cta.btn-flash:hover::before,
.cta.btn-flash:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* 時差 */

.cta.btn-flash:hover::after {
  transition-delay: 0.15s;
}

/* =========================
   SP 画像CTA
========================= */

.cta-img-only {
  display: block;
  line-height: 0;
}

.cta-img-only img {
  width: 100%;
  height: 60px;
  display: block;
}

/* =========================
   あの頃のワタシたち
========================= */

.life-hero {
  width: 100%;
  margin: 0 auto 18px;
  text-align: center;
  display: flex;
  justify-content: center;
}

.life-hero img {
  display: block;
  width: 100%;
  max-width: 800px;
  /* スライダー幅と揃える */
  height: auto;
  margin: 0 auto;
}

/* PC */
@media (min-width: 768px) {
  .life-hero {
    display: flex;
    justify-content: center;
  }

  .life-hero picture,
  .life-hero img {
    margin-left: auto;
    margin-right: auto;
  }
}

/* SP */
@media (max-width: 767px) {
  .life-hero {
    margin-bottom: 14px;
  }
}

.life-hero-1 {
  width: 100%;
  margin: 0 auto 18px;
  text-align: center;
  display: flex;
  justify-content: center;
}

.life-hero-1 img {
  display: block;
  height: 90px;
  width: auto;
}

@media (max-width: 767px) {
  .life-hero-1 img {
    height: 53px;
  }
  .life-hero-1 {
    margin: 0 auto;
  }
}

.life-hero-2 {
  width: 100%;
  margin: 0 auto 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.life-hero-2 picture {
  width: 100%;
  max-width: 800px;
}

.life-hero-2 img {
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* PC */
@media (min-width: 768px) {
  .life-hero-2 {
    display: flex;
    justify-content: center;
  }

  .life-hero-2 picture,
  .life-hero-2 img {
    margin-left: auto;
    margin-right: auto;
  }
}

/* SP */
@media (max-width: 767px) {
  .life-hero-2 {
    margin-bottom: 14px;
  }
}

.life-hero-3 {
  width: 100%;
  margin: 0 auto 18px;
  text-align: center;

  display: flex;
  flex-direction: column;
  /* ← 追加 */
  align-items: center;
  /* 中央寄せ */

  padding-bottom: 13px;
}

.life-hero-3 img {
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* PC */
@media (min-width: 768px) {
  .life-hero-3 {
    display: flex;
    justify-content: center;
  }

  .life-hero-3 picture,
  .life-hero-3 img {
    margin-left: auto;
    margin-right: auto;
  }
}

/* SP */
@media (max-width: 767px) {
  .life-hero-3 {
    margin-bottom: 14px;
  }
}

.life-hero-catch {
  width: 100%;
  margin: 0 auto 18px;
  text-align: center;
  display: flex;
  justify-content: center;
}

.life-hero-catch img {
  display: block;
  width: 100%;
  max-width: 800px;
  /* スライダー幅と揃える */
  margin: 0 auto;
}

/* PC */
@media (min-width: 768px) {
  .life-hero-catch {
    display: flex;
    justify-content: center;
  }

  .life-hero-catch picture,
  .life-hero-catch img {
    height: 78px;

    margin-left: auto;
    margin-right: auto;
  }
}

/* SP */
@media (max-width: 767px) {
  .life-hero-catch {
    padding: 20px;
  }

  .life-hero-catch picture,
  .life-hero-catch img {
    max-width: 350px;
  }
}

.hikaku {
  margin: 0;
  padding: 0;

  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  /* 横ぴったり */
}

/* =========================
   注釈セクション
========================= */
.life-inner {
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: 32px;
}

@media (max-width: 767px) {
  .life-inner {
    width: 100%;
    padding: 10px 16px;
    box-sizing: border-box;
    text-align: center;
  }

  .life-note {
    text-align: center;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}

.life-note-title-img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.life-note-title-img img {
  max-width: 100%;
  height: 66px;
  width: auto;
  margin: 0 auto;
}

.life-note-body {
  padding: 16px 24px 20px;
  text-align: right;
}

.life-note-body>p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  word-break: break-all;
}

.note-mark {
  font-size: 0.75em;
  vertical-align: super;
  /* 少し上げる場合 */
}

/* =========================
   注釈セクション
========================= */

.life-note {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  background: #fff;
}

/* 上部：青帯 */
.life-note-head {
  background: #0a4b9e;
  padding: 32px 0;
  text-align: center;
}

.life-note-title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  font-family: "Noto Sans JP", sans-serif;
}

.life-note-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .life-note-head {
    padding: 14px 8px;
    width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .life-note-title {
    font-size: 14px;
  }
}

.life-title {
  position: relative;
  margin-top: 0;
  padding-top: 100px;
  text-align: center;
  height: auto;
  line-height: 0;
}

.life-title picture {
  display: block;
  height: 45px;
}

.life-title img {
  display: inline-block;
  height: 45px;
  max-width: 100%;
  height: 100%;
}

.icon-btn {
  height: 220px;
  background-image: url("img/lifestage_1.png");
  background-size: 40px 40px;
  background-repeat: no-repeat;
}

.icon-btn:hover {
  background-image: url("img/lifestage_1_hover.png");
}

.life-title-1 {
  padding-bottom: 20px;
  text-align: center;
}

.life-title-1 picture {
  display: inline-block;
}

.life-title-1 img {
  height: 45px;
  display: block;
}

@media (max-width: 767px) {
  .life-title-1 {
    padding-top: 20px;
    padding-bottom: 0px;
  }

  .life-title-1 img {
    height: 68px;
  }

  .life-title picture {
    height: 68px;
  }
}

/* 外枠 */
.life-slider {
  position: relative;
  width: min(860px, 100%);
  margin: 0 auto;
  overflow: visible;
}

/* 横スクロール本体 */
.life-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 30%;
  gap: 12px;
  overflow-x: auto;
}

.life-slide {
  aspect-ratio: 4 / 3;
  scroll-margin-left: 0;
  display: block;
  overflow: hidden;
  background: transparent;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

@media (max-width: 600px) {
  .life-track {
    grid-auto-columns: 44%;
    gap: 8px;
  }
}

/* =========================
   accordion（安定版）
========================= */

.life-note-body .accordion {
  max-width: 800px;
  margin: 0 auto 40px;
}

/* --- summary --- */
.life-note-body .accordion summary {
  display: flex;
  justify-content: flex-end;
  /* PCは右寄せ */
  align-items: center;
  gap: 8px;
  padding: 1.2em 2em;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  color: #333;
}

.life-note-body .accordion summary::-webkit-details-marker {
  display: none;
}

/* --- ＋アイコン --- */
.life-note-body .accordion .icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.life-note-body .accordion .icon::before,
.life-note-body .accordion .icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 2px;
  background: #333333b3;
  transform: translateY(-50%);
}

.life-note-body .accordion .icon::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform 0.15s ease;
}

/* 開いたら − に */
.life-note-body .accordion[open] .icon::after {
  transform: translateY(-50%) rotate(0deg);
}

/* --- 本文 --- */
.life-note-body .accordion-body {
  padding: 0 2em 1.8em;
  overflow-wrap: anywhere;
}

.life-note-body .accordion-body p {
  margin: 0 0 1em;
  line-height: 1.9;
  font-size: 13px;
  color: #333;
  text-align: right;
  /* PCは右寄せ */
}

/* =========================
   SP
========================= */
@media (max-width: 767px) {
  .life-note-body .accordion summary {
    justify-content: center;
    /* 完全中央 */
    text-align: center;
  }

  .life-note-body .accordion-body {
    padding: 0 1.5em 1.8em;
  }

  .life-note-body .accordion-body p {
    text-align: center;
  }
}

/* =========================
   注釈セクション SP
========================= */
@media (max-width: 767px) {
  .life-note-title-img img {
    height:90px;
    width: auto;
  }

  .life-note-body p {
    font-size: 10px;
    text-align: left;
  }

  .life-note-title {
    font-size: 14px;
  }

  .life-note-body {
    padding: 14px 10px 18px;
  }

  .accordion summary {
    font-size: 10px;
  }
}

/* =========================
   ライフステージ（スライダー）
========================= */
.life {
  background-image:
    linear-gradient(rgba(144, 190, 213, 0.2) 2px, transparent 2px),
    linear-gradient(90deg, rgba(144, 190, 213, 0.2) 2px, transparent 2px);
  background-size: 30px 30px;
  width: 100%;
}

/* タイトル下の文字 */
/* PC がデフォルト */
.life-lead-pc {
  display: block;
}

.life-lead-sp {
  display: none;
}

@media screen and (max-width: 767px) {
  .life-lead-pc {
    display: none;
  }

  .life-lead-sp {
    display: block;
  }

  .life-lead-sp p {
    font-size: 14px;
  }
}

/* =========================
   life-lead
========================= */

.life-lead {
  margin-bottom: 70px;
  text-align: center;
  color: #244a96;
  font-family: "Noto Sans JP", system-ui, sans-serif;
}

.life-lead p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

/* SP */
@media (max-width: 767px) {
  .life-lead {
    margin: 12px auto 32px;
    width: clamp(300px, 92%, 640px);
  }

  .life-lead p {
    font-size: 14px;
    text-align: center;
  }
}

/* =========================
   life 下段リード
========================= */

.life-note-body p.life-lead-second {
  text-align: center;
  color: #244a96;
  font-size: 16px;
  font-family: "Noto Sans JP", system-ui, sans-serif;
}

@media (max-width: 767px) {
  .life-note-body p.life-lead-second {
    font-size: 14px;
  }
}

/* =========================
   スクロールバー
========================= */

.slide-1 {
  background-image: url("img/lifestage_1.png");
}

.slide-2 {
  background-image: url("img/lifestage_2.png");
}

.slide-3 {
  background-image: url("img/lifestage_3.png");
}

.slide-4 {
  background-image: url("img/lifestage_4.png");
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .slide-1:hover {
    background-image: url("img/lifestage_1_hover.png");
  }

  .slide-2:hover {
    background-image: url("img/lifestage_2_hover.png");
  }

  .slide-3:hover {
    background-image: url("img/lifestage_3_hover.png");
  }

  .slide-4:hover {
    background-image: url("img/lifestage_4_hover.png");
  }
}

/* =========================
   登場人物 相関図（画像のみ / 余白なし）
========================= */
.relation {
  margin: 0;
  padding: 0;
  background-color: #fff7d7;
}

.relation-picture {
  position: relative;
  display: block;
  max-width: 880px;
  padding-top: 10px;
  margin: 0 auto;
  padding-bottom: 80px;
  line-height: 0;
}

@media (max-width: 767px) {
  .relation-picture {
    width: auto;
    padding-top: 10px;
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 40px;
    margin: 10px;
    margin-bottom: 0px;

    line-height: 0;
  }
}

.relation-img {
  display: block;
  width: 100%;
  height: auto;
}

.relation-title {
  position: relative;
  margin-top: 0;
  padding-top: 100px;
  text-align: center;
  height: auto;
  line-height: 0;
}

.relation-title img {
  display: block;
  height: 45px;
  width: auto;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .relation-title img {
    height: 30px;
    width: auto;
  }
}

/* =========================
  相関図 あしらい
========================= */

@media (min-width: 768px) {
  .relation-picture::before {
    content: "";
    position: absolute;

    top: -10px;
    left: -20px;
    width: 164px;
    height: 104px;
    background: url("img/chart-deco_leaf.png") no-repeat center / contain;
    pointer-events: none;
    z-index: 2;
  }
  .relation-picture::after {
    content: "";
    position: absolute;
    bottom: 20px;
    right: -30px;
    width: 178px;
    height: 142px;
    background: url("img/chart-deco_rose.png") no-repeat center / contain;
    pointer-events: none;
    z-index: 2;
  }
}


/* =========================
   出演者エリア
========================= */

.cast {
  background-color: #fff7d7;
  padding: 100px 0 110px;
}

.cast-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.cast-title {
  margin: 0 0 28px;
  text-align: center;
  line-height: 0;
}

.cast-title picture {
  display: inline-block;
}

.cast-title img {
  display: block;
  height: 45px;
  width: auto;
}

@media (max-width: 767px) {

  .cast-title {
   margin-bottom: 10px;
  }

  .cast-title img {
    height: 30px;
   
  }
}

.cast-episode+.cast-episode {
  margin-top: 20px;
}

.cast-episode-visual {
  margin-bottom: 20px;
  text-align: center;
}

.cast-episode-visual picture {
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}

.cast-episode-visual img {
  display: block;
  max-width: 142px;
  width: 100%;
  height: auto;
}

.cast-card {
  display: flex;
  align-items: center;
  gap: 30px;

  padding: 40px 50px;
  border: 2px solid #ffffff;
  background-color: rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
}

/* =========================
   出演者　左：写真
========================= */

.cast-card-photo {
  flex: 0 0 220px;
  height: 300px;
  overflow: hidden;
}

.cast-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* =========================
   出演者　右：テキスト
========================= */

.cast-card-body {
  flex: 1;
  min-width: 0;
  max-width: 530px;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: #244a96;
}

.cast-card-name {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}

.cast-card-profile {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;

  color: #244a96;
}

@media (max-width: 767px) {
  .cast-card {
    flex-direction: column;
    align-items: center;
    padding: 20px 16px 28px;
    gap: 16px;
  }

  .cast-card-photo {
    width: 180px;
    height: 220px;
    flex: none;
  }

  .cast-card-body {
    width: 100%;
  }

  .cast-card-name {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .cast-card-profile {
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
  }
}

/* =========================
   制作の裏側（交互レイアウト：完成版）
========================= */

.behind {
  padding: 0;
  background: transparent;
}

/* =========================
   外枠（青）※上下40px・左右10px
========================= */

.behind-wrap {
  max-width: 940px;
  margin: 0 auto;
  box-sizing: border-box;

  position: relative;
  /* 追加 */
  background: #244a96;
  /* 元の色 */

  border: none;
  /* ← border削除 */
}

/* 青枠を後ろに描画 */
.behind-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  border-left: 35px solid #244a96;
  border-right: 35px solid #244a96;
  border-top: 90px solid #244a96;
  border-bottom: 90px solid #244a96;

  z-index: 1;
  /* 枠は後ろ */
}

@media (max-width: 767px) {
  .behind-wrap {
    width: 100%;
  }

  .behind-wrap::before {
    border-left-width: 10px;
    border-right-width: 10px;
    border-top-width: 40px;
    border-bottom-width: 40px;
  }
}

/* =========================
   紙面（黄色エリア・背景画像）
========================= */

.behind-paper {
  max-width: 920px;
  margin: 0 auto;

  padding: 18px 24px 12px;
  box-sizing: border-box;

  background-image: url("img/hompo/haikei_youhishi_b.png");
  background-size: cover;
  background-position: center;
  background-size: 100% auto;
  border-radius: 0;
  overflow: hidden;
}

@media (max-width: 767px) {
  .behind-paper {
    width: 100%;
    padding: 16px 14px 10px;
  }
}

/* =========================
   見出し
========================= */

.behind-head {
  margin: 0 0 20px;
  text-align: center;
}

.behind-head img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =========================
   行レイアウト
========================= */

.behind-rows {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

@media (max-width: 767px) {
  .behind-rows {
    gap: 16px;
  }
}

.behind-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: center;
}

@media (max-width: 767px) {
  .behind-row {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    align-items: start !important;
  }

  .behind-row .photo-card {
    order: 1 !important;
  }

  .behind-row .behind-text {
    order: 2 !important;
  }
}

/* 交互 */
.behind-row.is-reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.behind-row.is-reverse .photo-card {
  order: 2;
}

.behind-row.is-reverse .behind-text {
  order: 1;
}

@media (max-width: 767px) {

  .behind-row.is-reverse .photo-card,
  .behind-row.is-reverse .behind-text {
    order: initial !important;
  }
}

/* =========================
   写真カード
========================= */

.photo-card {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.photo-card img {
  border-radius: 0 !important;
}

.tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);

  width: 140px;
  height: 28px;
  background: #7fb8de;
  opacity: 0.9;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
  .tape {
    width: 120px;
    height: 24px;
  }
}

.tilt-l {
  transform: rotate(-1.2deg);
}

.tilt-r {
  transform: rotate(1.2deg);
}

.tilt-l2 {
  transform: rotate(-0.8deg);
}

/* =========================
   テキスト
========================= */

.behind-text {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: #244a96;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.85;
}

.behind-text p {
  margin: 0 0 1em;
}

.behind-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .behind-text {
    font-size: 12.5px;
  }
}

/* =========================
   behind-top
========================= */

.behind-top-visual {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 80px 0 30px;
}

/* -------------------------
   画像h2タイトル
------------------------- */
.bg-logo-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.behind-top-title {
  margin: 0;
  padding-top: 80px;
  text-align: center;
  line-height: 0;
}

.behind-top-title picture {
  display: block;
  margin: 0 auto;
}

.behind-top-title img {
  display: inline-block;
  max-width: 100%;
  height: 96px;
}

.behind-top-title,
.behind-top-list {
  position: relative;
  z-index: 1;
}

/* ロゴ共通 */
.bg-logo-layer img {
  position: absolute;
  width: 170px;
  height: auto;
  opacity: 0.25;
  filter: blur(0.5px);
}

/* 4個配置（PC） */
.bg-logo-layer img:nth-child(1) {
  top: 8%;
  right: 6%;
}

.bg-logo-layer img:nth-child(2) {
  top: 36%;
  left: 0%;
}

.bg-logo-layer img:nth-child(3) {
  bottom: 25%;
  right: 6%;
}

.bg-logo-layer img:nth-child(4) {
  bottom: 6%;
  left: 2%;
}

@media (max-width: 767px) {

  /* いったん全部非表示 */
  .bg-logo-layer img {
    display: none;
  }

  /* 1個目だけ表示 */
  .bg-logo-layer img:nth-child(1) {
    display: block;
    width: 120px;
    opacity: 0.2;
    top: 3%;
    left: 82%;
    transform: translateX(-50%);
  }
}

/* -------------------------
   行リスト全体
------------------------- */

.behind-top-list {
  max-width: 880px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* -------------------------
   1行分（PC：2カラム）
------------------------- */

.behind-top-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  max-width: 830px;
  margin: 0 auto;
}

/* ジグザグ（PCのみ有効） */
.behind-top-item.is-reverse {
  grid-template-columns: 1fr 1fr;
}

.behind-top-item.is-reverse .behind-top-photo {
  order: 2;
}

.behind-top-item.is-reverse .behind-top-text {
  order: 1;
}

/* -------------------------
   写真
------------------------- */

.behind-top-photo {
  position: relative;
  display: inline-block;
}

.behind-top-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* -------------------------
   テキスト
------------------------- */

.behind-top-text {
  display: flex;
  flex-direction: column;
  /* ← これが抜けている */
  justify-content: center;
  /* 縦中央 */
  align-items: center;
  /* 横中央 */
}

.behind-top-text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 700;
  color: #244a96;
  text-align: center;
  max-width: 360px;
}

.behind-top-text p+p {
  margin-top: 1em;
  /* 1文字分の間隔 */
}

/* =========================
   SPレイアウト（順番固定）
========================= */

@media (max-width: 767px) {
  .behind-top-visual {
    padding: 60px 0 0px;
  }

  .behind-top-title {
    padding-top: 10px;
  }

  .behind-top-title picture {
    height: 103px;
  }

  .behind-top-list {
    gap: 5px;
    padding: 0 6px;
    box-sizing: border-box;
  }

  .behind-top-item {
    gap: 0px;
  }

  /* ★常に1カラム */
  .behind-top-item,
  .behind-top-item.is-reverse {
    display: grid;
    grid-template-columns: 1fr;
  }

  .behind-top-item .behind-top-photo {
    width: 85%;
    max-width: 500px;
    /* 上限だけ決める */
    margin: 0 auto 16px;
  }

  .behind-top-item .behind-top-text {
    order: 2;
  }

  /* reverseの影響を完全に無効化 */
  .behind-top-item.is-reverse .behind-top-photo,
  .behind-top-item.is-reverse .behind-top-text {
    order: initial;
  }

  .behind-top-tape {
    width: 100px;
    height: 22px;
  }

  .behind-top-text p {
    font-size: 14px;
  }
}

/* =========================
   CTA：PCテキスト / SP画像 完全分岐（display制御修正版）
========================= */

.cta-pc-only,
.cta-sp-only {
  display: none;
}

.cta-pc {
  text-align: center;
  display: block;
  line-height: 1.2;
}

.cta-sub {
  display: block;
  font-size: 22px;
  line-height: 30px;
  opacity: 0.9;
}

.cta.btn-flash {
  width: 660px;
  max-width: 90%;
  margin: 0 auto;

  position: relative;
  display: block;

  padding: 26px 40px;
  text-align: center;
  text-decoration: none;
  color: #244a96;

  background-image: linear-gradient(45deg,
      #f7dc6f 0%,
      #e6b94f 35%,
      #fff1a8 55%,
      #cfa63c 100%);

  border: 6px solid #244a96;
  border-radius: 22px;
  box-sizing: border-box;
  box-shadow: 2px 6px 0 #11264f;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* hover：浮く＋影消す */
.cta.btn-flash:hover {
  transform: translateY(-3px);
  box-shadow: none;
}

@media (min-width: 768px) {
  .cta-pc-only {
    display: inline-block !important;
  }

  .cta-sp-only {
    display: none !important;
  }
}

/* SP表示 */
@media (max-width: 767px) {
  .cta-pc-only {
    display: none !important;
  }

  .cta-sp-only {
    display: block !important;
  }
}

/* SP：画像CTA */
.cta-img-only {
  display: block;
  line-height: 0;
}

.cta-img-only img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
}

/* SP時：pill形状を画像側で担保する場合 */
@media (max-width: 767px) {
  .cta-img-only {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
}

.behind-cta {
  margin-top: 0px;
  display: flex;
  justify-content: center;
}

/* CTA角丸は必ず復活させる */
.behind-paper .cta.btn-flash {
  border-radius: 40px !important;
}

/* =========================
   CTA下 ロゴ画像
========================= */

.behind-tenpo {
  margin-top: 14px;
  margin-left: -40px;
  margin-right: -40px;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.behind-tenpo img {
  display: block;
  max-width: 900px;
  height: auto;
}

@media (max-width: 767px) {
  .behind-tenpo {
    margin-left: -10px;
    /* SP枠10px */
    margin-right: -10px;
  }

  .behind-tenpo img {
    width: 100%;
    min-width: 260px;
    /* 小さすぎ防止だけ */
    height: auto;
  }
}

.boshu-num {
  margin: 10px 0 18px;
  text-align: center;
  font-size: 8px;
  line-height: 1.7;
  color: #244a96;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 700;
  position: relative;
  padding-bottom: 90px;
}

@media (max-width: 767px) {
  .boshu-num {
    padding-bottom: 40px;
  }
}

/* =========================
   Footer（色＆サイズ調整）
========================= */

.footer {
  margin: 0;
  background: #fff;
}

/* SNSシェア */
.footer-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-share-title {
  color: #2288dd;
  margin: 0 0 12px;
  font-size: 12px;
}

/* SNSアイコン */
.footer-share-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.footer-share-list li {
  list-style: none;
}

.footer-share-list a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.footer-share-list img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-bottom {
  background: #2288dd;
  padding: 26px 0 22px;
}

/* ロゴ列 */
.footer-bottom-inner {
  max-width: 960px;
  margin: 0 auto;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  /* ロゴ間の余白 */
}

/* ★ 3704ロゴ */
.footer-title-img {
  height: 100px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  display: block;
}

/* ★ 企業ロゴ */
.footer-logo-img {
  height: 54px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  display: block;
}

/* コピーライト */
.footer-copy {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: #fff;
}

/* 線の外側ラッパー */
.footer-line-wrap {
  background: #fff;
}

/* 実際の線 */
.footer-line {
  width: 960px;
  height: 6px;
  margin: 0 auto;
  background: #244a96;
}

/* SP */
@media (max-width: 767px) {
  .footer-line {
    width: calc(100% - 32px);
    height: 5px;
  }
}

.footer-share {
  padding: 24px 0 32px;
  text-align: center;
}

/* SP */
@media (max-width: 767px) {
  .footer-share {
    padding: 18px 0 22px;
  }

  .footer-share-list {
    gap: 12px;
  }

  .footer-share-list a {
    width: 40px;
    height: 40px;
  }

  .footer-share-list img {
    width: 36px;
    height: 36px;
  }

  .footer-bottom {
    padding: 14px 0 12px;
  }

  .footer-bottom-inner {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    gap: 18px;
  }

  .footer-title-img {
    height: 100px;
    width: auto;
    display: block;
  }

  .footer-logo-img {
    height: 54px;
    width: auto;
    display: block;
  }

  @media (max-width: 767px) {
    .footer-title-img {
      height: 80px;
    }

    .footer-logo-img {
      height: 44px;
    }
  }

  .footer-copy {
    font-size: 10px;
  }
}