/* ===== Reset CSS ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-title,
  .hero__logo {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition-duration: 0.05s;
  }

  .hero-copy--secondary {
    transform: translate(-50%, 12px);
    transition-duration: 0.25s;
  }
}

body,
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, dl, dd,
figure, figcaption,
table, fieldset, legend {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* SPのみで改行する br（HTML で <br class="br-sp"> と指定） */
.br-sp {
  display: none;
}

/* ===== Base ===== */
body {
  font-size: 18px;
  font-family: "Noto Serif JP", serif;
  background-color: #F5F1E8;
  color: #2D2D2D;
  letter-spacing: 0.09rem;
  font-weight: 400;
}

html.hero-intro-lock,
body.hero-intro-lock {
  overflow: hidden;
  overscroll-behavior: none;
}

/* ===== スクロールアニメーション（IntersectionObserver で .visible を付与） ===== */
.scroll-anim.fade-up,
.scroll-anim.fade-in,
.scroll-anim.zoom-in {
  opacity: 0;
  transition:
    opacity 1.2s cubic-bezier(0.33, 1, 0.68, 1),
    transform 1.2s cubic-bezier(0.33, 1, 0.68, 1);
}

.scroll-anim.fade-up {
  transform: translateY(30px);
}

.scroll-anim.fade-in {
  transform: none;
}

.scroll-anim.zoom-in {
  transform: scale(1.04);
}

.scroll-anim.fade-up.visible,
.scroll-anim.fade-in.visible,
.scroll-anim.zoom-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.en-font {
  font-family: "Prata", "Noto Serif JP", serif;
}

/* ===== Hero ===== */
.hero-wrapper {
  height: 240vh;
}

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  contain: paint;
  --hero-p: 0;
  --hero-copy-p: 0;
}

.hero-wrapper {
  position: relative;
}

.hero-wrapper::after {
  content: none;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: clip;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 10, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(0);
  transform: scale(1);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.hero.scrolled .hero__img {
  filter: blur(10px);
  transform: scale(1.02);
}

.hero.scrolled .hero__video {
  filter: blur(10px);
  transform: scale3d(1, 1.02, 1);
}

.hero.scrolled .hero__media::after {
  opacity: 1;
}

.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__media video[hidden] {
  display: none !important;
}

/* 動画が再生できない場合の静止画（PC: top_pc.webp / SP: top_sp.webp） */
.hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  display: block;
}

.hero__fallback[hidden] {
  display: none !important;
}

.hero__fallback .hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 2rem 1rem;
  display: grid;
  grid-template-areas: "intro" "copy";
  gap: 0 0;
}

/* タイトル＋ロゴを 1 ブロックにし、グリッド・SP 双方で中央に揃える（PC サイズ。SP は下のメディアクエリで上書き） */
.hero__intro {
  grid-area: intro;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

@keyframes hero-intro-fade {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero-title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  backface-visibility: hidden;
  animation: hero-intro-fade 2s cubic-bezier(0.33, 1, 0.68, 1) 0s forwards;
  transition: opacity 1.15s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-copy {
  grid-area: copy;
  margin: 0;
  min-height: 0;
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
  letter-spacing: 0.08em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.hero-copy--secondary {
  position: absolute;
  left: 50%;
  bottom: 6rem;
  z-index: 1;
  width: min(90vw, 56rem);
  margin: 0;
  opacity: var(--hero-copy-p, 0);
  transform: translate(-50%, calc((1 - var(--hero-copy-p, 0)) * 32px));
  transition:
    opacity 1.0s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  line-height: 2;
  text-align: center;
  /* 非表示時は下層に置き、タイトル・ロゴの上に半透明レイヤーが乗らないようにする（特に iOS） */
  pointer-events: none;
}

/* イントロの forwards が opacity を保持するため、スクロール時は animation を切ってから消す */
.hero.scrolled .hero-title,
.hero.scrolled .hero__logo {
  animation: none;
  opacity: 0;
  transform: translate3d(0, 0, 0);
}

.hero.scrolled .hero-copy--secondary {
  z-index: 4;
  pointer-events: auto;
}

.hero__intro > h1 {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__logo {
  display: block;
  height: auto;
  max-width: 200px;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  flex-shrink: 0;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  backface-visibility: hidden;
  /* タイトルフェードと少し重ねて早めに表示（遅延は hero-title の 2s より前に開始） */
  animation: hero-intro-fade 1.35s cubic-bezier(0.33, 1, 0.68, 1) 0.45s forwards;
  transition: opacity 1.15s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ===== Layout ===== */
.container {
  width: 80%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

.section {
  padding-top: 10rem;
  padding-bottom: 10rem;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ===== Introduction ===== */
.intro {
  background-color: #FFFEFA;
  padding-bottom: 25%;
}

.intro {
  position: relative;
  overflow-x: clip;
}

/* Read more 展開時のみ、全幅背景を切らない（他セクションへ影響させない） */
.intro.intro--accordion-open {
  overflow-x: visible !important;
}

/* introセクション：画像 → 縦書きprimary → secondary → 以降の順次フェードアップ */
.intro .intro__media,
.intro .intro__vertical--primary,
.intro .intro__vertical--secondary,
.intro .intro__horizontal-line,
.intro .intro__read-more-wrap,
.intro .intro__iga-title,
.intro .intro__iga p,
.intro .intro__movie-inner {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.5s cubic-bezier(0.2, 0.65, 0.35, 1), transform 1.5s cubic-bezier(0.2, 0.65, 0.35, 1);
}

/* span は inline だと transform が効きにくいので block 化してタイトル・本文と同じフェードに揃える */
.intro .intro__iga > .intro__iga-citation {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.5s cubic-bezier(0.2, 0.65, 0.35, 1), transform 1.5s cubic-bezier(0.2, 0.65, 0.35, 1);
}

.intro.intro--visible .intro__media {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.intro.intro--visible .intro__vertical--primary {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.intro.intro--visible .intro__vertical--secondary {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}

/* 中段：行自体がビューに入ったタイミング（JS で .intro-row--visible） */
.intro__middle-row.intro-row--visible .intro__horizontal-line:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.intro__middle-row.intro-row--next .intro__horizontal-line:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

.intro__middle-row.intro-row--next .intro__horizontal-line:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.9s;
  line-height: 2.5rem;
}

.intro__middle-row.intro-row--next .intro__horizontal-line:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.35s;
}

.intro__middle-row.intro-row--visible .intro__read-more-wrap {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.75s;
}

/* 下段テキスト：.intro__iga 自体がビューに入ったタイミング */
.intro__iga.intro-row--visible .intro__iga-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.intro__iga.intro-row--visible p:nth-of-type(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.intro__iga.intro-row--visible p:nth-of-type(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.intro .intro__iga.intro-row--visible > .intro__iga-citation {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* 下段動画：.intro__movie がビューに入ったタイミング */
.intro__movie.intro-row--visible .intro__movie-inner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.intro::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 420px;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 254, 250, 1) 0%,
      rgba(255, 254, 250, 0.9) 15%,
      rgba(255, 254, 250, 0.52) 34%,
      rgba(255, 254, 250, 0.12) 54%,
      rgba(255, 254, 250, 0) 68%
    ),
    #402915;
}

.intro__top-row {
  align-items: top;
  margin: 10% auto;
  gap: 5rem;
  height: 70vh;
}

.intro__media {
  position: relative;
  width: 130%;
  height: 70%;
  overflow: visible;
  border-radius: 12px;
}

.intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.intro__vertical-col {
  position: relative;
  min-height: 260px;
  height: 100%;
  width: 80%;
  margin: 0 auto;
  font-size: 1.1rem;
  font-weight: 300;
}

.intro__vertical {
  position: absolute;
  writing-mode: vertical-rl;
  text-orientation: upright;
  margin: 0;
  letter-spacing: 0.3em;
  line-height: 2.4;
  /* <br> 以外では折り返さず、行の高さ（縦方向の長さ）を確保する */
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.intro__vertical--primary {
  top: 8%;
  right: 0;
}

.intro__vertical--secondary {
  top: 40%;
  right: 40%;
}

.intro__middle-row {
  max-width: 40rem;
  margin: 15% auto;
  text-align: center;
}

.intro__horizontal {
  margin: 0 auto 2rem;
  line-height: 2.2;
  color: inherit;
  font-size: 1rem;
}

.intro__horizontal--gradient {
  color: #F47A2A;
  -webkit-text-fill-color: currentColor;
  font-weight: 600;
  letter-spacing: 0.25rem;
}



.intro__horizontal-line {
  display: block;
  margin-bottom: 0.6em;
}

.intro__char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  filter: blur(2px);
}

.intro__middle-row.intro-row--next .intro__horizontal-line .intro__char {
  animation: intro-char-flow 1.05s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: calc(var(--line-delay, 0s) + (var(--char-order, 0) * 0.05s));
}

/* 1行目は文字流しを使わず、行全体のフェードアップのみ */
.intro__middle-row .intro__horizontal-line:nth-child(1) .intro__char {
  opacity: 1;
  transform: none;
  filter: none;
}

.intro__middle-row.intro-row--visible .intro__horizontal-line:nth-child(1) .intro__char {
  animation: none;
}

/* 指定3行（gradient行）を段階的に出現させる */
.intro__middle-row .intro__horizontal-line:nth-child(2) {
  --line-delay: 0s;
}

.intro__middle-row .intro__horizontal-line:nth-child(3) {
  --line-delay: 0.42s;
}

.intro__middle-row .intro__horizontal-line:nth-child(4) {
  --line-delay: 0.84s;
}

/* Read more 展開後に「今度は私が私を守る番」を1文字ずつ表示 */
.intro__accordion .intro__accordion-gradient .intro__char {
  opacity: 0;
  transform: translate3d(0, 0.45em, 0);
  /* iOS実機で blur が文字のガタつきを誘発しやすいので使わない */
  filter: none;
  backface-visibility: hidden;
}

.intro__accordion.is-open .intro__accordion-gradient .intro__char {
  animation: intro-char-flow-noblur 0.95s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: calc(0.18s + (var(--char-order, 0) * 0.05s));
}

@keyframes intro-char-flow-noblur {
  0% {
    opacity: 0;
    transform: translate3d(0, 0.55em, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* SP：Read more内の文字ガタつき回避のため、文字分割アニメは使わず行全体でふわっと表示 */
@media (max-width: 767px) {
  /* SPは中段テキストの文字ブラーを無効化（opacity/移動のみ） */
  .intro__middle-row .intro__horizontal-line .intro__char {
    filter: none;
  }

  .intro__middle-row.intro-row--next .intro__horizontal-line .intro__char {
    animation-name: intro-char-flow-noblur;
  }

  .intro__accordion .intro__accordion-gradient {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    transition:
      opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }

  .intro__accordion.is-open .intro__accordion-gradient {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0.18s;
  }
}

@keyframes intro-char-flow {
  0% {
    opacity: 0;
    transform: translateY(0.55em);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* タッチ端末では文字ブラーを使わず、にじみを防ぐ（intro中段のみ） */
@media (hover: none) and (pointer: coarse) {
  .intro__middle-row .intro__horizontal-line .intro__char {
    filter: none;
  }

  .intro__middle-row.intro-row--next .intro__horizontal-line .intro__char {
    animation-name: intro-char-flow-noblur;
  }
}

.intro__horizontal-line:last-child {
  margin-bottom: 0;
}

.intro__horizontal-line--first {
  padding: 0 0 10%;
}

.intro__horizontal-line--accent {
  font-size: 1em;
}
.shine1, .shine2, .shine3 {
  background-image: linear-gradient(
		70deg,
		rgb(64, 41, 21, 1)  40%, 
		#A6936F 50%,
		rgb(64, 41, 21, 1)  50%
	  );
	  background-size: 450% 100%;
    background-clip: text;
  	-webkit-background-clip: text;
	  color: transparent;
    animation: shine 10s infinite;
}
.shine1{
  animation-delay: 1s;
}
.shine2{
  animation-delay: 3s;
}
@keyframes shine {
	0% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}
.intro__read-more-wrap {
  text-align: center;
  margin-bottom: 0.4rem;
}

.intro__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 2rem;
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #a87d4a;
  background: transparent;
  border: 1px solid #a87d4a;
  border-radius: 999px;
  z-index: 100;
  cursor: pointer;
  /* .intro__read-more-wrap 側の装飾指定があっても + / 回転後も実色にする */
  -webkit-text-fill-color: currentColor;
  transition:
    color 0.75s cubic-bezier(0.33, 1, 0.68, 1),
    border-color 0.75s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.intro__read-more:hover {
  color: #8f6a3d;
  border-color: #8f6a3d;
}

.intro__read-more:active {
  transform: scale(0.985);
}

.intro__read-more-icon {
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
  color: currentColor;
  -webkit-text-fill-color: currentColor;
  transform-origin: 50% 55%;
  transition: transform 1s cubic-bezier(0.33, 1, 0.68, 1);
}

.intro__read-more[aria-expanded="true"] .intro__read-more-icon {
  transform: rotate(135deg);
}

.intro__accordion {
  position: relative;
  overflow: hidden;
  transition:
    grid-template-rows 1.45s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 1.05s cubic-bezier(0.33, 1, 0.68, 1);
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
}

/* 開いたときは全幅 ::before を見せるため visible（横のはみ出しは .intro の overflow-x: clip で抑止） */
.intro__accordion.is-open {
  overflow: visible;
  grid-template-rows: 1fr;
  opacity: 1;
}

/* SP実機のガタつき対策：intro の Read more 周りだけ、同時に動くプロパティを減らす */
@media (max-width: 767px) {
  /* Read more の出現時ブレ対策：SPでは移動なし・opacityのみで表示 */
  .intro .intro__read-more-wrap {
    opacity: 0;
    transform: none;
    transition: opacity 1.15s ease;
    will-change: opacity;
  }

  .intro__middle-row.intro-row--visible .intro__read-more-wrap {
    opacity: 1;
    transform: none;
    /* horizontal 行の表示完了後に出して重なりを回避 */
    transition-delay: 2.9s;
  }

  /* ボタンは開閉中も位置・サイズ固定（transform を使わない） */
  .intro__read-more {
    transition:
      color 0.75s cubic-bezier(0.33, 1, 0.68, 1),
      border-color 0.75s cubic-bezier(0.33, 1, 0.68, 1);
    position: relative;
    z-index: 2;
    transform: none !important;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-tap-highlight-color: transparent;
    border: 0.75px solid #a87d4a;
    outline: 0.25px solid #a87d4a;
    outline-offset: 0;
    box-shadow: none;
  }

  .intro__read-more:active {
    transform: none;
  }

  .intro__read-more:hover {
    border-color: #8f6a3d;
    outline-color: #8f6a3d;
  }

  /* grid-template-rows のアニメは iOS で揺れやすいので、SPでは高さ変化は即時・フェードのみ */
  .intro__accordion {
    transition: opacity 0.35s cubic-bezier(0.33, 1, 0.68, 1);
    /* 全幅背景（::before）をクリップしない。is-open でも切替しない */
    overflow: visible;
  }

  .intro__accordion.is-open {
    overflow: visible;
  }
}

.intro__accordion::before {
  content: "";
  position: absolute;
  /* container 内でも確実に画面いっぱいに伸ばす（full-bleed） */
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  transform: translateZ(0);
  top: 0;
  bottom: 0;
  /* 展開時背景：画面いっぱいのベース色 + 上下にグラデーション */
  background:
    linear-gradient(
      to bottom,
      rgba(255, 254, 250, 0.98) 0%,
      rgba(245, 241, 232, 0) 20%
    ),
    linear-gradient(
      to top,
      rgba(255, 254, 250, 0.98) 0%,
      rgba(245, 241, 232, 0) 20%
    ),
    #F5F1E8;
  box-shadow:
    inset 0 56px 90px rgba(245, 241, 232, 0.22),
    inset 0 -56px 90px rgba(245, 241, 232, 0.22),
    0 -26px 120px rgba(245, 241, 232, 0.28),
    0 26px 120px rgba(245, 241, 232, 0.28);
  /* iOSで filter + 巨大shadow がガタつきやすいため、filter は使わない */
  filter: none;
  will-change: opacity;
  backface-visibility: hidden;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.95s cubic-bezier(0.33, 1, 0.68, 1);
}

.intro__accordion.is-open::before {
  opacity: 1;
  transition-delay: 0.14s;
}

.intro__accordion:not(.is-open)::before {
  transition-delay: 0s;
}

.intro__accordion-inner {
  position: relative;
  z-index: 1;
  min-height: 0;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 1.15s cubic-bezier(0.33, 1, 0.68, 1),
    transform 1.25s cubic-bezier(0.33, 1, 0.68, 1);
}

.intro__accordion.is-open .intro__accordion-inner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.14s;
}

.intro__accordion:not(.is-open) .intro__accordion-inner {
  transition-delay: 0s;
  transition-duration: 0.55s, 0.6s;
  transition-timing-function: cubic-bezier(0.55, 0, 0.85, 0.45), cubic-bezier(0.55, 0, 0.85, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .intro__char {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none !important;
  }

  .intro__read-more {
    transition-duration: 0.2s;
  }

  .intro__read-more-icon {
    transition-duration: 0.2s;
  }

  .intro__accordion {
    transition-duration: 0.3s;
  }

  .intro__accordion-inner {
    transition-duration: 0.2s;
    transition-delay: 0s !important;
  }

  .intro__accordion::before {
    transition-duration: 0.2s;
    transition-delay: 0s !important;
  }
}

.intro__accordion-poem {
  margin: 10% auto 0;
  max-width: 36em;
  padding: 1.75rem 0 5rem;
  line-height: 3;
  font-size: 1rem;
  font-weight: 300;
  box-sizing: border-box;
  color: #402915;
}

.intro__bottom-row {
  display: block;
  position: relative;
  margin-top: 3rem;
  gap: 3rem;
  align-items: start;
  padding-bottom: 5rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr);
}

.intro__iga-title {
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
  font-weight: 300;
}

.intro__iga p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 2.2;
}

.intro__iga {
  position: absolute;
  left: 12%;
  top: 40%;
  max-width: 50rem;
  z-index: 2;
}

.intro__iga p:last-child {
  margin-bottom: 0;
}

.intro__iga-citation {
  font-size: 0.8rem;
}

.intro__movie-inner {
  position: relative;
  max-width: 500px;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-left: auto;
  border-radius: 12px;
  overflow: hidden;
}

.intro__movie video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.intro__movie-label {
  position: absolute;
  left: 8%;
  top: 12%;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
}

/* ===== Data（1画面固定のスクロール演出） ===== */
.data-section {
  min-height: 240vh;
  background-color: #402915;
  color: #FFFFFF;
}

.data-section {
  position: relative;
}

.data-sticky-screen {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 1000px;
  height: 100vh;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  box-sizing: border-box;
}

.data-left {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: center;
  text-align: left;
  max-width: 28rem;
  font-size: 0.9375rem;
  font-weight: 300;
}

.data-title {
  margin: 0 0 2rem;
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: left;
  font-weight: 300;
}

.data-text {
  margin: 0 0 1rem;
  line-height: 1.9;
}

.data-text:last-child {
  margin-bottom: 0;
}

.data-right {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.graph-stage {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 500px;
}

.graph-stage::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  z-index: 0;
  pointer-events: none;
}

.graph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.graph.active {
  opacity: 1;
}

@media (min-width: 769px) {
  .data-left {
    justify-self: start;
    margin-left: -24px;
  }
}

/* ===== Features ===== */
.features {
  background-color: #402915;
  color: #f7efe6;
  padding: 8rem 1.5rem 15rem;
}

.features {
  position: relative;
  padding-bottom: 40%;
}

.features::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 420px;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(64, 41, 21, 1) 0%,
      rgba(64, 41, 21, 0.9) 15%,
      rgba(64, 41, 21, 0.52) 34%,
      rgba(64, 41, 21, 0.12) 54%,
      rgba(64, 41, 21, 0) 68%
    ),
    #F5F1E8;
}

.features .container {
  width: 90%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-sizing: border-box;
}

.features__title {
  margin: 0 0 3rem;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.features__title-accent {
  color: #F47A2A;
}

.features__grid {
  max-width: 960px;
  list-style: none;
  margin: 0 auto 5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.features__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  backface-visibility: hidden;
}

.features.is-visible .features__card {
  animation: features-fade-in 1.25s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.features.is-visible .features__card:nth-child(1) { animation-delay: 0s; }
.features.is-visible .features__card:nth-child(2) { animation-delay: 0.32s; }
.features.is-visible .features__card:nth-child(3) { animation-delay: 0.6s; }
.features.is-visible .features__card:nth-child(4) { animation-delay: 0.88s; }

@keyframes features-fade-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.features__icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
}

.features__text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.8;
}

/* ===== User Voice ===== */
.voice {
  padding: 5rem 1.5rem 15rem;
  background-color: #F5F1E8;
}

.voice {
  position: relative;
}

.voice::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 200px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(245, 241, 232, 0),
    rgba(245, 241, 232, 1) 40%,
    rgba(255, 254, 250, 0.9) 80%,
    #FFFEFA 100%
  );
  z-index: 1;
}

.voice__container {
  width: 80%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.voice__title {
  margin: 0 0 3.5rem;
  font-size: 1.75rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.02em;
  color: #F47A2A;
}

/* カルーセル：左右のスライドが見切れるフル幅 */
.voice__swiper-wrap {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
}

.voice-swiper {
  overflow: hidden;
  padding: 0 0.5rem 0.25rem;
}

/* slidesPerView は JS で指定。幅は Swiper に任せ、固定 width は付けない */
.voice-swiper .swiper-slide {
  height: auto;
  box-sizing: border-box;
  transition: opacity 0.6s ease, transform 0.6s ease;
  opacity: 0.55;
  transform: scale(0.96);
}

.voice-swiper .swiper-slide-active,
.voice-swiper .swiper-slide-next,
.voice-swiper .swiper-slide-prev {
  opacity: 1;
  transform: scale(1);
}

@media (min-width: 769px) {
  .voice-swiper .swiper-slide {
    opacity: 0.8;
    transform: scale(0.985);
  }

  .voice-swiper .swiper-slide-active,
  .voice-swiper .swiper-slide-next,
  .voice-swiper .swiper-slide-next + .swiper-slide {
    opacity: 1;
    transform: scale(1);
  }
}

.voice-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  margin: 0;
  padding: 3.5rem 2rem 4rem;
  border-radius: 18px;
  border: 0.5px solid #2d2d2d;
  box-sizing: border-box;
  text-align: left;
}

/* User's Voice：セクション表示時にカードをふわっと（IntersectionObserver で .voice--in-view） */
.voice .voice-card {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.95s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.95s cubic-bezier(0.33, 1, 0.68, 1);
}

.voice.voice--in-view .voice-card {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .voice .voice-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.voice-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 1.25rem;
  align-items: center;
}

.voice-card__media {
  overflow: hidden;
  background-color: #ebe8e2;
}

/* PC：3枚並び時にカードが詰まりすぎないよう User's Voice のみ調整 */
@media (min-width: 769px) {
  .voice .voice-card {
    padding: 3.5rem 2rem 4rem;
  }

  .voice .voice-card__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem 1rem;
  }

  .voice .voice-card__name,
  .voice .voice-card__age,
  .voice .voice-card__role {
    font-size: 0.75rem;
  }

  .voice .voice-card__text {
    font-size: 0.8rem;
    line-height: 1.85;
  }
}

.voice-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.voice-card__profile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  min-width: 0;
}

.voice-card__name,
.voice-card__age,
.voice-card__role {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #2d2d2d;
}

.voice-card__name {
  font-weight: 500;
}

.voice-card__role {
  font-weight: 300;
}

.voice-card__text {
  margin: 3.25rem 0 0;
  padding: 0;
  width: 100%;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: #333;
  text-align: left;
}

.voice-swiper__pagination.swiper-pagination {
  position: relative;
  margin-top: 2.75rem;
}

.voice-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d4cfc7;
  opacity: 1;
}

.voice-swiper .swiper-pagination-bullet-active {
  background: #666;
}

/* ===== 研究・監修紹介 ===== */
.research {
  padding: 10rem 1.5rem;
  background-color: #FFFEFA;
}

.research {
  position: relative;
}

.research::after {
  content: none;
}

.research__container {
  width: 80%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.research__title {
  margin: 0 0 8rem;
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.research__heading {
  margin: 0 0 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.02em;
  color:#A6936F;
}

.research__top {
  margin-bottom: 4rem;
}

.research__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3rem;
  justify-content: center;
}

.research__grid--4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.research-card {
  text-align: center;
}

/* research グリッド：セクション表示時に features と同じふわっとフェードイン */
.research-card,
.research-supervisor {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  backface-visibility: hidden;
}

.research.is-visible .research-card,
.research.is-visible .research-supervisor {
  animation: features-fade-in 1.25s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.research.is-visible .research__grid--4 .research-card:nth-child(1) {
  animation-delay: 0s;
}
.research.is-visible .research__grid--4 .research-card:nth-child(2) {
  animation-delay: 0.32s;
}
.research.is-visible .research__grid--4 .research-card:nth-child(3) {
  animation-delay: 0.6s;
}
.research.is-visible .research__grid--4 .research-card:nth-child(4) {
  animation-delay: 0.88s;
}

/* 下段：上段4枚のフェードが進んでから順に表示 */
.research.is-visible .research__grid--3 .research-supervisor:nth-child(1) {
  animation-delay: 1.05s;
}
.research.is-visible .research__grid--3 .research-supervisor:nth-child(2) {
  animation-delay: 1.37s;
}
.research.is-visible .research__grid--3 .research-supervisor:nth-child(3) {
  animation-delay: 1.69s;
}

.research-card__img {
  width: 100%;
  aspect-ratio: 200 / 140;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 1rem;
}

.research-card__org {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.research-card__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.research__middle {
  margin-bottom: 4rem;
  text-align: center;
}

.research__lead {
  margin: 5rem auto;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: #F47A2A;
  max-width: 45rem;
}

@media (max-width: 767px) {
  .research__lead {
    letter-spacing: -0.01em;
  }
}

.research__bottom {
  margin-bottom: 0;
}

.research__grid--3 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  gap: 1rem 3rem;
}

.research-supervisor {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  grid-template-columns: 1fr;
  text-align: center;
  align-items: start;
}

/* 旧5行レイアウトで空いていた 120px 行分の下余白（PCのみ維持） */
@media (min-width: 769px) {
  .research__bottom {
    padding-bottom: 120px;
    box-sizing: border-box;
  }
}

.research-supervisor__org {
  margin: 0 0 0.15rem;
  font-size: 0.7rem;
}

.research-supervisor__org:last-of-type {
  margin-bottom: 0.25rem;
}


.research-supervisor__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  justify-self: center;
}

.research-supervisor__name {
  margin: 0;
  font-size: 0.8rem;
}

/* ===== Story ===== */
.story-section {
  min-height: 500vh;
  background-color: #C6A47A;
  padding: 18rem 0;
}

.story-section {
  position: relative;
}

.story-section::before,
.story-section::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
  z-index: 0;
}

.story-section::before {
  top: 0;
  background: linear-gradient(
    to bottom,
    #FFFEFA 0%,
    rgba(255, 254, 250, 0.7) 35%,
    rgba(198, 164, 122, 0) 100%
  );
}

.story-section::after {
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(198, 164, 122, 0) 0%,
    rgba(248, 246, 242, 0.75) 65%,
    #F8F6F2 100%
  );
}

.story-section__title,
.story-sticky-screen {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .story-section::before,
  .story-section::after {
    height: 120px;
  }
}

.story-section__title {
  margin: 0;
  padding: 3rem 1.5rem 6rem;
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.story-sticky-screen {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.story-left {
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  box-sizing: border-box;
}

.story-images {
  position: relative;
  width: 90%;
  max-width: 56rem;
  height: 100%;
  margin-left: auto;
}

.story-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.story-image.active {
  opacity: 1;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-right {
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 3rem 4rem;
  box-sizing: border-box;
  background-color: #C6A47A;
  color: #FFFFFF;
}

.story-contents {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  min-height: 0;
}

.story-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.story-content.active {
  opacity: 1;
  pointer-events: auto;
}

.story-content__title {
  margin: 0 0 2rem;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #FFFFFF;
}

.story-content__text {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 2.5;
  color: #FFFFFF;
}

.story-content__accordion-wrap {
  margin: 0;
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

/* アコーディオン開時：border を wrap にまとめ、上下同じ幅に */
.story-content__accordion-wrap:has(.story-content__accordion.is-open) {
  border-top: 0.75px solid rgba(255, 255, 255, 1);
  border-bottom: 0.75px solid rgba(255, 255, 255, 1);
}

.story-content__accordion-wrap:has(.story-content__accordion.is-open) .story-content__link {
  border-top: none;
  border-bottom: none;
}

.story-content__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 0;
  padding: 1rem 1.5rem 1rem;
  border: 0;
  border-top: 0.75px solid rgba(255, 255, 255, 1);
  border-bottom: 0.75px solid rgba(255, 255, 255, 1);
  background: none;
  font: inherit;
  font-size: 0.85rem;
  color: #FFFFFF;
  cursor: pointer;
  text-align: left;
  width: fit-content;
}

.story-content__link-icon {
  flex-shrink: 0;
}

.story-content__accordion {
  overflow: hidden;
  transition: grid-template-rows 0.3s ease;
  display: grid;
  grid-template-rows: 0fr;
  align-content: start;
}

.story-content__accordion.is-open {
  grid-template-rows: 1fr;
}

/* 閉じた状態：中身を1pxも見せない（表示崩れ修正） */
.story-content__accordion:not(.is-open) {
  overflow: hidden;
}
.story-content__accordion:not(.is-open) .story-content__accordion-inner {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}
.story-content__accordion:not(.is-open) .story-content__accordion-inner > * {
  margin-top: 0;
  margin-bottom: 0;
}
/* 開いた状態：padding / margin / opacity / max-height を戻す */
.story-content__accordion.is-open .story-content__accordion-inner {
  max-height: 2000px;
  opacity: 1;
  padding-top: 1rem;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.story-content__accordion-inner {
  min-height: 0;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  width: 90%;
  margin: 0 auto;
  overflow: hidden;
}

.story-content__accordion-text-wrap {
  flex: 1;
  min-width: 0;
}

.story-content__accordion-text {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  line-height: 1.9;
  color: #FFFFFF;
}

.story-content__accordion-caption {
  margin: 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.9);
}

.story-content__accordion-media {
  flex: 0 0 auto;
  max-width: 200px;
}

.story-content__accordion-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: top;
}

.story-content__accordion-inner--text {
  flex-direction: column;
  gap: 0.75rem 0;
}

.story-content__ingredients-block {
  margin: 0;
}

.story-content__ingredients-label {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  color: #FFFFFF;
}

.story-content__ingredients-detail {
  margin: 0 0 0 1em;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: #FFFFFF;
}

/* ===== Product 商品詳細 ===== */
.product-section {
  padding: 18rem 1.5rem 9rem;
  background-color: #F8F6F2;
  height: auto;
}

.product-section {
  position: relative;
}

.product-section .container {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

.product__image-wrap {
  margin: 0 auto 3rem;
  max-width: 500px;
  height: 100%;
}

.product__image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.product__info {
  text-align: center;
  margin-bottom: 3rem;
}

.product__label {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: #2D2D2D;
}

.product__name {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: #2D2D2D;
}

.product__price {
  margin: 0;
  font-size: 1.2rem;
  color: #2D2D2D;
}

.product__price-tax {
  font-size: 0.9rem;
  color: #2D2D2D;
}

.product__regular {
  margin-top: 3rem;
}

.product__regular-label {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 300;
  color: #A6936F;
}

.product__regular-price {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 300;
  color: #A6936F;
}
.product__regular-price .product__price-tax{
  color: #A6936F;
}

.product__regular-note {
  margin: 2rem auto 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #2D2D2D;
}

.product__regular-note-accent {
  color: #F47A2A;
}

.product__refund-wrap {
  margin: 1.75rem auto 1.2rem;
}

.product__refund-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #a6936fbc;
  border: none;
  border-radius: 5px;
  padding: 0.5rem 1.6rem;
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.product__refund-modal[hidden] {
  display: none;
}

.product__refund-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.28s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.product__refund-modal.is-open {
  opacity: 1;
}

.product__refund-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #4029156f;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.product__refund-modal.is-open .product__refund-modal-backdrop {
  opacity: 1;
}

.product__refund-modal-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 760px);
  max-height: min(90vh, 720px);
  margin: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  overflow: auto;
  background: #fcfbf7;
  border-radius: 10px;
  padding: 3rem 5rem;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(10px);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.product__refund-modal.is-open .product__refund-modal-panel {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 767px) {
  .product__refund-modal-panel {
    padding: 3rem 2rem;
  }
}

.product__refund-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  border: none;
  background: none;
  color: #A6936F;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.product__refund-inner {
  margin-top: 0.5rem;
  text-align: left;
}

.product__refund-text {
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  line-height: 2;
  color: #3f372b;
}

.product__refund-text:last-child {
  margin-bottom: 0;
}

#refund-modal-title {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 1.5rem;
  border-bottom: 0.75px solid #A6936F;
  padding-bottom: 1rem;
}

@media (max-width: 767px) {
  #refund-modal-title {
    font-size: 0.9rem;
  }
}

.product__accordion-wrap {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.set-toggle {
  width: 100%;
  box-sizing: border-box;
  background-color: transparent;
  padding: 2rem 1rem;
  transition: background-color 0.6s ease;
}

.product__accordion-wrap.is-open .set-toggle {
  background-color: #402915;
}

.set-line {
  width: 20%;
  height: 0.5px;
  background: #2D2D2D;
  margin: 0 auto;
  transition: background-color 0.5s ease, opacity 0.5s ease;
}

.product__accordion-wrap.is-open .set-line {
  opacity: 0;
  pointer-events: none;
}

.set-button {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 15px 0;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.8rem;
  color: #2D2D2D;
  cursor: pointer;
  transition: color 0.5s ease;
}

.product__accordion-wrap.is-open .set-button {
  color: rgba(255, 255, 255, 1);
}

.product__accordion-wrap.is-open .set-icon {
  color: rgba(255, 255, 255, 1);
}

.set-text {
  flex-shrink: 0;
  font-size: 0.9rem;
}

.set-icon {
  flex-shrink: 0;
  transition: color 0.5s ease;
}

.product__accordion-body-wrap.set-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);
  width: 100%;
  box-sizing: border-box;
  transition: max-height 0.6s ease, opacity 0.45s ease, transform 0.5s ease;
}

.product__accordion-body-wrap.set-content.is-open {
  opacity: 1;
  transform: translateY(0);
}

.product__accordion-inner {
  padding: 3rem 1rem 3.5rem;
  margin-top: 1rem;
  background-color: #402915;
  border-radius: 0;
  width: 100%;
  box-sizing: border-box;
}

.product__accordion-line {
  margin: 0 0 1.5rem;
  border: 0;
  border-top: 0.75px solid rgba(255, 255, 255, 1);
}

.product__accordion-inner .product__accordion-line:last-of-type {
  margin: 1.5rem 0 0;
}

.product__accordion-title {
  margin: 0 0 3rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  letter-spacing: 0.05em;
}

.product__accordion-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
}

.product__accordion-item {
  flex: 0 0 auto;
  width: 140px;
  text-align: center;
}

.product__accordion-item-circle {
  width: 120px;
  height: 120px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product__accordion-item-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product__accordion-item-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 1);
}

.product__accordion-disclaimer {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 1);
  text-align: center;
}

.product__accordion-disclaimer:last-of-type {
  margin-bottom: 0;
}

/* ===== Product フル幅背景 + テキスト ===== */
.product-bg-section {
  overflow-x: hidden;
}

.product-bg {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-image: url("../images/img_8.webp");
  background-size: cover;
  background-position: center;
  padding: 5rem 1.5rem;
  box-sizing: border-box;
}

.product-bg__inner {
  width: 50%;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}

.product-bg__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.product-bg__left,
.product-bg__right {
  color: #F47A2A;
  line-height: 1.8;
}

.product-bg__heading {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 400;
}

.product-bg__text {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
}

/* ===== CTA 購入導線 ===== */
.cta {
  padding: 18rem 1.5rem;
  background-color: #F8F5ED;
  text-align: center;
}

.cta {
  position: relative;
}

.cta::after {
  content: none;
}

.cta__inner {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

.cta__lead {
  margin: 0 0 2rem;
  font-size: 1rem;
  letter-spacing: 0.15em;
}

.cta__logo-wrap {
  margin: 0 0 3rem;
}

.cta__logo {
  display: block;
  width: 200px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.cta__copy {
  margin: 2rem 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

.cta__price {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
}

.cta__note {
  margin: 0 0 4rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.cta__btn-wrap {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.cta__btn {
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  background-color: #F47A2A;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.25s ease, opacity 0.25s ease;
  letter-spacing: 0.35rem;
}

.cta__btn:hover {
  background-color: #dc6a1e;
  opacity: 0.95;
}

.cta__btn-italic {
  font-style: italic;
  padding: 0 0.2rem;
}

.cta__btn--secondary {
  background-color: #a6936fbc;
  padding: 0.6rem 4rem;
  font-size: 0.85rem;
  letter-spacing: 0.08rem;
}

.cta__btn--secondary:hover {
  background-color: #867657bc;
}

/* ===== UPS ===== */
.ups {
  position: relative;
  background-color: #8a7a5c;
  background-image: url("../images/img_09.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: min(88vh, 920px);
  padding: clamp(4rem, 10vw, 7rem) 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  box-sizing: border-box;
}

.ups::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(166, 147, 111, 0.35);
  z-index: 0;
  pointer-events: none;
}

.ups__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

.ups__copy {
  margin: 0;
  max-width: 28em;
  font-size: clamp(0.95rem, 1.9vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 2.1;
  text-align: left;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  backface-visibility: hidden;
}

.ups.is-visible .ups__copy {
  animation: features-fade-in 1.5s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.ups-sp-only {
  display: none;
}

.ups-pc-only {
  display: inline;
}

.ups__instagram {
  margin: 2.1em 0 0;
  padding: 0;
  line-height: 0;
}

.ups__instagram-link {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.25s ease;
}

.ups__instagram-link:hover,
.ups__instagram-link:focus-visible {
  opacity: 0.85;
}

.ups__instagram-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.ups__instagram-icon {
  display: block;
  width: 28px;
  height: 28px;
}

@media (max-width: 767px) {
  .br-sp {
    display: block;
  }

  .ups-sp-only {
    display: block;
  }

  .ups-pc-only {
    display: none;
  }

  .ups-pc-inline {
    display: none;
  }

  .ups {
    min-height: 85vh;
    min-height: 85svh;
    padding: clamp(3rem, 8vw, 5rem) 1.5rem;
    background-size: cover;
    background-position: center center;
  }

  .ups__copy {
    max-width: 100%;
    font-size: clamp(0.9rem, 3.8vw, 1.05rem);
    line-height: 2;
  }

  .sp-none {
    display: none !important;
  }

  .hero-wrapper {
    height: 260vh;
  }

  .hero {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: clip;
  }
  /* ----- Hero（SPのみ）：中央揃えは .hero__intro のみ。タイトル単体の margin:auto 等は使わない ----- */
  /* 高さ＝Hero と同じにし、absolute の top:50% が画像エリアの中央を指す（flex の align-items:center では伸びないため stretch） */
  .hero .container.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    align-self: stretch;
    max-height: 100%;
    min-height: 100%;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-top: max(0.75rem, env(safe-area-inset-top));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    box-sizing: border-box;
    overflow-wrap: normal;
    word-wrap: normal;
    overflow-x: clip;
  }

  /* タイトル＋ロゴのまとまり：ここだけで縦並び・中央配置（max-height で切れてロゴが欠けるのを防ぐため上限なし） */
  .hero .hero__intro {
    margin: 0;
    flex: 0 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.25rem, 4.5vw, 2.25rem);
    overflow-x: clip;
    overflow-y: visible;
  }

  .hero .hero__intro .hero-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    /* 中央は親の align-items:center に任せる（margin:auto は付けない） */
    margin: 0;
    align-self: center;
    flex: 0 1 auto;
    flex-shrink: 1;
    min-height: 0;
    width: auto;
    max-width: 100%;
    /* ロゴ分の余白を確保してタイトルだけが縮む（全体が hero の overflow で欠けないように） */
    max-height: min(50dvh, 50vh, calc(100dvh - 11rem));
    font-size: clamp(1.8rem, 4.2vw, 1.85rem);
    text-align: center;
    /* 下記 .container の break-word を打ち消し、<br> 以外では折り返さない */
    overflow-wrap: normal;
    word-wrap: normal;
    word-break: keep-all;
    white-space: nowrap;
    line-height: 1.75;
  }

  .hero .hero__intro > h1 {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    flex-shrink: 0;
    align-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
  }

  .hero .hero__intro .hero__logo {
    display: block;
    margin-inline: auto;
    width: auto;
    height: auto;
    /* max-height を付けすぎると SVG が実機で消えることがあるため幅のみ制限 */
    max-width: min(260px, 82vw);
    object-fit: contain;
    /* WebKit：flex 内の SVG が高さ 0 になる事例への保険 */
    min-width: 160px;
    min-height: 1.5rem;
    flex-shrink: 0;
  }

  /* hero-copy：画像エリアの縦横中央（bottom/margin ではなく top:50% + transform） */
  .hero .hero-copy--secondary {
    bottom: auto;
    top: 50%;
    left: 50%;
    width: auto;
    max-width: min(90vw, 56rem);
    margin: 0;
    transform: translate(-50%, calc(-50% + (1 - var(--hero-copy-p, 0)) * 32px));
    overflow-x: clip;
  }

  /* iOS 実機での filter 描画はみ出し対策（見た目差を最小化） */
  .hero.scrolled .hero__img,
  .hero.scrolled .hero__video {
    filter: blur(2px);
    transform: none;
  }

  .hero.scrolled .hero-copy--secondary {
    z-index: 4;
    pointer-events: auto;
    width: 100%;
  }
  /* 共通：画像・動画のはみ出し防止（Hero ロゴは .hero__logo で個別指定） */
  .container img:not(.hero__img):not(.hero__logo):not(.story-image img):not(.voice-card__img):not(.graph),
  .product__image,
  .cta__logo {
    max-width: 100%;
    height: auto;
  }

  /* SP：intro__media を 1:1 の正方形に */
  .intro__media {
    width: 100%;
    height: 100%; 
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }

  .intro__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* 共通：長いテキストのはみ出し防止 */
  .section,
  .container,
  .cta__inner {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  /* SP：セクション内要素の幅を100%に */
  .container {
    width: 100%;
  }

  .features .container,
  .product-section .container,
  .product-bg__inner,
  .cta__inner {
    width: 90%;
  }
  .voice__container,
  .research__container{
    width: 100%;
  }

  .data-sticky-screen {
    width: 90%;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .intro__top-row {
    margin-bottom: 10rem;
    height: 100%;
  }

  .intro__vertical-col {
    min-height: 440px;
    width: 60%;
  }

  .intro__vertical {
    font-size: 1rem;
  }
  .intro__vertical--primary {
    right: 0;
  }
  .intro__vertical--secondary {
    right: 55%;
}
  .intro__horizontal {
    margin-bottom: 3rem;
  }

  /* intro__bottom-row：SPで動画を右上、テキストを手前に重ねる */
  .intro__bottom-row {
    position: relative;
    margin-top: 2rem;
    gap: 0;
    padding-bottom: 2rem;
    min-height: 42vh;
  }

  .intro__movie {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    max-width: 320px;
    z-index: 0;
  }

  .intro__movie-inner {
    margin-left: auto;
    margin-right: 0;
    aspect-ratio: 4 / 5;
    max-width: none;
  }
  .intro__movie video{
    height: 80%;
  }

  .intro__iga {
    position: relative;
    max-width: none;
    z-index: 2;
    margin-left: -1rem;
    padding: 5rem 0.75rem 0 0;
    padding-right: 20%;
  }

  .intro__iga p {
    max-width: 20em;
  }

  /* Data：1カラム化 */
  .data-section {
    min-height: 220vh;
    /* sticky 固定前：intro 下〜タイトルまでのスクロール距離を短く（.data-sticky-screen 内レイアウトはそのまま） */
    margin-top: -5.5rem;
    position: relative;
    z-index: 2;
  }

  .data-sticky-screen {
    padding: 2rem 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 3rem;
  }

  .data-left,
  .data-right {
    width: 100%;
    max-width: 100%;
  }
  .data-text {
    text-align: center;
  }

  .data-title {
    text-align: center;
  }

  .graph-stage {
    max-width: 100%;
  }

  .graph-stage::before {
    inset: 10px 0;
  }

  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* SP：各セクション下部がグラデーションに隠れないよう余白を確保 */
  .hero-wrapper {
    padding-bottom: 180px;
    overflow: visible;
    overflow-x: clip;
  }

  .hero-wrapper::after {
    content: none;
  }

  .intro {
    position: relative;
    z-index: 0;
    padding-bottom: 420px;
  }

  /* SP：hero→intro のつなぎグラデーションを intro の上端に表示 */
  .intro::before {
    content: none;
  }

  .intro .container {
    position: relative;
    z-index: 1;
  }

  .features {
    padding-bottom: 25rem;
  }
  .voice {
    padding:  2rem 0 7rem 0;
  }
  .research {
    padding: 7rem 0 9rem 0;
  }
  .story-section {
    padding: 7rem 0 9rem;
  }
  .cta {
    padding-bottom: 15rem;
  }

  /* Features */
  .features {
    padding-left: 0;
    padding-right: 0;
  }

  .features .container {
    padding-left: 0;
    padding-right: 0;
  }

  .features__title {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .features__icon {
    max-width: 100%;
  }

  /* User Voice：カルーセル（左右見切れ） */
  .voice__container {
    width: 100%;
    max-width: none;
    padding-bottom: 5rem;
    padding-left: 0;
    padding-right: 0;
  }
  .voice__swiper-wrap {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    position: relative;
    left: auto;
    transform: none;
    overflow: hidden;
    box-sizing: border-box;
  }
  .voice-swiper {
    padding: 0 0 0.25rem;
  }
  .voice-swiper .swiper-wrapper {
    margin-left: -8px;
    margin-right: -8px;
  }
  .voice-swiper .swiper-slide {
    transform: none;
  }
  .voice__title {
    text-align: center;
    margin: 0 0 3.5rem;
    padding: 0 1.5rem;
  }
  .voice-card {
    padding: 2.5rem 1.1rem 3rem;
  }
  .voice-card__top {
    grid-template-columns: minmax(0, 96px) minmax(0, 1fr);
    gap: 0.85rem 1rem;
  }
  .voice-card__name,
  .voice-card__age,
  .voice-card__role {
    font-size: 0.75rem;
  }
  .voice-card__text {
    font-size: 0.875rem;
  }
  .voice-swiper__pagination.swiper-pagination {
    margin-top: 2.75rem;
  }

  /* 研究・監修：1カラム化 */
  .research__title{
    font-size: 1.2rem;
    margin-bottom: 4rem;
  }
  .research__grid--4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    gap: 1rem;
  }

  .research__grid--3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    gap: 1rem 2.5rem;
  }

  .research-card__img {
    max-width: 100%;
  }

  /* Story（SP）：添付画像どおり 見出し→画像→テキスト を3回縦に並べる */
  .story-section {
    min-height: auto;
  }

  .story-section__title {
    padding: 3rem 1.5rem 3rem;
    font-size: 1.2rem;
    font-weight: 400;
  }

  .story-sticky-screen {
    position: static;
    top: auto;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .story-left,
  .story-right,
  .story-images,
  .story-contents {
    display: contents;
  }

  .story-image {
    position: relative;
    opacity: 1;
    width: 100%;
    order: 1;
  }

  .story-image.story-1 { order: 1; }
  .story-content.story-1 { order: 2; }
  .story-image.story-2 { order: 3; }
  .story-content.story-2 { order: 4; }
  .story-image.story-3 { order: 5; }
  .story-content.story-3 { order: 6; }

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

  .story-content {
    position: static;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #C6A47A;
    padding: 2rem 1.5rem 3rem;
    box-sizing: border-box;
  }

  .story-content__title {
    margin: 0 0 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.7;
  }

  .story-content__text {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.9;
  }

  .story-content__accordion-wrap {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Storyアコーディオン内のテキスト:画像を6:4に（閉じた時の見切れ防止で内側は100%に収める） */
  .story-content__accordion-inner {
    max-width: 100%;
    box-sizing: border-box;
  }
  .story-content__accordion-inner:not(.story-content__accordion-inner--text) {
    flex-wrap: nowrap;
  }
  .story-content__accordion-text-wrap {
    flex: 0 0 50%;
    min-width: 0;
  }
  .story-content__accordion-media {
    flex: 0 0 40%;
    max-width: none;
  }

  .story-content__title,
  .story-content__text,
  .story-content__accordion-wrap {
    max-width: 100%;
  }

  .product-section {
    padding: 12rem 0 6rem;
  }

  .product .container {
    width: 100%;
    max-width: 100%;
  }

  .product__image-wrap {
    max-width: 100%;
  }

  .product__accordion-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
  }

  /*
   * 開いたときだけ：ラッパーごと section(1rem) + .container(1.5rem) ぶんフルブリード。
   * .product__accordion-body-wrap の overflow:hidden が inner のはみ出しを切っていたため、
   * 子ではなくこのラッパーで幅を取る。開時は visible（clip すると端が欠ける）
   */
  .product__accordion-wrap.is-open {
    width: calc(100% + 2rem + 3rem);
    max-width: none;
    margin-left: calc(-1rem - 1.5rem);
    margin-right: calc(-1rem - 1.5rem);
    overflow: visible;
  }

  .product__accordion-body-wrap.set-content.is-open {
    overflow: visible;
  }

  .set-line {
    width: 60%;
  }

  .product__accordion-items {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .product__accordion-item {
    width: 120px;
  }

  .product__accordion-item-circle {
    width: 100px;
    height: 100px;
  }

  .set-button {
    padding: 18px 0;
  }

  .product__accordion-inner {
    padding: 1.5rem 1rem 2rem;
  }

  .product-bg {
    width: 100%;
    margin-left: 0;
    padding: 3rem 1rem;
  }

  .product-bg__inner {
    width: 100%;
    max-width: none;
  }

  .product-bg__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .product-bg-section {
    overflow-x: hidden;
  }

  .voice {
    overflow-x: clip;
  }
  .product-bg__text {
    margin: 0;
    font-size: 0.6rem;
  }

  .cta {
    padding: 10rem 0 13rem;
  }

  .cta__logo {
    max-width: 180px;
  }

  .cta__btn {
    padding: 1rem 2rem;
  }
}

/* Hero：SP + 視差アニメーション軽減時は、コピーの初期オフセットのみ従来値に合わせる */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .hero .hero-copy--secondary {
    transform: translate(-50%, calc(-50% + (1 - var(--hero-copy-p, 0)) * 12px));
  }

}

/* ===== フッター ===== */
.footer {
  width: 100%;
  background-color: #f0f0f0;
}

@media print {
  .footer {
    display: none;
  }
}

.footer__container {
  position: relative;
  padding-top: 45px;
  padding-right: 25px;
  padding-bottom: 30px;
  padding-left: 25px;
}

@media screen and (min-width: 479px) and (max-width: 767px) {
  .footer__container {
    padding-right: 50px;
    padding-left: 50px;
  }
}

@media screen and (min-width: 768px) {
  .footer__container {
    margin-right: auto;
    margin-left: auto;
    padding-top: 60px;
    padding-right: 80px;
    padding-bottom: 60px;
    padding-left: 80px;
    display: flex;
    justify-content: space-between;
  }
}

@media screen and (min-width: 1301px) {
  .footer__container {
    padding-right: 110px;
    padding-left: 110px;
    max-width: 1300px;
  }
}

.footer__logo {
  margin-bottom: 60px;
}

@media screen and (min-width: 769px) {
  .footer__logo {
    margin-right: 50px;
    margin-bottom: 0;
    padding-top: 20px;
  }
}

.footer__logo-link {
  display: block;
  width: 147px;
  height: 50px;
  background-image: url("https://improtein.jp/assets/common/img/logo_improtein.svg");
  background-repeat: no-repeat;
  background-size: contain;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
}

@media screen and (min-width: 769px) {
  .footer__logo-link {
    width: 240px;
    height: 80px;
  }
}

.footer__address {
  margin-bottom: 15px;
  font-size: 13px;
  line-height: 1.8;
}

@media screen and (min-width: 769px) {
  .footer__address {
    margin-bottom: 20px;
    font-size: 16px;
  }
}

.footer__tel {
  margin-bottom: 25px;
  font-size: 13px;
  line-height: 1.8;
}

@media screen and (min-width: 769px) {
  .footer__tel {
    margin-bottom: 40px;
    font-size: 16px;
  }
}

@media screen and (min-width: 769px) {
  .footer__wrap {
    position: relative;
    margin-right: -30px;
  }
}

.footer__foot {
  margin-bottom: 15px;
}

@media screen and (min-width: 769px) {
  .footer__foot {
    padding-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__foot-list {
  display: flex;
  flex-wrap: wrap;
}

.footer__foot-link {
  margin-right: 1em;
  padding-right: 1em;
  display: inline;
  border-right: 1px solid #1e1e1e;
  font-size: 12px;
  transition: 0.4s;
}

.footer__foot-link::after {
  content: "";
  display: inline-block;
  width: 11px;
  height: 9px;
  margin-left: 0.5em;
  background-image: url("https://improtein.jp/assets/common/img/icon_external_black.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

@media screen and (min-width: 769px) {
  .footer__foot-link::after {
    width: 13px;
    height: 12px;
  }
}

.footer__foot-link:hover {
  opacity: 0.7;
}

@media screen and (min-width: 769px) {
  .footer__foot-link {
    font-size: 14px;
  }
}

.footer__foot-item:last-child .footer__foot-link {
  border-right: none;
}

.footer__copyright {
  font-size: 13px;
  line-height: 1.5;
}

@media screen and (min-width: 769px) {
  .footer__copyright {
    font-size: 15px;
  }
}

/* ===== フローティングバナー（右下） ===== */
/* intro 進入後に .is-visible が付与され、ふわっと浮かび上がる */
.float-bnr {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 100;
  line-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  pointer-events: none;
  backface-visibility: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
  transition:
    opacity 1.2s cubic-bezier(0.33, 1, 0.68, 1),
    transform 1.2s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.25s ease;
  contain: paint;
}

.float-bnr.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

/* フッター付近ではフェードアウト（表示は .is-visible のまま、上に戻ると再表示） */
.float-bnr.is-visible.float-bnr--hidden-by-footer {
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1.2s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.25s ease;
}

.float-bnr.is-visible:not(.float-bnr--hidden-by-footer):hover,
.float-bnr.is-visible:not(.float-bnr--hidden-by-footer):focus-visible {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.2);
}

.float-bnr:focus-visible {
  outline: 2px solid #f47a2a;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .float-bnr {
    transition-duration: 0.35s;
  }

  .float-bnr.is-visible.float-bnr--hidden-by-footer {
    transition:
      opacity 0.35s ease,
      transform 0.35s ease,
      box-shadow 0.25s ease;
  }
}

.float-bnr__img {
  display: block;
  width: auto;
  height: auto;
  /* 801px 未満は下の max-width:800px で全幅。ここは中間〜狭い PC 用の既定 */
  max-width: min(200px, calc(100vw - 1.5rem));
}

/* フローティングバナーのみ 800px で PC（右下）/ SP（下辺全幅）を切り替え */
@media (max-width: 800px) {
  .float-bnr {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    overflow: clip;
    box-shadow: none;
  }

  .float-bnr__img {
    width: 100%;
    max-width: none;
    height: auto;
  }
}

@media (min-width: 801px) {
  .float-bnr__img {
    max-width: min(250px, calc(100vw - 1.5rem));
  }
}
/* =============================================================================
   Tablet 768px–1023px：767px以下と同系レイアウト（SPブロックの複製）＋中間余白
   ============================================================================= */
@media (min-width: 768px) and (max-width: 1023px) {
  .br-sp {
    display: block;
  }

  .ups-sp-only {
    display: block;
  }

  .ups-pc-only {
    display: none;
  }

  .ups-pc-inline {
    display: none;
  }

  .ups {
    min-height: 85vh;
    min-height: 85svh;
    padding: clamp(3rem, 8vw, 5rem) 1.5rem;
    background-size: cover;
    background-position: center center;
  }

  .ups__copy {
    max-width: 100%;
    font-size: clamp(0.9rem, 3.8vw, 1.05rem);
    line-height: 2;
  }

  .sp-none {
    display: none !important;
  }

  .hero-wrapper {
    height: 260vh;
  }

  .hero {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: clip;
  }
  /* ----- Hero（SPのみ）：中央揃えは .hero__intro のみ。タイトル単体の margin:auto 等は使わない ----- */
  /* 高さ＝Hero と同じにし、absolute の top:50% が画像エリアの中央を指す（flex の align-items:center では伸びないため stretch） */
  .hero .container.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    align-self: stretch;
    max-height: 100%;
    min-height: 100%;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-top: max(0.75rem, env(safe-area-inset-top));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    box-sizing: border-box;
    overflow-wrap: normal;
    word-wrap: normal;
    overflow-x: clip;
  }

  /* タイトル＋ロゴのまとまり：ここだけで縦並び・中央配置（max-height で切れてロゴが欠けるのを防ぐため上限なし） */
  .hero .hero__intro {
    margin: 0;
    flex: 0 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.25rem, 4.5vw, 2.25rem);
    overflow-x: clip;
    overflow-y: visible;
  }

  .hero .hero__intro .hero-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    /* 中央は親の align-items:center に任せる（margin:auto は付けない） */
    margin: 0;
    align-self: center;
    flex: 0 1 auto;
    flex-shrink: 1;
    min-height: 0;
    width: auto;
    max-width: 100%;
    /* ロゴ分の余白を確保してタイトルだけが縮む（全体が hero の overflow で欠けないように） */
    max-height: min(50dvh, 50vh, calc(100dvh - 11rem));
    font-size: clamp(1.8rem, 4.2vw, 1.85rem);
    text-align: center;
    /* 下記 .container の break-word を打ち消し、<br> 以外では折り返さない */
    overflow-wrap: normal;
    word-wrap: normal;
    word-break: keep-all;
    white-space: nowrap;
    line-height: 1.75;
  }

  .hero .hero__intro > h1 {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    flex-shrink: 0;
    align-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
  }

  .hero .hero__intro .hero__logo {
    display: block;
    margin-inline: auto;
    width: auto;
    height: auto;
    /* max-height を付けすぎると SVG が実機で消えることがあるため幅のみ制限 */
    max-width: min(260px, 82vw);
    object-fit: contain;
    /* WebKit：flex 内の SVG が高さ 0 になる事例への保険 */
    min-width: 160px;
    min-height: 1.5rem;
    flex-shrink: 0;
  }

  /* hero-copy：画像エリアの縦横中央（bottom/margin ではなく top:50% + transform） */
  .hero .hero-copy--secondary {
    bottom: auto;
    top: 50%;
    left: 50%;
    width: auto;
    max-width: min(90vw, 56rem);
    margin: 0;
    transform: translate(-50%, calc(-50% + (1 - var(--hero-copy-p, 0)) * 32px));
    overflow-x: clip;
  }

  /* iOS 実機での filter 描画はみ出し対策（見た目差を最小化） */
  .hero.scrolled .hero__img,
  .hero.scrolled .hero__video {
    filter: blur(2px);
    transform: none;
  }

  .hero.scrolled .hero-copy--secondary {
    z-index: 4;
    pointer-events: auto;
    width: 100%;
  }
  /* 共通：画像・動画のはみ出し防止（Hero ロゴは .hero__logo で個別指定） */
  .container img:not(.hero__img):not(.hero__logo):not(.story-image img):not(.voice-card__img):not(.graph),
  .product__image,
  .cta__logo {
    max-width: 100%;
    height: auto;
  }

  /* SP：intro__media を 1:1 の正方形に */
  .intro__media {
    width: 100%;
    height: 100%; 
    overflow: hidden;
  }

  .intro__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* 共通：長いテキストのはみ出し防止 */
  .section,
  .container,
  .cta__inner {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  /* SP：セクション内要素の幅を90%に */
  .container {
    width: 95%;
  }

  .features .container,
  .product-section .container,
  .product-bg__inner,
  .cta__inner {
    width: 90%;
  }
  .voice__container,
  .research__container{
    width: 100%;
  }

  .data-sticky-screen {
    width: 90%;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .intro__top-row {
    margin-bottom: 10rem;
    height: 100%;
  }

  .intro__vertical-col {
    min-height: 440px;
    width: 50%;
  }

  .intro__vertical {
    font-size: 1rem;
  }
  .intro__vertical--primary {
    right: 0;
  }
  .intro__vertical--secondary {
    right: 60%;
}
  .intro__horizontal {
    margin-bottom: 3rem;
  }

  /* intro__bottom-row：SPで動画を右上、テキストを手前に重ねる */
  .intro__bottom-row {
    position: relative;
    margin-top: 2rem;
    gap: 0;
    padding-bottom: 2rem;
    min-height: 42vh;
  }

  .intro__movie {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    max-width: 320px;
    z-index: 0;
  }

  .intro__movie-inner {
    margin-left: auto;
    margin-right: 0;
    aspect-ratio: 4 / 5;
    max-width: none;
  }
  .intro__movie video{
    height: 80%;
  }

  .intro__iga {
    position: relative;
    max-width: none;
    z-index: 2;
    margin-left: -1rem;
    padding: 5rem 0.75rem 0 0;
    padding-right: 28%;
  }

  .intro__iga p {
    max-width: 20em;
  }

  /* Data：1カラム化 */
  .data-section {
    min-height: 220vh;
    /* sticky 固定前：intro 下〜タイトルまでのスクロール距離を短く（.data-sticky-screen 内レイアウトはそのまま） */
    margin-top: -5.5rem;
    position: relative;
    z-index: 2;
  }

  .data-sticky-screen {
    padding: 2rem 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 3rem;
  }

  .data-left,
  .data-right {
    width: 100%;
    max-width: 100%;
  }
  .data-text {
    text-align: center;
  }

  .data-title {
    text-align: center;
  }

  .graph-stage {
    max-width: 100%;
  }

  .graph-stage::before {
    inset: 10px 0;
  }

  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* SP：各セクション下部がグラデーションに隠れないよう余白を確保 */
  .hero-wrapper {
    padding-bottom: 180px;
    overflow: visible;
    overflow-x: clip;
  }

  .hero-wrapper::after {
    content: none;
  }

  .intro {
    position: relative;
    z-index: 0;
    padding-bottom: 420px;
  }

  /* SP：hero→intro のつなぎグラデーションを intro の上端に表示 */
  .intro::before {
    content: none;
  }

  .intro .container {
    position: relative;
    z-index: 1;
  }

  .features {
    padding-bottom: 25rem;
  }
  .voice {
    padding:  2rem 0 7rem 0;
  }
  .research {
    padding: 7rem 0 9rem 0;
  }
  .story-section {
    padding: 7rem 0 9rem;
  }
  .cta {
    padding-bottom: 15rem;
  }

  /* Features */
  .features {
    padding-left: 0;
    padding-right: 0;
  }

  .features .container {
    padding-left: 0;
    padding-right: 0;
  }

  .features__title {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .features__icon {
    max-width: 100%;
  }

  /* User Voice：カルーセル（左右見切れ） */
  .voice__container {
    width: 100%;
    max-width: none;
    padding-bottom: 5rem;
    padding-left: 0;
    padding-right: 0;
  }
  .voice__swiper-wrap {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    position: relative;
    left: auto;
    transform: none;
    overflow: hidden;
    box-sizing: border-box;
  }
  .voice-swiper {
    padding: 0 0 0.25rem;
  }
  .voice-swiper .swiper-wrapper {
    margin-left: -8px;
    margin-right: -8px;
  }
  .voice-swiper .swiper-slide {
    transform: none;
  }
  .voice__title {
    text-align: center;
    margin: 0 0 3.5rem;
    padding: 0 1.5rem;
  }
  .voice-card {
    padding: 2.5rem 1.1rem 3rem;
  }
  .voice-card__top {
    grid-template-columns: minmax(0, 96px) minmax(0, 1fr);
    gap: 0.85rem 1rem;
  }
  .voice-card__name,
  .voice-card__age,
  .voice-card__role {
    font-size: 0.75rem;
  }
  .voice-card__text {
    font-size: 0.875rem;
  }
  .voice-swiper__pagination.swiper-pagination {
    margin-top: 2.75rem;
  }

  /* 研究・監修：1カラム化 */
  .research__title{
    font-size: 1.2rem;
    margin-bottom: 4rem;
  }
  .research__lead{
    font-size: 0.8rem;
  }
  .research__grid--4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    gap: 1rem;
  }

  .research__grid--3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    gap: 1rem 2.5rem;
  }

  .research-card__img {
    max-width: 100%;
  }

  /* Story（SP）：添付画像どおり 見出し→画像→テキスト を3回縦に並べる */
  .story-section {
    min-height: auto;
  }

  .story-section__title {
    padding: 3rem 1.5rem 3rem;
    font-size: 1.2rem;
    font-weight: 400;
  }

  .story-sticky-screen {
    position: static;
    top: auto;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .story-left,
  .story-right,
  .story-images,
  .story-contents {
    display: contents;
  }

  .story-image {
    position: relative;
    opacity: 1;
    width: 100%;
    order: 1;
  }

  .story-image.story-1 { order: 1; }
  .story-content.story-1 { order: 2; }
  .story-image.story-2 { order: 3; }
  .story-content.story-2 { order: 4; }
  .story-image.story-3 { order: 5; }
  .story-content.story-3 { order: 6; }

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

  .story-content {
    position: static;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #C6A47A;
    padding: 2rem 1.5rem 3rem;
    box-sizing: border-box;
  }

  .story-content__title {
    margin: 0 0 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.7;
  }

  .story-content__text {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.9;
  }

  .story-content__accordion-wrap {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Storyアコーディオン内のテキスト:画像を6:4に（閉じた時の見切れ防止で内側は100%に収める） */
  .story-content__accordion-inner {
    max-width: 100%;
    box-sizing: border-box;
  }
  .story-content__accordion-inner:not(.story-content__accordion-inner--text) {
    flex-wrap: nowrap;
  }
  .story-content__accordion-text-wrap {
    flex: 0 0 50%;
    min-width: 0;
  }
  .story-content__accordion-media {
    flex: 0 0 40%;
    max-width: none;
  }

  .story-content__title,
  .story-content__text,
  .story-content__accordion-wrap {
    max-width: 100%;
  }

  .product-section {
    padding: 12rem 0 6rem;
  }

  .product .container {
    width: 100%;
    max-width: 100%;
  }

  .product__image-wrap {
    max-width: 100%;
  }

  .product__accordion-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
  }

  /*
   * 開いたときだけ：ラッパーごと section(1rem) + .container(1.5rem) ぶんフルブリード。
   * .product__accordion-body-wrap の overflow:hidden が inner のはみ出しを切っていたため、
   * 子ではなくこのラッパーで幅を取る。開時は visible（clip すると端が欠ける）
   */
  .product__accordion-wrap.is-open {
    width: calc(100% + 2rem + 3rem);
    max-width: none;
    margin-left: calc(-1rem - 1.5rem);
    margin-right: calc(-1rem - 1.5rem);
    overflow: visible;
  }

  .product__accordion-body-wrap.set-content.is-open {
    overflow: visible;
  }

  .set-line {
    width: 60%;
  }

  .product__accordion-items {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .product__accordion-item {
    width: 120px;
  }

  .product__accordion-item-circle {
    width: 100px;
    height: 100px;
  }

  .set-button {
    padding: 18px 0;
  }

  .product__accordion-inner {
    padding: 1.5rem 1rem 2rem;
  }

  .product-bg {
    width: 100%;
    margin-left: 0;
    padding: 3rem 1rem;
  }

  .product-bg__inner {
    width: 100%;
    max-width: none;
  }

  .product-bg__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .product-bg-section {
    overflow-x: hidden;
  }

  .voice {
    overflow-x: clip;
  }
  .product-bg__text {
    margin: 0;
    font-size: 0.6rem;
  }

  .cta {
    padding: 10rem 0 13rem;
  }

  .cta__logo {
    max-width: 180px;
  }
  .story-section::before,
  .story-section::after {
    height: 120px;
  }

  .research__bottom {
    padding-bottom: 3rem;
  }

  .container {
    width: 88%;
    max-width: 42rem;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }

  /* 上記 .container が .voice__container にも当たりカルーセルが狭まるのを防ぐ（見出しは .voice__title の padding） */
  .voice .voice__container.container {
    width: 100%;
    max-width: none;
  }

  body {
    font-size: 17px;
  }

  /* ----- Tablet：data / features / story を PC レイアウトに近づける ----- */
  .data-section {
    min-height: 240vh;
    margin-top: 0;
    z-index: auto;
    padding: 0 2rem;
  }

  .data-sticky-screen {
    width: 100%;
    max-width: 1000px;
    padding: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    gap: 0;
    align-items: center;
    justify-items: center;
  }

  .data-left {
    justify-self: start;
    margin-left: -24px;
    width: auto;
    max-width: 28rem;
    text-align: left;
    align-items: flex-start;
  }

  .data-right {
    width: 100%;
    max-width: none;
  }

  .data-title {
    text-align: left;
  }

  .data-text {
    text-align: left;
  }

  .graph-stage {
    max-width: 800px;
    height: 500px;
  }

  .graph-stage::before {
    inset: -40px;
  }

  .features {
    padding: 8rem 1.5rem 15rem;
    padding-bottom: 40%;
    position: relative;
  }

  .features .container {
    width: 90%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: center;
    box-sizing: border-box;
  }

  .features__title {
    padding-left: 0;
    padding-right: 0;
  }

  .features__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.25rem, 2.5vw, 3rem);
  }

  .story-section {
    min-height: 500vh;
    padding: clamp(12rem, 14vw, 18rem) 0;
  }

  .story-section::before,
  .story-section::after {
    height: 180px;
  }

  .story-section__title {
    padding: 3rem 1.5rem 6rem;
    font-size: 1.5rem;
    font-weight: 500;
  }

  .story-sticky-screen {
    position: sticky;
    top: 0;
    width: 100vw;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    flex-direction: unset;
    padding: 0;
  }

  .story-left {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .story-right {
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 100%;
    padding: clamp(2rem, 3vw, 4rem);
    box-sizing: border-box;
    background-color: #c6a47a;
    color: #ffffff;
  }

  .story-images {
    display: block;
    position: relative;
    width: 90%;
    max-width: 56rem;
    height: 100%;
    margin-left: auto;
  }

  .story-contents {
    display: block;
    position: relative;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    min-height: 0;
  }

  .story-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: auto;
    order: unset;
    transition: opacity 0.1s ease;
  }

  .story-image.active {
    opacity: 1;
  }

  .story-image.story-1,
  .story-image.story-2,
  .story-image.story-3,
  .story-content.story-1,
  .story-content.story-2,
  .story-content.story-3 {
    order: unset;
  }

  .story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .story-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    background-color: transparent;
    padding: 0;
  }

  .story-content.active {
    opacity: 1;
    pointer-events: auto;
  }

  .story-content__title {
    margin: 0 0 2rem;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.02em;
  }

  .story-content__text {
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
    line-height: 2.5;
  }

  .story-content__accordion-wrap {
    margin: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
    max-width: none;
    overflow-x: visible;
  }

  .story-content__accordion-inner {
    width: 90%;
    margin: 0 auto;
  }

  .story-content__accordion-inner:not(.story-content__accordion-inner--text) {
    flex-wrap: wrap;
  }

  .story-content__accordion-text-wrap {
    flex: 1;
    min-width: 0;
  }

  .story-content__accordion-media {
    flex: 0 0 auto;
    max-width: 200px;
  }

  .story-content__title,
  .story-content__text,
  .story-content__accordion-wrap {
    max-width: 100%;
  }
}

/* =============================================================================
   小型スマホ max-width: 374px — 767px 以下をベースに横はみ出し防止・軽い縮小のみ
   ============================================================================= */
@media (max-width: 374px) {
  html {
    font-size: 90%;
    overflow-x: clip;
  }
  body{
    letter-spacing: 0.07rem;
  }
  .hero .container.hero__content {
    padding-left: max(0.65rem, env(safe-area-inset-left));
    padding-right: max(0.65rem, env(safe-area-inset-right));
  }

  .hero .hero__intro .hero-title {
    font-size: clamp(1.48rem, 8vw, 1.68rem);
    max-height: min(46dvh, 46vh, calc(100dvh - 9.5rem));
  }

  .hero .hero__intro .hero__logo {
    max-width: min(215px, 74vw);
    min-width: 128px;
  }

  /* 374px 以下：返金モーダル本文が最後まで読めるように高さと内側スクロールを最適化 */
  .product__refund-modal {
    align-items: flex-start;
    padding-top: max(0.75rem, env(safe-area-inset-top));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .product__refund-modal-panel {
    width: min(94vw, 760px);
    max-height: calc(100dvh - max(1.5rem, env(safe-area-inset-top)) - max(1.5rem, env(safe-area-inset-bottom)));
    margin: 0 max(0.6rem, env(safe-area-inset-right)) 0 max(0.6rem, env(safe-area-inset-left));
    padding: 2.2rem 1.25rem 1.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero .hero-copy--secondary {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    box-sizing: border-box;
  }

  .intro__vertical-col {
    min-height: 300px;
  }

  .intro__top-row {
    margin-bottom: 15rem;
  }
  .intro__horizontal--gradient{
    letter-spacing: 0.08rem;
 }
  .intro__accordion-poem{
    letter-spacing: 0.05rem;
  }
  .intro__iga {
    padding: 3.25rem 0.5rem 0 0;
    padding-right: 18%;
  }

  .intro__movie {
    width: 85%;
    max-width: 248px;
  }

  .data-sticky-screen {
    padding: 1.5rem 0;
    gap: 0;
  }

  .data-section {
    margin-top: -4.5rem;
  }

  .data-title {
    font-size: 1.05rem;
  }

  .data-left {
    font-size: 0.875rem;
  }

  .voice-card {
    padding: 2rem 0.85rem 2.35rem;
  }

  .voice__title {
    padding: 0 0.85rem;
    margin-bottom: 2.75rem;
    font-size: 1.42rem;
  }

  .story-section__title {
    padding: 2.5rem 0.85rem 2.5rem;
    font-size: 1.03rem;
  }

  .story-content {
    padding: 1.65rem 0.85rem 2.35rem;
  }

  .story-content__title {
    font-size: 0.98rem;
  }

  .research__title {
    margin-bottom: 3rem;
    font-size: 1.08rem;
  }
  .research__lead{
    letter-spacing: 0.05rem;
    font-size: 0.7rem;
  }

  .research__grid--4,
  .research__grid--3 {
    gap: 0.65rem 1.15rem;
  }

  .product-section {
    padding: 10rem 0 5rem;
  }

  .cta {
    padding: 8.5rem 0 11rem;
  }

  .ups {
    padding: clamp(2.5rem, 7vw, 4rem) 1rem;
  }

  .footer__container {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* iPhone X(375px) 付近：Story タイトルを1行に収める */
@media (min-width: 375px) and (max-width: 380px) {
  .story-section__title {
    font-size: 0.96rem;
    letter-spacing: 0;
  }
}
