/* ==========================================================================
   PATHSTONE - base stylesheet

   トーン: 余白の大きいエディトリアル。
   明朝(Hina Mincho)で和文見出し / Poppins で欧文 / Noto Sans JP で本文。
   色やサイズを変えたいときは :root のトークンだけ触れば全体に反映されます。
   ========================================================================== */

:root {
  --ink:        #222222;
  --ink-mute:   #6b6b6b;
  --ink-faint:  #a8a8a8;
  --bg:         #ffffff;
  --bg-alt:     #fafafa;
  --line:       #e6e6e6;
  --accent:     #38b6ff; /* 公式ブランドカラー (public/logo.svg と同値) */
  --accent-ink: #0b6fa8; /* 文字・リンク用。白背景でコントラスト比 5.5:1 */

  --font-jp: "Noto Sans JP", -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-mincho: "Hina Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-en: "Poppins", "Lato", var(--font-jp);

  --wrap:        1120px;
  --wrap-narrow: 760px;
  --gutter:      clamp(20px, 5vw, 64px);
  --section-y:   clamp(88px, 12vw, 168px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }

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

/* --- skip link ----------------------------------------------------------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 4px;
  font-size: 13px; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus-visible { top: 12px; }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- header -------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  background: rgba(255,255,255,0);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.site-header[data-stuck="true"] {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; z-index: 60; }

/* 正規の和文ロゴタイプ（原本: 01ロゴ/4.png を切り出して背景を透過させたもの）。
   「一般社団法人」の行を含む 1 枚の画像なので、文字を足さないこと。 */
.brand__logo { width: clamp(104px, 11vw, 126px); height: auto; }

/* wordmark を外したときのテキスト表示 */
.brand__prefix {
  font-size: 9px; letter-spacing: .28em; color: var(--ink-mute); white-space: nowrap;
}
.brand__name { font-weight: 700; font-size: 20px; letter-spacing: .06em; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav a {
  font-family: var(--font-en); font-size: 12px; letter-spacing: .18em; font-weight: 500;
  text-decoration: none; color: var(--ink); position: relative; padding-block: 6px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  /* 3 本の線を中心に重ねて置き、開いたときは中心で交差させて × にする。
     （grid + margin で並べると回転の中心がずれて「>」に見えてしまう） */
  .nav-toggle {
    position: relative; display: block; width: 48px; height: 48px; z-index: 60;
    background: none; border: 0; cursor: pointer; padding: 0;
  }
  .nav-toggle span {
    position: absolute; left: 50%; top: 50%;
    width: 22px; height: 1.5px; background: var(--ink); margin: 0;
    transition: transform .35s var(--ease), opacity .2s linear;
  }
  .nav-toggle span:nth-child(1) { transform: translate(-50%, -50%) translateY(-7px); }
  .nav-toggle span:nth-child(2) { transform: translate(-50%, -50%); }
  .nav-toggle span:nth-child(3) { transform: translate(-50%, -50%) translateY(7px); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; background: rgba(255,255,255,.98);
    flex-direction: column; justify-content: center; gap: 34px;
    opacity: 0; visibility: hidden;
    /* 開くときは即座に visible、閉じるときはフェード後に hidden */
    transition: opacity .35s var(--ease), visibility 0s linear .35s;
  }
  .nav[data-open="true"] {
    opacity: 1; visibility: visible;
    transition: opacity .35s var(--ease), visibility 0s;
  }
  /* 指で押しやすいよう左右にも余白をとる（44px 以上の当たり判定を確保） */
  .nav a { font-size: 15px; letter-spacing: .22em; padding: 14px 36px; }
  .nav a::after { left: 36px; width: calc(100% - 72px); }
}

/* --- hero ---------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 120px var(--gutter) 80px;
  text-align: center;
  overflow-x: clip; /* 再生中の渦が横スクロールを生まないように */
}
.hero__inner { display: grid; justify-items: center; gap: clamp(24px, 4vw, 44px); }

@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* --- ヒーローのロゴ（動画 + SVG 代替） --------------------------------------
   動画 1920x1080 のうち、最終フレームのロゴが占める範囲は
     x 701.1 → 1396.6 (幅 695.6) / y 2.0 → 1080.5 (高さ 1078.4)
   .hero__logo をその「ロゴの箱」と定義し、動画を拡大・オフセットして重ねている。
   こうすると再生中の渦は箱の外へはみ出し、停止後のロゴだけが箱にぴたりと収まる。

   ここから下の数値は実測値。動画かロゴを差し替えたら
     python scripts/measure_logo_video.py
   を実行して出力どおりに書き換えること（手で目分量を合わせないこと）。 */
.hero__logo {
  --logo-w: clamp(130px, 19vw, 240px);
  position: relative;
  width: var(--logo-w);
  aspect-ratio: 695.6 / 1078.4;
  /* 石はロゴ枠の左から 37.08% にある（実測値。.hero__pulse と同じ）。
     ロゴ全体を 50% - 37.08% = 12.92% だけ右へずらし、石を SCROLL・社名と同じ中心線に乗せる。
     **待機中・再生中・完成後のすべてでずらしたままにする。**
     再生に合わせて 0 に戻すと、クリックした瞬間に石が 32px 左へ動き、完成したロゴもズレて見える。
     上下の揺れ（transform）と干渉しないよう、横移動は translate プロパティで行う。 */
  translate: 12.92% 0;
  transition: transform .5s var(--ease);
}
.hero[data-state="idle"] .hero__logo {
  animation: bob 2.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(-5px); }
  50%      { transform: translateY(5px); }
}

.hero__video {
  position: absolute;
  top: -0.188%;      /* -2.0px / 1078.4 */
  left: -100.789%;   /* -701.1px / 695.6 */
  width: 276.03%;    /* 1920px / 695.6 */
  height: auto; max-width: none;
}
.hero[data-state="done"] .hero__video { display: none; }

/* 動画が使えない環境用。動画とは排他表示なので位置ずれの心配はない */
/* 動画の最終フレームと SVG は同じ画角・同じ位置なので、
   フェードさせず一瞬で入れ替える（重ねてフェードすると線が一度薄く見える）。 */
.hero__mark { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.hero[data-state="done"] .hero__mark { display: block; }

.hero__mark--missing {
  position: static; display: block;
  font-family: var(--font-mincho); font-size: 22px; letter-spacing: .3em; margin: 0;
}

/* --- クリックを促すボタン --------------------------------------------------
   石はロゴの箱の中で 左37.08% / 上49.79%、直径は箱の幅の 21.6%（実測）。
   当たり判定は箱全体に広げ、目印だけを石の位置に置く。 */
.hero__trigger {
  position: absolute; inset: 0;
  background: none; border: 0; padding: 0; cursor: pointer;
  border-radius: 8px;
}
.hero__trigger[hidden] { display: none; }

.hero__pulse {
  position: absolute; left: 37.08%; top: 49.79%;
  width: 21.6%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid var(--accent);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: .7; }
  70%  { transform: translate(-50%, -50%) scale(2.1); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(2.1); opacity: 0; }
}

.hero__hint {
  position: absolute; left: 37.08%; top: 49.79%;
  transform: translate(-50%, calc(-50% + clamp(34px, 7vw, 62px)));
  font-family: var(--font-en); font-size: 10px; letter-spacing: .3em;
  color: var(--ink-faint); white-space: nowrap;
}
.hero__trigger:hover .hero__hint { color: var(--accent-ink); }

.hero__title {
  margin: 0;
  font-family: var(--font-mincho); font-weight: 400;
  font-size: clamp(34px, 8vw, 76px); letter-spacing: .16em; line-height: 1.15;
  padding-left: .16em; /* letter-spacing による右寄りを打ち消して光学的に中央へ */
  opacity: 0; /* ロゴアニメーションが終わってから現れる */
}
.hero[data-state="done"] .hero__title { animation: fade-up .9s var(--ease) .15s forwards; }

.hero__scroll {
  display: grid; justify-items: center; gap: 12px;
  font-family: var(--font-en); font-size: 10px; letter-spacing: .3em; color: var(--ink-mute);
  text-decoration: none; opacity: 0; animation: fade-up 1s var(--ease) 1.8s forwards;
}
.hero__scroll .dot {
  width: 46px; height: 46px; border-radius: 50%; background: var(--ink);
  display: grid; place-items: center; color: #fff;
  transition: transform .35s var(--ease);
}
.hero__scroll:hover .dot { transform: translateY(4px); }

@media (prefers-reduced-motion: reduce) {
  .hero[data-state="idle"] .hero__logo { animation: none; }
  .hero__logo { transition: none; }
  .hero__mark { animation: none; }
  .hero__title, .hero__scroll { animation: none; opacity: 1; }
}

/* --- section furniture --------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }

/* 中央揃えの英字見出し + 短い罫（元サイトのセクション見出しの型） */
.head { text-align: center; margin-bottom: clamp(48px, 7vw, 88px); }
.head__en {
  margin: 0; font-family: var(--font-en); font-weight: 600;
  font-size: clamp(22px, 3.4vw, 30px); letter-spacing: .16em; line-height: 1.2;
}
.head__rule {
  display: block; width: 26px; height: 1px; background: var(--ink);
  margin: 22px auto 0;
}
.head__ja {
  margin: 22px 0 0; font-size: clamp(15px, 2vw, 17px);
  font-weight: 500; letter-spacing: .08em; color: var(--ink-mute);
}

/* --- about --------------------------------------------------------------- */
/* 元サイトにならい中央揃え。site.json の改行位置を .ln で保ち、
   狭い画面では inline に戻して自然に折り返させる。 */
/* クラスで限定する。id="about" は下層ページにもあるので ID で指定しないこと。 */
.section--about .wrap { text-align: center; }
.ln { display: block; }
@media (max-width: 620px) {
  .ln { display: inline; }
}

.about__heading {
  margin: 0 0 clamp(40px, 6vw, 64px);
  font-size: clamp(19px, 3vw, 26px); font-weight: 700;
  line-height: 1.8; letter-spacing: .06em;
}
.about__body p { margin: 0 0 2.6em; line-height: 2.15; }
.about__body p:last-child { margin-bottom: 0; }
.about__closing {
  margin: clamp(44px, 6vw, 76px) 0 0;
  padding-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line);
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 500; line-height: 2.2; letter-spacing: .06em;
}

/* --- service ------------------------------------------------------------- */
/* 元サイトと同じく1枚ずつ縦に積む。写真が主役なので幅を取る。 */
.services {
  display: grid; gap: clamp(56px, 8vw, 96px);
  max-width: 760px; margin-inline: auto;
}
.service { display: block; text-decoration: none; color: inherit; }
.service__media {
  overflow: hidden; border-radius: 2px; background: var(--line);
  margin-bottom: clamp(22px, 3vw, 30px);
}
.service__media img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform .8s var(--ease);
}
.service--link:hover .service__media img { transform: scale(1.03); }

.service__no {
  margin: 0 0 12px; font-family: var(--font-en); font-size: 11px;
  letter-spacing: .24em; color: var(--accent-ink); font-weight: 600;
}
.service__title {
  margin: 0 0 14px; font-weight: 700;
  font-size: clamp(18px, 2.4vw, 22px); line-height: 1.7; letter-spacing: .05em;
}
.service__text { margin: 0; font-size: 15px; color: var(--ink-mute); line-height: 2.05; }

/* --- news ---------------------------------------------------------------- */
.news__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news__item { border-bottom: 1px solid var(--line); }
.news__row {
  display: grid; gap: 6px 32px; align-items: baseline;
  padding-block: clamp(22px, 3vw, 32px);
  text-decoration: none;
}
@media (min-width: 700px) { .news__row { grid-template-columns: 140px 1fr; } }
.news__date {
  font-family: var(--font-en); font-size: 13px; letter-spacing: .12em; color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.news__title { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.85; }
a.news__row .news__title { transition: color .3s var(--ease); }
a.news__row:hover .news__title { color: var(--accent-ink); }
.news__body { grid-column: 1 / -1; margin: 6px 0 0; font-size: 14px; color: var(--ink-mute); }
@media (min-width: 700px) { .news__body { grid-column: 2; } }
.news__empty { padding-block: 40px; color: var(--ink-faint); font-size: 15px; }

/* --- company ------------------------------------------------------------- */
.company__map {
  margin-bottom: clamp(40px, 6vw, 64px);
  border-radius: 2px; overflow: hidden; background: var(--line);
}
.company__map iframe {
  display: block; width: 100%; height: clamp(240px, 34vw, 340px); border: 0;
}

.company__table { width: 100%; border-collapse: collapse; text-align: left; }
.company__table th, .company__table td {
  padding: clamp(18px, 2.6vw, 26px) 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top; font-weight: 400; line-height: 1.95;
}
.company__table th {
  width: 34%; max-width: 200px; font-size: 13px; letter-spacing: .12em; color: var(--ink-mute);
  padding-right: 24px;
}
.company__table td { font-size: 15px; }
.company__table a { color: var(--accent-ink); text-underline-offset: 4px; }

/* --- contact form -------------------------------------------------------- */
/* 元サイトにならい、薄い帯の上に枠付きの入力欄を置く */
.section--contact { background: var(--bg-alt); }
.contact__lead { margin: 0 0 clamp(32px, 5vw, 48px); color: var(--ink-mute); font-size: 15px; }

.form { display: grid; gap: clamp(20px, 2.8vw, 28px); }
.field { display: grid; gap: 10px; }
.field__label { font-size: 13px; letter-spacing: .1em; font-weight: 500; }
.field__req { display: inline-block; margin-left: 6px; color: #c0392b; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; line-height: 1.8; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 3px;
  padding: 14px 16px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #c4c4c4; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 182, 255, .16);
}
.field textarea { resize: vertical; min-height: 160px; }
.field__error { font-size: 12px; color: #c0392b; min-height: 1em; }

.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.8; }
.consent input { margin-top: 6px; width: 16px; height: 16px; accent-color: var(--accent-ink); flex: none; }
.consent a { color: var(--accent-ink); text-underline-offset: 4px; }

.btn {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-en); font-size: 13px; letter-spacing: .2em; font-weight: 500;
  background: var(--ink); color: #fff; border: 0; cursor: pointer;
  padding: 18px 40px; border-radius: 999px;
  transition: background .3s var(--ease), transform .3s var(--ease), opacity .2s linear;
}
.btn:hover:not(:disabled) { background: var(--accent-ink); transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.form__status { font-size: 14px; line-height: 1.9; margin: 0; }
.form__status[data-tone="ok"]  { color: var(--accent-ink); }
.form__status[data-tone="err"] { color: #c0392b; }

/* --- footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px; }
.site-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.site-footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { font-size: 13px; color: var(--ink-mute); text-decoration: none; text-underline-offset: 4px; }
.site-footer a:hover { text-decoration: underline; color: var(--ink); }
.site-footer__copy {
  font-family: var(--font-en); font-size: 11px; letter-spacing: .18em; color: var(--ink-faint);
}

/* --- scroll reveal ------------------------------------------------------- */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   下層ページ（content/pages/*.json）
   ========================================================================== */

.page-hero { padding: clamp(140px, 17vw, 210px) 0 0; }
.page-hero__media {
  margin-top: clamp(56px, 8vw, 88px);
  overflow: hidden;
  height: clamp(220px, 42vw, 520px);
  background: var(--bg-alt);
}
.page-hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12); /* 視差で動かす余白 */
}
.page-hero__label {
  font-family: var(--font-en); font-size: 11px; font-weight: 600;
  letter-spacing: .34em; color: var(--ink-faint); margin: 0 0 22px;
}
/* 扉のタイトルは手書きのペン字体。扉絵（手描きペン画）と雰囲気をそろえる。
   サイト全体の「和文見出しはゴシック」の例外で、下層ページの扉タイトルだけに使う。 */
.page-hero__title {
  font-family: "Klee One", var(--font-jp); font-weight: 600;
  font-size: clamp(34px, 6.8vw, 64px); line-height: 1.4; letter-spacing: .04em;
  margin: 0;
}
/* タイトル下の、青いペンでさっと引いた線。画面に入ると描かれるように現れる */
.page-hero__scribble {
  display: block; width: clamp(150px, 26vw, 260px); height: auto;
  margin: 6px 0 clamp(22px, 3.4vw, 32px); overflow: visible;
}
.page-hero__scribble path {
  fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round;
  stroke-dasharray: 360; stroke-dashoffset: 360;
  transition: stroke-dashoffset 1.1s var(--ease) .35s;
}
.page-hero__scribble path + path { stroke-width: 2.2; opacity: .75; transition-delay: .7s; }
.page-hero__scribble.is-visible path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .page-hero__scribble path { stroke-dashoffset: 0; transition: none; }
}
/* 扉絵は紙に描いた絵なので、写真用の視差の余白（拡大）と相性がよい。枠に細い線を引いて「絵」として見せる */
.page-hero__media { border-block: 1px solid var(--line); }
.page-hero__lead {
  margin: 0 0 1.4em; font-size: clamp(15px, 1.9vw, 17px);
  line-height: 2.1; color: var(--ink-mute); max-width: 62ch;
}
.page-hero__lead:first-of-type { color: var(--ink); font-size: clamp(16px, 2.2vw, 19px); }

/* タイトルをロゴ画像で見せる場合（アンプレ‼ など） */
.page-hero__title--image img { width: clamp(220px, 46vw, 440px); height: auto; }

/* 文章ブロックに添える図版 */
.text-figure { margin: clamp(36px, 5vw, 56px) 0 0; }
.text-figure img { width: 100%; height: auto; display: block; }
.text-figure--photo img { border-radius: 3px; }
.text-figure--figure img { width: min(100%, 380px); margin-inline: auto; }
.text-figure figcaption {
  margin-top: 12px; text-align: center; font-size: 13px; color: var(--ink-faint);
}

.prose p { margin: 0 0 1.9em; }
.prose p:last-child { margin-bottom: 0; }

/* 枠線だけのボタン */
.btn--ghost {
  background: none; color: var(--ink); border: 1px solid var(--line);
  margin-top: clamp(28px, 4vw, 40px);
}
.btn--ghost:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.section--cta { padding-block: var(--section-y); background: var(--bg-alt); }
.cta { text-align: center; }
.cta__heading {
  margin: 0 0 22px; font-weight: 700;
  font-size: clamp(19px, 3vw, 26px); line-height: 1.8; letter-spacing: .06em;
}
.cta__text { margin: 0 0 1.4em; color: var(--ink-mute); font-size: 15px; line-height: 2.05; }
.cta__actions {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin-top: clamp(24px, 3.4vw, 34px);
}
.cta__actions .btn--ghost { margin-top: 0; }
.cta__actions .btn--ghost { background: #fff; }

/* 事業内容カードをリンクにしたとき */
.service__item--link { text-decoration: none; color: inherit; }
.service__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  font-family: var(--font-en); font-size: 11px; letter-spacing: .18em;
  color: var(--accent-ink);
}
.service__item--link:hover .service__more svg { transform: translateX(4px); }
.service__more svg { transition: transform .3s var(--ease); }

/* --- スライドショー --------------------------------------------------------
   横スクロール + scroll-snap。指でのスワイプは CSS だけで成立する。 */
.slideshow__lead {
  max-width: 720px; margin: 0 auto clamp(28px, 4vw, 40px);
  text-align: center; font-size: 15px; color: var(--ink-mute); line-height: 2.05;
}
.slideshow { max-width: 900px; margin-inline: auto; }

.slideshow__track {
  list-style: none; margin: 0; padding: 0;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  border-radius: 3px; background: var(--bg);
  overscroll-behavior-x: contain;
}
.slideshow__track::-webkit-scrollbar { display: none; }

.slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.slide img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: 3px; background: #fff;
}
.slide__caption {
  margin: 14px 0 0; font-size: 13px; color: var(--ink-mute); text-align: center;
}

.slideshow__bar {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: clamp(20px, 2.6vw, 26px);
}
.slideshow__btn {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; cursor: pointer;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line);
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.slideshow__btn:hover {
  background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-1px);
}
/* 再生 / 一時停止 の出し分け */
.slideshow__btn--play .icon-play { display: none; }
[data-paused="true"] .slideshow__btn--play .icon-pause { display: none; }
[data-paused="true"] .slideshow__btn--play .icon-play { display: block; }

.slideshow__counter {
  margin: 0 0 0 6px; font-family: var(--font-en); font-size: 12px;
  letter-spacing: .12em; color: var(--ink-faint); font-variant-numeric: tabular-nums;
}

.slideshow__dots {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
}
.slideshow__dots button {
  width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.slideshow__dots button::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--line); transition: background .3s var(--ease), transform .3s var(--ease);
}
.slideshow__dots button:hover::before { background: var(--ink-faint); }
.slideshow__dots button[aria-current="true"]::before {
  background: var(--accent-ink); transform: scale(1.35);
}

.slideshow__link { display: flex; width: fit-content; margin-inline: auto; }

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

/* --- ロール（横に流れ続ける写真） -------------------------------------------
   画面の端から端まで使う。左右の端はフェードさせて、写真が「湧いて消える」ように見せる。 */
.section--marquee { overflow: hidden; }
.marquee {
  --marquee-gap: clamp(12px, 1.6vw, 20px);
  --marquee-h: clamp(170px, 24vw, 280px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--marquee-gap); width: max-content;
  animation: marquee var(--marquee-duration, 50s) linear infinite;
}
/* 2 周分並べているので、ちょうど半分（＋ gap の半分）流したところが 1 周目の先頭と一致する */
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-50% - var(--marquee-gap) / 2), 0, 0); }
}
.marquee__item { flex: none; }
.marquee__item img {
  display: block; height: var(--marquee-h); width: auto; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: 3px; background: var(--line);
}
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
  .marquee__item img { transition: transform .6s var(--ease), filter .6s var(--ease); }
  .marquee__item:hover img { transform: scale(1.03); }
}
/* 動きを控える設定では流さず、指やスクロールで横に送れる一列にする */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; padding-inline: var(--gutter); }
  .marquee__item[aria-hidden="true"] { display: none; }
}

/* --- ロールオーバー（マウスを乗せたときの反応） ------------------------------
   画像はゆっくり寄る、面はわずかに浮く、線は色が差す。
   触れる端末では hover が誤爆するので、マウスがある環境だけに適用する。 */
@media (hover: hover) and (pointer: fine) {
  .service__media img,
  .related__media img,
  .gallery__item img {
    transition: transform .9s var(--ease), filter .5s var(--ease);
  }
  .service--link:hover .service__media img,
  .related__item:hover .related__media img {
    transform: scale(1.05);
  }
  .gallery__item:hover img { transform: scale(1.03); }

  .card, .panel { transition: border-color .35s var(--ease), transform .35s var(--ease); }
  .card:hover { border-color: var(--ink-faint); transform: translateY(-2px); }

  .service--link .service__title,
  .related__item .related__title { transition: color .3s var(--ease); }
  .service--link:hover .service__title,
  .related__item:hover .related__title { color: var(--accent-ink); }
}

/* 概要パネル（開催概要など） */
.details__lead {
  margin: 0 0 clamp(28px, 4vw, 40px); text-align: center;
  font-size: clamp(15px, 2vw, 17px); color: var(--ink-mute); letter-spacing: .06em;
}
.panel {
  margin: 0 auto; max-width: 680px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 3px;
  padding: clamp(8px, 1.4vw, 16px) clamp(24px, 4vw, 44px);
}
.panel__row {
  display: grid; gap: 4px 28px;
  padding: clamp(20px, 2.6vw, 26px) 0;
  border-bottom: 1px solid var(--line);
}
.panel__row:last-child { border-bottom: 0; }
@media (min-width: 620px) { .panel__row { grid-template-columns: 160px 1fr; } }
.panel__label {
  font-size: 12px; letter-spacing: .14em; color: var(--ink-faint);
  padding-top: .35em;
}
.panel__value { margin: 0; font-size: 15px; line-height: 2.0; }
.panel__value span { display: block; }

/* 数字の帯 */
.section--stats { padding-block: clamp(52px, 7vw, 84px); border-bottom: 1px solid var(--line); }
.stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(28px, 4vw, 44px);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-width: 880px; margin-inline: auto; text-align: center;
}
.stat__value {
  margin: 0 0 10px; font-family: var(--font-en); font-weight: 600;
  font-size: clamp(38px, 6.4vw, 62px); line-height: 1; letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.stat__unit {
  margin-left: 4px; font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 500; letter-spacing: .08em; color: var(--ink-mute);
}
.stat__label { margin: 0; font-size: 12px; letter-spacing: .14em; color: var(--ink-faint); }

/* 放送回の一覧 */
.episodes__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; max-width: 900px; margin-inline: auto;
}
.episodes__search {
  display: flex; align-items: center; gap: 10px; flex: 1 1 240px; max-width: 340px;
  border: 1px solid var(--line); border-radius: 999px; padding: 0 18px;
  background: var(--bg); color: var(--ink-faint);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.episodes__search:focus-within {
  border-color: var(--accent); color: var(--ink);
  box-shadow: 0 0 0 3px rgba(56, 182, 255, .16);
}
.episodes__search input {
  flex: 1; font: inherit; font-size: 14px; color: var(--ink);
  border: 0; background: none; padding: 13px 0; min-width: 0;
}
/* iOS Safari は 16px 未満の入力欄にフォーカスすると画面を勝手に拡大するため、
   狭い画面では 16px にする。 */
@media (max-width: 860px) {
  .episodes__search input { font-size: 16px; }
}
.episodes__search input:focus { outline: none; }
.episodes__search input::-webkit-search-cancel-button { cursor: pointer; }
.episodes__count {
  margin: 0; font-family: var(--font-en); font-size: 12px;
  letter-spacing: .14em; color: var(--ink-faint); font-variant-numeric: tabular-nums;
}
.episodes__note {
  max-width: 900px; margin: 0 auto 28px; font-size: 13px; color: var(--ink-faint);
}

.episodes {
  list-style: none; margin: 0 auto; padding: 0; max-width: 900px;
  border-top: 1px solid var(--line);
}
.episode {
  display: grid; gap: 4px 26px; align-items: start;
  grid-template-columns: 60px 1fr;
  padding: clamp(22px, 3vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
@media (min-width: 760px) { .episode { grid-template-columns: 68px 1fr 82px; } }
.episode:hover { background: rgba(56, 182, 255, .045); }
.episode__no {
  margin: 0; font-family: var(--font-en); font-weight: 600; font-size: 15px;
  letter-spacing: .04em; color: var(--accent-ink); padding-top: 2px;
}
.episode__main { min-width: 0; }
.episode__name {
  margin: 0 0 8px; font-size: 16px; font-weight: 700; letter-spacing: .04em; line-height: 1.6;
}
.episode__body { margin: 0; font-size: 14px; color: var(--ink-mute); line-height: 2.0; }
.episode__date {
  grid-column: 2; font-family: var(--font-en); font-size: 12px;
  color: var(--ink-faint); letter-spacing: .08em; font-variant-numeric: tabular-nums;
}
@media (min-width: 760px) {
  .episode__date { grid-column: 3; text-align: right; padding-top: 3px; }
}
.episodes__empty {
  max-width: 900px; margin: 0 auto; padding: 44px 0;
  text-align: center; color: var(--ink-faint); font-size: 15px;
}

/* 末尾の他ページ導線 */
.related__list {
  display: grid; gap: clamp(28px, 4vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 880px; margin-inline: auto;
}
.related__item { text-decoration: none; color: inherit; display: block; }
.related__media {
  overflow: hidden; border-radius: 2px; background: var(--line); margin-bottom: 20px;
}
.related__media img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  transition: transform .8s var(--ease);
}
.related__item:hover .related__media img { transform: scale(1.04); }
.related__label {
  margin: 0 0 10px; font-family: var(--font-en); font-size: 10px;
  font-weight: 600; letter-spacing: .24em; color: var(--ink-faint);
}
.related__title { margin: 0 0 10px; font-size: 19px; font-weight: 700; letter-spacing: .05em; }
.related__lead { margin: 0 0 16px; font-size: 14px; color: var(--ink-mute); line-height: 2.0; }
.related__more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-en); font-size: 11px; letter-spacing: .18em; color: var(--accent-ink);
}
.related__more svg { transition: transform .3s var(--ease); }
.related__item:hover .related__more svg { transform: translateX(4px); }

/* 下層ページのカード（写真なしの箇条） */
.cards {
  display: grid; gap: clamp(20px, 2.6vw, 28px);
  max-width: 860px; margin-inline: auto;
}
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 3px;
  padding: clamp(28px, 4vw, 44px);
}
.section--alt .card { background: var(--bg); }
.card__no {
  margin: 0 0 14px; font-family: var(--font-en); font-size: 11px;
  font-weight: 600; letter-spacing: .24em; color: var(--accent-ink);
}
.card__title {
  margin: 0 0 16px; font-weight: 700;
  font-size: clamp(17px, 2.2vw, 21px); line-height: 1.7; letter-spacing: .05em;
}
.card__text { margin: 0 0 1.4em; font-size: 15px; color: var(--ink-mute); line-height: 2.05; }
.card__text:last-child { margin-bottom: 0; }

/* 埋め込みプレーヤー */
.embeds { display: grid; gap: clamp(28px, 4vw, 44px); }
.embed__caption {
  margin: 0 0 12px; font-family: var(--font-en); font-size: 11px;
  letter-spacing: .2em; color: var(--ink-faint);
}
.embed iframe { width: 100%; border: 0; border-radius: 12px; display: block; }

/* 手順（縦につながる線で流れを見せる） */
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; }
.step {
  position: relative;
  display: grid; gap: 6px;
  padding: 0 0 clamp(36px, 5vw, 52px) clamp(52px, 7vw, 72px);
}
.step:last-child { padding-bottom: 0; }
/* 番号の丸 */
.step__no {
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line);
  font-family: var(--font-en); font-size: 12px; font-weight: 600;
  letter-spacing: .04em; color: var(--accent-ink);
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
/* 丸と丸をつなぐ線 */
.step::before {
  content: ""; position: absolute; left: 18.5px; top: 38px; bottom: 0;
  width: 1px; background: var(--line);
}
.step:last-child::before { display: none; }
.step:hover .step__no {
  background: var(--accent-ink); border-color: var(--accent-ink); color: #fff;
}
.step__title {
  margin: 6px 0 10px; font-weight: 700;
  font-size: clamp(17px, 2.2vw, 20px); line-height: 1.7; letter-spacing: .05em;
}
.step__text { margin: 0; font-size: 15px; color: var(--ink-mute); line-height: 2.05; }

/* よくある質問 */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  list-style: none; cursor: pointer; position: relative;
  padding: clamp(20px, 2.8vw, 28px) 44px clamp(20px, 2.8vw, 28px) 0;
  font-size: 16px; font-weight: 500; line-height: 1.8;
}
.faq__q::-webkit-details-marker { display: none; }
/* 閉じているとき ＋ / 開いているとき − */
.faq__q::before, .faq__q::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 13px; height: 1.5px; background: var(--ink-mute);
  transition: transform .3s var(--ease);
}
.faq__q::after { transform: rotate(90deg); }
.faq__item[open] .faq__q::after { transform: rotate(0deg); }
.faq__a { padding: 0 0 clamp(20px, 2.8vw, 28px); }
.faq__a p { margin: 0; font-size: 15px; color: var(--ink-mute); line-height: 2.05; }

/* 表（出演者一覧など） */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table__note { margin: -12px 0 28px; font-size: 13px; color: var(--ink-faint); }
.guests { width: 100%; min-width: 620px; border-collapse: collapse; text-align: left; }
.guests th, .guests td {
  padding: clamp(16px, 2.2vw, 22px) 20px clamp(16px, 2.2vw, 22px) 0;
  border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.95;
}
.guests thead th {
  font-size: 11px; letter-spacing: .18em; color: var(--ink-faint);
  font-weight: 500; white-space: nowrap; border-bottom-color: var(--ink);
}
.guests tbody th {
  font-family: var(--font-en); font-weight: 600; font-size: 13px;
  letter-spacing: .08em; color: var(--accent-ink); white-space: nowrap; width: 72px;
}
.guests td:nth-child(2) {
  font-family: var(--font-en); font-size: 13px; color: var(--ink-faint);
  white-space: nowrap; width: 90px; font-variant-numeric: tabular-nums;
}
.guests td:nth-child(3) { font-weight: 500; white-space: nowrap; width: 130px; }
.guests td:nth-child(4) { font-size: 14px; color: var(--ink-mute); min-width: 300px; }

/* 写真の並び */
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(20px, 3vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.gallery__item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  background: var(--bg-alt); border-radius: 4px;
}
.gallery__meta { display: grid; gap: 6px; margin-top: 14px; }
.gallery__tag {
  justify-self: start; font-size: 10px; letter-spacing: .16em;
  color: var(--accent-ink); border: 1px solid currentColor;
  padding: 3px 10px; border-radius: 999px;
}
.gallery__date {
  font-family: var(--font-en); font-size: 12px; letter-spacing: .1em;
  color: var(--ink-faint); font-variant-numeric: tabular-nums;
}
.gallery__caption { margin: 0; font-size: 14px; line-height: 1.85; }

/* ページ末尾の戻り導線 */
.page-nav { border-top: 1px solid var(--line); padding-block: 40px; }
.page-nav__back { font-size: 13px; color: var(--accent-ink); text-decoration: none; }
.page-nav__back:hover { text-decoration: underline; text-underline-offset: 4px; }

/* --- article / legal pages ------------------------------------------------ */
.article { padding: clamp(130px, 16vw, 190px) 0 var(--section-y); }
.article h1 {
  font-family: var(--font-mincho); font-weight: 400;
  font-size: clamp(26px, 4.4vw, 40px); line-height: 1.6; margin: 0 0 48px;
}
.article h2 {
  font-size: 17px; font-weight: 700; letter-spacing: .06em;
  margin: 56px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.article p, .article li { font-size: 15px; line-height: 2.1; color: #3a3a3a; }
.article ul { padding-left: 1.4em; }
.article__back { display: inline-block; margin-top: 64px; font-size: 13px; color: var(--accent-ink); }
