@charset "UTF-8";

/* =========================================================
    0. RESET / BASE
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  /* background-color: #f7f4ed;
  color: #333; */
  overflow-x: hidden;
}

.main-content-wrapper {
  position: relative;
  width: 100%;
}

/* =========================================================
    冒頭ローディング
========================================================= */
.hero-container-fixed {
  width: 100%;
  z-index: 999;
}

/* 全体のスクロール域（画面3つ分の高さ） */
.hero-container {
  z-index: 99999;
  position: relative;
  height: 300vh;
  width: 100%;
}

/* 画面上に固定される領域 */
.hero-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 各層の共通スタイル */
.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform, opacity;
  transform-origin: center center;
}

/* ① 最奥：背景ベースカラー ＆ 奥の縦波SVGパターン */
.layer-bg {
  z-index: 1;
  background-color: #fdfbf7;
  background-image: url('data:image/svg+xml;utf8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="130" height="170" viewBox="0 0 20 20" preserveAspectRatio="none"><path fill="none" stroke="%23e7e6d3" stroke-width=".3" d="m5-10q5 5 0 10t0 10 0 10 0 10m10-40q-5 5 0 10t0 10 0 10 0 10"/></svg>');
  background-repeat: repeat;
  background-size: 130px 170px;
}

/* 中央から差す放射状の光 */
.layer-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 70%);
}

/* ② 中央：テキストコンテンツ */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.hero-title {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(20px, 8vw, 36px);
  font-weight: bold;
  letter-spacing: 0.25em;
  color: #2b2b2b;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.hero-subtitle {
  font-size: 1.2rem;
  letter-spacing: 0.4em;
  color: #6b6255;
}

/* ③ 手前：霞雲SVG */
.layer-cloud {
  z-index: 3;
  pointer-events: none;
}

.layer-cloud svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* スクロールガイド */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: #888;
  z-index: 4;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

/* ---------------------------------------------------------
    冒頭画面：縮小＋フェードアウト
--------------------------------------------------------- */
@keyframes topCopyOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* ---------------------------------------------------------
    テキスト出現
--------------------------------------------------------- */
.fade-in-vertical {
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      #000 0%,
      #000 50%,
      transparent 100%
    );

  mask-image:
    linear-gradient(
      to bottom,
      #000 0%,
      #000 50%,
      transparent 100%
    );

  -webkit-mask-size: 100% 300%;
  mask-size: 100% 300%;
  animation: revealText 1s ease-out forwards;
}

@keyframes revealText {
  0% {
    -webkit-mask-position: 0 100%;
    mask-position: 0 100%;
    opacity: 0;
  }

  100% {
    -webkit-mask-position: 0 0%;
    mask-position: 0 0%;
    opacity: 1;
  }
}

/* =========================================================
    2. セクション共通
========================================================= */
section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  box-sizing: border-box;
  z-index: 1;
}

/* =========================================================
    3. SECTION 1
    ロゴ拡大パララックス
========================================================= */
.section1 {
  position: relative;
  z-index: 1;
  width: 100%;
  /*
    ロゴ拡大用のスクロール領域。
    100vhではパララックス距離が足りないため200vh。
  */
  height: 200vh;
  min-height: 200vh;
  background-color: #F7F4ED;
}

/* ---------------------------------------------------------
    Section1：固定コンテンツ
--------------------------------------------------------- */
.sticky-content {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
}

.sticky-content * {
  pointer-events: auto;
}

/* ---------------------------------------------------------
    Section1：背景
    冒頭ローディング終了後に拡大しながら出現
--------------------------------------------------------- */
.section1_bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: -1;
  display: block;

  /* 初期状態 */
  opacity: 0;
  transform: scale(0.72);
  transform-origin: center center;
  /* 冒頭画面が消えた直後に開始 */
  /* animation: section1BgIn 5s cubic-bezier(0.16, 1, 0.3, 1) 2.8s forwards; */
  will-change: transform, opacity;
}

/* ---------------------------------------------------------
    Section1背景：拡大＋フェードイン
--------------------------------------------------------- */
/* @keyframes section1BgIn {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
} */

/* ---------------------------------------------------------
    Section1：ロゴ
--------------------------------------------------------- */
.section1-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform:
    translate(-50%, -50%)
    scale(0.1);
  transform-origin: center center;
  transition: none !important;
  z-index: 2;
}

/* ---------------------------------------------------------
    ゆらゆらアニメーション
--------------------------------------------------------- */
/* @keyframes yurayura {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.yurayura {
  display: inline-block;
  animation:
    yurayura 3s ease-in-out infinite;
} */

/* =========================================================
    4. STORY 共通
========================================================= */
.story-inner {
  position: relative;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 14px;
  box-sizing: border-box;
  text-align: center;
}

/* ---------------------------------------------------------
    Story：タイトル
--------------------------------------------------------- */
.story-title {
  position: relative;
  margin: 0;
  font-family:
    "Yuji Syuku",
    "Hiragino Mincho ProN",
    "Yu Mincho",
    "YuMincho",
    serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: #fff9ed;
  text-align: center;
}

/* ---------------------------------------------------------
    Story：リード
--------------------------------------------------------- */
.story-lead {
  position: relative;
  margin: 60px 0 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: #fff9ed;
  text-align: center;
}

/* =========================================================
    5. ズームインアニメーション
========================================================= */
.animate-zoomIn {
  opacity: 0;
  transform: scale3d(0.3, 0.3, 0.3);
  transform-origin: center center;
}

.animate-zoomIn.active {
  animation: zoomIn 3s ease 1 both;
}

@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

/* =========================================================
    6. SECTION 2
========================================================= */
.section2 {
  z-index: 2;
  min-height: 100vh;
  height: auto;
  background-color: #F7F4ED;
}

.section2 p , .story-box p{
  color: #231815;
}

/* =========================================================
    7. SECTION 3
    3つの鬼
========================================================= */
.section3 {
  z-index: 3;
  min-height: 100vh;
  height: auto;
  padding: 40px 0 100px;
  background-color: #008080;
  position: relative;
  overflow: visible;
}

.momo {
  position: absolute;
  top: -240px;
  right: 6%;
  max-width: 200px;
  height: auto;
  animation: momoFlow 24s linear infinite;
}

  /* ゆらゆら大きめに揺れながら左方向に流れていく */
@keyframes momoFlow {
  0% {
    transform:
      translateX(0)
      translateY(0)
      rotate(0deg);
  }

  10% {
    transform:
      translateX(-10vw)
      translateY(-18px)
      rotate(6deg);
  }

  25% {
    transform:
      translateX(-25vw)
      translateY(12px)
      rotate(10deg);
  }

  40% {
    transform:
      translateX(-40vw)
      translateY(-22px)
      rotate(4deg);
  }

  55% {
    transform:
      translateX(-55vw)
      translateY(15px)
      rotate(-7deg);
  }

  70% {
    transform:
      translateX(-70vw)
      translateY(-20px)
      rotate(-10deg);
  }

  85% {
    transform:
      translateX(-90vw)
      translateY(10px)
      rotate(-4deg);
  }

  100% {
    transform:
      translateX(-120vw)
      translateY(0)
      rotate(0deg);
  }
}

/* ========================================
    section3 上端の細かく動く波
======================================== */
/* 波全体 */
.section3-wave-top {
  position: absolute;
  top:10px;
  left: 0;
  transform: translateY(-100%); 
  margin-bottom: -1px;
  width: 100%;
  height: auto;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
}

.section3-wave-top video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
  object-fit: cover;
  object-position: center center;
}

/* ========================================
    スマートフォン用 波
======================================== */
@media screen and (max-width: 767px) {
  .momo {
  max-width: 130px;
  top: -130px;
  animation: momoFlow 18s linear infinite;
}
 
}

/* ---------------------------------------------------------
    カードコンテナ
--------------------------------------------------------- */
.card-container {
  display: flex;
  gap: 20px;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------------------------------------------------------
    カード
--------------------------------------------------------- */
.card {
  flex: 1;
  padding: 30px 24px 40px;
  border-radius: 24px;
  color: #231815;
  background-color: #F7F5F2;
  box-sizing: border-box;
}

/* ---------------------------------------------------------
    赤いタグ
--------------------------------------------------------- */
.tag-red {
  position: absolute;
  display: flex;
  top: 20px;
  background-color: #D36D51;
  color: #fff;
  padding: 6px 16px;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 2px;
  z-index: 5;
  /* タグ自体も少し破れた形状にする */
  clip-path: polygon(
    0% 3%, 100% 0%, 98% 97%, 50% 100%, 2% 96%
  );
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.tag-red .label::before {
  content: "|";
  margin-right: 8px;
}

.tag-red .label {
  margin-bottom: 0;
}

/* ---------------------------------------------------------
    カードタイトル
--------------------------------------------------------- */
.card-title {
  margin: 44px 0 8px;
  font-family: "Kaisei Decol", serif;
  font-size: 32px;
  font-weight: normal;
  letter-spacing: 0.05em;
}

/* ---------------------------------------------------------
    カード画像
--------------------------------------------------------- */
.card-img-wrapper {
  width: 100%;
  margin: 30px 0px 10px 0;
  text-align: center;
}

.card-img {
  display: block;
  max-width:70%;
  height: auto;
  margin: 0 auto;
}

/* ---------------------------------------------------------
    カード本文
--------------------------------------------------------- */
.card-text {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.7;
}

/* ---------------------------------------------------------
    鬼カード：初期状態
--------------------------------------------------------- */
.oni-card {
  opacity: 0;
  transform: scaleY(0.05);
  transform-origin: center center;
  filter: blur(3px);
  transition:
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s ease,
    filter 0.7s ease;
  /* SVGマスクで破いた形に切り抜く */
  clip-path: url(#torn-paper);
  background-color: #fff;
  padding: 20px 20px 24px;
  /* ちょっと傾けてランダム感を出す場合 */
  transform: rotate(-1.5deg);
  transition: transform 0.3s ease, opacity 0.5s ease;
}

/* 2番目のカードだけ少し逆に傾けることで手作り感を演出 */
.oni-card:nth-child(2) {
  transform: rotate(1.9deg);
}

/* 3番目のカード */
.oni-card:nth-child(3) {
  transform: rotate(-1deg);
}

/* ---------------------------------------------------------
    鬼カード：表示状態
--------------------------------------------------------- */
.oni-card.show {
  opacity: 1;
  transform: scaleY(1);
  filter: blur(0);
}

/* =========================================================
    8. SECTION 4
========================================================= */
.section4 {
  z-index: 4;
  min-height: 80vh;
  height: auto;
  background-color: #008080;
  padding-bottom: 60px;
}

.section4 span {
  font-size: 56px;
}

.section4 .yurayura {
  width: 40%;
}

.section4 .story-lead {
  margin-top: 0;
}

/* =========================================================
    9. SECTION 5
    最後のCTAセクション
========================================================= */
.section5 {
  position: relative;
  z-index: 5;
  padding-top: 50px;
  width: 100%;
  min-height: 100vh;
  height: auto;
  background: #EFDBCB;
  overflow: hidden;
}

.story-box {
  background-color: rgba(247, 245, 242, 0.9);
  width: 80%;
   /* SVGマスクで破いた形に切り抜く */
  clip-path: url(#torn-paper);
  padding: 30px 16px 50px;
  margin: 0 auto;
}

/* ---------------------------------------------------------
    Section5：背景画像　回転
--------------------------------------------------------- */
.circle_bg {
  position: absolute;
  width: 120%;
  height: auto;
  /* 20秒かけて360度無限（infinite）に等速（linear）で回転 */
  animation: rotate_bg 50s linear infinite;
  /* 回転軸を中心にする（必要に応じて調整） */
  transform-origin: center center;
}

/* 360度回転させるアニメーションの定義 */
@keyframes rotate_bg {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------
    CTAボタン
--------------------------------------------------------- */
.story05-button {
  position: relative;
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60%;
  min-height: 78px;
  margin-top: 36px;
  padding: 0 34px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #df674e;
  color: #fff;
  font-family:
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
  font-size: clamp(18px, 1.8vw, 25px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transform: translateX(-50%);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.story05-button span {
  margin-left: 12px;
  font-size: 1.2em;
  transform: rotate(-45deg);
}

.story05-button:hover {
  transform:
    translateX(-50%)
    translateY(-5px);
  background: #d85b42;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ---------------------------------------------------------
    Section5：左右イラスト
--------------------------------------------------------- */
.story05-character-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  margin-top: -150px;
}

.story05-character {
  z-index: 2;
  width: min(25vw, 330px);
  pointer-events: none;
}

.story05-character img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
    既存コンテンツ追加CSS
========================================================= */
.content_div {
    max-width: 100% !important;
    position: relative;
    background-color: #F7F4ED;
}

.top_wrap {
    padding: 80px 15px 60px;
    max-width: 1180px;
    margin: auto;
}

/* =========================================================
    11. PC
========================================================= */
/* @media screen and (min-width: 1200px) {
  .section5 .story-title {
    font-size: 68px;
  }
} */

/* =========================================================
    12. タブレット
========================================================= */
@media screen and (max-width: 900px) {
  .section5 .story-title {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.4;
  }

  .section5 .story-lead {
    font-size: clamp(18px, 5vw, 28px);
    line-height: 1.7;
  }

  .story05-button {
    min-height: 68px;
  }
}

/* =========================================================
    13. タブレット以下
========================================================= */
@media screen and (max-width: 768px) {
.hero-title {
  font-size: clamp(20px, 8vw, 24px);
}

  .story-inner {
    padding: 60px 20px;
  }

  .story-lead {
    margin-top: 28px;
  }

  .card-container {
    flex-direction: column;
  }

  .section3 {
    padding: 40px 0 80px;
  }

  .section4 {
    padding: 60px 0;
  }

  .story05-character-container {
  margin-top: -60px;
}
}

/* =========================================================
    14. スマートフォン
========================================================= */

@media screen and (max-width: 600px) {
  .story-lead {
    margin-top: 24px;
    font-size: 18px;
  }

  .section2 {
    min-height: 80vh;
  }

  .section4 span {
    font-size: 40px;
}

  .section5 {
    min-height: 100svh;
  }

  .story-box {
  width: 100%;
  }

  .section4 .yurayura {
  width: 60%;
}

  .section5 .story-inner {
    min-height: 100svh;
    padding: 40px 15px 40px;
  }

  .section5 .story-title {
    margin-top: 12px;
    font-size: clamp(28px, 10vw, 34px);
    line-height: 1.25;
    letter-spacing: 0.03em;
  }

  .section5 .story-lead {
    font-size: clamp(16px, 5vw, 20px);
    line-height: 1.7;
  }

  .story05-button {
    min-height: 60px;
    width: 90%;
    margin-top: 28px;
    padding: 0 24px;
    font-size: 16px;
  }

  .story05-character-container {
    margin-top: -30px;
  }

  .story05-character {
    width: 38vw;
  }
}

/* =========================================================
    15. 小さいスマートフォン
========================================================= */
@media screen and (max-width: 480px) {
  .story-inner {
    padding:50px 16px 50px;
  }

    .section2 .story-inner {
    width: 98%;
    padding: 140px 16px 50px;;
  }


  .story-title {
    line-height: 1.45;
  }

  .section5 .story-title {
    margin-top: 12px;
    font-size: clamp(20px, 8vw, 28px);
    line-height: 1.25;
    letter-spacing: 0.03em;
  }

  .section5 .story-lead {
    font-size: clamp(14px, 5vw, 18px);
    line-height: 1.7;
  }
}