/* Layout: Actually MARKET（actuallymarket.com）の文字・動きを白黒反転したもの。
   各セクションは「大きな英字ラベル（全幅）→ 右寄せの本文」。英字ラベルは文字シャッフル、見出しは白い帯が横切って表示。 */
:root {
  /* Actually MARKET の配色を反転：paper #fff → #000 / ink #111 → #eee / muted #65625d → #9a9da2 / line #d9d7d0 → #26282f */
  --bg: #000000;
  --panel: #0b0b0b;
  --fg: #eeeeee;
  --muted: #9a9da2;
  --line: #26282f;
  --line-dark: #46494f;
  --font-sans: Aptos, "游ゴシック Medium", "Yu Gothic Medium", YuGothic, YuGothicM, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, sans-serif;
  --fs-xs: clamp(.75rem, .75vw, .8125rem);
  --fs-sm: clamp(.8125rem, .9vw, .9375rem);
  --fs-body: clamp(1rem, 1vw, 1.0625rem);
  --fs-index: clamp(1.375rem, 2.4vw, 2.25rem);
  --fs-lead: clamp(1rem, 1.15vw, 1.25rem);
  --fs-h3: clamp(1.125rem, 1.5vw, 1.35rem);
  --fs-h2: clamp(2rem, 3.6vw, 3.5rem);
  --section-space: clamp(3.5rem, 6.5vw, 6.5rem);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  /* 帯が横切る表示（Actually MARKET と同じ値） */
  --bar-dur: 1.2s;
  --bar-ease: cubic-bezier(.75, 0, 0, 1);
  --text-dur: .6s;
  --stagger: .6s;
  /* 動く帯・TOPの写真のボードは、シルバーボードの画像（assets/silver-board.webp）。画像が読めないときはシルバー一色 */
  --bar-color: #8f9297;
  --bar-image: url("/assets/silver-board.webp");
  --text-color: var(--fg);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.8; letter-spacing: .02em;
  padding-inline: 16px;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1160px; margin-inline: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; word-break: auto-phrase; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 日英併記：日本語の下に英語を小さく添える */
.en { display: block; color: var(--muted); font-size: 0.88em; line-height: 1.7; }
p.ja + p.en { margin-top: 10px; }
h2.en, h3.en { font-weight: 500; letter-spacing: .1em; line-height: 1.4; color: var(--muted); }
.sec h2.en { font-size: var(--fs-sm); margin-top: .9rem; }
h3.en { font-size: var(--fs-xs); }
.btn .en { display: inline; font-size: .8em; color: inherit; opacity: .75; margin-left: .8em; letter-spacing: .12em; }

/* ヘッダー */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--bg); margin-inline: -16px; padding: 16px;
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.logo img { height: var(--logo-h); width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; }
.nav a {
  position: relative; isolation: isolate;
  font-size: var(--fs-xs); font-weight: 400; line-height: 1; letter-spacing: .14em;
  color: var(--muted); text-decoration: none; transition: color .3s ease;
}
.nav a.on { color: var(--fg); }
/* ナビのホバー：文字の後ろに帯が伸びて文字色が反転 */
.nav a::after {
  content: ""; position: absolute; z-index: -1; top: -.45em; right: -.36em; bottom: -.45em; left: -.5em;
  background: var(--fg); transform: scaleX(0); transform-origin: left center;
  transition: transform .3s cubic-bezier(.8, 0, .2, 1);
}
.nav a:hover { color: var(--bg); }
.nav a:hover::after { transform: scaleX(1); }
.tools { display: flex; align-items: center; gap: 14px; }
.ig { display: block; width: 22px; height: 22px; color: var(--fg); }

/* ハンバーガーメニュー（Actually MARKET と同じ出方：右からパネルが滑り込み、ボタンが × に変わる） */
:root { --logo-h: 38px; --header-h: calc(var(--logo-h) + 33px); }
.top { min-height: var(--header-h); }
.burger {
  position: fixed; z-index: 201; top: env(safe-area-inset-top, 0px); right: 16px;
  display: none; min-width: 3.5rem; height: var(--header-h); align-items: center; justify-content: flex-end;
  padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--fg); cursor: pointer;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
.burger:focus:not(:focus-visible) { outline: 0; }
/* タップで開閉したときは、移動したフォーカスの枠を出さない（キーボード操作のときだけ枠を出す） */
.pointer-focus:focus, .pointer-focus:focus-visible { outline: 0; }
.burger__icon { display: block; overflow: visible; }
.burger__icon line { stroke: currentColor; stroke-width: 1.5; transform-box: view-box; transform-origin: 11px 8px; transition: transform .25s ease, opacity .2s ease; }
.burger[aria-expanded="true"] .burger__icon line:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.burger[aria-expanded="true"] .burger__icon line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__icon line:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }
html.pb-intro .burger { visibility: hidden; }
html.pb-intro-reveal .burger { visibility: visible; }
body.is-menu-open { overflow: hidden; }
.menu { position: fixed; z-index: 200; inset: 0; }
.menu[hidden] { display: none !important; }
.menu__overlay {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer;
  background: rgba(238, 238, 238, .21); touch-action: none; opacity: 0; transition: opacity .32s ease; -webkit-tap-highlight-color: transparent;
  /* 後ろの文字が読めないくらいぼかす（newoman.jp/takanawa のメニューと同じ 13px） */
  -webkit-backdrop-filter: blur(13px); backdrop-filter: blur(13px);
}
.menu__panel {
  --menu-gutter: clamp(1.25rem, 6vw, 3rem);
  position: absolute; inset: 0 0 0 auto; display: flex; flex-direction: column;
  width: min(76.5vw, 28.8rem); padding: 0 var(--menu-gutter) 3rem;
  color: var(--fg); background: var(--bg); border-left: 1px solid var(--line);
  transform: translate(100%); transition: transform .42s cubic-bezier(.33, 0, .2, 1);
  /* スマホで横にずれないように固定：横方向のはみ出しを切り、縦方向のスクロールだけを許可する */
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
}
.menu.is-open .menu__overlay { opacity: 1; }
.menu.is-open .menu__panel { transform: translate(0); }
.menu__top { display: flex; min-height: var(--header-h); margin-bottom: clamp(1.5rem, 16svh, 10rem); align-items: center; }
.menu__logo { display: flex; align-items: center; }
.menu__logo img { display: block; width: auto; max-width: 100%; height: var(--logo-h); }
.menu__panel > a:not(.menu__login) {
  padding-block: .85rem; font-size: 20px; line-height: 1.15; letter-spacing: .02em; text-decoration: none; color: var(--fg);
}
/* 表示中のページ：パネル幅いっぱいの帯 */
.menu__panel > a[aria-current="page"]:not(.menu__login) {
  margin-inline: calc(var(--menu-gutter) * -1); padding-inline: var(--menu-gutter); color: var(--bg); background: var(--fg);
}
.menu__panel > a[aria-current="page"]:not(.menu__login):focus-visible { outline: 2px solid var(--bg); outline-offset: -6px; }
.menu__login {
  display: inline-flex; align-self: flex-start; margin-top: 2rem; padding: 1.1rem calc(2.75rem - .2em) 1.1rem 2.75rem;
  align-items: center; justify-content: center; border: 1px solid var(--fg); border-radius: 999px;
  color: var(--fg); background: var(--bg); font-size: var(--fs-sm); font-weight: 500; line-height: 1; letter-spacing: .2em;
  text-align: center; text-decoration: none; text-transform: uppercase; transition: color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.menu__login:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
@media (hover: hover) { .menu__login:hover { color: var(--bg); background: var(--fg); } }
.menu__sns { display: flex; margin: 1.75rem 0 0; padding: 0; align-items: center; gap: 2rem; list-style: none; }
.menu__sns li { display: flex; }
.menu__ig { display: block; width: 24px; height: 24px; color: var(--fg); }
.menu__ig svg { width: 100%; height: 100%; display: block; }

/* トップ：写真枠（写真が入るまで COMING SOON） */
.hero {
  position: relative; margin-inline: -16px; overflow: hidden;
  /* 写真の枠の高さは、ページを開いたときの画面の高さで固定（--hero-h は site.js が一度だけ決める）。
     LINE などのアプリ内ブラウザやスマホで、スクロール中にアドレスバーが出入りしても大きさが変わらないように */
  height: calc(100vh - var(--header-h));
  height: calc(var(--hero-h, 100svh) - var(--header-h)); min-height: 420px; max-height: 1000px;
  border-bottom: 1px solid var(--line);
}
.hero__photo { position: absolute; inset: 0; overflow: hidden; background: var(--panel); }
/* 写真：縦長の写真を枠いっぱいに表示。PC（横長の枠）では前髪から顎までが入るよう上から32%の位置で切り取る（スマホは縦に余りが出ないので全身に近く見える） */
.hero__photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
/* 写真の登場：オープニングの黒がそのまま写真を覆っていて、黒い幕が一度だけ下へ下がって写真が現れる */
.hero__board { display: none; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: #000; clip-path: inset(0 0 0 0); }
.js .hero__board { display: block; }
.js .hero.is-board .hero__board { animation: board-drop 1.1s cubic-bezier(.75, 0, .2, 1) both; }
.js .hero.is-board-done .hero__board { display: none; }
@keyframes board-drop { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(100% 0 0 0); } }
/* 下側だけ暗くして、白いシャツの上でも SCROLL が読めるように */
.hero__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 35%; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.hero__scroll {
  position: absolute; z-index: 1; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-size: 9.5px; letter-spacing: .3em; color: var(--fg); text-decoration: none; padding: 8px 12px; cursor: pointer;
}
.hero__scroll i { display: block; width: 1px; height: 48px; background: var(--line-dark); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--fg); animation: scroll-line 2s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes scroll-line { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* トップ：ステートメント */
.statement { display: grid; gap: 1.6rem; }
.statement h1 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.statement .slide-bar--line + .slide-bar--line { margin-top: .12em; }
/* TOPの「HEALTH INDUSTRY FOR COMMUNITIES」だけは、シルバーの帯に加えてネオンの点滅も。
   1行目の帯が通り過ぎて文字が出始める瞬間（1.2秒）から、英字ラベルと同じ「チカチカ → フワン×2 → 光が引く」 */
.js .statement.slide-in h1 {
  animation: label-neon .75s linear 1.2s, label-breathe .9s ease-in-out 1.95s 2, label-settle .6s ease-out 3.75s;
}

/* セクション共通（英字ラベルを全幅、本文を右に寄せる） */
section { padding-block: var(--section-space); border-bottom: 1px solid var(--line); scroll-margin-top: 70px; }
section.no-line { border-bottom: 0; }   /* 区切りの線を出さないセクション（LOGIN の3つ） */
.sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.75rem, 3.5vw, 3.5rem) 24px; }
.sec > * { min-width: 0; grid-column: 4 / -1; }
.sec > .eyebrow { grid-column: 1 / -1; }
.eyebrow { display: grid; gap: .5rem; align-content: start; }
.eyebrow b, .page-head h1 {
  font-size: var(--fs-index); font-weight: 500; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase;
}
.eyebrow span { color: var(--muted); font-size: var(--fs-xs); letter-spacing: .14em; }
.sec h2.ja { font-size: var(--fs-h2); line-height: 1.25; letter-spacing: -.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.85; margin-top: 2rem; max-width: 46rem; }
.lead.en { font-size: var(--fs-sm); margin-top: .9rem; }
.body { display: grid; gap: clamp(2.5rem, 4vw, 3.5rem); }
.body > * { min-width: 0; }  /* 横長のロゴがスマホで画面からはみ出さないように */
.label { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .14em; color: var(--muted); }

/* お知らせ */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 9em 1fr; gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news time { font-size: var(--fs-xs); letter-spacing: .14em; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: .2em; }
.news li .ja { font-weight: 600; }
.news li .en { grid-column: 2; }

/* 事業内容・サポート（01_ 02_ 03_） */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.trio article { background: var(--bg); padding: 28px 24px 32px; display: grid; gap: 12px; align-content: start; }
/* 番号：①②③ のロゴ画像（logo_1〜3_white.png） */
.num { display: block; width: 40px; height: 40px; }
.trio h3.ja, .steps h3.ja, .define h3.ja, .cat h3.ja { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -.005em; }
.trio p.ja, .steps p.ja, .cat p.ja, .define p.ja { font-size: .95rem; }

/* ODM */
.reveal-img { position: relative; overflow: hidden; }
.odm-logo { max-width: 640px; width: 100%; }
.odm-logo img, .project .reveal-img img { width: 100%; height: auto; display: block; }
.define { background: var(--panel); border: 1px solid var(--line); padding: 28px; display: grid; gap: 10px; }
.define .k { font-size: var(--fs-xs); letter-spacing: .14em; color: var(--muted); }

/* 対応商品 */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cat { border-top: 1px solid var(--fg); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.cat .fig { font-weight: 600; font-size: 2rem; line-height: 1; letter-spacing: -.01em; }
.cat .fig small { font-size: .9rem; font-weight: 500; margin-left: 4px; color: var(--muted); }
.cat .fig .en { display: inline; margin-left: 6px; }
.note { color: var(--muted); font-size: var(--fs-sm); }

/* 料金 */
.price { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.price article { background: var(--bg); padding: 28px 24px; display: grid; gap: 10px; align-content: start; }
.price h3 { font-size: 1rem; font-weight: 600; }
.price h3 .num { margin-bottom: 14px; }
.price h3 .en { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .1em; margin-top: 2px; }
.price .amt { font-weight: 600; font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.15; letter-spacing: -.01em; }
.amt .en { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .14em; }
.price p { font-size: .88rem; }
.price p.ja { color: var(--fg); }

/* 流れ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.steps li { display: grid; gap: 10px; align-content: start; }
.steps .n {
  display: inline-grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%;
  border: 1px solid var(--line-dark); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0;
}
.loop { margin-top: 8px; font-size: var(--fs-sm); display: flex; gap: 10px; align-items: center; }
.loop::before { content: "↻"; font-size: 1.2rem; }
.loop.en { margin-top: 0; padding-left: 1.9em; }
.loop.en::before { content: none; }

/* プロジェクト */
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; background: var(--panel); border: 1px solid var(--line); padding: 48px 40px; }
.project > * { min-width: 0; }
.project .reveal-img { max-width: 460px; }
.project h3.ja { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: 4px; }
.project h3.en { margin-bottom: 14px; }
.project__link { margin-top: 32px; }
.btn .arrow { margin-left: .7em; letter-spacing: 0; transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translate(3px, -3px); }

/* 会社情報 */
.company { width: 100%; border-collapse: collapse; }
.company th, .company td { text-align: left; vertical-align: top; padding: 18px 0; border-bottom: 1px solid var(--line); }
.company tr:first-child th, .company tr:first-child td { border-top: 1px solid var(--line); }
.company th { width: 12em; font-weight: 500; font-size: var(--fs-sm); color: var(--muted); padding-right: 16px; }
.company td { overflow-wrap: anywhere; }
.company ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.company .en { margin-top: 2px; }
.company ul.en { margin-top: 10px; }
.copy {
  font: inherit; font-size: var(--fs-xs); letter-spacing: .14em; margin-left: 10px;
  background: transparent; color: var(--muted); border: 1px solid var(--line-dark); border-radius: 999px;
  padding: 2px 12px; cursor: pointer; transition: color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.copy:hover { color: var(--bg); background: var(--fg); border-color: var(--fg); }

/* 会員登録・ログイン（/login/） */
.member { display: grid; gap: 28px; justify-items: start; }
.member__logo { max-width: 100%; }
.member__logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 40px; }
/* PB③ だけが真ん中に出て、オープニングと同じように右へ文字が伸びて PB③○○○ になる（--r：最初に隠す幅、--sx：PB③ を真ん中に置くずらし） */
.js .pb-spread { position: relative; }
.js .pb-spread img { opacity: 0; clip-path: inset(0 var(--r) 0 0); transform: translateX(var(--sx)); }
.js .pb-spread.is-play { animation: intro-neon .75s linear 1.8s; }
.js .pb-spread.is-play img { animation: intro-in-to .6s ease both, pb-spread 1.2s cubic-bezier(.77, 0, .18, 1) .9s both; }
@keyframes intro-in-to { to { opacity: 1; } }
@keyframes pb-spread { from { opacity: 1; } to { opacity: 1; clip-path: inset(0 var(--r2, 0%) 0 0); transform: translateX(0); } }
/* SERVICE（PB③ODM SERVICE）：PB③ から ODM まで広がったあと、SERVICE の部分（--cut から右）がネオンのようにチカチカ光って現れる */
.js .pb-spread img.pb-spread__after { position: absolute; left: 0; top: 0; opacity: 0; clip-path: inset(0 0 0 var(--cut)); transform: none; }
.js .pb-spread--odm.is-play { animation: none; }
.js .pb-spread.is-play img.pb-spread__after { animation: pb-flicker-in 1.1s linear 2.15s both; }
@keyframes pb-flicker-in {
  0%   { opacity: 0;   filter: none; }
  6%   { opacity: .9;  filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 14px rgba(255, 255, 255, .75)); }
  10%  { opacity: 0;   filter: none; }
  20%  { opacity: 1;   filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 14px rgba(255, 255, 255, .75)); }
  26%  { opacity: .1;  filter: none; }
  30%  { opacity: .2;  filter: none; }
  40%  { opacity: 1;   filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 18px rgba(255, 255, 255, .85)); }
  50%  { opacity: .15; filter: none; }
  58%  { opacity: 1;   filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 22px rgba(255, 255, 255, .9)); }
  70%  { opacity: .55; filter: drop-shadow(0 0 2px #fff); }
  76%  { opacity: 1;   filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 18px rgba(255, 255, 255, .8)); }
  100% { opacity: 1;   filter: none; }
}
.member__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* お問い合わせ */
.contact { display: grid; gap: 18px; align-content: start; }
.mail-big { font-weight: 600; font-size: clamp(1.5rem, 4.2vw, 2.6rem); letter-spacing: -.01em; text-decoration: none; overflow-wrap: anywhere; }
.mail-big:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.msg { font-size: var(--fs-sm); min-height: 1.5em; color: var(--muted); }

/* 角の丸い枠のボタン（Actually MARKET の VIEW MORE） */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.1rem calc(2.75rem - .2em) 1.1rem 2.75rem;
  border: 1px solid var(--fg); border-radius: 999px;
  color: var(--fg); background: var(--bg);
  font: inherit; font-size: var(--fs-sm); font-weight: 500; line-height: 1; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.btn:hover { color: var(--bg); background: var(--fg); }
.btn:focus-visible { outline-offset: 4px; }
.view-all { margin-top: clamp(2rem, 3vw, 3rem); text-align: center; }

/* COMING SOON（LOGIN・規約） */
.soon { border: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: 56px 40px 40px; width: min(520px, calc(100vw - 32px)); text-align: center; }
.soon::backdrop { background: rgba(0, 0, 0, .75); }
.soon .k { font-size: var(--fs-xs); letter-spacing: .14em; color: var(--muted); }
.soon h2 { font-size: var(--fs-index); font-weight: 500; letter-spacing: .06em; margin: 10px 0 8px; }
.soon p { color: var(--muted); font-size: var(--fs-sm); }
.soon .en { margin-top: 4px; }
.soon .btn { margin-top: 28px; }

/* PAGETOP */
.pagetop { padding: 70px 0 58px; text-align: center; }
.pagetop__btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 16px;
  margin: 0; padding: 0; border: none; color: var(--fg); background: none; cursor: pointer; font: inherit;
}
.pagetop__circle {
  display: flex; width: 62px; height: 62px; align-items: center; justify-content: center;
  border: 1px solid var(--line-dark); border-radius: 50%;
  transition: background .25s, border-color .25s, color .25s;
}
.pagetop__circle svg { display: block; width: 20px; height: 20px; }
.pagetop__btn:hover .pagetop__circle { border-color: var(--fg); color: var(--bg); background: var(--fg); }
.pagetop__label { font-size: 10.5px; font-weight: 600; line-height: 1.15; letter-spacing: .28em; }

/* フッター */
footer { padding-block: 56px 48px; border-top: 1px solid var(--line); }
.foot { display: grid; justify-items: center; gap: 36px; text-align: center; }
/* フッターのロゴはヘッダーより少し小さく（PC 32px / スマホ 24px） */
.foot__logo img { height: 32px; width: auto; display: block; }
.foot__links { display: grid; gap: 22px; justify-items: center; }
.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; }
.foot__nav a { font-size: var(--fs-xs); letter-spacing: .14em; color: var(--fg); text-decoration: none; transition: color .25s; }
.foot__nav a:hover { color: var(--muted); }
.foot__nav a.on { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.legal { justify-content: center; }
.copyright { font-size: var(--fs-xs); letter-spacing: .14em; color: var(--muted); }
.legal { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.legal a { font-size: var(--fs-xs); letter-spacing: .14em; color: var(--muted); text-decoration: none; transition: color .25s; }
.legal a:hover { color: var(--fg); }
.legal a.on { color: var(--fg); }

/* ページ見出し（下層ページ） */
.page-head { padding-block: clamp(4.5rem, 9vw, 7rem) clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
/* 各ページ上部のページ名：大きく太く */
.page-head h1 { font-size: clamp(2.75rem, 11vw, 7rem); font-weight: 700; letter-spacing: .04em; line-height: 1.05; }
.page-head p.ja { margin-top: 1.2rem; font-size: var(--fs-sm); color: var(--muted); letter-spacing: .14em; }
.page-head p.en { margin-top: 2px; font-size: var(--fs-xs); letter-spacing: .14em; }

/* トップページの目次 */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index-list a {
  display: grid; grid-template-columns: 12em minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 32px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.index-list b { grid-row: 1 / span 2; font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: .06em; }
.index-list .ja { grid-column: 2; grid-row: 1; }
.index-list .en { grid-column: 2; grid-row: 2; }
.index-list i { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-style: normal; color: var(--muted); transition: transform .25s var(--ease-out), color .25s; }
.index-list a:hover i { color: var(--fg); transform: translate(3px, -3px); }

/* 英語は全体を控えめな色に統一 */
main .en, .soon .en { color: var(--muted); }

/* ---------- 動き：帯が横切って見出しが現れる（Actually MARKET の bar reveal） ---------- */
.slide-bar { position: relative; display: inline-block; max-width: 100%; }
.slide-bar--line { display: block; width: fit-content; }
.slide-bar--gray { --text-color: var(--muted); }
.js .slide-bar { color: transparent; }
.js .slide-bar::before {
  content: ""; position: absolute; inset: 0; background: var(--bar-color) var(--bar-image) center / cover no-repeat;
  /* 帯は伸び縮みさせず、切り抜く範囲だけを動かす（中のシルバーの画像は止まったまま、見え隠れする） */
  clip-path: inset(0 0 0 100%); pointer-events: none;
}
.js .slide-in .slide-bar::before { animation: slide-in-out var(--bar-dur) var(--bar-ease) calc(var(--i, 0) * var(--stagger)) forwards; }
.js .slide-in .slide-bar { animation: fill-text var(--text-dur) linear calc(var(--bar-dur) + var(--i, 0) * var(--stagger)) forwards; }
@keyframes slide-in-out { 0% { clip-path: inset(0 0 0 100%); } 50% { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 100% 0 0); } }
@keyframes fill-text { to { color: var(--text-color); } }

/* 区切りの横線：今の線をなぞるように、ネオンの光が左から右へシュッと走り、そのままネオンの状態で光り続ける */
.js .neon-line { position: relative; }
.js .neon-line::after, .js footer.neon-line::before {
  /* 線は 0.5px（高解像度の画面では1pxより細い髪の毛のような線）、周りの光は線から約1080pxまで広く強く */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: .5px; pointer-events: none;
  background: #fff;
  box-shadow:
    0 0 6px #fff,
    0 0 24px #fff,
    0 0 60px rgba(255, 255, 255, .95),
    0 0 132px rgba(255, 255, 255, .85),
    0 0 252px rgba(255, 255, 255, .65),
    0 0 450px rgba(255, 255, 255, .45),
    0 0 720px rgba(255, 255, 255, .35),
    0 0 1080px rgba(255, 255, 255, .26);
  transform: scaleX(0); transform-origin: left center;
}
.js .hero.neon-line::after { bottom: 0; z-index: 2; }
/* 一番下（フッターの上）の線だけは、左右の両端から同時に真ん中へ向かって伸び、真ん中でぶつかる */
.js footer.neon-line::after, .js footer.neon-line::before { top: -1px; bottom: auto; }
.js footer.neon-line::after { right: 50%; }
.js footer.neon-line::before { left: 50%; transform-origin: right center; }
/* 両端から真ん中へは、ほかの線の 3 分の 1 の速さ（3 倍の 2.1 秒）でゆっくり進む */
.js footer.neon-line.is-lit::after, .js footer.neon-line.is-lit::before { animation: neon-draw 2.1s cubic-bezier(.7, 0, .2, 1) forwards; }
/* 爆発のあと線が波打っている間は、線の芯と近くの光をキャンバス側で描くので、ここでは遠くの淡い光だけ残す */
.js footer.neon-line.is-waving::after, .js footer.neon-line.is-waving::before {
  background: transparent;
  box-shadow:
    0 0 132px rgba(255, 255, 255, .85),
    0 0 252px rgba(255, 255, 255, .65),
    0 0 450px rgba(255, 255, 255, .45),
    0 0 720px rgba(255, 255, 255, .35),
    0 0 1080px rgba(255, 255, 255, .26);
}
/* 左から右へ走り終わったら、チカチカせずにそのまま光り続ける */
.js .neon-line.is-lit::after { animation: neon-draw .7s cubic-bezier(.7, 0, .2, 1) forwards; }
@keyframes neon-draw { to { transform: scaleX(1); } }

/* 文章：細い縦線が左から右へスッと動き、その動きに合わせて文字が現れる（線と表示範囲を同じ速さ・同じ曲線で動かす） */
.js main section p.ja, .js main section p.en { position: relative; clip-path: inset(0 100% 0 0); }
.js main section p.is-line-in { animation: line-clip .9s cubic-bezier(.65, 0, .35, 1) var(--line-delay, 0s) both; }
.js main section p.is-line-in::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--fg);
  transform: translateX(-100%); pointer-events: none;
  animation: line-move .9s cubic-bezier(.65, 0, .35, 1) var(--line-delay, 0s) both;
}
@keyframes line-clip { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes line-move { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* 画像：上から帯が下りて画像が現れる */
.js [data-img-reveal]:not(.is-img-done)::before {
  content: ""; position: absolute; inset: 0; z-index: 5; background: var(--bar-color) var(--bar-image) center / cover no-repeat;
  clip-path: inset(0 0 100% 0); pointer-events: none;
}
.js [data-img-reveal]:not(.is-img-done) img { opacity: 0; }
.js [data-img-reveal].is-img-in:not(.is-img-done)::before { animation: slide-down-out var(--bar-dur) var(--bar-ease) var(--img-delay, 0ms) both; }
.js [data-img-reveal].is-img-in:not(.is-img-done) img {
  animation: visual-show var(--bar-dur) linear var(--img-delay, 0ms) both,
             visual-settle 1.4s var(--ease-out) calc(var(--img-delay, 0ms) + .6s) both;
}
@keyframes slide-down-out { 0% { clip-path: inset(0 0 100% 0); } 50% { clip-path: inset(0 0 0 0); } to { clip-path: inset(100% 0 0 0); } }
@keyframes visual-show { 0%, 50% { opacity: 0; } 50.1%, to { opacity: 1; } }
@keyframes visual-settle { 0% { transform: scale(1.08); } to { transform: scale(1); } }

/* 英字ラベルのシャッフルが終わる少し前からネオンのように点滅（オープニングと同じ光り方・長さ） */
/* チカチカのあと、ネオンがゆっくり2回「フワン、フワン」と消えて点く（1回0.9秒）。最後に光がすっと引いて普通の文字に戻る */
.label-neon { animation: label-neon .75s linear, label-breathe .9s ease-in-out .75s 2, label-settle .6s ease-out 2.55s; }
@keyframes label-breathe {
  0%, 100% { opacity: 1;  text-shadow: 0 0 4px #fff, 0 0 18px rgba(255, 255, 255, .85), 0 0 36px rgba(255, 255, 255, .35); }
  50%      { opacity: .3; text-shadow: none; }
}
@keyframes label-settle {
  from { text-shadow: 0 0 4px #fff, 0 0 18px rgba(255, 255, 255, .85), 0 0 36px rgba(255, 255, 255, .35); }
  to   { text-shadow: none; }
}
@keyframes label-neon {
  0%   { opacity: 1;   text-shadow: 0 0 3px #fff, 0 0 14px rgba(255, 255, 255, .75); }
  7%   { opacity: .15; text-shadow: none; }
  11%  { opacity: 1;   text-shadow: 0 0 3px #fff, 0 0 14px rgba(255, 255, 255, .75); }
  18%  { opacity: .3;  text-shadow: none; }
  22%  { opacity: 1;   text-shadow: 0 0 4px #fff, 0 0 18px rgba(255, 255, 255, .85); }
  36%  { opacity: .1;  text-shadow: none; }
  43%  { opacity: 1;   text-shadow: 0 0 4px #fff, 0 0 22px rgba(255, 255, 255, .9); }
  58%  { opacity: .55; text-shadow: 0 0 2px #fff; }
  62%  { opacity: 1;   text-shadow: 0 0 4px #fff, 0 0 18px rgba(255, 255, 255, .8); }
  100% { opacity: 1;   text-shadow: none; }
}

/* ---------- オープニング（TOPのみ）：PB³ が PABLO BRAQUE に広がる ---------- */
.intro { display: none; }
html.pb-intro { overflow: hidden; }
html.pb-intro .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100;
  background: var(--bg); transition: opacity .45s ease;
}
html.pb-intro .logo img { visibility: hidden; }
html.pb-intro-reveal .intro { opacity: 0; }
html.pb-intro-reveal .logo img { visibility: visible; }
html.pb-page-open main { animation: page-open .9s var(--ease-out) both; }
@keyframes page-open { from { opacity: 0; transform: translateY(12px); } }
.intro__logo { position: relative; width: min(78vw, 760px); aspect-ratio: 2073 / 281; transform-origin: center; }
.intro__logo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* 文字の切り分け（logo-white.png 2073×281px 上の位置を % にしたもの） */
.intro__p     { clip-path: polygon(0 0, 7.622% 0, 7.622% 49.11%, 2.894% 49.11%, 2.894% 100%, 0 100%); --from: 38.591%; }
.intro__ablo  { clip-path: polygon(7.622% 0, 40.521% 0, 40.521% 100%, 2.894% 100%, 2.894% 49.11%, 7.622% 49.11%); --from: 38.591%; }
.intro__b     { clip-path: polygon(40.521% 0, 50.072% 0, 50.072% 100%, 40.521% 100%); --from: 4.872%; }
.intro__raque { clip-path: polygon(50.072% 0, 93.391% 0, 93.391% 100%, 50.072% 100%); --from: 4.872%; }
.intro__mark  { clip-path: polygon(93.391% 0, 100% 0, 100% 100%, 93.391% 100%); --from: -38.591%; }
.intro__logo img { transform: translateX(var(--from)); }
.intro__ablo  { clip-path: polygon(7.622% 0, 7.622% 0, 7.622% 100%, 7.622% 100%, 7.622% 49.11%, 7.622% 49.11%); }
.intro__raque { clip-path: polygon(50.072% 0, 50.072% 0, 50.072% 100%, 50.072% 100%); }
/* 広がりきる少し前（1.8秒。広がり終わりは2.1秒）から、ネオンのようにチカチカ点滅（pls81.co.jp のフッターのロゴのイメージ）。
   ヘッダーへ移動し始める 2.55 秒で点滅が終わるよう、長さは 0.75 秒 */
.intro.is-play .intro__logo { animation: intro-in .6s ease both, intro-neon .75s linear 1.8s; }
.intro.is-play .intro__logo img { animation: intro-spread 1.2s cubic-bezier(.77, 0, .18, 1) .9s both; }
.intro.is-play .intro__logo .intro__ablo { animation: intro-spread 1.2s cubic-bezier(.77, 0, .18, 1) .9s both, intro-ablo 1.2s cubic-bezier(.77, 0, .18, 1) .9s both; }
.intro.is-play .intro__logo .intro__raque { animation: intro-spread 1.2s cubic-bezier(.77, 0, .18, 1) .9s both, intro-raque 1.2s cubic-bezier(.77, 0, .18, 1) .9s both; }
@keyframes intro-in { from { opacity: 0; } }
@keyframes intro-neon {
  0%   { opacity: 1;   filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 14px rgba(255, 255, 255, .75)); }
  7%   { opacity: .15; filter: none; }
  11%  { opacity: 1;   filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 14px rgba(255, 255, 255, .75)); }
  18%  { opacity: .3;  filter: none; }
  22%  { opacity: 1;   filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 18px rgba(255, 255, 255, .85)); }
  36%  { opacity: .1;  filter: none; }
  43%  { opacity: 1;   filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 22px rgba(255, 255, 255, .9)); }
  58%  { opacity: .55; filter: drop-shadow(0 0 2px #fff); }
  62%  { opacity: 1;   filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 18px rgba(255, 255, 255, .8)); }
  100% { opacity: 1;   filter: drop-shadow(0 0 2px rgba(255, 255, 255, .6)); }
}
@keyframes intro-spread { from { transform: translateX(var(--from)); } to { transform: translateX(0); } }
@keyframes intro-ablo { to { clip-path: polygon(7.622% 0, 40.521% 0, 40.521% 100%, 2.894% 100%, 2.894% 49.11%, 7.622% 49.11%); } }
@keyframes intro-raque { to { clip-path: polygon(50.072% 0, 93.391% 0, 93.391% 100%, 50.072% 100%); } }

/* ---------- 画面幅ごとの調整 ---------- */
@media (max-width: 74rem) {
  .burger { display: inline-flex; }
  .nav, .tools { display: none; }
}
@media (max-width: 900px) {
  .sec { grid-template-columns: 1fr; gap: 1.5rem; }
  .sec > *, .sec > .eyebrow { grid-column: 1; }
  .sec h2.ja { font-size: clamp(1.25rem, 6.4vw, 2.5rem); }
  .statement h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .trio, .price, .cats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .project { grid-template-columns: 1fr; padding: 32px 24px; }
  .eyebrow b { font-size: min(1.9rem, 8.2vw); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .news li { grid-template-columns: 1fr; gap: 2px; }
  .news li .en { grid-column: 1; }
  .company th { width: 7.5em; }
  :root { --logo-h: 28px; }
  .member__logo img { max-height: 24px; }  /* 3つのロゴの高さをスマホでもそろえる */
  .foot__logo img { height: 24px; }
  .index-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .index-list b { grid-row: 1; }
  .index-list .ja { grid-column: 1; grid-row: 2; }
  .index-list .en { grid-column: 1; grid-row: 3; }
  .index-list i { grid-column: 2; grid-row: 1 / span 3; }
  .btn { padding-inline: 2rem calc(2rem - .2em); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .hero__scroll i::after { animation: none; }
  .js .slide-bar { color: var(--text-color); }
  .js .slide-bar::before, .js [data-img-reveal]::before { display: none; animation: none; }
  .js .slide-in .slide-bar { animation: none; }
  .js .statement.slide-in h1 { animation: none; }
  .js main section p.ja, .js main section p.en { clip-path: none; animation: none; }
  .js main section p.is-line-in::after { display: none; }
  .js .hero__board { display: none; }
  .js .hero .hero__photo img { opacity: 1 !important; animation: none !important; }
  .js .neon-line::after, .js footer.neon-line::before { transform: scaleX(1); animation: none !important; }
  .js [data-img-reveal] img { opacity: 1 !important; animation: none !important; }
  .js .pb-spread img { opacity: 1; clip-path: none; transform: none; animation: none !important; }
  .js .pb-spread img.pb-spread__after { display: none; }
}
