@charset "UTF-8";

/* =========================================================
   株式会社フィールドレッジ 採用LP　共通スタイル
   （ページ送りの器・ヘッダー・ボタン・見出し・図形・カード・吹き出し・フッター・演出）
   ========================================================= */

/* ===== 変数 ===== */
:root {
  --site-header-height: 70px;
  --column-width: 480px;
  --gutter: 24px;
  --c-white: #fcfcfc;
  --c-cream: #fff9d9;
  --c-text: #221e1f;
  --c-red: #ea4a32;
  --c-red-text: #c93a22;
  --c-yellow: #f6c552;
  --c-lemon: #fcec4f;
  --c-green: #327335;
  --c-lime: #95b73a;
  --c-blue: #357ac8;
  --c-navy: #041361;
  --c-wine: #972543;
  --c-plum: #a32d6c;
  --c-grid: #ebf4fd;
  --c-line: #e8e2cf;
  /* 「かがやき」のロゴの4色（先方の添付画像から。フッター上の丸の線に使う） */
  --c-kagayaki-red: #e8382f;
  --c-kagayaki-green: #8cbf26;
  --c-kagayaki-blue: #1b8fd6;
  --c-kagayaki-purple: #8f2a8c;
  --shadow-card: 0 3px 3px rgba(0, 0, 0, 0.16);
  --radius-card: 15px;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --color-band: repeating-linear-gradient(
    to right,
    #327335 0,
    #327335 31px,
    #972543 31px,
    #972543 62px,
    #041361 62px,
    #041361 93px,
    #ea4a32 93px,
    #ea4a32 124px,
    #f6c552 124px,
    #f6c552 155px,
    #357ac8 155px,
    #357ac8 186px,
    #a32d6c 186px,
    #a32d6c 217px
  );
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== リセット・基本 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background-color: var(--c-cream);
  color: var(--c-text);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.04em;
  word-break: auto-phrase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
fieldset {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

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

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

strong {
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

small {
  font-size: inherit;
}

:focus-visible {
  outline: 3px solid var(--c-blue);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 481px) {
  html {
    font-size: 15px;
  }
}

/* ===== ページ送りの器（演出0） ===== */
.swipe-container {
  position: relative;
  z-index: 1;
  width: min(100%, var(--column-width));
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background-color: var(--c-white);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.swipe-container::-webkit-scrollbar {
  display: none;
}

/* 長尺セクションの中を読んでいる間だけ、スナップを外す（演出0-3） */
.swipe-container.is-free-scroll {
  scroll-snap-type: none;
}

/* 指・ホイールで送っている間は、スナップとなめらかスクロールを止めて、JSの動きにそのまま従わせる */
.swipe-container.is-paging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.swipe-section {
  position: relative;
  box-sizing: border-box;
  height: calc(100vh - var(--site-header-height));
  height: calc(100dvh - var(--site-header-height));
  min-height: calc(100vh - var(--site-header-height));
  min-height: calc(100dvh - var(--site-header-height));
  max-height: calc(100vh - var(--site-header-height));
  max-height: calc(100dvh - var(--site-header-height));
  overflow: hidden;
  overflow: clip;
  scroll-margin-top: var(--site-header-height);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* FVだけはヘッダーを引かず全画面（FV表示中はヘッダーを隠すため） */
.swipe-section--fv {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  scroll-margin-top: 0;
}

/* 長尺セクション（演出0-3）：1画面より長くなってよい */
.swipe-section--long {
  height: auto;
  min-height: calc(100vh - var(--site-header-height));
  min-height: calc(100dvh - var(--site-header-height));
  max-height: none;
  scroll-snap-stop: normal;
}

/* 長尺セクションの下端にもスナップ位置を作る */
.snap-end {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  scroll-snap-align: end;
  pointer-events: none;
}

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

/* ===== PC表示時の左右の境目（やわらかい影） ===== */
.column-frame {
  display: none;
}

@media (min-width: 481px) {
  .column-frame {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 40;
    width: var(--column-width);
    transform: translateX(-50%);
    box-shadow: 0 0 24px rgba(34, 30, 31, 0.08);
    pointer-events: none;
  }
}

/* ===== 色の帯（参考サイトのヘッダー上端。7色を31pxずつくり返す） ===== */
.color-band,
.site-header::before {
  height: 5px;
  background: var(--color-band);
}

/* ===== 固定ヘッダー（演出0-4） ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: min(100%, var(--column-width));
  height: var(--site-header-height);
  transform: translateX(-50%);
  background-color: var(--c-white);
  border-bottom: 1px solid var(--c-line);
  transition:
    opacity 0.2s linear,
    visibility 0.2s linear;
}

.site-header::before {
  content: "";
  flex-shrink: 0;
}

.intro-active .site-header {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px 0 16px;
}

.site-header__nav {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

@media (max-width: 359px) {
  .site-header__inner {
    gap: 4px;
    padding: 0 8px 0 10px;
  }

  .site-header__nav {
    gap: 4px;
  }

  .site-header__nav .btn--small {
    padding: 0 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

/* ===== 文字のロゴ（ヘッダー・PCの左余白・フッターで共通） ===== */
.site-logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  color: var(--c-text);
  text-decoration: none;
}

.site-logo__mark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-logo__circle,
.site-logo__triangle,
.site-logo__square {
  display: block;
  width: 8px;
  height: 8px;
}

.site-logo__circle {
  border-radius: 50%;
  background-color: var(--c-red);
}

.site-logo__triangle {
  background-color: var(--c-yellow);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.site-logo__square {
  background-color: var(--c-blue);
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.site-logo__small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.site-logo__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

@media (max-width: 359px) {
  .site-logo {
    gap: 5px;
  }

  .site-logo__name {
    font-size: 13px;
    letter-spacing: 0.02em;
  }
}

/* ===== ボタン（黄の地・黒文字。参考サイトの実測） ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 28px;
  border: 1px solid var(--c-yellow);
  border-radius: 999px;
  background-color: var(--c-yellow);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn--white {
  border-color: var(--c-text);
  background-color: var(--c-white);
}

.btn--small {
  height: 34px;
  padding: 0 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.btn--large {
  min-width: 260px;
  height: 60px;
  border-radius: 30px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

@media (hover: hover) {
  .btn:hover {
    border-color: #eeb22c;
    background-color: #eeb22c;
  }

  .btn--white:hover {
    border-color: var(--c-text);
    background-color: var(--c-cream);
  }
}

/* 送信中（エントリーフォーム）：回る輪＋「送信中…」 */
.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(34, 30, 31, 0.25);
  border-top-color: var(--c-text);
  border-radius: 50%;
  animation: btn-spin 0.8s linear infinite;
}

.btn.is-loading {
  cursor: wait;
}

.btn.is-loading .btn__spinner {
  display: block;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== セクションの基本 ===== */
.section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(14px, 3dvh, 32px) var(--gutter);
}

.section--white {
  background-color: var(--c-white);
}

.section--cream {
  background-color: var(--c-cream);
}

/* クリームの地の上下の端：紙を破いたような縁（強み01〜03には付けない）。
   画像は「白い地 → 破れ目（白い繊維・薄い影）→ クリームの紙」を横480px分、左右がつながるように描いたもの */
.section--torn::before,
.section--torn::after,
.section--torn-top::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 0;
  height: 24px;
  background-position: center top;
  background-size: 480px 24px;
  background-repeat: repeat-x;
  pointer-events: none;
}

.section--torn::before,
.section--torn-top::before {
  top: 0;
  background-image: url("../images/common/torn-top.webp");
}

.section--torn::after {
  bottom: 0;
  background-image: url("../images/common/torn-bottom.webp");
}

/* 図形・イラストは破れた縁より上に（縁が図形に掛からないように） */
.section--torn > .deco,
.section--torn-top > .deco {
  z-index: 1;
}

/* 方眼の地（参考サイトの実測：薄い水色の1pxの線を21pxおき） */
.section--grid {
  background-color: var(--c-white);
  background-image:
    linear-gradient(var(--c-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid) 1px, transparent 1px);
  background-position: -1px -1px;
  background-size: 21px 21px;
}

.section__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-gap, clamp(10px, 2.2dvh, 22px));
  width: 100%;
}

/* 長尺セクション：中身は上揃え、下の余白を多めに */
.swipe-section--long.section {
  justify-content: flex-start;
  padding-top: clamp(28px, 5dvh, 44px);
  padding-bottom: 72px;
}

/* ===== セクション見出し（日本語の小さなラベル・英字ラベル・波線・日本語の見出し） ===== */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-head__ja {
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.section-head__en {
  color: var(--c-red-text);
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.section-head__line {
  width: 104px;
  height: 21px;
  margin: 2px 0 4px;
}

.section-head__title {
  font-size: clamp(21px, 6.2vw, 24px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.section-head__title--large {
  font-size: clamp(26px, 8vw, 31px);
  line-height: 1.4;
}

.section-head--compact .section-head__line {
  margin-bottom: 0;
}

/* 見出しの中の数字（参考サイトの実測「クーピー50年のあゆみ」） */
.section-head__title .num {
  color: var(--c-red);
  font-size: 32px;
}

/* ===== 本文 ===== */
.text {
  width: 100%;
  font-size: 1rem;
  line-height: 2;
  word-break: auto-phrase;
}

.text > p + p {
  margin-top: 0.6em;
}

.text-red {
  color: var(--c-red-text);
}

/* 数字だけ Roboto 700・朱 */
.num {
  color: var(--c-red-text);
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 【 】の強調：太字＋レモンのマーカー（文字の下半分） */
.marker {
  font-weight: 700;
  background-image: linear-gradient(transparent 55%, var(--c-lemon) 55%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* レモンの地の上では白いマーカー */
.marker--white {
  background-image: linear-gradient(transparent 55%, var(--c-white) 55%);
}

/* ===== 図形（丸・三角・四角。クレヨンで描いたような手描きの質感） ===== */
/* 形と質感はマスク画像（images/common/crayon-〈形〉-〈1〜3〉.webp）で作り、色は --c で塗る。
   同じ形が並んでも同じに見えないよう、並び順で3種類のマスクを使い分ける */
.deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  top: var(--top, 0);
  left: var(--left, 0);
  display: block;
  width: var(--size, 28px);
  height: var(--size, 28px);
  background-color: var(--c, var(--c-red));
  rotate: var(--rot, 0deg);
  -webkit-mask-image: var(--mask);
  mask-image: var(--mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.shape--circle {
  --mask: url("../images/common/crayon-circle-1.webp");
}

.shape--circle:nth-child(3n + 2) {
  --mask: url("../images/common/crayon-circle-2.webp");
}

.shape--circle:nth-child(3n) {
  --mask: url("../images/common/crayon-circle-3.webp");
}

.shape--square {
  --mask: url("../images/common/crayon-square-1.webp");
}

.shape--square:nth-child(3n + 2) {
  --mask: url("../images/common/crayon-square-2.webp");
}

.shape--square:nth-child(3n) {
  --mask: url("../images/common/crayon-square-3.webp");
}

.shape--triangle,
.shape--triangle-down {
  --mask: url("../images/common/crayon-triangle-1.webp");
  height: calc(var(--size, 28px) * 0.88);
}

.shape--triangle:nth-child(3n + 2),
.shape--triangle-down:nth-child(3n + 2) {
  --mask: url("../images/common/crayon-triangle-2.webp");
}

.shape--triangle:nth-child(3n),
.shape--triangle-down:nth-child(3n) {
  --mask: url("../images/common/crayon-triangle-3.webp");
}

/* 下向きの三角は、上向きのマスクを上下に反転して使う */
.shape--triangle-down {
  scale: 1 -1;
}

/* ===== クレヨンのイラスト（先方支給：車・積み木・ブランコ・紅白帽・いす・スコップ） ===== */
/* 図形の代わりに、1画面に1つまで・動かさずに、画面の角に置く。大きさは画面の高さに合わせて伸び縮みさせる（--w に clamp） */
.deco-illust {
  position: absolute;
  top: var(--top, auto);
  right: var(--right, auto);
  bottom: var(--bottom, auto);
  left: var(--left, auto);
  display: block;
  width: var(--w, 48px);
  height: auto;
  rotate: var(--rot, 0deg);
}

/* PCの左右の余白のイラストは、余白が広くなる1040px以上でだけ出す（中央の列から一定の距離に置く） */
@media (max-width: 1039px) {
  .pc-side .deco-illust {
    display: none;
  }
}

/* 左右の余白のイラストは全画面で共通なので、列の中に同じ絵が出る画面ではそっと消す（同じ絵が2つ並ばないように） */
.pc-side .deco-illust {
  transition: opacity 0.4s ease;
}

body:has(#member.is-active) .pc-side__illust--swing,
body:has(#about.is-active) .pc-side__illust--chair {
  opacity: 0;
}

/* 背の低い画面では、--w-short があればその大きさまでに抑え、写真と重なるものは出さない */
@media (max-height: 600px) {
  .deco-illust {
    width: min(var(--w, 48px), var(--w-short, 999px));
  }

  .deco-illust--tall-only {
    display: none;
  }
}

/* ===== 写真（白い枠付きの小さな写真。貼ったスナップのように少し傾ける） ===== */
.snapshot {
  position: relative;
  padding: 6px;
  border-radius: 4px;
  background-color: #ffffff;
  box-shadow: var(--shadow-card);
  rotate: var(--tilt, 0deg);
}

.snapshot img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  object-fit: cover;
}

/* ===== 白いカード（参考サイトの実測：角丸15px・影 0 3px 3px） ===== */
.card {
  border-radius: var(--radius-card);
  background-color: #ffffff;
  box-shadow: var(--shadow-card);
}

/* ===== 吹き出しカード（参考サイトの黄色いカード：角丸18px・ツノ付き） ===== */
.balloon {
  position: relative;
  padding: 14px 20px;
  border-radius: 18px;
  font-weight: 700;
  line-height: 1.7;
}

.balloon::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 12px;
  background-color: inherit;
}

.balloon--lemon {
  background-color: var(--c-lemon);
}

.balloon--white {
  border: 1px solid var(--c-line);
  background-color: #ffffff;
}

/* ツノ：上（参考サイトと同じ） */
.balloon--top::after {
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* ツノ：下（見出しの代わりの吹き出し） */
.balloon--bottom::after,
.balloon:not(.balloon--top):not(.balloon--left):not(.balloon--right)::after {
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* ツノ：左下から（左から話す） */
.balloon--left::after {
  bottom: -9px;
  left: 22px;
  width: 14px;
  height: 10px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* ツノ：右下から（右から話す） */
.balloon--right::after {
  right: 22px;
  bottom: -9px;
  width: 14px;
  height: 10px;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* 白い吹き出しのツノは、線の色の三角の上に白い三角を重ねる */
.balloon--white::before {
  content: "";
  position: absolute;
  right: 21px;
  bottom: -11px;
  width: 16px;
  height: 11px;
  background-color: var(--c-line);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.balloon--white.balloon--right::after {
  bottom: -9px;
}

/* 左右から交互に話す吹き出しの並び */
.voices {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.voices__item {
  max-width: 94%;
  padding: 9px 16px;
  font-size: 14px;
  word-break: auto-phrase;
}

.voices__item.balloon--left {
  align-self: flex-start;
}

.voices__item.balloon--right {
  align-self: flex-end;
}

/* ===== フッター ===== */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: auto calc(var(--gutter) * -1) -72px;
  padding: 8px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  /* 上の端は、エントリー（クリーム）の紙が破れて終わる縁 */
  background:
    url("../images/common/torn-bottom.webp") center top / 480px 24px repeat-x,
    var(--c-white);
  text-align: center;
}

/* エントリーとフッターの境目：「かがやき」のロゴの4色の丸（直径12px・3pxあき）を横に並べた線 */
.site-footer::before {
  content: "";
  align-self: stretch;
  height: 12px;
  margin: 18px 0 14px;
  background-image:
    radial-gradient(circle 6px at 6px 50%, var(--c-kagayaki-red) 5.5px, transparent 6px),
    radial-gradient(circle 6px at 6px 50%, var(--c-kagayaki-green) 5.5px, transparent 6px),
    radial-gradient(circle 6px at 6px 50%, var(--c-kagayaki-blue) 5.5px, transparent 6px),
    radial-gradient(circle 6px at 6px 50%, var(--c-kagayaki-purple) 5.5px, transparent 6px);
  background-position: 0 50%, 15px 50%, 30px 50%, 45px 50%;
  background-size: 60px 12px;
  background-repeat: repeat-x;
}

.site-footer__address {
  font-size: 12px;
  line-height: 1.8;
}

.site-footer__address a {
  text-decoration: none;
}

.site-footer__copy {
  font-size: 11px;
  opacity: 0.7;
}

/* ===== 演出A：下からふわっと出る・イラストがポンッと出る ===== */
/* 画面（セクション）に is-active が付くたびに最初から再生し、外れたらすぐ初期状態へ戻す（transitionなし）。
   秒数のずれ（--delay）は common.js が上から順に入れる */
@media (prefers-reduced-motion: no-preference) {
  .is-js .js-fade {
    opacity: 0;
  }

  .is-js .is-active .js-fade {
    animation: fade-up 0.6s ease var(--delay, 0s) both;
  }

  .is-js .js-line {
    clip-path: inset(0 100% 0 0);
  }

  .is-js .is-active .js-line {
    animation: line-draw 0.6s ease var(--delay, 0s) both;
  }

  .is-js .js-pop {
    opacity: 0;
  }

  .is-js .is-active .js-pop {
    animation: pop-in 0.5s var(--ease-pop) var(--delay, 0s) both;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes line-draw {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== 演出A'：要素ごとに違う出かた（すべて同じでは単調なので。どれも短く・控えめに） ===== */
/* 秒数のずれ（--delay）は、.js-fade と同じ並びで common.js が入れる */
@media (prefers-reduced-motion: no-preference) {
  /* 英字ラベル：字間を広げた状態から、ふっと集まる */
  .is-js .js-spread {
    opacity: 0;
  }

  .is-js .is-active .js-spread {
    animation: spread-in 0.7s ease var(--delay, 0s) both;
  }

  /* マーカー：左から右へ引く */
  .is-js .js-marker {
    background-size: 0% 100%;
    background-repeat: no-repeat;
  }

  .is-js .is-active .js-marker {
    animation: marker-draw 0.5s ease-out calc(var(--delay, 0s) + 0.3s) both;
  }

  /* 写真：少し上から、ひねりながらテーブルに置く */
  .is-js .js-photo {
    opacity: 0;
  }

  .is-js .is-active .js-photo {
    animation: photo-place 0.6s var(--ease-pop) var(--delay, 0s) both;
  }

  /* 吹き出し・メインのカード：ポンッとふくらむ */
  .is-js .js-zoom {
    opacity: 0;
  }

  .is-js .is-active .js-zoom {
    animation: zoom-in 0.5s var(--ease-pop) var(--delay, 0s) both;
  }

  /* 左右から：外側から内側へすべり込む */
  .is-js .js-slide-left,
  .is-js .js-slide-right {
    opacity: 0;
  }

  .is-js .is-active .js-slide-left {
    animation: slide-in-left 0.6s ease var(--delay, 0s) both;
  }

  .is-js .is-active .js-slide-right {
    animation: slide-in-right 0.6s ease var(--delay, 0s) both;
  }

  /* 表のカード：上から下へ開く */
  .is-js .js-unfold {
    opacity: 0;
  }

  .is-js .is-active .js-unfold {
    animation: unfold 0.7s ease var(--delay, 0s) both;
  }
}

@keyframes spread-in {
  from {
    opacity: 0;
    letter-spacing: 0.5em;
  }

  to {
    opacity: 1;
  }
}

@keyframes marker-draw {
  from {
    background-size: 0% 100%;
  }

  to {
    background-size: 100% 100%;
  }
}

@keyframes photo-place {
  from {
    opacity: 0;
    transform: translateY(-18px) rotate(-7deg) scale(1.06);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes zoom-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-48px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(48px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes unfold {
  from {
    opacity: 0;
    clip-path: inset(-12px -12px 100% -12px round 15px);
  }

  /* 終わりはカードの影まで見えるよう、少し外側まで広げておく */
  to {
    opacity: 1;
    clip-path: inset(-12px -12px -12px -12px round 15px);
  }
}

/* ===== 演出B：図形がふわふわ浮く ===== */
/* そのセクションが is-active の間だけ動かす。PCの左右の余白は常に動かす */
@media (prefers-reduced-motion: no-preference) {
  .deco .shape,
  .pc-side .shape {
    animation: shape-float var(--dur, 5s) ease-in-out var(--delay, 0s) infinite alternate;
  }

  .swipe-section:not(.is-active) .deco .shape {
    animation-play-state: paused;
  }

  /* イラスト：図形より小さく、ゆらゆら（振り子のように左右へ傾く） */
  .deco .deco-illust,
  .pc-side .deco-illust {
    animation: illust-sway var(--dur, 4.5s) ease-in-out var(--delay, 0s) infinite alternate;
  }

  .swipe-section:not(.is-active) .deco .deco-illust {
    animation-play-state: paused;
  }
}

@keyframes shape-float {
  from {
    transform: translateY(0) rotate(0deg);
  }

  to {
    transform: translateY(-8px) rotate(8deg);
  }
}

@keyframes illust-sway {
  from {
    transform: translateY(0) rotate(-3deg);
  }

  to {
    transform: translateY(-5px) rotate(3deg);
  }
}
