/* ============================================================
   TOPLUS Corporate Site - 共通スタイル
   別案3 (打ち合わせ反映版) のデザイン
============================================================ */

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

:root {
  --orange:      #e8501a;
  --orange-soft: #f4a06a;
  --navy:        #0b3a8c;
  --navy-deep:   #041e4d;
  --ink:         #141929;
  --paper:       #ffffff;
  --cream:       #eff4fb;
  --cream-deep:  #dfe9f6;
  --text:        #2a3041;
  --text-mute:   #6b7280;
  --line:        #d7e0ec;
  --gold:        #7c8798;

  --container: 1280px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity 0.4s, color 0.4s; }
ul, ol { list-style: none; }

.l-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}
.l-container--wide { max-width: 1440px; }
.l-container--narrow { max-width: 880px; }


/* ============================================================
   HEADER
============================================================ */
.l-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s, box-shadow 0.4s;
}
.l-header.is-scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 1px 0 var(--line);
}
.l-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
  max-width: 1440px; margin: 0 auto; padding: 0 48px;
}
.l-header__brand { display: flex; align-items: center; }
.l-header__brand-link { display: flex; align-items: center; }
.l-header__brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.l-header__nav { display: flex; align-items: center; gap: 40px; }
.l-header__menu { display: flex; gap: 32px; }
.l-header__menu a {
  position: relative;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.92rem; font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.08em;
  padding: 8px 0;
}
.l-header__menu a small {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem; font-style: normal; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 3px;
}
.l-header__menu a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.l-header__menu a:hover::after,
.l-header__menu a.is-current::after { width: 100%; }
.l-header__menu a.is-current { color: var(--orange); }
.l-header__menu a.is-current small { color: var(--ink); }

.l-header__tel {
  display: flex; flex-direction: column; align-items: flex-end;
  text-align: right;
  line-height: 1.2;
}
.l-header__tel-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: normal; font-weight: 700;
  font-size: 0.68rem; letter-spacing: 0.16em;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.l-header__tel-num {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}

/* ハンバーガー（PCでは非表示） */
.l-header__burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.l-header__burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform 0.35s, opacity 0.3s;
}
.l-header__burger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.l-header__burger.is-active span:nth-child(2) { opacity: 0; }
.l-header__burger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* ============================================================
   PAGE HEADER (下層ページ用)
============================================================ */
.p-pageheader {
  position: relative;
  height: 360px;
  margin-top: 84px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-pageheader__bg {
  position: absolute; inset: 0; z-index: 0;
}
.p-pageheader__bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.4;
}
.p-pageheader::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(4, 30, 77, 0.8) 0%,
    rgba(20, 25, 41, 0.6) 100%);
  z-index: 1;
}
.p-pageheader__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}
.p-pageheader__en {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(2.8rem, 5vw, 4rem);
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1;
  margin-bottom: 16px;
}
.p-pageheader__line {
  width: 1px; height: 32px;
  background: var(--orange);
  margin: 12px auto;
}
.p-pageheader__ja {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.32em;
  margin-top: 12px;
}


/* ============================================================
   BREADCRUMB
============================================================ */
.c-breadcrumb {
  background: var(--cream);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.c-breadcrumb__list {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.c-breadcrumb__list li {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-mute);
}
.c-breadcrumb__list li:not(:last-child)::after {
  content: '/';
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  color: var(--orange);
  font-size: 0.95rem;
}
.c-breadcrumb__list a { color: var(--text); }
.c-breadcrumb__list a:hover { color: var(--orange); }
.c-breadcrumb__list span { color: var(--text-mute); }


/* ============================================================
   SECTION COMMON
============================================================ */
.l-section { padding: 140px 0; position: relative; }
.l-section--tight { padding: 100px 0; }
.l-section--cream { background: var(--cream); }
.l-section--ink { background: var(--ink); color: rgba(255,255,255,0.92); }

.c-stitle {
  text-align: center;
  margin-bottom: 96px;
}
.c-stitle--left { text-align: left; }
.c-stitle__en {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 18px;
}
.l-section--ink .c-stitle__en { color: #fff; }
.c-stitle__line {
  width: 1px; height: 32px;
  background: var(--orange);
  margin: 12px auto 16px;
}
.c-stitle--left .c-stitle__line { margin-left: 0; margin-right: auto; }
.c-stitle__ja {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 0.32em;
}
.l-section--ink .c-stitle__ja { color: rgba(255,255,255,0.6); }


/* ============================================================
   BUTTONS
============================================================ */
.c-btn {
  display: inline-flex; align-items: center;
  gap: 16px;
  padding: 18px 36px;
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  transition: all 0.35s;
}
.c-btn:hover { background: var(--orange); border-color: var(--orange); }
.c-btn--outline { background: transparent; color: var(--ink); }
.c-btn--outline:hover { background: var(--ink); color: #fff; }
.c-btn--orange { background: var(--orange); border-color: var(--orange); }
.c-btn--orange:hover { background: var(--ink); border-color: var(--ink); }


/* ============================================================
   FOOTER
============================================================ */
.l-footer {
  background: #050505;
  color: rgba(255,255,255,0.7);
  padding: 96px 0 32px;
}
.l-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 2fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid #1a1a1a;
}
.l-footer__brand-display {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 28px;
}
.l-footer__brand-img { width: 52px; height: auto; }
.l-footer__brand-text {
  font-size: 1.3rem; font-weight: 700;
  color: #fff;
  letter-spacing: 0.16em;
}
.l-footer__brand-text small {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.74rem; font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.18em;
  margin-top: 5px;
}
.l-footer__address {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 2;
  color: rgba(255,255,255,0.8);
}
.l-footer__address strong {
  display: block;
  color: #fff;
  font-weight: 500;
  margin-bottom: 6px;
  font-family: 'Noto Serif JP', serif;
}
.l-footer__col-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid #2a2a2a;
}
.l-footer__factories {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.9;
  color: rgba(255,255,255,0.8);
}
.l-footer__factories .name {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.96rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.l-footer__sitemap { display: flex; flex-direction: column; gap: 12px; }
.l-footer__sitemap a {
  display: flex; gap: 16px; align-items: baseline;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.92rem; font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.08em;
}
.l-footer__sitemap a small {
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.1em;
  display: inline-block;
  width: 80px;
}
.l-footer__sitemap a:hover { color: #fff; }
.l-footer__bottom {
  margin-top: 32px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  display: flex; justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.12em;
}


/* ============================================================
   ANIMATIONS
============================================================ */
[data-anim] {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1.3s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 1.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-anim].is-visible { opacity: 1; transform: translateY(0); }
[data-anim="left"]  { transform: translateX(-48px); }
[data-anim="left"].is-visible { transform: translateX(0); }
[data-anim="right"] { transform: translateX(48px); }
[data-anim="right"].is-visible { transform: translateX(0); }


/* ============================================================
   RESPONSIVE - 共通部分
============================================================ */
@media (max-width: 1080px) {
  .l-section { padding: 100px 0; }
  .l-footer__top { grid-template-columns: 1fr; gap: 48px; }
  .l-footer__factories { grid-template-columns: 1fr; }
  .p-pageheader { height: 280px; }
  /* タブレットではメニュー間隔を詰める */
  .l-header__nav { gap: 28px; }
  .l-header__menu { gap: 22px; }
  .l-header__inner { padding: 0 32px; }
}

@media (max-width: 920px) {
  /* この幅以下はハンバーガーメニューに切り替え */
  .l-header__burger { display: flex; }
  .l-header__nav {
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 82vw);
    height: 100vh;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 80px 40px;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.22,0.61,0.36,1);
    box-shadow: -20px 0 60px rgba(0,0,0,0.3);
  }
  .l-header__nav.is-open { transform: translateX(0); }
  .l-header__menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .l-header__menu a {
    display: block;
    padding: 18px 0;
    width: 100%;
    color: #fff;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .l-header__menu a small { color: var(--orange); }
  .l-header__menu a::after { display: none; }
  .l-header__menu a.is-current { color: var(--orange); }
  .l-header__tel {
    align-items: flex-start;
    margin-top: 32px;
  }
  .l-header__tel-label { color: rgba(255,255,255,0.6); }
  .l-header__tel-num { color: #fff; font-size: 1.4rem; }
  /* バーガーが開いている時は線を白く */
  .l-header__burger.is-active span { background: #fff; }
}

@media (max-width: 768px) {
  .l-header__inner { padding: 0 20px; height: 64px; }
  .l-header__brand-logo { height: 34px; }
  .l-container { padding: 0 24px; }
  .p-pageheader { height: 220px; margin-top: 64px; }
  .l-footer__bottom { flex-direction: column; gap: 8px; }
}


/* ============================================================
   PARALLAX / SCROLL EFFECTS (共通)
============================================================ */

/* 背景パララックス */
.js-parallax-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.js-parallax-bg__inner {
  position: absolute;
  top: -20%;
  left: 0;
  right: 0;
  bottom: -20%;
  will-change: transform;
}
.js-parallax-bg__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* テキストの文字単位フェードイン */
[data-anim-chars] {
  display: inline-block;
}
[data-anim-chars] .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-anim-chars].is-visible .char {
  opacity: 1;
  transform: translateY(0);
}

/* 浮遊する漢字 (スクロール連動移動) */
.js-floating-kanji {
  position: absolute;
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  z-index: 0;
}

/* 数字カウントアップ */
[data-counter] { display: inline-block; }


/* ============================================================
   VIDEO MODAL (動画モーダル / TOPのHEROから呼び出し)
============================================================ */
.c-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.c-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.c-modal__close {
  position: absolute;
  top: 32px; right: 32px;
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  transition: background 0.3s, border-color 0.3s;
  font-family: 'Cormorant Garamond', serif;
}
.c-modal__close:hover {
  background: var(--orange);
  border-color: var(--orange);
}
.c-modal__close::before {
  content: '×';
  font-weight: 300;
}
.c-modal__inner {
  width: 90%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;
  transform: scale(0.96);
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.c-modal.is-open .c-modal__inner { transform: scale(1); }
.c-modal__video {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.c-modal__iframe {
  width: 100%; height: 100%;
  border: 0;
}


/* ============================================================
   VIDEO INLINE (TOP HEROやcompany.htmlの埋め込み用)
============================================================ */

/* HEROの動画再生ボタン (既存) を強化 */
.p-hero__play-meta {
  position: absolute;
  top: calc(50% + 80px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  color: #fff;
  pointer-events: none;
}
.p-hero__play-meta-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 4px;
}
.p-hero__play-meta-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.95);
  font-weight: 600;
}

/* 動画埋め込みセクション (会社紹介ページなどに使用) */
.p-video {
  position: relative;
  padding: 140px 0;
  background: var(--cream);
  color: var(--ink);
  overflow: hidden;
}
.p-video__bg-kanji {
  position: absolute;
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: 30rem;
  color: rgba(20, 25, 41, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  top: 20%; right: -5%;
}
.p-video .l-container { position: relative; z-index: 1; }

.p-video__intro {
  text-align: center;
  margin-bottom: 64px;
}
.p-video__label {
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  font-size: 1.15rem;
  color: var(--orange);
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}
.p-video__title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 24px;
  line-height: 1.85;
  word-break: keep-all;
}
.p-video__text {
  font-size: 0.96rem;
  line-height: 2.3;
  color: var(--text);
  max-width: 680px;
  margin: 0 auto;
  font-weight: 400;
}

/* 動画プレーヤー本体 */
.p-video__player {
  display: block;
  width: 100%;
  padding: 0;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.p-video__player-thumb {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.4s;
}
.p-video__player:hover .p-video__player-thumb { opacity: 0.4; }

.p-video__player-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 112px; height: 112px;
  background: rgba(255,255,255,0.96);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.35s, background 0.35s;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.p-video__player-play::before {
  content: '';
  width: 0; height: 0;
  border-left: 22px solid var(--orange);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 8px;
  transition: border-left-color 0.35s;
}
.p-video__player-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--orange);
}
.p-video__player-play:hover::before { border-left-color: #fff; }

.p-video__player-ring {
  position: absolute;
  inset: -20px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: ringPulse 2.6s ease-out infinite;
}

.p-video__player-meta {
  position: absolute;
  bottom: 32px; left: 32px;
  z-index: 2;
  color: #fff;
  text-align: left;
}
.p-video__player-meta-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--orange);
  margin-bottom: 6px;
}
.p-video__player-meta-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.p-video__player-duration {
  position: absolute;
  bottom: 32px; right: 32px;
  z-index: 2;
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

@media (max-width: 1080px) {
  .p-video { padding: 100px 0; }
  .p-video__player-play { width: 84px; height: 84px; }
  .p-video__player-play::before {
    border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px;
  }
}

@media (max-width: 768px) {
  .p-video__player-meta, .p-video__player-duration {
    bottom: 16px;
  }
  .p-video__player-meta { left: 16px; }
  .p-video__player-duration { right: 16px; }
}


/* ============================================================
   HERO スライドショー
============================================================ */
.p-hero__slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.p-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  animation: heroSlideZoom 7s ease-out forwards;
}
.p-hero__slide.is-active {
  opacity: 1;
}
@keyframes heroSlideZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}


/* ============================================================
   風林火山（経営理念＋動画ブロックをまたぐ固定背景）
   2層構造：白層と濃墨層を clip-path で切り替え、
   暗い背景では白、明るい背景では墨色が見えるようにする
============================================================ */
.p-policy-block {
  position: relative;
  overflow: hidden;
}
.p-furin {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(880px, 88%);
  height: 100%;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.p-furin__layer {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  will-change: transform;
}
.p-furin__layer img {
  width: 100%;
  height: auto;
  display: block;
}
/* 白い風林火山：経営理念（暗背景）の上で見える */
.p-furin__layer--white {
  opacity: 0.5;
}
/* 濃い風林火山：動画（明背景）の上で見える */
.p-furin__layer--dark {
  opacity: 0.16;
}
/* セクション背景は不透明（最背面） */
.p-policy-block > section {
  position: relative;
  z-index: 0;
}
.p-policy-block .p-philosophy-teaser { background: var(--ink); }
.p-policy-block .p-video { background: var(--cream); }
/* コンテンツは風林火山より前面 */
.p-policy-block > section > .l-container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .p-furin { width: 120%; }
  .p-furin__layer--white { opacity: 0.42; }
  .p-furin__layer--dark { opacity: 0.14; }
}


/* ============================================================
   追従バナー（右下固定・ブロックに応じて変化）
============================================================ */
.p-floatcta {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 80;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.5s cubic-bezier(0.22,0.61,0.36,1),
              transform 0.5s cubic-bezier(0.22,0.61,0.36,1);
  pointer-events: none;
}
.p-floatcta.is-shown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.p-floatcta__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px 18px 20px;
  background: linear-gradient(135deg, var(--orange) 0%, #d8410f 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(232, 80, 26, 0.45),
              0 4px 12px rgba(0,0,0,0.15);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22,0.61,0.36,1),
              box-shadow 0.4s;
  min-width: 220px;
}
/* 左の縦アクセントライン */
.p-floatcta__link::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: #fff;
  opacity: 0.9;
}
/* ホバー時に右へ流れる光 */
.p-floatcta__link::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s;
}
.p-floatcta__link:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(232, 80, 26, 0.55),
              0 6px 16px rgba(0,0,0,0.2);
}
.p-floatcta__link:hover::after { left: 130%; }

/* 番号バッジ */
.p-floatcta__num {
  flex-shrink: 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255,255,255,0.55);
  width: 40px;
  text-align: center;
}
.p-floatcta__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.p-floatcta__en {
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.8);
  line-height: 1;
}
.p-floatcta__label {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  white-space: nowrap;
}
.p-floatcta__arrow {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  transition: background 0.35s, transform 0.35s;
}
.p-floatcta__link:hover .p-floatcta__arrow {
  background: #fff;
  color: var(--orange);
  transform: translateX(4px);
}
/* 内容差し替え時のフェード */
.p-floatcta.is-changing .p-floatcta__num,
.p-floatcta.is-changing .p-floatcta__en,
.p-floatcta.is-changing .p-floatcta__label {
  opacity: 0;
  transition: opacity 0.2s;
}
.p-floatcta__num, .p-floatcta__en, .p-floatcta__label {
  transition: opacity 0.3s;
}

@media (max-width: 768px) {
  .p-floatcta { right: 12px; bottom: 12px; left: 12px; }
  .p-floatcta__link {
    min-width: 0;
    width: 100%;
    padding: 14px 18px 14px 16px;
    gap: 12px;
  }
  .p-floatcta__num { font-size: 1.5rem; width: 30px; }
  .p-floatcta__label { font-size: 0.9rem; }
  .p-floatcta__arrow { width: 32px; height: 32px; }
}


/* ============================================================
   カスタムカーソル
============================================================ */
/* 細かいポインティングが必要なデバイスのみ適用 */
@media (hover: hover) and (pointer: fine) {
  .has-custom-cursor, .has-custom-cursor * { cursor: none !important; }

  .c-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background: var(--orange);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.25s, height 0.25s, background 0.25s, opacity 0.25s;
  }
  .c-cursor__ring {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1px solid rgba(232, 80, 26, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s, opacity 0.3s;
  }
  /* リンク/ボタンホバー時に拡大 */
  .c-cursor.is-hover {
    width: 0; height: 0;
  }
  .c-cursor__ring.is-hover {
    width: 64px; height: 64px;
    background: rgba(232, 80, 26, 0.12);
    border-color: var(--orange);
  }
  /* クリック時 */
  .c-cursor.is-down { width: 14px; height: 14px; }
  .c-cursor__ring.is-down { width: 32px; height: 32px; }
}
