/* 背景全体 */
body {
  margin: 0;
  padding: 0;
  background-color: #F3F3F3;
  font-family: sans-serif;
  min-height: 100vh;
}

/* 中央のコンテナ */
main {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 0px 0px 50px 0px;
  width: 90%;
  max-width: 1200px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  margin: 10px auto;
}

img {
  width: 100%;
}

.only-mobile {
display: none;
}


/************** ①メインビジュアル画像セクション *************/
.main-visual-section {
  width: 100%;
  position: relative;
  margin-bottom: 20px;
}

.main-visual-video {
  width: 100%;
  display: block;
  object-fit: cover;
  z-index: 1;
  position: relative;
  border-radius: 8px;
}

.main-logo-overlay {
  position: absolute;
  width: 48%;
  z-index: 5;
  top: 31.7%;
  left: 26%;
  filter: drop-shadow(0px 0px 20px white); /* 白の光彩 */

  opacity: 1;
  animation: fadeImage 10s forwards;
}

/* 表示開始時にフェード処理 */
@keyframes fadeImage {
  to {
    opacity: 0.3;
  }
}

/* スクロールでフェードアウト */
body.scrolled .main-logo-overlay {
  opacity: 0;
}


/************** ② STORY / WORLD, FEATURE セクション *************/
.story-section {
  padding: 40px;
  color: #003087;
  line-height: 0.9;
  font-size: 20px;
  text-shadow: 0 0 4px #fff, 0 0 10px #fff, 0 0 20px #fff;
}

.story-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.section-icon {
  max-width: 45px;
}

.story-heading h2 {
  font-size: 36px;
  font-weight: bold;
  color: #0047BB;
  margin: 0;
}

.story-body p {
  margin: 40px 0px 0px 55px;
  color: #001E62;
  white-space: pre-line;
}

/* 横並び基本レイアウト */
.story-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0px;
  flex-wrap: wrap;
}

/* 左側 信長画像：高さ260＋上下20px */
.left-image {
  padding-top: 50px;
  padding-bottom: 10px;
}
.left-image .story-image {
  max-height: 250px;
  width: auto !important;
}

/* 中央テキスト：アイチ君主 織田信長 */
.image-caption {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #001E62;
  line-height: 1.2;
  padding-bottom: 60px;
  display: flex;
  align-items: flex-end;
}

/* 右側竜宮国全体マップ画像：高さ300 */
.right-image .story-image {
  max-height: 350px;
}

/* 横並び基本レイアウト */
.story-image-wrapper2 {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 20px;
}

/* 画像２枚を横並び：高さ350 */
.left-image2,
.right-image2 {
  max-height: 300px;
  width: auto;
  border-radius: 8px;
}

/* 太字 強調表示 */
.emphasize {
  font-weight: bold;
}

/* ===== レスポンシブ 一般的なスマホサイズ ===== */
@media screen and (max-width: 1200px) {
  .story-section {
    line-height: 1.0;
    font-size: 18px;
  }

  .story-heading h2 {
    font-size: 30px;
  }

  .story-body p {
    margin: 40px 0px 0px 40px;
  }

  /* アイチ君主 織田信長 */
  .image-caption {
    font-size: 18px;
    padding-bottom: 50px;
  }
}

/* ===== 中段のキャンプと大蛇の画像を1000px以下で縦並びにする ===== */
@media screen and (max-width: 1000px) {
  .story-image-wrapper2 {
    justify-content: center;
  }

  .right-image2 {
    order: 2; /* ← 右画像を後ろに回す */
    margin-top: 20px; /* 下段に少し余白 */
  }
}


/* ===== 上段の信長と全国マップを、965px以下で縦並びにする ===== */
@media screen and (max-width: 965px) {
  .story-image-wrapper {
    justify-content: center;
  }

  .image-box.left-image .story-image {
    max-height: 350px;
    width: auto;
  }

  .image-caption {
    font-size: 20px;
    padding-bottom: 60px;
  }

  .right-image {
    width: 100%;
    display: flex;
    justify-content: center;
    order: 3;
    margin-top: -30px;
  }
}

@media screen and (max-width: 820px) {
  .story-section {
    padding: 10px;
    line-height: 1.1;
    font-size: 16px;
  }

  .section-icon {
    max-width: 30px;
  }

  .story-heading h2 {
    font-size: calc(12px + (30 - 12) * ((100vw - 300px) / (550 - 300)));
    font-size: 24px;
  }

  .story-body p {
    margin: 40px 0px 0px 20px;
  }
  .feature-title {
    font-size: 16px;
    margin: 60px 0px 0px 20px;
  }
  .feature-body p {
    margin: 20px 0px 0px 20px;
  }
  .right-image .story-image, .left-image2 {
    max-height: fit-content;
    width: 100%;
  }
}

/* ===== For a special title ===== */
@media screen and (max-width: 550px) {
  .only-mobile {
    display: inline-block;
  }
  .story-heading h2.shrink-with-width {
    font-size: calc(16px + (30 - 16) * ((100vw - 300px) / (550 - 300)));
  }
}



/*************************************/
/* 最終セクション全体 */
.jmez-section {
  display: flex;
  justify-content: center;
  align-items: center; /* 上下中央揃え */
  gap: 5px;
  flex-wrap: wrap;
  padding-top: 40px;
}

/* 各パート共通 */
.jmez-part {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 120px;
}

/* 左画像とテキスト */
.jmez-part.left img {
  min-width: 150px;
  max-width: 200px;
}
.jmez-text {
  font-size: 14px;
  margin-top: 10px;
  color: #333;
}

/* 中央画像 */
.jmez-part.center img {
  max-width: 500px;
}

/* 右画像とテキスト */
.jmez-right-top {
  display: flex;
  align-items: center;
  gap: 3px;
}
.jmez-right-top img {
  max-width: 110px;
  width: 70%;
}
.jmez-expand-text {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}
.jmez-description {
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.2;
  color: #333;
}

@media screen and (max-width: 1200px) {
  .jmez-section {
    flex-wrap: wrap;
    justify-content: center;
  }

  .jmez-part.left {
    order: 1;
    width: 40%;
    min-width: 165px;
  }

  .jmez-part.center {
    order: 2;
    width: 100%;
    margin-top: 0px;
  }

  .jmez-part.right {
    order: 3;
    width: 40%;
    min-width: 150px;
  }

  .jmez-part.right,
  .jmez-part.left {
    display: flex;
    align-items: center;
  }

  .jmez-right-top {
    min-width: 165px;
    max-width: 200px;
    align-items: center;
    max-height: 50px;
    min-height: 42px;
  }
}

@media screen and (max-width: 820px) {
  .jmez-expand-text {
    font-size: calc(9px + (18 - 9) * ((100vw - 300px) / (820 - 300)));
  }
}





/************** ③ フッターセクション *************/
/* フッターセクション全体 */
.footer-section {
  text-align: center;
  color: #333;
  margin-top: 0px;
}

/* 見出し CONTACT */
.footer-heading {
  font-size: 34px;
  font-weight: bold;
  color: #893D9F;
}

/* ロゴ画像 */
.footer-logo {
  margin-top: -20px;
  max-width: 175px;
  width: 100%;
}

/* 問い合わせ情報 */
.footer-contact {
  font-size: 16px;
  line-height: 1.5;
}

/* メールリンクのスタイル */
.email-link {
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

.email-link:hover {
  text-decoration: underline;
}

/* フッター最下部の著作権表示 */
.copyright {
  position: relative;
  margin: 20px auto;
  max-width: 1200px;
  text-align: center;
  color: #999999;  /* #F3F3F3 より少し濃いグレー */
  font-size: 12px;
  background-color: #F3F3F3;
}
