/* loader */
.loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 9999;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease-out;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.loader-text {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #000;
  margin: 0;
  text-align: center;
}

.loading-dots {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.dot-1 {
  background-color: #E6E2B0;
  animation-delay: -0.32s;
}

.dot-2 {
  background-color: #C2E0EB;
  animation-delay: -0.16s;
}

.dot-3 {
  background-color: #D2E6A8;
  animation-delay: 0s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes slideRightToLeft {
  0% {
    transform: translateX(calc(100vw + 100%));
  }
  100% {
    transform: translateX(calc(-100vw - 100%));
  }
}

.loader-logo {
  width: 400px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .loader-text {
    font-size: 18px;
  }

  .dot {
    width: 12px;
    height: 12px;
  }

  .loading-dots {
    gap: 10px;
  }

  .loader-logo {
    width: 500px;
    height: auto;
  }

  .loader-content {
    gap: 30px;
  }
}

/* header */
html,
body {
  background-color: #fff;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

body {
  padding-top: 0;
}


.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: transparent;
  z-index: 1001;
  pointer-events: none;
}

.site-header a {
  pointer-events: auto;
  display: inline-block;
}

.site-logo {
  position: absolute;
  top: 28px;
  right: 100px;
  height: 64px;
  width: auto;
  opacity: 0.9;
  pointer-events: auto;
  cursor: pointer;
}

@media (max-width: 768px) {
  body {
    padding-top: 0;
  }

  .site-header {
    height: 60px;
  }

  .site-logo {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    height: 36px;
  }
}
/* block */
.block {
  margin-bottom: 200px;
}

/* hero */
.hero {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  /* スマホのとき、heroセクションを中央配置し、周りを同じ色にする */
  html,
  body {
    background-color: #ffffff;
  }

  .hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FCFDDA;
    margin-bottom: 0;
    padding: 0;
    box-sizing: border-box;
  }

  .hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  /* 人物紹介セクションは白背景 */
  .interview-intro {
    background-color: #ffffff !important;
  }
}

.interview-intro {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 80px;
  background-color: #ffffff !important;
  position: relative;
  z-index: 10;
  isolation: isolate;
}

/* interview-intro内のコンテンツはGSAPで制御 */

/* person */
.person {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
  justify-content: flex-start;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.person-image {
  width: 200px;
  height: auto;
}

.person-text p {
  margin: 0 0 10px 0;
  font-family: "Zen Kurenaido", sans-serif;
  font-size: 16px;
}

/* catch-quote */
.block .catch-quote {
  margin-bottom: 80px;
  gap: 80px;
}
.catch-quote {
  position: relative;
  margin: 0 auto;
  max-width: 812px;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  font-size: 28px;
  color: #d6453d;
  line-height: 1.8;
  gap: 80px;
}

/* PCではmobile-breakを非表示、desktop-breakを表示 */
br.mobile-break {
  display: none;
}

br.desktop-break {
  display: block;
}

.catch-quote::before,
.catch-quote::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #d6453d;
}

.catch-quote::before {
  top: -8px;
  left: -24px;
  border-right: none;
  border-bottom: none;
}

.catch-quote::after {
  bottom: -8px;
  right: -24px;
  border-left: none;
  border-top: none;
}

/* chapter */
.chapter-1,
.chapter-2,
.chapter-3 {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 80px;
  width: 100%;
  padding: 0;
  min-height: 100vh;
}
.chapter-1 {
  background-color: #FFFBC6;
}
.chapter-2 {
  background-color: #CEECF7;
}
.chapter-3 {
  background-color: #CFE69E;
}

.chapter-1 .center,
.chapter-1 .left,
.chapter-1 .right,
.chapter-2 .center,
.chapter-2 .left,
.chapter-2 .right,
.chapter-3 .center,
.chapter-3 .left,
.chapter-3 .right {
  width: 100%;
  max-width: 960px;
}

.chapter-1 .center,
.chapter-2 .center,
.chapter-3 .center {
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chapter-1 .left,
.chapter-1 .right,
.chapter-2 .left,
.chapter-2 .right,
.chapter-3 .left,
.chapter-3 .right {
  display: flex;
  flex-direction: column;   /* 縦並びにする */
  align-items: center;      /* 中央寄せ */
  justify-content: flex-start;
  gap: 24px;                /* テキストと画像の間隔（お好みで調整） */
  width: 100%;
  max-width: 960px;
}

.chapter-1 .logo,
.chapter-2 .logo,
.chapter-3 .logo {
  width: 200px;
  height: auto;
}

/* イラスト画像用の個別クラス */
/* 泡 - イラスト */
.illust-awa {
  width: 260px;
  height: auto;
}

/* 無私の私 - 横長テキスト画像 */
.illust-mushi {
  width: 520px;
  height: auto;
  margin-top: 20px;
}

/* 3人組 - 正方形に近いイラスト */
.illust-trio {
  width: 286px;
  height: auto;
}

/* 佐賀県 - 地図イラスト */
.illust-saga {
  width: 234px;
  height: auto;
}

/* 時計と電話 - 正方形に近いイラスト */
.illust-clock {
  width: 260px;
  height: auto;
}

/* 困るGIF - アニメーションイラスト */
.illust-komaru {
  width: 234px;
  height: auto;
}

/* 詰めるGIF - アニメーションイラスト */
.illust-tsumeru {
  width: 260px;
  height: auto;
}

/* 就活 - イラスト */
.illust-syuukatu {
  width: 260px;
  height: auto;
}

/* 郵便 - イラスト */
.illust-youbin {
  width: 234px;
  height: auto;
}

/* BYE! - イラスト */
.illust-bye {
  width: 234px;
  height: auto;
}

/* びじゅ - イラスト */
.illust-biju {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

/* 大切な資源 - イラスト */
.illust-shigen {
  width: 260px;
  height: auto;
}

/* 顔GIF - アニメーションイラスト */
.illust-kao {
  position: absolute;
  top: 140px;
  right: 5%;
  width: 304px;
  height: auto;
  z-index: 2;
}

.chapter-1 .speech,
.chapter-2 .speech,
.chapter-3 .speech {
  display: grid;
  grid-template-columns: 80px 1fr;
  row-gap: 20px;
  column-gap: 20px;
  text-align: left;
}

.chapter-1 .left .speech,
.chapter-2 .left .speech,
.chapter-3 .left .speech,
.chapter-1 .right .speech,
.chapter-2 .right .speech,
.chapter-3 .right .speech {
  max-width: 760px;
  width: 100%;
}

.chapter-1 .center .speech,
.chapter-2 .center .speech,
.chapter-3 .center .speech {
  width: fit-content;
}

.chapter-1 .left .speech,
.chapter-2 .left .speech,
.chapter-3 .left .speech ,
.chapter-1 .right .speech,
.chapter-2 .right .speech,
.chapter-3 .right .speech {
  margin-left: auto;
  margin-right: auto;
}
.chapter-1 .left .speech,
.chapter-2 .left .speech,
.chapter-3 .left .speech ,
.chapter-1 .right .speech,
.chapter-2 .right .speech,
.chapter-3 .right .speech,
.chapter-1 .center .speech,
.chapter-2 .center .speech,
.chapter-3 .center .speech {
  max-width: 600px;
}

@media (min-width: 1100px) {
  .chapter-1 .left,
  .chapter-1 .right,
  .chapter-2 .left,
  .chapter-2 .right,
  .chapter-3 .left,
  .chapter-3 .right {
  display: flex;
  flex-direction: row;   
  align-items: flex-start;
  justify-content: center;
  gap: 50px;          /* テキストと画像の間隔 */
  width: 100%;
  max-width: 800px;
}

  .chapter-1 .logo,
  .chapter-2 .logo,
  .chapter-3 .logo {
  width: 200px;
  height: auto;
}

  /* イラスト画像用の個別クラス（PC） */
  .illust-awa {
    width: 338px;
    height: auto;
  }

  .illust-mushi {
    width: 585px;
  }

  .illust-trio {
    width: 325px;
  }

  .illust-saga {
    width: 260px;
  }

  .illust-clock {
    width: 286px;
  }

  /* GIF画像用の個別クラス（PC） */
  .illust-komaru {
    width: 260px;
  }

  .illust-tsumeru {
    width: 286px;
  }

  /* 就活 - イラスト */
  .illust-syuukatu {
    width: 286px;
    height: auto;
  }

  /* 郵便 - イラスト */
  .illust-youbin {
    width: 234px;
    height: auto;
  }

  /* BYE! - イラスト */
  .illust-bye {
    width: 234px;
    height: auto;
  }

  /* びじゅ - イラスト（PC） */
  .illust-biju {
    width: 220px;
    height: 220px;
  }

  /* 大切な資源 - イラスト */
  .illust-shigen {
    width: 286px;
    height: auto;
  }

  /* 顔GIF - アニメーションイラスト */
  .illust-kao {
    width: 304px;
    height: auto;
  }

  .chapter-1 .center .speech,
  .chapter-2 .center .speech,
  .chapter-3 .center .speech {
    width: fit-content;
  }

  .chapter-1 .left .speech,
  .chapter-2 .left .speech,
  .chapter-3 .left .speech {
    margin-left: -13%;
    margin-right: auto;
  }

  .chapter-1 .right .speech,
  .chapter-2 .right .speech,
  .chapter-3 .right .speech {
    margin-left: auto;
    margin-right: -13%;
  }
}

@media (max-width: 1024px) {
  .chapter-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .chapter-1 .center .speech,
  .chapter-2 .center .speech,
  .chapter-3 .center .speech {
    width: 100%;
    max-width: 760px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .chapter-1 .left .speech,
  .chapter-2 .left .speech,
  .chapter-3 .left .speech,
  .chapter-1 .right .speech,
  .chapter-2 .right .speech,
  .chapter-3 .right .speech {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
    max-width: 760px;
  }
}

.speaker1 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-size: 16px;
}
.text1 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-size: 16px;
}

.speaker2 {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 2em;
}
.text2 {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 2em;
}


.chapter-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;      /* もともとの本文幅に合わせてセンター寄せ */
  margin: 0 auto;
  padding-top: 900px;    /* 背景（800px）の下にコンテンツを配置。タイトルが斜辺に沿って下がる分も考慮 */
  padding-bottom: 80px;
  box-sizing: border-box;
}

.chapter-1 .chapter-inner,
.chapter-2 .chapter-inner,
.chapter-3 .chapter-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px; /* セクション同士の縦方向の空白量 */
}


.chapter {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 800px; /* 背景の高さを固定 */
  z-index: 0;
}

.bg-white {
  background: #fff;
  z-index: 1;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 70%,
    0 30%
  );
}

.bg-beige {
  z-index: 0;
  clip-path: polygon(
    0 30%,
    100% 70%,
    100% 100%,
    0 100%
  );
}

.chapter-1 .bg-beige {
  background: #FFFBC6;
}

.chapter-2 .bg-beige {
  background: #CEECF7;
}

/* シャボン玉オーバーレイ */
.bubble-overlay {
  position: absolute;
  top: 275px;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.bubble-layer {
  position: absolute;
  width: auto;
  height: auto;
  max-width: 100%;
}

/* 1.png - 上部に配置 */
.bubble-1 {
  top: 0;
  left: 0;
  z-index: 4;
}

/* 2.png - 1の下に配置 */
.bubble-2 {
  top: 280px;
  left: 0;
  z-index: 3;
}

/* 3.png - 左側に配置 */
.bubble-3 {
  top: 280px;
  left: 0;
  z-index: 2;
}

/* 4.png - 下部に配置 */
.bubble-4 {
  top: 580px;
  left: 0;
  z-index: 1;
}

@media (max-width: 768px) {
  .bubble-overlay {
    display: none;
  }
}

.chapter-3 .bg-beige {
  background: #CFE69E;
}

.title1 {
  position: absolute;
  left: 5%;
  top: 160px; /* 初期位置（JSで上書きされる。実際は30% = 240px） */
  z-index: 2;
  transform-origin: left center;
  display: flex;
  align-items: baseline;
  gap: 24px;
  white-space: nowrap;
}

.title1 .chapter-number {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
}

.title1 .chapter-title {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

/* 章ごとのタイトル色 */
.chapter-1 .title1 .chapter-number,
.chapter-1 .title1 .chapter-title {
  color: #7B7100;
}

.chapter-2 .title1 .chapter-number,
.chapter-2 .title1 .chapter-title {
  color: #00ABEB;
}

.chapter-3 .title1 .chapter-number,
.chapter-3 .title1 .chapter-title {
  color: #588100;
}

.chapter-logo {
  position: absolute;
  top: 140px;   /* タイトルより少し上に配置してバランスをとる */
  right: 5%;
  width: 168px;
  height: auto;
  z-index: 2;
}

@media (max-width: 768px) {
  .chapter-1,
  .chapter-2,
  .chapter-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .chapter-logo {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 120px;
    height: auto;
    z-index: 2;
    order: 1;
  }

  .title1 {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    transform-origin: center center;
    text-align: center;
    margin: 300px auto 40px auto;
    order: 2;
    justify-content: center;
  }

  .title1 .chapter-number {
    font-size: 32px;
  }

  .title1 .chapter-title {
    font-size: 20px;
  }

  .chapter-inner {
    order: 3;
    padding-top: 0;
  }

  .chapter-summary {
    order: 4;
  }

  .bg {
    height: 350px;
  }
  
  .bg-white {
    clip-path: polygon(
      0 0,
      100% 0,
      100% 80%,
      0 80%
    );
  }
  
  .bg-beige {
    clip-path: polygon(
      0 80%,
      100% 80%,
      100% 100%,
      0 100%
    );
  }

  .speaker1,
  .text1,
  .speaker2,
  .text2 {
    font-size: 14px;
    line-height: 1.9;
  }

  /* catch-quote（在学中に～）のフォントサイズを小さく、中央揃え */
  .catch-quote {
    font-size: 20px;
    text-align: center;
  }

  /* スマホではmobile-breakを表示、desktop-breakを非表示 */
  br.mobile-break {
    display: block;
  }

  br.desktop-break {
    display: none;
  }

  /* イラスト画像用の個別クラス（モバイル） */
  .illust-awa {
    width: 220px;
    height: auto;
  }

  .illust-mushi {
    width: 364px;
    margin-top: 16px;
  }

  .illust-trio {
    width: 208px;
  }

  .illust-saga {
    width: 169px;
  }

  .illust-clock {
    width: 195px;
  }

  /* GIF画像用の個別クラス（モバイル） */
  .illust-komaru {
    width: 169px;
  }

  .illust-tsumeru {
    width: 195px;
  }

  /* 就活 - イラスト（モバイル） */
  .illust-syuukatu {
    width: 195px;
  }

  /* 郵便 - イラスト（モバイル） */
  .illust-youbin {
    width: 169px;
  }

  /* BYE! - イラスト（モバイル） */
  .illust-bye {
    width: 169px;
  }

  /* びじゅ - イラスト（モバイル） */
  .illust-biju {
    width: 160px;
    height: 160px;
  }

  /* 大切な資源 - イラスト（モバイル） */
  .illust-shigen {
    width: 195px;
  }

  /* 顔GIF - アニメーションイラスト（モバイル） */
  .illust-kao {
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 220px;
  }

  /* スマホでのpersonレイアウト：画像→説明の順番に縦並び */
  .person {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .person-image {
    width: 150px;
    height: auto;
  }

  .person-text {
    text-align: center;
  }
}

/* speech */
.speech {
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: 920px;
  margin-bottom: 24px;
  box-sizing: border-box;
}


.speaker {
  width: 100px;
  flex-shrink: 0;
}

.content {
  width: 600px;
}

.speech.ishihama .speaker,
.speech.ishihama .content {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-size: 16px;
}

.speech.chiba .speaker,
.speech.chiba .content {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 2em;
}
.speech.align-left {
  margin-left: 0;
  margin-right: auto;
}

.speech.align-center {
  margin-left: auto;
  margin-right: auto;
}

.speech.align-right {
  margin-left: auto;
  margin-right: 0;
}

@media (max-width: 1024px) {

  .chapter-inner {
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
  }

  .speech {
    width: 100% !important;
    max-width: 760px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* firstindex.html styles */
.first-page {
  min-height: 100vh;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 60px 20px 40px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.header-section {
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-logo {
  width: 400px;
  height: auto;
  object-fit: contain;
}

.main-box {
  width: 100%;
  max-width: 700px;
  height: 200px;
  border: none;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 40px auto;
  overflow: hidden;
  animation: floatUpDown 3s ease-in-out infinite;
  background: linear-gradient(to right, #68A58A 24%, #88D8B5 50%, #C9FBE5 90%);
}

.main-box:nth-child(1) {
  animation-delay: 0s;
}

.main-box:nth-child(2) {
  animation-delay: 1.5s;
}

.main-box:hover {
  animation-play-state: paused;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.box-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.box-image {
  max-width: 55%;
  height: 94%;
  width: auto;
  object-fit: cover;
  border-radius: 20px;
  margin-left: -20px;
}

.box-person {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 400;
  font-size: 28px;
  color: #000;
}

.coming-soon-box {
  background: linear-gradient(to right, #F5E6C8 24%, #FFF2D9 50%, #FFFBF0 90%);
  cursor: default;
  opacity: 0.8;
}

.coming-soon-box .box-content {
  justify-content: flex-end;
}

.coming-soon-box:hover {
  transform: none;
  box-shadow: none;
}

.footer-section {
  text-align: center;
  width: 100%;
  margin-top: 40px;
}

.footer-text {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: #000;
}

.footer-subtext {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #888;
  margin-top: 10px;
  text-align: center;
}

@media (max-width: 768px) {
  .header-logo {
    width: 400px;
    height: auto;
  }

  .boxes-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
    justify-content: center;
  }

  .main-box {
    width: 100%;
    max-width: 700px;
    height: 200px;
    margin: 0 auto;
  }

  .box-content {
    flex-direction: column;
    padding: 15px 20px;
    gap: 10px;
  }

  .box-image {
    max-width: 60%;
    max-height: 50%;
  }

  .box-person {
    font-size: 24px;
  }

  .footer-text {
    font-size: 16px;
  }
}

/* Chapter Summary Section */
.chapter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* 章ごとのまとめ背景色 */
.chapter-1 .chapter-summary {
  background-color: #E6E2B0;
}

.chapter-2 .chapter-summary {
  background-color: #C2E0EB;
}

.chapter-3 .chapter-summary {
  background-color: #D2E6A8;
}

.summary-image {
  flex: 0 0 auto;
}

.summary-image img {
  max-width: 80%;
  height: auto;
  display: block;
}

.summary-text {
  flex: 1 1 auto;
  text-align: center;
}

.chapter-summary h2 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.6;
  margin: 0;
  color: #000;
}

.chapter-summary h2 .summary-number {
  color: #000;
  display: block;
  margin-bottom: 8px;
}

.chapter-summary h2 .summary-content {
  color: #000;
}

.chapter-1 .chapter-summary h2 .summary-content,
.chapter-2 .chapter-summary h2 .summary-content,
.chapter-3 .chapter-summary h2 .summary-content {
  color: #d32f2f;
}

@media (max-width: 1024px) {
  .chapter-summary {
    flex-direction: column;
    padding: 40px 20px;
    gap: 30px;
  }

  .summary-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .summary-text {
    width: 100%;
    text-align: center;
  }

  .chapter-summary h2 {
    font-size: 20px;
  }

  .chapter-summary h2 .summary-number {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .chapter-summary {
    padding: 30px 16px;
    gap: 20px;
  }

  .chapter-summary h2 {
    font-size: 18px;
  }

  .chapter-summary h2 .summary-number {
    font-size: 16px;
  }
}

/* Footer Section */
.site-footer {
  width: 100%;
  background-color: #fff;
}

.footer-top {
  background-color: #D2E6A8;
  padding: 60px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-top-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.footer-line1 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  font-size: 32px;
  color: #D2E6A8;
  margin: 0;
  line-height: 1.5;
}

.footer-line2 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  font-size: 32px;
  color: #C2E0EB;
  margin: 0;
  line-height: 1.5;
}

.footer-line3 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  font-size: 32px;
  color: #d6453d;
  margin: 0;
  line-height: 1.5;
}

.footer-bottom {
  background-color: #fff;
  padding: 60px 40px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-end {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #000;
  margin: 0;
}

.footer-question {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #000;
  margin: 0;
  text-align: center;
}

.footer-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  position: relative;
  min-height: 200px;
}

.footer-graphic-container {
  position: relative;
  display: inline-block;
}

.footer-jinsei {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-size: 140px;
  background: linear-gradient(to bottom, #ff0000, #ff8800, #ffdd00, #00ff00, #0088ff, #8800ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin: 0;
  display: block;
  position: relative;
  z-index: 2;
  transform: rotate(-3deg);
  font-style: italic;
}

.footer-strip {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 10px 25px;
  border-radius: 3px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-strip::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  width: 15px;
  height: 15px;
  background-color: rgba(255, 255, 255, 0.95);
  transform: rotate(45deg);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-strip::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 15px;
  height: 15px;
  background-color: rgba(255, 255, 255, 0.95);
  transform: rotate(45deg);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-strip-english {
  top: 100px;
  left: -80px;
  transform: rotate(-8deg);
  z-index: 1;
  white-space: nowrap;
}

.footer-strip-tenki {
  top: 140px;
  right: -100px;
  transform: rotate(5deg);
  z-index: 3;
}

.footer-strip-course {
  top: 220px;
  left: 30px;
  transform: rotate(-3deg);
  z-index: 1;
}

.footer-english {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #666;
  margin: 0;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.footer-tenki {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-size: 90px;
  color: #000;
  line-height: 1;
  margin: 0;
  display: block;
}

.footer-course {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #000;
  margin: 0;
  white-space: nowrap;
}

.footer-logo-link {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.footer-logo-link:hover {
  opacity: 0.8;
}

.footer-logo {
  width: 300px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .footer-graphic {
    min-height: 250px;
  }

  .footer-jinsei {
    font-size: 100px;
  }

  .footer-strip-english {
    top: 60px;
    left: -30px;
  }

  .footer-strip-tenki {
    top: 90px;
    right: -50px;
  }

  .footer-strip-course {
    top: 160px;
    left: 10px;
  }

  .footer-tenki {
    font-size: 70px;
  }

  .footer-english {
    font-size: 16px;
  }

  .footer-course {
    font-size: 14px;
  }
}

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

  .footer-top-content {
    gap: 15px;
  }

  .footer-line1,
  .footer-line2,
  .footer-line3 {
    font-size: 24px;
  }

  .footer-bottom {
    padding: 40px 20px 60px;
    gap: 20px;
  }

  .footer-end {
    font-size: 14px;
  }

  .footer-question {
    font-size: 18px;
  }

  .footer-graphic {
    min-height: 200px;
    margin: 30px 0;
  }

  .footer-jinsei {
    font-size: 80px;
  }

  .footer-strip-english {
    top: 50px;
    left: -20px;
  }

  .footer-strip-tenki {
    top: 70px;
    right: -30px;
  }

  .footer-strip-course {
    top: 130px;
    left: 5px;
  }

  .footer-tenki {
    font-size: 50px;
  }

  .footer-english {
    font-size: 14px;
  }

  .footer-course {
    font-size: 12px;
  }

  .footer-logo {
    width: 200px;
  }
}

/* ループ画像と静止画像のセクション */
.loop-portrait-section {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loop-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(images/メデデザ_人生の転機びじゅ.png);
  background-repeat: repeat-x;
  background-size: auto 80%;
  background-position: 0 center;
  z-index: 1;
  animation: bgloop 40s linear infinite;
  /* 左右のフェードアウト */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
}

@keyframes bgloop {
  0% {
    background-position: 0 center;
  }
  100% {
    background-position: -2000px center;
  }
}

.static-portrait {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-image {
  width: 300px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .loop-portrait-section {
    height: 300px;
  }

  .loop-background {
    background-size: auto 60%;
  }

  .portrait-image {
    width: 200px;
  }
}