/* =========================================================
   合同会社 Felice 公式HP — Global Stylesheet
   ========================================================= */

/* -- 1. CSS Variables ------------------------------------- */
:root {
  /* Colors — モノクロ基調 + アクセントマゼンタ */
  --color-bg:        #ffffff;
  --color-bg-alt:    #f5f5f5;
  --color-bg-dark:   #0a0a0a;
  --color-ink:       #0a0a0a;
  --color-ink-mute:  #1a1a1a;
  --color-text:      #2a2a2a;
  --color-text-mute: #6b6b6b;
  --color-line:      #e6e6e6;
  --color-line-dark: #2a2a2a;
  --color-accent:    #d6299e;
  --color-accent-2:  #1fa9e8;

  /* Typography */
  --font-jp-serif: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
  --font-jp-sans:  "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en:       "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container-max: 1280px;
  --gutter:        clamp(20px, 4vw, 56px);
  --section-gap:   clamp(48px, 7vw, 88px);

  /* Header */
  --header-h:      88px;

  /* Hero固有 */
  --hero-bg:       #f1f0ee;

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -- 2. Reset --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body, h1, h2, h3, h4, h5, h6, p, figure, ul, ol, dl, dd, blockquote {
  margin: 0;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity .2s var(--ease-out), color .2s var(--ease-out);
}
a:hover { opacity: .72; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* -- 3. Base typography ----------------------------------- */
body {
  font-family: var(--font-jp-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.85;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-jp-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-ink);
  letter-spacing: .02em;
}

/* English label utility */
.en, .global-nav__link, .section__title, .section__num,
.service-card__title, .service-card__num,
.flow-step__num, .hero__cta-en, .hero__tagline, .hero__scroll {
  font-family: var(--font-en);
  letter-spacing: .14em;
}

/* -- 4. Utility ------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  padding: 8px 16px;
  background: var(--color-ink);
  color: #fff;
  z-index: 1000;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 0; opacity: 1; }

[hidden] { display: none !important; }

/* 画面サイズ別に改行を出し分けるユーティリティ
   通常の <br> は全画面で改行される。
   <br class="br-pc">     → PC(1025px以上)でのみ改行
   <br class="br-tablet"> → タブレット(769px〜1024px)でのみ改行
   <br class="br-sp">     → スマホ(768px以下)でのみ改行 */
.br-pc, .br-tablet, .br-sp { display: none; }
@media (min-width: 1025px) {
  .br-pc { display: inline; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .br-tablet { display: inline; }
}
@media (max-width: 768px) {
  .br-sp { display: inline; }
}

/* -- 5. Header & Global Nav ------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* ドロワー(z-index:105)より前面に。これが無いとモバイルで開いた時に
     ハンバーガー(閉じる×)がドロワーに覆われ「閉じるボタンが無い」状態になる */
  z-index: 120;
  background: rgba(255, 255, 255, 0);
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), opacity 4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--color-line);
}

/* SERVICE / FLOW ページなど、ページHeroが黒背景の場合は初期状態から白ヘッダーで表示 */
body.page--flow .site-header,
body.page--service .site-header {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.site-header__logo img {
  display: block;
  width: auto;
  height: 40px;
}
.site-header__logo-text {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .2em;
  color: var(--color-ink);
}

.global-nav__list {
  display: flex;
  gap: clamp(20px, 2.4vw, 36px);
  align-items: center;
}
.global-nav__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-ink);
  position: relative;
  padding: 6px 0;
}
.global-nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s var(--ease-out);
}
.global-nav__link:hover::after,
.global-nav__link.is-current::after { transform: scaleX(1); }
.global-nav__link:hover { opacity: 1; }

/* -- 6. Nav Toggle (hamburger) ---------------------------- */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 110;
}
.nav-toggle__bar {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--color-ink);
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out), top .3s var(--ease-out);
}
.nav-toggle__bar:nth-child(1) { top: 13px; }
.nav-toggle__bar:nth-child(2) { top: 19px; }
.nav-toggle__bar:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* -- 7. Drawer Nav (mobile) ------------------------------- */
.drawer-nav {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 105;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: var(--header-h) var(--gutter) var(--gutter);
  /* 開閉モーション: パネル自体のフェード＋わずかな下スライド */
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .3s var(--ease-out), transform .35s var(--ease-out);
}
.drawer-nav.is-open {
  opacity: 1;
  transform: translateY(0);
}
/* 中のリンク類を順番に立ち上げる（スタガー） */
.drawer-nav__list li,
.drawer-nav__line,
.drawer-nav__contact {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.drawer-nav.is-open .drawer-nav__list li,
.drawer-nav.is-open .drawer-nav__line,
.drawer-nav.is-open .drawer-nav__contact {
  opacity: 1;
  transform: none;
}
.drawer-nav.is-open .drawer-nav__list li:nth-child(1) { transition-delay: .10s; }
.drawer-nav.is-open .drawer-nav__list li:nth-child(2) { transition-delay: .16s; }
.drawer-nav.is-open .drawer-nav__list li:nth-child(3) { transition-delay: .22s; }
.drawer-nav.is-open .drawer-nav__list li:nth-child(4) { transition-delay: .28s; }
.drawer-nav.is-open .drawer-nav__list li:nth-child(5) { transition-delay: .34s; }
.drawer-nav.is-open .drawer-nav__line { transition-delay: .42s; }
.drawer-nav.is-open .drawer-nav__contact { transition-delay: .48s; }
.drawer-nav__line { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  .drawer-nav,
  .drawer-nav__list li,
  .drawer-nav__line,
  .drawer-nav__contact { transition: none; transform: none; }
}
.drawer-nav__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}
.drawer-nav__link {
  font-family: var(--font-en);
  font-size: 22px;
  letter-spacing: .14em;
  font-weight: 500;
  color: var(--color-ink);
}
.drawer-nav__contact {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--color-text-mute);
}

/* -- 8. Section common ------------------------------------ */
.section {
  padding: var(--section-gap) 0;
}
.section--about { background: var(--color-bg-alt); }
.section--flow  { background: var(--color-bg-dark); color: #fff; }
.section--flow  h2, .section--flow h3 { color: #fff; }

/* TOPページの SERVICE セクションを黒背景化 ―
   内部の文字・アイコン・カードのトーンも黒地で読めるよう調整 */
.section--service { background: var(--color-bg-dark); color: #fff; }
.section--service h2,
.section--service h3 { color: #fff; }
.section--service .section__num   { color: #b0b0b0; }
.section--service .section__lead  { color: #e0e0e0; }
.section--service .service-card {
  border-top-color: #2a2a2a;
}
.section--service .service-card__num   { color: #b0b0b0; }
.section--service .service-card__title { color: #fff; }
.section--service .service-card__jp    { color: #a8a8a8; }
.section--service .service-card__desc  { color: #d8d8d8; }
.section--service .service-card__icon { color: #fff; }
.section--service .service-card:hover .service-card__icon { color: var(--color-accent); }
.section--service .link-more         { color: #fff; }
.section--service .link-more:hover   { color: var(--color-accent); }
/* ホバー演出は黒地でもアクセント色を維持 */
.section--service .service-card:hover { border-top-color: var(--color-accent); }
.section--service .service-card:hover .service-card__title { color: var(--color-accent); }

.section__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 2.4vw, 40px);
  margin-bottom: clamp(40px, 6vw, 72px);
  flex-wrap: nowrap;
  justify-content: flex-start;
}
.section__num {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--color-text-mute);
  margin: 0;
  flex-shrink: 0;
  align-self: flex-start;
  padding-top: clamp(8px, 1.2vw, 18px);
}
.section__title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 88px);
  letter-spacing: .04em;
  line-height: 1;
  margin: 0;
  flex-shrink: 0;
}
.section__lead {
  font-family: var(--font-jp-serif);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 500;
  margin-left: auto;
  color: var(--color-ink);
  text-align: right;
  align-self: flex-end;
  padding-bottom: clamp(4px, .6vw, 10px);
}
.section--flow .section__lead { color: #e8e8e8; }

.section__more {
  margin-top: clamp(40px, 5vw, 64px);
  text-align: right;
}
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .14em;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}
.link-more:hover { opacity: 1; color: var(--color-accent); }

/* -- 9. Hero ---------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: var(--header-h) 0 0;
  display: grid;
  grid-template-columns: 4.4fr 7.6fr;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero__visual {
  position: relative;
  height: 100%;
  min-height: calc(100vh - var(--header-h));
  background: var(--color-bg-dark);
  /* V字頂点を中央より気持ち上(y=40%)に配置して非対称な抜け感を出す */
  clip-path: polygon(
    0 0,
    calc(100% - 90px) 0,
    100% 40%,
    calc(100% - 90px) 100%,
    0 100%
  );
  overflow: hidden;
}
.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: contrast(1.05) brightness(.86);
}

/* Hero縦書きラベル — viewport の左中央に固定追従。
   背景色に応じて配色が反転するよう mix-blend-mode: difference を使用
   (SCROLLバーと同じ仕組み)。縦線アニメは無し、静止で描画。
   SCROLLバーと異なり、全ページで常時表示する */
.hero__vlabels {
  position: fixed;
  top: 50%;
  left: clamp(20px, 2.2vw, 36px);
  transform: translateY(-50%);
  z-index: 40;
  writing-mode: vertical-rl;
  display: flex;
  gap: clamp(34px, 3.8vw, 56px);
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: .34em;
  color: #fff;
  mix-blend-mode: difference;
  font-weight: 500;
  pointer-events: none;
  transition: opacity .5s var(--ease-out);
}
.hero__vlabels li {
  position: relative;
  padding-top: 44px;
}
.hero__vlabels li::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 1px;
  height: 32px;
  background: #fff;
}

.hero__copy {
  position: relative;
  /* 右側の余白を絞り、コピーが画面端まで伸びるレイアウトに */
  padding: clamp(40px, 7vw, 88px) clamp(16px, 2vw, 40px) clamp(40px, 8vw, 96px) clamp(36px, 5.4vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.hero__copy-block {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, .4vw, 10px);
  margin: 0 0 clamp(28px, 4vw, 44px);
  font-family: var(--font-jp-serif);
  color: var(--color-ink);
  letter-spacing: .04em;
  font-weight: 700;
}

.hero__line {
  display: block;
  line-height: 1.3;
}

/* 2-3行目「会社の名刺であり、」「インターネットでの」— 中サイズ
   ※ 1行目「ホームページは、」も同じmidクラスを使用 */
.hero__line--mid {
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .04em;
}

/* 4行目「（名刺画像）です。」— 超大ライン */
.hero__line--big {
  display: flex;
  align-items: baseline;
  gap: clamp(4px, .4vw, 10px);
  line-height: 1;
  margin-top: clamp(10px, 1.4vw, 18px);
}

/* 2行目内インラインの「名刺」ハイライト ―
   画面進入時に1回だけ展開し、状態を保持する */
.hero__highlight {
  position: relative;
  display: inline-block;
  padding: 0 .12em;
  color: var(--color-ink);
  z-index: 0;
  isolation: isolate;
}
.hero__highlight::before {
  content: "";
  position: absolute;
  inset: -.08em 0 -.05em;
  background: #000;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
}
.hero__highlight::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  padding: 0 .12em;
  color: #fff;
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
}

/* Hero が viewport に入ったら、is-revealed が付与され、
   一度きりの展開アニメーションが走る (animation-fill-mode: forwards で停止位置を保持)
   "シュッ" と素早く左→右に伸びる短時間アニメ */
.hero.is-revealed .hero__highlight::before {
  animation: meishi-bg-once .9s cubic-bezier(.7, .04, .25, 1) .15s forwards;
}
.hero.is-revealed .hero__highlight::after {
  animation: meishi-text-once .9s cubic-bezier(.7, .04, .25, 1) .15s forwards;
}

@keyframes meishi-bg-once {
  from { transform: scaleX(0); transform-origin: left center; }
  to   { transform: scaleX(1); transform-origin: left center; }
}
@keyframes meishi-text-once {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* 4行目「名刺」テキスト — Noto Serif JP 900 の超大タイポ */
.hero__meishi-text {
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  font-family: var(--font-jp-serif);
  font-weight: 900;
  font-size: clamp(100px, 15vw, 240px);
  line-height: .92;
  letter-spacing: .04em;
  color: var(--color-ink);
}

/* 名刺テキスト下の手書き風斜めライン (マゼンタ、左→右にゆっくり描画) */
.hero__meishi-line {
  position: absolute;
  left: -4%;
  right: -6%;
  bottom: -.08em;
  width: 110%;
  height: clamp(12px, 1.6vw, 22px);
  transform: rotate(-1.8deg);
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}
.hero__meishi-line path {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  /* 緩やかに: 2.8s の gentle ease-in-out。名刺ハイライト完了直後に発火 */
  transition: stroke-dashoffset 2.8s cubic-bezier(.35, .15, .25, 1);
  transition-delay: 1.25s;
}
.hero.is-revealed .hero__meishi-line path {
  stroke-dashoffset: 0;
}

/* 4行目「です。」 */
.hero__period {
  font-family: var(--font-jp-serif);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 64px);
  align-self: flex-end;
  line-height: 1;
  padding-bottom: .08em;
}

.hero__sub {
  font-family: var(--font-jp-sans);
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.95;
  color: var(--color-text);
  margin-bottom: clamp(24px, 3vw, 36px);
  /* 1行で表示する（全角は1字≈2chのため max-width:42ch だと折り返していた） */
  white-space: nowrap;
  letter-spacing: .03em;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px 14px 0;
  border-bottom: 1px solid var(--color-ink);
  align-self: flex-start;
  min-width: 280px;
}
.hero__cta-en {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .2em;
}
.hero__cta-jp {
  font-size: 12px;
  color: var(--color-text-mute);
}
.hero__cta-arrow {
  display: inline-block;
  margin-left: auto;
  font-family: var(--font-en);
  transition: transform .3s var(--ease-out);
}
.hero__cta:hover { opacity: 1; }
.hero__cta:hover .hero__cta-arrow { transform: translateY(4px); }

.hero__tagline {
  position: absolute;
  left: clamp(40px, 6vw, 96px);
  bottom: clamp(20px, 4vw, 40px);
  z-index: 3;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .28em;
  font-weight: 500;
  color: var(--color-ink);
  line-height: 1.85;
  pointer-events: none;
}

/* SCROLL ― viewport 右中央に固定し、スクロールに追従する。
   背景色に応じて配色が反転するよう mix-blend-mode: difference を使用 */
.hero__scroll {
  position: fixed;
  right: clamp(20px, 2.2vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .32em;
  writing-mode: vertical-rl;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.hero__scroll span {
  display: block;
  padding-top: 44px;
  position: relative;
}
.hero__scroll span::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 1px;
  height: 32px;
  background: #fff;
  animation: scroll-bar 1.8s var(--ease-out) infinite;
}
@keyframes scroll-bar {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* -- 10. SERVICE excerpt ---------------------------------- */
.service-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 4px 0;
  border-top: 1px solid var(--color-line-dark);
  position: relative;
}
.service-card__num {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--color-text-mute);
  margin: 0;
}
.service-card__icon {
  width: 44px;
  height: 44px;
  margin: 8px 0 6px;
  color: var(--color-ink);
  transition: color .3s var(--ease-out);
}
.service-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .45s var(--ease-out);
}
.service-card:hover .service-card__icon { color: var(--color-accent); }
.service-card:hover .service-card__icon svg { transform: translateY(-4px) scale(1.08); }
.service-card__title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .1em;
  margin: 0;
  color: var(--color-ink);
}
.service-card__jp {
  font-family: var(--font-jp-serif);
  font-size: 13px;
  color: var(--color-text-mute);
  letter-spacing: .08em;
  margin: 0;
}
.service-card__desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text);
  margin: 4px 0 0;
}

/* -- 11. ABOUT excerpt ------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-grid__visual {
  margin: 0;
  overflow: hidden;
  /* 横長写真をそのまま見せる（縦枠での見切れ回避） */
  aspect-ratio: 3 / 2;
  background: var(--color-bg-dark);
}
.about-grid__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.about-grid__visual:hover img { transform: scale(1.04); }

.about-grid__statement {
  font-family: var(--font-jp-serif);
  font-weight: 700;
  /* フォントを少し抑え、親カラム幅(画面半分)に収まりやすくする */
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.45;
  color: var(--color-ink);
  margin-bottom: 24px;
  letter-spacing: .02em;
  text-wrap: pretty;
}
.about-grid__text {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text);
  margin-bottom: 32px;
}
.section--about .section__more { text-align: left; }

/* -- 12. FLOW excerpt ------------------------------------- */
.flow-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 2vw, 32px);
  position: relative;
}
.flow-list::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: var(--color-line-dark);
  opacity: .4;
}
.flow-step {
  position: relative;
  padding: 0 0 0;
}
.flow-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--color-bg-dark);
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .12em;
  font-weight: 500;
  margin: 0 0 20px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.flow-step:nth-child(odd) .flow-step__num {
  border-color: var(--color-accent);
}
.flow-step__title {
  font-family: var(--font-jp-serif);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: .04em;
}
.flow-step__period {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--color-accent);
  margin: 0 0 12px;
}
.flow-step__desc {
  font-size: 12px;
  line-height: 1.8;
  color: #c8c8c8;
  margin: 0;
}
.flow-step__hook {
  display: block;
  font-family: var(--font-jp-serif);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.6;
  color: #fff;
  margin: 0 0 7px;
}
.section--flow .section__more a { color: #fff; }
.section--flow .section__more a:hover { color: var(--color-accent); }

/* -- 13. CONTACT CTA -------------------------------------- */
.section--contact {
  position: relative;
  min-height: clamp(440px, 56vh, 620px);   /* 写真の表示領域を確保（CTAは絶対配置） */
  background: var(--color-bg-dark);
  overflow: hidden;
  isolation: isolate;
}
/* セクション全面の背景写真 + グラデーション
   （左を濃く＝テキスト可読性を担保しつつ、右に写真を覗かせる） */
.contact-cta__bg { position: absolute; inset: 0; z-index: 0; }
.contact-cta__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 32%;
}
.contact-cta__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,10,10,.94) 0%, rgba(10,10,10,.62) 26%, rgba(10,10,10,.18) 56%, rgba(10,10,10,.04) 100%),
    linear-gradient(75deg, rgba(10,10,10,.66) 0%, rgba(10,10,10,.22) 42%, rgba(10,10,10,0) 70%);
}
/* CTAを写真の左下隅にアンカー（中央寄せコンテナを解除して最上面に配置） */
.section--contact .section__inner {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;                  /* 写真(0)・グラデーションより前面 */
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(28px, 5vw, 60px);
}
.contact-cta { min-width: 0; max-width: 600px; }
.contact-cta__sub {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .24em;
  color: var(--color-accent);
  margin: 0 0 24px;
}
.contact-cta__headline {
  font-family: var(--font-jp-serif);
  font-weight: 900;
  font-size: clamp(28px, 3.8vw, 50px);
  line-height: 1.3;
  color: #fff;
  margin: 0 0 28px;
  letter-spacing: .02em;
  white-space: nowrap;   /* PCは<br>位置でのみ改行（中途半端な折り返しを防ぐ） */
}
.contact-cta__text {
  font-size: 14px;
  line-height: 1.9;
  color: #e2e2e2;
  margin: 0 0 30px;
}
/* 暗い写真背景の上で映えるよう CTAボタンを白基調に反転 */
.section--contact .btn { background: #fff; color: var(--color-ink); border-color: #fff; }
.section--contact .btn:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  background: var(--color-ink);
  color: #fff;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .16em;
  font-weight: 600;
  transition: background .3s var(--ease-out), color .3s var(--ease-out), gap .3s var(--ease-out);
  border: 1px solid var(--color-ink);
}
.btn:hover { opacity: 1; background: var(--color-accent); border-color: var(--color-accent); gap: 20px; }
.btn__label { font-family: var(--font-jp-sans); font-weight: 500; letter-spacing: .08em; }
.btn__arrow { display: inline-block; transition: transform .3s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* -- LINE CTA (公式LINE導線。リンク先URLは発行後に差し替え) ------ */
.line-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  background: var(--color-accent);   /* マゼンタ(サイトのアクセント色) */
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-jp-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  line-height: 1;
  border: 1px solid var(--color-accent);
  white-space: nowrap;
  transition: background .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.line-cta:hover {
  background: #b51f84;
  border-color: #b51f84;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(214, 41, 158, .3);
}
.line-cta svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
/* アイコンは2レイヤー: バブル(色) ＋ LINE文字(塗り)。文字は既定で透明=背景が透ける */
.line-cta .line-bubble { fill: currentColor; }
.line-cta .line-letters { fill: transparent; }
.line-cta--lg { padding: 15px 28px; font-size: 15px; gap: 11px; }
.line-cta--lg svg { width: 21px; height: 21px; }
/* ヘッダー右端の LINEアイコン（テキストなし・緑バブル＋白LINE文字） */
.global-nav__line { display: inline-flex; align-items: center; }
.header-line { display: inline-flex; align-items: center; line-height: 0; }
.header-line svg { width: 26px; height: 26px; }
.header-line .line-bubble { fill: #06C755; }
.header-line .line-letters { fill: #fff; }
.header-line:hover { transform: translateY(-1px); transition: transform .25s var(--ease-out); }
/* CONTACTページ・ドロワーのLINEボタンは 白背景＋細い黒枠線＋黒文字。アイコンは緑バブル＋白LINE */
.contact-side__line, .drawer-nav__line {
  background: #fff;
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.contact-side__line .line-bubble, .drawer-nav__line .line-bubble { fill: #06C755; }
.contact-side__line .line-letters, .drawer-nav__line .line-letters { fill: #fff; }
.contact-side__line:hover, .drawer-nav__line:hover {
  background: #f3f3f3;
  border-color: var(--color-ink);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}
/* 配置側の余白 */
.site-footer__line { margin: 18px 0 0; }
/* フッターのリンク汎用スタイル(.site-footer__contact a)に上書きされないよう、
   LINEボタンの体裁を明示。アイコン込みでコンパクトな横一行に固定 */
.site-footer__line .line-cta {
  display: inline-flex;
  font-family: var(--font-jp-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  padding: 9px 17px;
  gap: 8px;
  white-space: nowrap;
}
.site-footer__line .line-cta svg { width: 17px; height: 17px; }
.contact-side__lead { color: var(--color-text); font-size: 14px; line-height: 1.85; margin: 0 0 18px; }
.contact-side__line { margin-bottom: 34px; }

/* .contact-cta__visual は廃止（CTAは .contact-cta__bg で全面背景化） */

/* -- 14. Footer ------------------------------------------- */
.site-footer {
  background: var(--color-bg-dark);
  color: #c0c0c0;
  padding: clamp(60px, 8vw, 96px) 0 32px;
  font-size: 13px;
}
.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: 40px;
  border-bottom: 1px solid #1f1f1f;
}
.site-footer__brand {
  /* ロゴ・社名・タグラインを中央寄せ（ロゴが社名の中央上に来るように） */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* 縦位置を中央に（他カラムと並んだ時のバランス調整） */
  align-self: center;
}
.site-footer__brand img {
  /* フッター専用ロゴ画像 (余白をトリミングした白Fマーク logo-mark-footer.png) */
  width: auto;
  height: 60px;
  filter: none;
  margin-bottom: 18px;
}
.site-footer__name {
  font-family: var(--font-jp-serif);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  margin: 0 0 8px;
}
.site-footer__tagline {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .2em;
  color: #888;
  margin: 0;
}
.site-footer__nav-title {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .24em;
  color: #888;
  margin: 0 0 20px;
}
.site-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer__nav-list a,
.site-footer__contact a {
  color: #fff;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .1em;
}
.site-footer__contact p { margin: 0 0 8px; }
.site-footer__copyright {
  max-width: var(--container-max);
  margin: 24px auto 0;
  padding: 0 var(--gutter);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .14em;
  color: #666;
  text-align: center;
}

/* -- 15. Scroll fade animation ---------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* -- 16. Media Queries ------------------------------------ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 4fr 6fr;
  }
  .hero__visual { clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 50%, calc(100% - 60px) 100%, 0 100%); }
  .service-list { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .flow-list { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .flow-step__desc { font-size: 11px; }
  .about-grid { gap: 48px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; align-self: auto; transform: none; }
  /* タブレット/スマホでは Hero縦書きラベル と SCROLLバーは非表示 (PC専用UI) */
  .hero__vlabels,
  .hero__scroll { display: none; }
}

@media (max-width: 768px) {
  body { font-size: 14px; }

  .global-nav { display: none; }
  .nav-toggle { display: block; }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 36vh auto;
    min-height: auto;
  }
  .hero__visual {
    min-height: 40vh;
    /* モバイルでは下端中央が V字 ( ▽ 形 ) */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 50% 100%, 0 calc(100% - 32px));
  }
  .hero__copy {
    padding: 36px var(--gutter) 72px;
  }
  /* .hero__vlabels はPC専用UIなので 1024px以下で非表示 (上のメディアクエリで定義) */

  .hero__copy-block { margin-bottom: 28px; }
  /* sub文を1行に収めるためビューポート連動で縮小 */
  .hero__sub { font-size: clamp(10px, 3.1vw, 14px); letter-spacing: .01em; }
  .hero__line--mid { font-size: clamp(18px, 5.2vw, 26px); }
  .hero__line--big { gap: 6px; }
  .hero__meishi-text { font-size: clamp(76px, 22vw, 140px); }
  .hero__meishi-line { bottom: -.04em; height: clamp(10px, 2.4vw, 16px); }
  .hero__period { font-size: clamp(22px, 6vw, 32px); padding-bottom: 0; }

  .hero__tagline {
    position: static;
    margin-top: 32px;
    color: var(--color-ink);
  }
  /* SCROLL / 縦書きラベルは 1024px以下で既に display: none に */

  .section__head {
    flex-wrap: wrap;
    gap: 6px 16px;
  }
  .section__num { padding-top: 0; }
  .section__title { line-height: 1; }
  .section__lead {
    margin-left: 0;
    font-size: 15px;
    text-align: left;
    flex-basis: 100%;
    padding-top: 8px;
    padding-bottom: 0;
  }

  /* スマホは縦一列。FLOW同様に「アイコン左＋テキスト右」のコンパクトな行に */
  .service-list { grid-template-columns: 1fr; gap: 0; }
  .service-card {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 18px;
    row-gap: 2px;
    align-items: start;
    padding: 18px 2px;
  }
  .service-card__icon { grid-column: 1; grid-row: 1 / span 4; width: 34px; height: 34px; margin: 2px 0 0; }
  .service-card__num   { grid-column: 2; grid-row: 1; }
  .service-card__title { grid-column: 2; grid-row: 2; font-size: 16px; }
  .service-card__jp    { grid-column: 2; grid-row: 3; }
  .service-card__desc  { grid-column: 2; grid-row: 4; font-size: 12px; margin-top: 4px; }

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

  .flow-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .flow-list::before { display: none; }
  .flow-step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 8px 20px;
    align-items: start;
  }
  .flow-step__num { margin: 0; grid-row: span 3; }
  .flow-step__title { margin: 0; }
  .flow-step__period { margin: 4px 0 0; }
  .flow-step__desc { margin: 8px 0 0; grid-column: 2; }

  .section--contact {
    /* 縦を少し抑える＝横長写真のサイド見切れを軽減（実質ちょっとズームアウト） */
    min-height: clamp(270px, 76vw, 360px);
  }
  .section--contact .section__inner {
    /* 写真の左下隅にCTAを配置（position等はPCルールを継承） */
    padding: clamp(18px, 5.4vw, 26px);
  }
  .contact-cta { max-width: none; text-align: left; }
  /* CTA全体をさらに一回り小さく */
  .contact-cta__sub { font-size: 9px; letter-spacing: .18em; margin: 0 0 8px; }
  .contact-cta__headline { font-size: clamp(16px, 4.6vw, 19px); line-height: 1.4; margin: 0 0 8px; white-space: normal; }
  .contact-cta__text { font-size: 10.5px; line-height: 1.75; margin: 0 0 14px; }
  .section--contact .btn { padding: 9px 18px; gap: 10px; }
  .section--contact .btn__label { font-size: 10.5px; }
  /* スマホは下を濃く＝上部に顔を見せCTAは下の暗部で読ませる */
  .contact-cta__bg::after {
    background: linear-gradient(to top, rgba(10,10,10,.9) 0%, rgba(10,10,10,.55) 32%, rgba(10,10,10,.12) 64%, rgba(10,10,10,.04) 100%);
  }
  /* cover で写真がセクション全体を常に覆う＝黒帯ゼロ・写真とセクションの範囲が一致 */
  .contact-cta__bg img { object-fit: cover; object-position: center; }

  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__brand { grid-column: auto; }
}

/* =========================================================
   下層ページ専用スタイル
   ========================================================= */

/* -- 17. Page Hero ---------------------------------------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(80px, 12vw, 160px)) 0 clamp(60px, 8vw, 120px);
  background: var(--color-bg);
  overflow: hidden;
}
.page-hero--dark {
  background: var(--color-bg-dark);
  color: #fff;
}
.page-hero--dark .page-hero__num,
.page-hero--dark .page-hero__title,
.page-hero--dark .page-hero__lead { color: #fff; }

.page-hero--compact {
  padding: calc(var(--header-h) + clamp(60px, 8vw, 100px)) 0 clamp(40px, 5vw, 64px);
}

.page-hero__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-hero__num {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--color-text-mute);
  margin: 0 0 24px;
}

.page-hero__title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(64px, 12vw, 180px);
  letter-spacing: .02em;
  line-height: .9;
  color: var(--color-ink);
  margin: 0 0 40px;
}
.page-hero__title--jp {
  font-family: var(--font-jp-serif);
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: .04em;
  line-height: 1.3;
}

.page-hero__lead {
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.7;
  color: var(--color-ink);
  letter-spacing: .04em;
  /* 旧: max-width: 24ch ―― 自動折り返しが <br> より先に発生してずれの原因に
     幅制限は撤廃し、改行は <br> の位置に任せる */
  text-wrap: pretty;
}

/* -- 18. Breadcrumb --------------------------------------- */
.breadcrumb { margin: 0 0 32px; }
.breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--color-text-mute);
}
.breadcrumb__list li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--color-line);
}
.breadcrumb__list a { color: var(--color-text-mute); }
.breadcrumb__list li[aria-current="page"] { color: var(--color-ink); }
.breadcrumb--dark .breadcrumb__list,
.breadcrumb--dark .breadcrumb__list a { color: #888; }
.breadcrumb--dark .breadcrumb__list li[aria-current="page"] { color: #fff; }

/* -- 19. SERVICE Detail (service.html) -------------------- */
.service-detail {
  padding: 0 0 clamp(80px, 10vw, 120px);
  background: var(--color-bg);
}
.service-detail__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 10vw, 140px);
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "head visual" "body visual";
  gap: 24px clamp(40px, 6vw, 96px);
  align-items: start;
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--color-line);
}
.service-block:nth-child(even) {
  grid-template-areas: "visual head" "visual body";
}
.service-block__head { grid-area: head; }
.service-block__body { grid-area: body; }
.service-block__visual {
  grid-area: visual;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.service-block__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-block__num {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .24em;
  color: var(--color-accent);
  margin: 0 0 16px;
}
.service-block__en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: .08em;
  line-height: 1;
  color: var(--color-ink);
  margin: 0 0 8px;
}
.service-block__title {
  font-family: var(--font-jp-serif);
  font-weight: 700;
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: .04em;
  color: var(--color-text-mute);
  margin: 0;
}
.service-block__lead {
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.7;
  color: var(--color-ink);
  margin: 0 0 20px;
}
.service-block__text {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text);
  margin: 0;
}

/* -- 20. ABOUT - Statement -------------------------------- */
.statement {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--color-bg-dark);
  color: #fff;
  text-align: center;
}
.statement__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.statement__overline {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--color-accent);
  margin: 0 0 32px;
}
.statement__headline {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 88px);
  letter-spacing: .02em;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.statement__lead {
  font-family: var(--font-jp-serif);
  font-size: clamp(16px, 1.8vw, 22px);
  letter-spacing: .08em;
  color: #cfcfcf;
  margin: 0 0 48px;
}
.statement__body {
  text-align: left;
  font-size: 14px;
  line-height: 2.1;
  color: #d8d8d8;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* -- 21. ABOUT - Company Info ----------------------------- */
.company-info {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--color-bg);
}
.company-info__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.company-table {
  margin: 0;
  border-top: 1px solid var(--color-line);
}
.company-table__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--color-line);
}
.company-table__row dt {
  font-family: var(--font-jp-serif);
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--color-text-mute);
  font-weight: 500;
}
.company-table__row dd {
  margin: 0;
  font-family: var(--font-jp-serif);
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-ink);
}

/* -- 22. ABOUT - Message ---------------------------------- */
.message {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--color-bg-alt);
}
.message__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.message__visual {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-bg-dark);
  position: relative;
}
.message__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.message__visual figcaption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .24em;
  color: #fff;
  background: rgba(0, 0, 0, .6);
  padding: 6px 12px;
}
.message__overline {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--color-accent);
  margin: 0 0 16px;
}
.message__title {
  font-family: var(--font-jp-serif);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 48px);
  margin: 0 0 32px;
  letter-spacing: .04em;
  color: var(--color-ink);
}
.message__text {
  font-size: 14px;
  line-height: 2;
  margin: 0 0 20px;
  color: var(--color-text);
}
.message__sign {
  margin-top: 24px;
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--color-ink);
}

/* -- 23. ABOUT - Reasons ---------------------------------- */
.reasons {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--color-bg);
}
.reasons__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.reasons-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
.reason-card {
  padding: 28px 0 0;
  border-top: 2px solid var(--color-ink);
}
.reason-card__num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(40px, 4vw, 56px);
  letter-spacing: 0;
  margin: 0 0 16px;
  color: var(--color-accent);
  line-height: 1;
}
.reason-card__title {
  font-family: var(--font-jp-serif);
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 18px);
  margin: 0 0 12px;
  color: var(--color-ink);
  letter-spacing: .04em;
}
.reason-card__text {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--color-text);
  margin: 0;
}

/* -- 24. FLOW Detail (flow.html) -------------------------- */
.flow-detail {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--color-bg);
}
.flow-detail__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
}

.flow-block {
  display: grid;
  grid-template-columns: 140px 120px 1fr;
  grid-template-areas:
    "period num   title"
    ".      .     text";
  gap: 12px clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--color-line);
}
.flow-block:last-child { border-bottom: 1px solid var(--color-line); }

.flow-block__period {
  grid-area: period;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--color-accent);
  margin: 18px 0 0;
  font-weight: 600;
}
.flow-block__num {
  grid-area: num;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  color: var(--color-ink);
  margin: 0;
  letter-spacing: 0;
}
.flow-block__title {
  grid-area: title;
  font-family: var(--font-jp-serif);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  margin: 8px 0 0;
  color: var(--color-ink);
  align-self: end;
}
.flow-block__text {
  grid-area: text;
  font-size: 14px;
  line-height: 2;
  color: var(--color-text);
  margin: 0;
}

/* -- 25. FLOW - After Delivery ---------------------------- */
.after-delivery {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--color-bg-alt);
}
.after-delivery__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
/* "AFTER DELIVERY" は文字数が多いので、このセクションだけタイトルを抑えてリードを 1行表示。
   max のみ縮小しているため、スマホ(min/中間値域)のサイズは従来どおり */
.after-delivery .section__title {
  font-size: clamp(32px, 4.8vw, 47px);
  /* くすませず・派手すぎず、透明感のある爽やかなマゼンタピンク */
  color: #e75bb0;
}
.after-delivery .section__lead {
  white-space: nowrap;
}
@media (max-width: 768px) {
  .after-delivery .section__lead {
    white-space: normal;
  }
}
.after-delivery__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.after-delivery__list > li {
  padding: 32px 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
}
.after-delivery__heading {
  font-family: var(--font-jp-serif);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--color-ink);
  letter-spacing: .04em;
}
.after-delivery__list p:not(.after-delivery__heading) {
  font-size: 13px;
  line-height: 1.9;
  color: var(--color-text);
  margin: 0;
}

/* -- 26. CONTACT - Main ----------------------------------- */
.contact-main {
  padding: 0 0 clamp(80px, 10vw, 140px);
  background: var(--color-bg);
}
.contact-main__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact-side__overline,
.contact-form__overline {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--color-accent);
  margin: 0 0 16px;
}
.contact-side__title,
.contact-form__title {
  font-family: var(--font-jp-serif);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  margin: 0 0 32px;
  letter-spacing: .04em;
  color: var(--color-ink);
}
.contact-side__list {
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-side__list > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--color-line);
}
.contact-side__list dt {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--color-text-mute);
  text-transform: uppercase;
}
.contact-side__list dd {
  margin: 0;
  font-size: 14px;
  color: var(--color-ink);
}
.contact-side__visual {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.contact-side__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.15);
}

/* -- 27. CONTACT - Form ----------------------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
}
.contact-form__note {
  font-size: 12px;
  color: var(--color-text-mute);
  margin: 0 0 32px;
}
.contact-form__required-mark {
  color: var(--color-accent);
  font-weight: 700;
}

.form-field {
  margin-bottom: 24px;
}
.form-field__label {
  display: block;
  font-family: var(--font-jp-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--color-ink);
  margin-bottom: 10px;
}
.form-field__optional {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--color-text-mute);
  margin-left: 8px;
  padding: 2px 6px;
  border: 1px solid var(--color-line);
}
.form-field__input {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--color-ink);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 0;
  transition: border-color .2s var(--ease-out);
}
.form-field__input:focus {
  outline: none;
  border-color: var(--color-ink);
}
.form-field__input--select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%230a0a0a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}
.form-field__input--textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.8;
}

.form-field--check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 40px;
}
.form-field__check {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-accent);
  flex-shrink: 0;
}
.form-field__check-label {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text);
}
.form-field__check-label a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form__submit {
  align-self: flex-start;
  min-width: 220px;
  justify-content: space-between;
}

/* -- 送信前の入力内容確認ポップアップ（モーダル） -- */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.confirm-modal[hidden] { display: none; }
.confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, .58);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: confirm-fade .3s var(--ease-out);
}
.confirm-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: #fff;
  padding: clamp(28px, 5vw, 48px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
  animation: confirm-pop .45s var(--ease-out);
}
@keyframes confirm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes confirm-pop {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.confirm-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: var(--color-ink);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .25s var(--ease-out), transform .25s var(--ease-out);
}
.confirm-modal__close:hover { color: var(--color-accent); transform: rotate(90deg); }
.confirm-modal__title {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .18em;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.confirm-modal__note {
  font-family: var(--font-jp-sans);
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-ink);
  margin-bottom: 28px;
}
.confirm-list {
  border-top: 1px solid var(--color-line);
  margin-bottom: 36px;
}
.confirm-list__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--color-line);
}
.confirm-list dt {
  font-family: var(--font-jp-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--color-ink-3, #666);
}
.confirm-list dd {
  font-family: var(--font-jp-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-ink);
  white-space: pre-wrap;     /* ご相談内容の改行を保持 */
  word-break: break-word;
}
.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-line);
}
.btn--ghost:hover {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
}
@media (max-width: 768px) {
  .confirm-list__row { grid-template-columns: 1fr; gap: 4px; }
  .confirm-list dt { color: var(--color-accent); }
  .contact-form__actions { flex-direction: column-reverse; align-items: stretch; }
  .contact-form__actions .btn { justify-content: center; }
}

/* -- 送信中／エラー／送信完了パネル -- */
.contact-form__submit:disabled { opacity: .55; cursor: default; }
.confirm-modal__error {
  font-family: var(--font-jp-sans);
  font-size: 13px;
  line-height: 1.7;
  color: #c0392b;
  margin: 0 0 18px;
}
.confirm-modal__error[hidden] { display: none; }

.contact-form__done[hidden] { display: none; }
.contact-form__done {
  text-align: center;
  padding: clamp(36px, 6vw, 72px) 0;
  animation: confirm-pop .5s var(--ease-out);
}
.contact-form__done-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  color: #fff;
  background: var(--color-accent);
  border-radius: 50%;
}
.contact-form__done-title {
  font-family: var(--font-jp-serif);
  font-weight: 900;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.4;
  color: var(--color-ink);
  margin: 0 0 20px;
}
.contact-form__done-text {
  font-family: var(--font-jp-sans);
  font-size: 14px;
  line-height: 2;
  color: var(--color-text);
  margin: 0 0 36px;
}

/* -- 28. PRIVACY (legal) ---------------------------------- */
.legal {
  padding: clamp(40px, 5vw, 64px) 0 clamp(80px, 10vw, 120px);
  background: var(--color-bg);
}
.legal__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.legal__intro {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text);
  margin: 0 0 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-line);
}
.legal__block { margin-bottom: 40px; }
.legal__title {
  font-family: var(--font-jp-serif);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px);
  margin: 0 0 16px;
  color: var(--color-ink);
  letter-spacing: .04em;
}
.legal__text {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text);
  margin: 0 0 12px;
}
.legal__list {
  padding-left: 20px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text);
}
.legal__list > li::marker { color: var(--color-accent); }
.legal__address {
  font-style: normal;
  font-size: 14px;
  line-height: 2;
  padding: 20px;
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
  margin-top: 16px;
}
.legal__date {
  margin-top: 48px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--color-text-mute);
  text-align: right;
}

/* -- 29. Media Queries (下層ページ) ----------------------- */
@media (max-width: 1024px) {
  .service-block { grid-template-columns: 1fr; grid-template-areas: "head" "visual" "body" !important; }
  .reasons-list { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .after-delivery__list { grid-template-columns: 1fr; }
  .contact-main__inner { grid-template-columns: 1fr; }
  .contact-side__visual { max-width: 60%; }
  .message__inner { grid-template-columns: 1fr; }
  .message__visual { max-width: 70%; }
  .flow-block { grid-template-columns: 100px 80px 1fr; }
}

@media (max-width: 768px) {
  .service-block { gap: 16px; }
  /* スマホは画像を小さく中央に（PCは元のサイズのまま） */
  .service-block__visual { max-width: 240px; justify-self: center; }
  .reasons-list { grid-template-columns: 1fr 1fr; }
  .company-table__row { grid-template-columns: 1fr; gap: 6px; padding: 16px 4px; }
  /* スマホは1列縦積み。数字だけ右上に固定し、全工程で配置を均一化 */
  .flow-block {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-areas:
      "period"
      "title"
      "text";
    gap: 6px;
    padding: 32px 0;
  }
  .flow-block__period { margin: 0; padding-right: 64px; }
  .flow-block__title { margin: 0; align-self: start; padding-right: 64px; }
  .flow-block__num {
    position: absolute;
    top: 28px;
    right: 0;
    font-size: 44px;
    line-height: 1;
    margin: 0;
  }
  .flow-block__text { margin: 4px 0 0; }
  .contact-side__list > div { grid-template-columns: 1fr; gap: 4px; }
  .legal__inner { font-size: 13px; }
}

/* =========================================================
   モーション & インタラクション
   ―― 編集デザインの硬質さを保ちつつ、要所に「動く瞬間」を仕込む
   ========================================================= */

/* -- 30. 英タイトル 1文字スタガー（JS で .split-char を付与） */
.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(.55em) rotate(6deg);
  transform-origin: 50% 100%;
  transition:
    opacity .85s cubic-bezier(.5, .05, .2, 1),
    transform .85s cubic-bezier(.5, .05, .2, 1);
  will-change: opacity, transform;
}
.fade-in.is-visible .split-char,
.is-visible .split-char,
.is-revealed .split-char {
  opacity: 1;
  transform: none;
}

/* -- 31. 画像のスクロール reveal（フェードアップ＋微スケール）
   ※ 以前の clip-path 実装は要素高さ算出のタイミングで画像が完全に消える
       ケースがあったため、opacity ベースの堅牢な実装に変更 */
.reveal-img {
  opacity: 0;
  transform: translateY(24px) scale(1.04);
  transition:
    opacity 1.1s cubic-bezier(.5, .05, .2, 1),
    transform 1.3s cubic-bezier(.5, .05, .2, 1);
  will-change: opacity, transform;
}
.reveal-img.is-revealed {
  opacity: 1;
  transform: none;
}

/* -- 32. SERVICEカード ホバー: 上スライド + アイコン回転 */
.service-card {
  transition:
    transform .5s cubic-bezier(.5, .05, .2, 1),
    border-top-color .5s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-10px);
  border-top-color: var(--color-accent);
}
.service-card__icon {
  transition: transform .6s cubic-bezier(.5, .05, .2, 1);
}
.service-card:hover .service-card__icon {
  transform: scale(1.12) rotate(-6deg);
}
.service-card__title {
  transition: color .35s var(--ease-out);
}
.service-card:hover .service-card__title {
  color: var(--color-accent);
}

/* -- 33. REASONカード ホバー: 番号がポップ */
.reason-card {
  transition: border-top-color .4s var(--ease-out);
}
.reason-card:hover { border-top-color: var(--color-accent); }
.reason-card__num {
  display: inline-block;
  transition: transform .5s cubic-bezier(.5, .05, .2, 1);
}
.reason-card:hover .reason-card__num {
  transform: translateY(-6px) scale(1.1);
}

/* -- 34. .link-more 矢印の永続フロート + ホバー前進 */
.link-more span[aria-hidden] {
  display: inline-block;
  animation: arrow-float 2.4s ease-in-out infinite;
  transition: transform .35s cubic-bezier(.5, .05, .2, 1);
}
@keyframes arrow-float {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(5px); }
}
.link-more:hover span[aria-hidden] {
  animation: none;
  transform: translateX(12px);
}

/* -- 35. CTAボタン .btn の光シマー（ホバーで左→右に通過） */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  top: -10%; bottom: -10%;
  left: -60%;
  width: 40%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, .28) 50%,
    transparent 100%
  );
  transform: skewX(-22deg);
  transition: left .8s cubic-bezier(.5, .05, .2, 1);
  pointer-events: none;
  z-index: 0;
}
.btn:hover::before { left: 140%; }
.btn > * { position: relative; z-index: 1; }

/* -- 36. ヘッダーロゴ ホバー: 微回転スケール */
.site-header__logo {
  transition: opacity .3s var(--ease-out);
}
.site-header__logo img {
  transition: transform .55s cubic-bezier(.5, .05, .2, 1);
  transform-origin: 50% 60%;
}
.site-header__logo:hover img {
  transform: rotate(-7deg) scale(1.06);
}
.site-header__logo:hover .site-header__logo-text {
  color: var(--color-accent);
}
.site-header__logo-text { transition: color .35s var(--ease-out); }

/* -- 37. ナビリンク ホバー: もとのアンダーライン演出のみ (マスクスライド廃止) */
/* CSSベースの .global-nav__link::after によるアンダーラインアニメは
   "Header & Global Nav" セクションにそのまま残っているのでここでは何も追加しない */

/* -- 38. Hero画像 マウス追従パララックス (JSと連動) */
.hero__visual img {
  transition: transform .7s cubic-bezier(.3, .15, .25, 1);
  will-change: transform;
}

/* -- 39. SERVICE詳細ブロックの画像ホバー(微ズーム) */
.service-block__visual img,
.about-grid__visual img,
.message__visual img,
.contact-side__visual img {
  transition: transform 1.2s cubic-bezier(.3, .15, .25, 1);
  will-change: transform;
}
.service-block__visual:hover img,
.message__visual:hover img,
.contact-side__visual:hover img {
  transform: scale(1.05);
}

/* -- 40. FLOWブロック ホバー: 番号がアクセントに */
.flow-block {
  transition: border-top-color .4s var(--ease-out);
}
.flow-block:hover { border-top-color: var(--color-accent); }
.flow-block__num {
  transition: color .4s var(--ease-out), transform .5s cubic-bezier(.5, .05, .2, 1);
}
.flow-block:hover .flow-block__num {
  color: var(--color-accent);
  transform: translateX(8px);
}

/* -- 41. CTAページのフォーム要素 フォーカスアニメ */
.form-field {
  position: relative;
}
.form-field__input {
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.form-field__input:focus {
  box-shadow: 0 4px 0 -3px var(--color-accent);
}

/* -- 42. SCROLLバー / Hero縦書きラベル ともにフッター到達時のみフェードアウト
   (JSで body.is-near-footer クラスを付与してスタイル分岐) */
.hero__scroll {
  transition: opacity .5s var(--ease-out);
}
body.is-near-footer .hero__scroll,
body.is-near-footer .hero__vlabels {
  opacity: 0;
  pointer-events: none;
}

/* -- 43. Drawer Nav 開閉アニメ (モバイル) ----------- */
.drawer-nav__list li {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .5s cubic-bezier(.5, .05, .2, 1),
    transform .5s cubic-bezier(.5, .05, .2, 1);
}
.drawer-nav:not([hidden]) .drawer-nav__list li {
  opacity: 1;
  transform: none;
}
.drawer-nav:not([hidden]) .drawer-nav__list li:nth-child(1) { transition-delay: .08s; }
.drawer-nav:not([hidden]) .drawer-nav__list li:nth-child(2) { transition-delay: .14s; }
.drawer-nav:not([hidden]) .drawer-nav__list li:nth-child(3) { transition-delay: .20s; }
.drawer-nav:not([hidden]) .drawer-nav__list li:nth-child(4) { transition-delay: .26s; }
.drawer-nav:not([hidden]) .drawer-nav__list li:nth-child(5) { transition-delay: .32s; }
.drawer-nav__contact {
  opacity: 0;
  transition: opacity .4s var(--ease-out) .4s;
}
.drawer-nav:not([hidden]) .drawer-nav__contact { opacity: 1; }

/* -- 44. リンク（テキスト内アンカー）下線スライド */
.legal__address a,
.form-field__check-label a,
.site-footer__contact a,
.contact-side__list a {
  position: relative;
  display: inline-block;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .45s cubic-bezier(.5, .05, .2, 1);
}
.legal__address a:hover,
.form-field__check-label a:hover,
.site-footer__contact a:hover,
.contact-side__list a:hover {
  background-size: 100% 1px;
}

/* -- 45. reduced-motion 対応 ------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  .reveal-img { clip-path: none; transform: none; }
  .split-char { opacity: 1; transform: none; }
  /* 動きを減らす設定ではイントロを完全スキップ */
  .intro { display: none !important; }
}

/* =========================================================
   WHY FELICE — 五角形ホバープレビュー（TOPのSERVICE枠を置換）
   ========================================================= */
.why-section { position: relative; background: var(--color-bg-dark); color: #fff; padding: clamp(64px, 9vw, 120px) 0; overflow: hidden; }
    /* セクション内の全テキストを本文と同じ明朝(Noto Serif JP)に統一 */
    .why-section h2, .why-section h3, .why-section p, .why-section span, .why-section a, .why-section button { font-family: var(--font-jp-serif); }
    /* 大見出し「WHY FELICE」だけは他セクション(.section__title)と同じ英字フォント(Inter)に */
    .why-section .why-head__title { font-family: var(--font-en); }

    /* セクション全体に広がる背景写真（右側 full-bleed・ぼかし無し・左をグラデで馴染ませる） */
    .why-bg { position: absolute; top: 0; right: 0; bottom: 0; width: 42%; z-index: 0; }
    .why-bg__img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s cubic-bezier(.22,.61,.36,1); }
    .why-bg__img.is-active { opacity: 1; }
    /* WHY03 はループ動画。<video>をカバー表示でストリップに敷く */
    .why-bg__video { width: 100%; height: 100%; object-fit: cover; }
    /* 04/05 は横長写真 → 背景ストリップでも全体が映るよう contain */
    .why-bg__img[data-i="4"] { background-size: contain; background-repeat: no-repeat; }
    .why-bg__fade {
      position: absolute; inset: 0;
      background:
        linear-gradient(to right, var(--color-bg-dark) 0%, rgba(10,10,10,.75) 28%, rgba(10,10,10,.32) 60%, rgba(10,10,10,.08) 86%, rgba(10,10,10,0) 100%),
        linear-gradient(to bottom, rgba(10,10,10,.45) 0%, rgba(10,10,10,0) 22%, rgba(10,10,10,0) 78%, rgba(10,10,10,.5) 100%);
    }

    .why-section__inner { position: relative; z-index: 2; width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }

    /* 見出し（サイトの .section__title と同じトーン。黒文字→白に） */
    .why-head { margin-bottom: clamp(36px, 5vw, 64px); text-align: left; }
    .why-head__over { font-family: var(--font-en); font-size: 13px; letter-spacing: .2em; color: #9a9a9a; margin: 0 0 16px; }
    .why-head__title { font-family: var(--font-en); font-weight: 700; font-size: clamp(40px, 7vw, 88px); letter-spacing: .04em; line-height: 1; margin: 0; color: #fff; }
    .why-head__lead { font-family: var(--font-jp-serif); font-weight: 500; font-size: clamp(16px, 1.6vw, 22px); color: #eaeaea; margin: 18px 0 0; }

    /* レイアウト: 左=五角形(中央を超えて大きく) / 右=カード(縦長) */
    .why { position: relative; min-height: 600px; display: flex; align-items: center; }

    /* ---- 五角形ダイアグラム（大きく・左寄せ） ---- */
    .why__diagram { position: relative; width: 58%; max-width: 800px; margin: 0; aspect-ratio: 1 / 1; flex: none; }

    /* 選択時に動くグラデ（五角形にクリップした発光ブロブ） */
    /* 発光は内側の五角形の中だけに表示（内側五角形でクリップ） */
    .why__glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
      clip-path: polygon(50% 18.02%, 79.85% 40.16%, 68.53% 75.42%, 31.47% 75.42%, 20.15% 40.16%); }
    .why__glow::before {
      content: ""; position: absolute; width: 46%; height: 46%;
      left: var(--gx, 50%); top: var(--gy, 18%); transform: translate(-50%, -50%);
      background: radial-gradient(circle, rgba(214,41,158,.72) 0%, rgba(214,41,158,.22) 42%, rgba(214,41,158,0) 70%);
      filter: blur(4px);
      transition: left .7s var(--ease-out), top .7s var(--ease-out);
    }

    .why__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
    .why__lines .penta-stroke { fill: none; stroke: rgba(255,255,255,.3); stroke-width: .4; stroke-linejoin: round; }
    .why__lines .penta-inner { fill: none; stroke: rgba(255,255,255,.2); stroke-width: .35; stroke-linejoin: round; }
    .why__lines .penta-dot { fill: rgba(255,255,255,.72); }
    .why__lines .spoke { stroke: rgba(255,255,255,.12); stroke-width: .3; }

    .why__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; z-index: 2; width: 44%; }
    .why__center-active { display: none; font-weight: 700; font-size: 17px; letter-spacing: .04em; color: var(--color-accent); margin: 0 0 6px; opacity: 0; transform: translateY(7px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
    .why__center-active.show { opacity: 1; transform: none; }
    .why__center-en { font-family: var(--font-en); font-style: italic; font-weight: 500; font-size: clamp(16px, 1.8vw, 22px); letter-spacing: .03em; color: #fff; margin: 0; }
    .why__center-jp { font-family: var(--font-jp-sans); font-size: 10.5px; letter-spacing: .14em; color: #9a9a9a; margin: 7px 0 0; line-height: 1.7; }

    .why__node { position: absolute; transform: translate(-50%, -50%); z-index: 3;
      width: 80px; height: 80px; background: none; border: none; cursor: pointer; padding: 0; }
    .why__node-dot { position: relative; width: 80px; height: 80px; border-radius: 50%;
      display: grid; place-items: center; background: #111; border: 1px solid rgba(255,255,255,.3); color: #fff;
      transition: transform .4s var(--ease-out), border-color .4s var(--ease-out), background .4s var(--ease-out), box-shadow .4s var(--ease-out); }
    .why__node-dot svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
    .why__node-text { position: absolute; display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
    .why__node-num { font-size: 15px; letter-spacing: .14em; color: #8a8a8a; transition: color .3s var(--ease-out); }
    .why__node-label { font-weight: 500; font-size: 16px; letter-spacing: .04em; color: #c4c4c4; transition: color .3s var(--ease-out); }
    /* ラベル/番号の方向別配置 */
    .why__node--top  .why__node-text { bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); align-items: center; text-align: center; }
    .why__node--right .why__node-text { left: calc(100% + 16px); top: 50%; transform: translateY(-50%); align-items: flex-start; }
    .why__node--br   .why__node-text { top: calc(100% + 8px); left: 58%; align-items: flex-start; }
    .why__node--bl   .why__node-text { top: calc(100% + 8px); right: 58%; align-items: flex-end; }
    .why__node--left .why__node-text { right: calc(100% + 16px); top: 50%; transform: translateY(-50%); align-items: flex-end; }

    .why__node:hover .why__node-dot, .why__node:focus-visible .why__node-dot, .why__node.is-active .why__node-dot {
      background: var(--color-accent); border-color: var(--color-accent); transform: scale(1.14);
      box-shadow: 0 0 0 7px rgba(214,41,158,.14), 0 12px 34px rgba(214,41,158,.4); }
    .why__node.is-active .why__node-num, .why__node:hover .why__node-num { color: #fff; }
    .why__node.is-active .why__node-label, .why__node:hover .why__node-label { color: #fff; }
    .why__node:focus-visible { outline: none; }

    /* ---- 右: 白カード（写真はセクション背景なのでカードのみ） ---- */
    .why__panel { position: absolute; top: 50%; right: 0; transform: translateY(-50%); width: min(430px, 40%); min-height: 520px; }
    .pv { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s cubic-bezier(.22,.61,.36,1); }
    .pv.is-active { opacity: 1; visibility: visible; }
    .pv__card { width: min(100%, 430px); display: flex; flex-direction: column;
      background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
      color: var(--color-ink); padding: 40px 38px; border-radius: 16px;
      box-shadow: 0 28px 70px rgba(0,0,0,.5); transform: translateY(14px); transition: transform .9s var(--ease-out); }
    .pv.is-active .pv__card { transform: none; }
    .pv__card-top { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; }
    .pv__card-num { font-size: 16px; letter-spacing: .18em; color: var(--color-accent); margin: 0; }
    .pv__card-x { color: #c4c4c4; font-size: 22px; line-height: 1; }
    .pv__card-title { font-weight: 700; font-size: clamp(24px, 2.4vw, 31px); letter-spacing: .04em; margin: 0 0 22px; color: var(--color-ink); }
    .pv__card-lead { font-family: var(--font-jp-serif); font-weight: 400; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; color: var(--color-ink); margin: 0 0 16px; }
    .pv__card-desc { font-size: 15px; line-height: 2.1; color: var(--color-text); margin: 0; }
    .pv__card-cta { display: inline-flex; align-items: center; gap: 9px; margin-top: auto; align-self: flex-start;
      font-weight: 700; font-size: 14px; color: var(--color-ink);
      border: 1px solid var(--color-ink); border-radius: 999px; padding: 13px 26px; transition: background .3s var(--ease-out), color .3s var(--ease-out); }
    .pv__card-cta:hover { background: var(--color-ink); color: #fff; }
    .pv__card-cta span { transition: transform .3s var(--ease-out); }
    .pv__card-cta:hover span { transform: translateX(4px); }

    /* ---- スマホ: 横スワイプ・カルーセル（ぼかし無し） ---- */
    .why-carousel { display: none; }
    .why-carousel__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 4px 0 10px; scrollbar-width: none; }
    .why-carousel__track::-webkit-scrollbar { display: none; }
    .ccard { position: relative; flex: 0 0 84%; scroll-snap-align: center; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: #161616; }
    .ccard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    /* 04 AI・SEO / 05 公開後サポート は横長写真 → 全体が見えるよう contain（上下は暗幕で自然に） */
    .ccard:nth-child(5) .ccard__img { object-fit: contain; object-position: center 38%; }
    .ccard__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,.96) 0%, rgba(10,10,10,.88) 34%, rgba(10,10,10,.5) 62%, rgba(10,10,10,.12) 100%); }
    .ccard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 22px; color: #fff; }
    .ccard__num { font-family: var(--font-en); font-size: 12px; letter-spacing: .18em; color: #fff; opacity: .85; margin: 0 0 8px; }
    .ccard__title { font-family: var(--font-jp-serif); font-weight: 700; font-size: 22px; letter-spacing: .04em; margin: 0 0 10px; color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.55); }
    .ccard__lead { font-family: var(--font-jp-serif); font-weight: 400; font-size: 15px; line-height: 1.6; color: #fff; margin: 0 0 8px; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
    .ccard__desc { font-size: 13px; line-height: 1.9; color: #f0f0f0; margin: 0 0 16px; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
    .ccard__cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-jp-sans); font-weight: 700; font-size: 12.5px; color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 9px 18px; }
    .why-carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
    .why-carousel__dots .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.3); transition: width .3s var(--ease-out), background .3s var(--ease-out); }
    .why-carousel__dots .dot.is-active { width: 22px; border-radius: 4px; background: var(--color-accent); }
    .why-carousel__hint { text-align: center; font-family: var(--font-jp-sans); font-size: 11px; color: #888; margin: 12px 0 0; letter-spacing: .08em; }

    @media (max-width: 880px) {
      /* スマホ: 五角形（タップ）＋その下に写真カードのプレビュー */
      .why { display: flex; flex-direction: column; align-items: center; min-height: 0; gap: 26px; }
      .why-bg { display: none; }
      .why__panel { display: none; }
      .why__diagram { width: 90%; max-width: 340px; margin: 0 auto; }
      /* スマホ: 中央テキストは残し、選択中の項目名を中央にふわっと表示。ノードは番号＋アイコン */
      .why__center { width: 72%; }
      .why__center-active { display: block; }
      .why__center-en { font-size: 15px; }
      .why__center-jp { font-size: 9.5px; }
      .why__node { width: 46px; height: 46px; }
      .why__node-dot { width: 46px; height: 46px; }
      .why__node-dot svg { width: 21px; height: 21px; }
      .why__node-num { font-size: 11px; }
      .why__node-label { display: none; }
      /* 下のプレビュー = 写真カード1枚（ノードのタップで切替） */
      .why-carousel { display: block; width: 100%; max-width: 360px; margin: 0 auto; }
      .why-carousel__track { position: relative; display: block; overflow: visible; aspect-ratio: 4 / 5; padding: 0; }
      .ccard { position: absolute; inset: 0; flex: none; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-out); }
      .ccard.is-active { opacity: 1; visibility: visible; }
      .why-carousel__dots, .why-carousel__hint { display: none; }
    }

/* =========================================================
   INTRO — TOPページ オープニング動画オーバーレイ
   1回再生 → 再生完了でSCROLLヒント表示 → スクロール/クリックで
   フェードアウトしヒーローへ受け渡し。index.html のみ。
   ========================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 2000;            /* skip-link(1000)・header(120)より前面 */
  background: #f1f0ee;      /* 動画内の背景色と同色＝PCの左右帯が見えない */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  will-change: opacity;
  /* タップで全体が半透明にフェードし、後ろのTOPがふわっと出る */
  transition: opacity 1.8s var(--ease-out);
}
.intro.is-done { display: none !important; }

/* 動画は見切れ防止で contain。背景を #f1f0ee に合わせ帯を見えなくする */
.intro__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f1f0ee;
}
.intro__video--sp { display: none; }        /* PC: 横版(1920×1080)を表示 */
@media (max-width: 768px) {
  .intro__video--pc { display: none; }       /* スマホ: 縦版(1080×1920)に切替 */
  .intro__video--sp { display: block; }
}

/* イントロ表示中はヘッダー/ヒーローを伏せ、動画が完全に消えてから
   ふわっと薄くフェードインさせる（ヘッダーが途中で急に出る違和感を防ぐ） */
.hero { transition: opacity 4s var(--ease-out); }
html.intro-active .site-header,
html.intro-active .hero { opacity: 0; }
/* 動画が透けて消える間、背後（伏せたヒーロー）が白く見えないよう同色に */
html.intro-active body { background: #f1f0ee; }
/* イントロ離脱直後の慣性スクロール吸収（約1秒）＝TOP先頭で着地させる */
html.intro-settle, html.intro-settle body { overflow: hidden; }

/* SCROLLヒント ― TOPの .hero__scroll と全く同じ意匠・同じ位置（右中央・縦書き）。
   初期は非表示、表示直後に is-shown を付与してフェードイン */
.intro__scroll {
  position: fixed;
  right: clamp(20px, 2.2vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2001;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .32em;
  writing-mode: vertical-rl;
  color: #fff;
  mix-blend-mode: difference;       /* 背景に応じて自動反転（TOPと同挙動） */
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s var(--ease-out);
}
.intro__scroll.is-shown {
  opacity: 1;
  pointer-events: auto;
}
.intro__scroll-inner {
  display: block;
  position: relative;
  animation: intro-tap-pulse 1.8s var(--ease-out) infinite;   /* タップ誘導の点滅 */
}
.intro__scroll-inner::before {
  content: none;   /* スクロールを示す縦線は廃止（タップ方式のため） */
}

/* スマホ: ヒントを下中央・横置きにし、棒→下向き矢印(バウンス)に差し替え */
@media (max-width: 768px) {
  .intro__scroll {
    right: auto;
    left: 50%;
    top: auto;
    bottom: clamp(26px, 6vh, 52px);
    transform: translateX(-50%);
    writing-mode: horizontal-tb;          /* 横置き */
    letter-spacing: .3em;
    text-indent: .3em;                    /* letter-spacing分の中央補正 */
  }
  .intro__scroll-inner {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
  }
  .intro__scroll-inner::before {
    position: static;
    width: 9px;
    height: 9px;
    background: none;
    border-right: 1.5px solid #fff;       /* 2辺＋45度回転で下向き矢印 */
    border-bottom: 1.5px solid #fff;
    box-sizing: border-box;
    animation: intro-arrow-bob 1.6s var(--ease-out) infinite;
  }
}
/* 矢印を画面の真下方向へバウンス（rotate45の座標系で x=y は画面の垂直移動） */
@keyframes intro-arrow-bob {
  0%, 100% { transform: rotate(45deg) translate(-2px, -2px); opacity: .35; }
  50%      { transform: rotate(45deg) translate(3px, 3px);   opacity: 1; }
}
/* TAPヒントの点滅（タップ誘導） */
@keyframes intro-tap-pulse {
  0%, 100% { opacity: .4; }
  50%      { opacity: 1; }
}
