/* ============================================================
   CLEANING 喜久屋 — 共通 CSS (common.css)
   ============================================================ */

/* Google Fonts (Noto Sans JP) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

/* ── Design Tokens ─────────────────────────────────── */
:root {
  /* Colors */
  --color-bg: #f0f0f0;
  --color-bg-white: #ffffff;
  --color-black: #111111;
  --color-text: #1a1a1a;
  --color-text-sub: #6b6b6b;
  --color-border: #cccccc;
  --color-border-strong: #000000;
  --color-badge-bg: #e0e0e0;
  --color-line-strong: #111111;

  /* Typography */
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-en: serif;

  /*
  --font-size-base: 16px;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.75rem;
  --line-height-base: 1.8;
*/
  --font-size-xs: clamp(0.75rem, 0.712rem + 0.109vw, 0.75rem);
  --font-size-sm: clamp(0.813rem, 0.780rem + 0.109vw, 0.875rem);
  --font-size-base: clamp(0.938rem, 0.873rem + 0.217vw, 1rem);
  --font-size-lg: clamp(1.063rem, 0.913rem + 0.652vw, 1.25rem);
  --font-size-xl: clamp(1.188rem, 0.992rem + 0.652vw, 1.5rem);
  --font-size-2xl: clamp(1.438rem, 1.079rem + 1.196vw, 2rem);
  --font-size-3xl: clamp(1.625rem, 0.973rem + 2.174vw, 2.75rem);

  /* Spacing */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;

  /* Layout */
  --container-max: 1080px;
  --container-mid: 960px;
  --container-min: 720px;
  --container-pad: 40px;
  --edge: max(var(--container-pad), calc((100% - var(--container-max)) / 2 + var(--container-pad)));

  /*
   * Breakpoint
   * SP (smartphone) : max-width: 640px  ← 全CSSファイル・JS(MOBILE_BP)で統一
   * PC (tablet+)    : min-width: 641px
   */
}

/* ── Reset ────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-jp);
  font-size: var(--font-size-base);
  line-height: 2;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
}

/* ── Utilities ────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-en);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: var(--space-sm);
  margin-left: -1em;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;

  &.is-visible {
    opacity: 1;
    transform: translate(0, 0);
  }

  &::before {
    content: "▷";
    font-family: var(--font-jp);
    font-size: 0.7em;
    font-weight: bold;
    color: var(--color-black);
  }
}

:root:not(.js-enabled) .eyebrow {
  opacity: 1;
  transform: none;
}

.section-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--color-line-strong);
  padding-bottom: var(--space-lg);

  & .section-title__inner {
    display: inline-block;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0.1s);
    will-change: opacity, transform;
  }

  &.is-visible .section-title__inner {
    opacity: 1;
    transform: translate(0, 0);
  }
}

:root:not(.js-enabled) .section-title .section-title__inner {
  opacity: 1;
  transform: none;
}

.section__lead {
  font-size: var(--font-size-base);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding-block: 1.8em;
  border-bottom: 2px solid var(--color-line-strong);
  margin-bottom: var(--space-lg);
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0.2s);
  will-change: opacity;

  &.is-visible {
    opacity: 1;
  }
}

:root:not(.js-enabled) .section__lead {
  opacity: 1;
}

@media (max-width: 640px) {
  .section__lead {
    line-height: 1.8;
    padding-block: 1.8em;
  }
}

.view-more {
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: .5em;

  &:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

.placeholder-img {
  background: #e3dde3;
  border: 1px dashed #b8b0b8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-sub);
  font-size: var(--font-size-sm);
  letter-spacing: 0.04em;
}

/* ── キャッチコピー画像（透過アニメーションWebP共通スタイル） ── */
.kv__catch img,
.kv__catch video,
.recruit-vertical-copy img,
.recruit-vertical-copy video,
.contact-vertical-copy img,
.contact-vertical-copy video {
  width: 100%;
  height: auto;
  display: block;
}

/* ── 共通ページレイアウト・コンテナ ─────────────────── */
.page-main {
  padding-bottom: var(--space-2xl);
}

/* ── 背景の透かしロゴパターン（画面中央固定） ──────── */
.has-bg-pattern {
  position: relative;
  z-index: 1;
  display: flow-root;
  /* マージンの相殺を防ぎ、mainの位置が動くのを完全に防止 */
  --bg-logo-height: clamp(140px, 41.75vw, 534px);
  --bg-initial-top: 50vh;
  --bg-initial-top: 50svh;
  /* iPhoneでアドレスバー伸縮時の揺れを防ぐ */
}

.has-bg-pattern::before {
  content: "";
  display: block;
  position: sticky;
  top: calc(50vh - var(--bg-logo-height) / 2);
  top: calc(50svh - var(--bg-logo-height) / 2);
  /* 画面中央に固定 */
  width: min(92%, 1280px);
  height: var(--bg-logo-height);
  margin-inline: auto;
  margin-top: calc(var(--bg-initial-top) - var(--bg-logo-height) / 2);
  /* sticky要素自身にはmargin-bottom（マイナス値）を一切つけない（WebKitのスクロール境界破綻・ジッターを根絶） */
  background-image: url("../images/bg-kikuya.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  /* z-index: -1 はつけない（負のz-indexはWebKitのスクロール合成から除外されフレーム遅延・プルプルの原因になるため） */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* sticky要素自身の代わりとして、後続の通常要素（1番目のセクション）のネガティブマージンで相殺 */
.has-bg-pattern> :first-child {
  margin-top: calc(-1 * (var(--bg-initial-top) + var(--bg-logo-height) / 2)) !important;
}

.has-bg-pattern>* {
  position: relative;
  z-index: 1;
  /* HTMLスタック順により、::before（背景ロゴ）の手前に自然に重なる */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  /* コンテンツ層を独立レイヤー化して背景ロゴと分離 */
}

/* ── 下層ページ共通セクションタイトル ───────────────── */
.page-section-title {
  position: relative;
  max-width: var(--container-max);
  margin-inline: auto;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-xl);

  & .page-section-title__label,
  & .company-section-title__label,
  & .mansion-section-title__label,
  & .recruit-section-title__label {
    font-size: var(--font-size-base);
    font-weight: 700;
    line-height: 1.4;
    text-indent: -1.3em;
    letter-spacing: 0.04em;
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--color-line-strong);
  }
}

/* ── ピル型（丸角）共通ボタン ─────────────────────── */
.btn-pill {
  display: block;
  width: 100%;
  max-width: 440px;
  margin: var(--space-2xl) auto var(--space-xl) auto;
  padding: 12px 24px;
  border: 1px solid var(--color-black);
  border-radius: 50px;
  text-align: center;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
  background-color: var(--color-bg-light);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;

  &:hover {
    background-color: var(--color-black);
    color: var(--color-bg-white);
    transform: translateY(-2px);
  }

  @media (max-width: 640px) {
    font-size: var(--font-size-lg);
    padding: 12px 20px;
  }
}

/* ============================================================
   1. HEADER（PC デフォルトヘッダー、常時表示・位置固定なし）
   ============================================================ */
.header {
  position: relative;
  z-index: 10;
  background: transparent;
  padding-block: var(--space-lg) var(--space-md);

  & .header__inner {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--space-xs);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  & .header__left {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }

  & .header__nav-wrapper {
    display: flex;
    align-items: flex-start;
    gap: clamp(16px, 8vw, 100px);
  }

  & .header__nav-list {
    display: flex;
    flex-direction: column;
    gap: 0px;

    & li a {
      font-size: 0.8rem;
      letter-spacing: 0.06em;
      color: var(--color-text);
      line-height: 1.2;
      display: inline-block;

      &:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
      }
    }
  }

  & .header__tagline {
    font-size: 0.6rem;
    line-height: 1.8em;
    color: var(--color-text-sub);
    margin-top: 8px;
  }

  & .header__logo {
    display: block;
    width: 15vw;
    max-width: 280px;
    min-width: 150px;
    flex-shrink: 0;

    & img {
      width: 100%;
      height: auto;
      display: block;
    }
  }
}


/* ============================================================
   コンパクトヘッダー（常に position: fixed、高さ変化なし）
   PC: スクロール後に .is-visible で登場
   SP: 常に表示（.header は非表示）
   ============================================================ */
.compact-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-block: var(--space-xs);
  background: var(--color-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* PC: デフォルトは非表示 */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* スクロール後に表示 */
  &.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  & .compact-header__inner {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  & .compact-header__logo {
    display: block;
    width: 110px;

    & img {
      width: 100%;
      height: auto;
      display: block;
    }
  }

  & .compact-header__menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;

    & span {
      display: block;
      width: 22px;
      height: 1.5px;
      background: var(--color-text);
      transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s ease;
    }

    &:hover span {
      background: var(--color-black);
    }
  }
}

/* ハンバーガーボタン → × アニメーション */
.compact-header__menu-btn.is-active {
  & span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  & span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  & span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

/* ── フルスクリーンメニュー（オーバーレイ） ──────────────────────── */
body.is-locked {
  overflow: hidden;
}

.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--color-bg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;

  &.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* コンパクトヘッダーが残るため、フルスクリーンメニュー内のヘッダー行は不要 */
  & .fullscreen-menu__header {
    display: none;
  }

  & .fullscreen-menu__header-inner {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--space-2xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  & .fullscreen-menu__logo {
    display: block;
    width: 110px;
    min-width: 110px;
    max-width: 110px;

    & img {
      width: 100%;
      height: auto;
      display: block;
    }
  }

  & .fullscreen-menu__inner {
    max-width: 1080px;
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  & .fullscreen-menu__content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
    align-items: flex-start;
    padding-block: var(--space-2xl);
  }

  & .fullscreen-menu__nav {
    & .fullscreen-menu__list {
      display: flex;
      flex-direction: column;
      gap: var(--space-md);
      margin-top: 1em;

      & li a {
        font-size: var(--font-size-base);
        font-weight: 400;
        letter-spacing: 0.05em;
        color: var(--color-text);
        display: inline-block;
        margin-left: 1em;
        transition: color 0.2s ease, transform 0.2s ease;

        &:hover {
          color: var(--color-black);
          transform: translateX(6px);
        }
      }
    }
  }

  & .fullscreen-menu__aside {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }

  & .fullscreen-menu__cta-box {
    display: block;
    text-decoration: none;
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    transition: background-color 0.2s ease, border-color 0.2s ease;

    &:hover {
      background-color: rgba(0, 0, 0, 0.02);
      border-color: var(--color-line-strong);

      & .fullscreen-menu__cta-btn {
        color: var(--color-black);
        border-color: var(--color-black);
      }
    }
  }

  & .fullscreen-menu__cta-lead {
    font-size: var(--font-size-sm);
    color: var(--color-text-sub);
    margin-bottom: var(--space-xs);
  }

  & .fullscreen-menu__cta-btn {
    display: inline-block;
    font-size: var(--font-size-base);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-line-strong);
    padding-bottom: 4px;
    transition: color 0.2s ease, border-color 0.2s ease;
  }

  & .fullscreen-menu__info {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    font-size: var(--font-size-sm);
    color: var(--color-text-sub);
  }

  & .fullscreen-menu__tagline {
    font-size: var(--font-size-xs);
    letter-spacing: 0.12em;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
  }

  & .fullscreen-menu__company {
    font-weight: 700;
    color: var(--color-text);
  }

  & .fullscreen-menu__tel {
    font-size: var(--font-size-sm);
  }
}

/* SP（640px以下）: デフォルトヘッダー非表示、コンパクトヘッダー常時表示 */
@media (max-width: 640px) {
  .header {
    display: none;
  }

  .compact-header {
    /* SP: 常に表示（transition無効化） */
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: none;
  }

  .fullscreen-menu {
    & .fullscreen-menu__content {
      grid-template-columns: 1fr;
      gap: var(--space-xl);
      padding-block: var(--space-lg);
    }

    & .fullscreen-menu__inner {
      padding-inline: var(--space-md);
      padding-bottom: var(--space-lg);
    }

    & .fullscreen-menu__nav .fullscreen-menu__list {
      gap: var(--space-xs);

      & li a {
        font-size: var(--font-size-base);
      }
    }

    & .fullscreen-menu__cta-box {
      padding: var(--space-xs);
      border: 1px solid var(--color-border);
      transition: background-color 0.2s ease, border-color 0.2s ease;

      &:hover {
        background-color: rgba(0, 0, 0, 0.02);
        border-color: var(--color-line-strong);

        & .fullscreen-menu__cta-btn {
          color: var(--color-black);
          border-color: var(--color-black);
        }
      }
    }

    & .fullscreen-menu__aside {
      display: flex;
      flex-direction: column;
      gap: var(--space-sm);
    }

    & .fullscreen-menu__cta-btn {
      font-size: var(--font-size-base);
    }

    & .fullscreen-menu__info {
      padding: var(--space-sm);
      display: flex;
      flex-direction: column;
      gap: var(--space-2xs);
      font-size: var(--font-size-sm);
      color: var(--color-text-sub);
    }

    & .fullscreen-menu__tagline {
      font-size: var(--font-size-xs);
      letter-spacing: 0.12em;
      color: var(--color-text);
      margin-bottom: var(--space-xs);
    }

    & .fullscreen-menu__company {
      font-weight: 700;
      color: var(--color-text);
    }

    & .fullscreen-menu__tel {
      font-size: var(--font-size-sm);
    }

  }
}

/* ============================================================
   下層ページ専用の簡易ヘッダー（ロゴ＋トップへ戻るのみ）
   ============================================================ */
.store-header {
  position: relative;
  z-index: 10;
  background: var(--color-bg);
  padding-block: var(--space-xs);

  & .store-header__inner {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  & .header__logo {
    width: 110px;
    flex-shrink: 0;
    display: block;

    & img {
      width: 100%;
      height: auto;
      display: block;
    }
  }

  & .store-header__totop {
    font-size: var(--font-size-xs);
    letter-spacing: 0.08em;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 2px;

    &:hover {
      color: var(--color-black);
      border-color: var(--color-black);
    }
  }
}

@media (max-width: 640px) {
  .store-header {
    & .store-header__totop {
      font-size: 0.65rem;
    }
  }
}

/* ============================================================
   10. FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 10;
  background-color: transparent;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);

  & .footer__totop-container {
    position: relative;
    text-align: center;
    margin-bottom: var(--space-lg);
  }

  & .footer__totop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: auto;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid var(--color-black);
    color: var(--color-black);
    cursor: pointer;
    transition: all 0.2s ease;

    &:hover {
      background-color: var(--color-black);
      color: var(--color-bg-white);
      border-color: var(--color-black);
    }

    & svg {
      width: 14px;
      height: 14px;
      fill: none;
      stroke: currentColor;
    }
  }

  & .footer__border-double {
    border-top: 1px solid var(--color-black);
    border-bottom: 1px solid var(--color-black);
    height: 4px;
    margin-bottom: var(--space-xl);
  }

  & .footer__inner {
    display: flex;
    justify-content: space-between;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
  }

  & .footer__left {
    display: flex;
    flex-direction: column;
  }

  & .footer__brand {
    width: 160px;
    height: auto;
    display: block;
    flex-shrink: 0;
    margin-bottom: var(--space-lg);

    & img {
      width: 100%;
      height: auto;
      display: block;
    }
  }

  & .footer__info {
    font-size: var(--font-size-sm);
    color: var(--color-black);
    line-height: 1.8;
    margin-left: var(--space-sm);

    & p {
      margin: 0;
    }

    & .footer__company {
      font-weight: 700;
      margin-bottom: var(--space-xs);
    }

    & .footer__tel-label {
      margin-top: var(--space-sm);
    }
  }

  & .footer__right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-right: var(--space-md);
  }

  & .footer__nav-group {
    display: flex;
    gap: var(--space-2xl);
  }

  & .footer__nav-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;

    & li a {
      font-size: 0.8rem;
      letter-spacing: 0.06em;
      color: var(--color-text);
      line-height: 1.2;
      display: inline-block;

      &:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
      }
    }
  }

  & .footer__copy {
    font-size: 0.625rem;
    letter-spacing: 0.04em;
    margin: 0;
  }
}

@media (max-width: 640px) {
  .footer {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);

    & .footer__inner {
      flex-direction: column;
      gap: var(--space-lg);
    }

    & .footer__brand {
      width: 140px;
    }

    & .footer__right .footer__nav-group {
      display: none;
    }

    & .footer__info {
      margin-left: 0;
      padding-inline: var(--space-xs);
    }

    & .footer__copy {
      padding-inline: var(--space-xs);
    }
  }
}

/* ------------------------------------------------------------
   汎用スクロール出現アニメーション (Scroll Reveal)
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transition: opacity var(--reveal-duration, 1.4s) ease-out,
    transform var(--reveal-duration-tr, 1.6s) cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

/* ── 継続時間（Duration）調整クラス ── */
.reveal--fast {
  --reveal-duration: 0.6s;
  --reveal-duration-tr: 0.8s;
  transition-duration: 0.6s, 0.8s !important;
}

.reveal--slow {
  --reveal-duration: 2.0s;
  --reveal-duration-tr: 2.2s;
  transition-duration: 2.0s, 2.2s !important;
}

.reveal--slower {
  --reveal-duration: 3.0s;
  --reveal-duration-tr: 3.4s;
  transition-duration: 3.0s, 3.4s !important;
}

/* 秒数ごとの指定クラス */
.reveal--dur-05 {
  --reveal-duration: 0.5s;
  --reveal-duration-tr: 0.6s;
  transition-duration: 0.5s, 0.6s !important;
}

.reveal--dur-08 {
  --reveal-duration: 0.8s;
  --reveal-duration-tr: 1.0s;
  transition-duration: 0.8s, 1.0s !important;
}

.reveal--dur-10 {
  --reveal-duration: 1.0s;
  --reveal-duration-tr: 1.2s;
  transition-duration: 1.0s, 1.2s !important;
}

.reveal--dur-15 {
  --reveal-duration: 1.5s;
  --reveal-duration-tr: 1.8s;
  transition-duration: 1.5s, 1.8s !important;
}

.reveal--dur-20 {
  --reveal-duration: 2.0s;
  --reveal-duration-tr: 2.4s;
  transition-duration: 2.0s, 2.4s !important;
}

.reveal--dur-25 {
  --reveal-duration: 2.5s;
  --reveal-duration-tr: 3.0s;
  transition-duration: 2.5s, 3.0s !important;
}

.reveal--dur-30 {
  --reveal-duration: 3.0s;
  --reveal-duration-tr: 3.5s;
  transition-duration: 3.0s, 3.5s !important;
}

/* 各種バリエーション */
.reveal--up {
  transform: translateY(30px);
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal--right {
  transform: translateX(40px);
}

.reveal--fade {
  transform: none;
}

.reveal--scale {
  transform: scale(0.96);
}

/* ── ディレイ（時間差）設定 ── */
.reveal--delay-1 {
  transition-delay: 0.15s;
}

.reveal--delay-2 {
  transition-delay: 0.3s;
}

.reveal--delay-3 {
  transition-delay: 0.45s;
}

.reveal--delay-4 {
  transition-delay: 0.6s;
}

.reveal--delay-5 {
  transition-delay: 0.75s;
}

/* ── 親要素に .reveal-group を付けると子要素に自動で順番ディレイ ── */
.reveal-group>.reveal:nth-child(1),
.reveal-group>*>.reveal:nth-child(1) {
  transition-delay: 0s;
}

.reveal-group>.reveal:nth-child(2),
.reveal-group>*>.reveal:nth-child(2) {
  transition-delay: 0.2s;
}

.reveal-group>.reveal:nth-child(3),
.reveal-group>*>.reveal:nth-child(3) {
  transition-delay: 0.4s;
}

.reveal-group>.reveal:nth-child(4),
.reveal-group>*>.reveal:nth-child(4) {
  transition-delay: 0.6s;
}

.reveal-group>.reveal:nth-child(5),
.reveal-group>*>.reveal:nth-child(5) {
  transition-delay: 0.8s;
}

.reveal-group>.reveal:nth-child(6),
.reveal-group>*>.reveal:nth-child(6) {
  transition-delay: 1.0s;
}

/* 画面内に入ったとき（JSが付与） */
.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* JSが無効な環境用のフォールバック */
:root:not(.js-enabled) .reveal {
  opacity: 1;
  transform: none;
}