/*
Theme Name: uparia
Theme URI: https://uparia.com/
Author: uparia
Author URI: https://uparia.com/
Description: uparia(東京の一人スタジオ)の自社サイト用オリジナルテーマ。白ベース+アクセント1色(青)、スマホ最優先のレイアウト、出現演出1種類、ヒーローの実績カードストリーム(PCのみ)、View Transitions。実績は works、お客様の声は voices、FAQ は faq のカスタム投稿タイプで管理します。ページビルダーとプラグインには依存しません。
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uparia
Tags: one-column, custom-colors, custom-menu, portfolio, translation-ready
*/
/* =========================================================
   uparia — prototype stylesheet
   White base + single accent (blue). Mobile first.
   Motion: one reveal type, two easings.
   ========================================================= */

/* ---------- 0. tokens ---------- */
:root {
  color-scheme: light;

  --bg:        #f7f6f2;   /* 温かみのある白(ベース) */
  --bg-2:      #ffffff;   /* 純白(交互に使うセクション / カード) */
  --bg-3:      #f1efe9;   /* ほんの少し沈めたい面 */
  --fg:        #111111;   /* 見出し */
  --fg-2:      #2a2a2a;   /* 本文 */
  --fg-3:      #6b6b6b;   /* 補足 */
  --line:      #e6e3dc;
  --line-soft: #edebe4;
  --acc:       #1f3bff;   /* アクセントはこの1色だけ */
  --acc-hov:   #1530d6;
  --acc-soft:  rgba(31, 59, 255, 0.08);

  --shadow:    0 1px 2px rgba(17, 17, 17, 0.04), 0 10px 28px rgba(17, 17, 17, 0.06);
  --shadow-lg: 0 2px 6px rgba(17, 17, 17, 0.05), 0 24px 60px rgba(17, 17, 17, 0.10);

  --f-en: "Inter Tight", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-jp: "Noto Sans JP", "Inter Tight", system-ui, sans-serif;
  --f-sf: "Noto Serif JP", "Times New Roman", serif;

  /* easings — only two in the whole site */
  --e1: cubic-bezier(0.16, 1, 0.30, 1);   /* expo.out  — 出現 */
  --e2: cubic-bezier(0.65, 0, 0.35, 1);   /* inOut     — 開閉 */

  --pad: clamp(20px, 5vw, 76px);
  --maxw: 1480px;
  --nav-h: 60px;
}
@media (min-width: 900px) {
  :root { --nav-h: 72px; }
}

/* ダークモードでも白のまま。自動でダークに切り替えない。 */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
}

/* ---------- 1. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-2);
  font-family: var(--f-en);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}
@media (min-width: 900px) { body { font-size: 17px; } }

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
h1, h2, h3, h4 { color: var(--fg); }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--acc); color: #ffffff; }

/* ---------- 2. lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- 3. view transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.42s; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
::view-transition-group(work-hero) { animation-duration: 0.62s; animation-timing-function: cubic-bezier(0.16, 1, 0.30, 1); }

/* ---------- 4. layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 11vw, 152px); position: relative; }
.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;
}

/* 白ベース + 純白を交互に。境界線ではなく面で区切る。 */
#main > section.section:nth-of-type(even) { background: var(--bg-2); }
/* 純白の面に置くカードは、逆に温かみのある白にして境目を作る。 */
#main > section.section:nth-of-type(even) :is(.num, .step, .voice, .ai-note, .price__i, .scope__i, .chip, .tags li, .copy, .hero__status, .btn:not(.btn--acc)) {
  background: var(--bg);
}

/* ---------- 5. reveal (the one and only appear animation) ---------- */
.rv { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
html.js .rv__i { transform: translateY(101%); will-change: transform; }
html.js .rv--fade .rv__i { opacity: 0; }

/* ---------- 6. header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(247, 246, 242, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.5s var(--e2);
}
.hdr.is-hidden { transform: translateY(-102%); }
.hdr__in {
  width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad);
  display: flex; align-items: center; gap: 14px;
}
.brand {
  font-size: 19px; font-weight: 700; letter-spacing: -0.03em;
  line-height: 1; margin-right: auto; color: var(--fg);
}
.brand span { color: var(--acc); }

/* スマホ: ロゴ + Contact ボタンだけ。Work / About は本文とフッターの導線に任せる。 */
.nav { display: none; }
.hdr .copy { display: none; }
.hdr__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--acc); color: #ffffff; font-weight: 700;
  border-radius: 999px; padding: 0 18px; min-height: 44px;
  font-size: 15px; letter-spacing: 0.02em; white-space: nowrap;
  transition: background-color 0.3s var(--e2);
}
.hdr__cta:hover { background: var(--acc-hov); color: #ffffff; }

@media (min-width: 900px) {
  .hdr__in { gap: 22px; }
  .nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
  .hdr .copy { display: inline-flex; }
  .hdr__cta { display: none; }
}

.nav a {
  font-size: 15px; letter-spacing: 0.02em; color: var(--fg-2);
  transition: color 0.3s var(--e2); position: relative; padding-block: 6px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--acc); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--e2);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--acc); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* copy button */
.copy {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; min-height: 44px; font-size: 15px; letter-spacing: 0.01em;
  color: var(--fg-2); background: var(--bg-2);
  transition: border-color 0.35s var(--e2), color 0.35s var(--e2), background-color 0.35s var(--e2);
  white-space: nowrap;
}
.copy:hover { border-color: var(--acc); color: var(--acc); }
.copy .copy__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); flex: none; }
.copy.is-done { border-color: var(--acc); color: var(--acc); background: var(--acc-soft); }
.hdr .copy__label--sm { display: none; }

/* ---------- 7. loader ---------- */
html.no-loader #loader { display: none !important; }
#loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg-2); color: var(--fg);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--pad);
  transition: opacity 0.45s var(--e2), transform 0.6s var(--e1);
}
#loader.is-out { opacity: 0; transform: translateY(-2%); pointer-events: none; }
.loader__word {
  font-size: clamp(46px, 11vw, 128px); font-weight: 700;
  letter-spacing: -0.045em; line-height: 0.9; color: var(--fg);
}
.loader__num {
  font-size: clamp(30px, 6vw, 66px); font-weight: 500;
  letter-spacing: -0.03em; line-height: 0.9; color: var(--acc);
  font-variant-numeric: tabular-nums;
}
.loader__bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 0%;
  background: var(--acc);
}

/* ---------- 8. hero ---------- */
/* --- mobile: 屋号 → 肩書き → 一文 → 空き状況 → CTA を素直に縦積み --- */
.hero { position: relative; height: auto; }
.hero__sticky {
  position: static; height: auto; overflow: visible; display: block;
  padding-block: calc(var(--nav-h) + 34px) clamp(40px, 9vw, 64px);
}
.hero__grad { display: none; }
.hero__scroll { display: none; }
.stream { display: none; }
.hero__in { position: relative; z-index: 3; width: 100%; }

.hero__type {
  font-size: clamp(56px, 17vw, 300px);
  font-weight: 700; letter-spacing: -0.05em; line-height: 0.86;
  color: var(--fg);
  margin-bottom: clamp(14px, 3vw, 34px);
}
.hero__role {
  font-size: clamp(14px, 1.5vw, 20px); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-3);
}
.hero__lede {
  font-family: var(--f-jp);
  font-size: clamp(16px, 1.35vw, 19px); line-height: 1.95;
  max-width: 34em; margin-top: 16px; color: var(--fg-2);
}
.hero__status {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--f-jp); font-size: 16px; color: var(--fg-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 20px;
  background: var(--bg-2); box-shadow: var(--shadow);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--acc); flex: none;
  box-shadow: 0 0 0 0 rgba(31, 59, 255, 0.45);
  animation: pulse 2.4s var(--e2) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31, 59, 255, 0.42); }
  70%  { box-shadow: 0 0 0 12px rgba(31, 59, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 59, 255, 0); }
}
.hero__cta { margin-top: clamp(22px, 5vw, 34px); display: flex; flex-wrap: wrap; gap: 12px; }

/* --- mobile: 実績カードの横スクロール帯 --- */
.hrail {
  display: flex; gap: 12px;
  margin-top: clamp(30px, 8vw, 48px);
  padding-inline: var(--pad);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--pad);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hrail::-webkit-scrollbar { display: none; }
.hrail__card {
  position: relative; flex: 0 0 72vw; width: 72vw; max-width: 340px;
  aspect-ratio: 16 / 11; scroll-snap-align: start;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  background-image: linear-gradient(133deg, var(--c1), var(--c2));
  box-shadow: var(--shadow);
}
.hrail__card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 120% at 18% 8%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 62%);
}
.hrail__label {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg);
}
.hrail__bar { position: absolute; left: 14px; top: 14px; z-index: 2; display: flex; gap: 5px; }
.hrail__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(17, 17, 17, 0.22); }

/* --- desktop: 2カラム。文章は左、3Dストリームは右カラムの中だけ --- */
@media (min-width: 900px) {
  .hero { height: 210vh; }
  .hero__sticky {
    position: sticky; top: 0; height: 100vh; height: 100svh;
    overflow: hidden; display: flex; align-items: center; padding-block: 0;
  }
  .hrail { display: none; }
  .hero__grid {
    display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: clamp(30px, 4vw, 72px); align-items: center;
  }
  .hero__col { min-width: 0; }
  .hero__stage {
    position: relative; min-width: 0;
    height: min(70vh, 620px);
    border-radius: 22px; overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-2);
    box-shadow: var(--shadow-lg);
  }
  .stream {
    display: block; position: absolute; inset: 0;
    perspective: 1150px; perspective-origin: 50% 48%;
    pointer-events: none;
  }
  .hero__scroll {
    display: flex; position: absolute; left: var(--pad); bottom: clamp(20px, 4vh, 40px); z-index: 4;
    font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3);
    align-items: center; gap: 10px;
  }
  .hero__scroll i { display: block; width: 34px; height: 1px; background: var(--fg-3); font-style: normal; }
}

/* --- 3D card stream (the one loud moment, desktop only) --- */
.stream__in { position: absolute; inset: 0; transform-style: preserve-3d; }
.scard {
  position: absolute; left: var(--l); top: var(--t);
  width: clamp(168px, 17vw, 300px); max-width: 78%; aspect-ratio: 16 / 11;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  background-image: linear-gradient(133deg, var(--c1), var(--c2));
  box-shadow: var(--shadow-lg);
  opacity: 0;
}
html:not(.js):not(.rm) .scard { opacity: 0.65; }
.scard::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 120% at 18% 8%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 62%);
}
.scard__label {
  position: absolute; left: 15px; bottom: 13px; z-index: 2;
  font-size: clamp(11px, 1vw, 14px); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg);
}
.scard__bar { position: absolute; left: 15px; top: 15px; z-index: 2; display: flex; gap: 5px; }
.scard__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(17, 17, 17, 0.22); }

/* ---------- 9. section head ---------- */
.sec-head { margin-bottom: clamp(36px, 5vw, 84px); }
.sec-head__row { display: flex; align-items: baseline; gap: clamp(10px, 1.6vw, 22px); flex-wrap: wrap; }
.sec-num {
  font-size: clamp(13px, 1.1vw, 15px); font-weight: 700; letter-spacing: 0.1em;
  color: var(--acc); font-variant-numeric: tabular-nums;
}
.sec-title {
  font-size: clamp(34px, 6.4vw, 96px); font-weight: 700;
  letter-spacing: -0.045em; line-height: 0.96; color: var(--fg);
}
.sec-desc {
  font-family: var(--f-jp); font-size: 16px; line-height: 1.9;
  color: var(--fg-2); max-width: 46em; margin-top: 14px;
}

/* ---------- 10. numbers ---------- */
.nums { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .nums { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.num {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); min-height: 44px;
  padding: clamp(22px, 3.4vw, 40px) clamp(18px, 2.4vw, 32px);
}
.num__v {
  font-size: clamp(48px, 9vw, 116px); font-weight: 700; color: var(--fg);
  letter-spacing: -0.055em; line-height: 0.9; font-variant-numeric: tabular-nums;
}
.num__v sup { font-size: 0.3em; vertical-align: super; letter-spacing: 0; color: var(--acc); margin-left: 4px; font-weight: 700; }
.num__k { margin-top: 14px; font-family: var(--f-jp); font-size: 16px; font-weight: 700; color: var(--fg); }
.num__n { margin-top: 6px; font-family: var(--f-jp); font-size: 16px; color: var(--fg-3); line-height: 1.8; }
.nums-foot {
  margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
  font-family: var(--f-jp); font-size: 16px; color: var(--fg-2);
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
  font-size: 15px; color: var(--fg-2); background: var(--bg-2);
}
.chip b { color: var(--acc); font-weight: 700; flex: none; white-space: nowrap; }
.note { font-family: var(--f-jp); font-size: 15px; color: var(--fg-3); line-height: 1.85; }

/* ---------- 11. works ---------- */
.works { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 9vw, 64px); }
.work { min-width: 0; }
@media (min-width: 900px) {
  .works { grid-template-columns: repeat(12, 1fr); gap: clamp(56px, 7vw, 120px) 24px; }
  .work { grid-column: 1 / -1; }
  .work:nth-child(1) { grid-column: 1 / 8; }
  .work:nth-child(2) { grid-column: 9 / 13; margin-top: 11vw; }
  .work:nth-child(3) { grid-column: 2 / 7;  margin-top: 2vw; }
  .work:nth-child(4) { grid-column: 8 / 13; }
  .work:nth-child(5) { grid-column: 1 / 6;  margin-top: 5vw; }
  .work:nth-child(6) { grid-column: 7 / 13; margin-top: 1vw; }
  .work:nth-child(2) .work__visual { aspect-ratio: 4 / 5; }
  .work:nth-child(4) .work__visual { aspect-ratio: 1 / 1; }
  .work:nth-child(5) .work__visual { aspect-ratio: 5 / 4; }
}
.work__frame { display: block; border-radius: 18px; }
.work__visual {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  background-image: linear-gradient(133deg, var(--c1), var(--c2));
  box-shadow: var(--shadow);
  transform-origin: center;
  transition: transform 0.8s var(--e1), box-shadow 0.8s var(--e1);
}
@media (min-width: 900px) { .work__visual { aspect-ratio: 16 / 10; } }
.work__visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(85% 110% at 20% 6%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 62%);
}
.grid-lines {
  position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(17, 17, 17, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.09) 1px, transparent 1px);
  background-size: 14% 22%;
}
.work__type {
  position: absolute; z-index: 2; left: clamp(16px, 2vw, 28px); bottom: clamp(14px, 1.8vw, 24px);
  font-size: clamp(15px, 2.1vw, 30px); font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--fg);
}
.work__cs {
  position: absolute; z-index: 2; right: clamp(14px, 1.6vw, 22px); top: clamp(14px, 1.6vw, 22px);
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--acc); color: #ffffff; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}
a.work__frame:hover .work__visual { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.work__meta { margin-top: clamp(16px, 2vw, 26px); }
.work__title {
  font-family: var(--f-jp); font-weight: 700; color: var(--fg);
  font-size: clamp(19px, 1.9vw, 26px); line-height: 1.55; letter-spacing: 0.005em;
}
.work__line {
  margin-top: 8px; font-family: var(--f-jp); font-size: 16px; color: var(--fg-2);
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline;
}
.work__line em { font-style: normal; color: var(--fg-3); }
.work__line time { font-variant-numeric: tabular-nums; color: var(--fg-3); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tags li {
  font-size: 13px; letter-spacing: 0.03em; color: var(--fg-3);
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; background: var(--bg-2);
}

/* ---------- 12. extras ---------- */
.extras { border-top: 1px solid var(--line); }
.extra {
  display: grid; grid-template-columns: 30px 1fr; gap: 2px 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--e2);
}
@media (min-width: 760px) {
  .extra { grid-template-columns: 44px minmax(0, 1.5fr) minmax(0, 1fr) 70px; align-items: baseline; padding: clamp(16px, 1.8vw, 24px) 0; }
}
.extra:hover { background-color: var(--acc-soft); }
.extra__i { font-size: 14px; color: var(--acc); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; font-weight: 700; }
.extra__n { font-family: var(--f-jp); font-size: 16px; font-weight: 500; line-height: 1.65; color: var(--fg); }
.extra__r { font-family: var(--f-jp); font-size: 15px; color: var(--fg-2); }
.extra__y { font-size: 15px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
@media (max-width: 759px) {
  .extra__r, .extra__y { grid-column: 2; }
}

/* ---------- 13. process ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 620px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 36px) clamp(18px, 2.2vw, 28px);
}
.step__i { font-size: 14px; letter-spacing: 0.1em; color: var(--acc); font-variant-numeric: tabular-nums; font-weight: 700; }
.step__t { margin-top: 12px; font-family: var(--f-jp); font-size: clamp(19px, 1.7vw, 23px); font-weight: 700; line-height: 1.55; color: var(--fg); }
.step__d { margin-top: 12px; font-family: var(--f-jp); font-size: 16px; color: var(--fg-2); line-height: 1.9; }
.ai-note {
  margin-top: clamp(26px, 4vw, 52px); padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2);
  box-shadow: var(--shadow);
}
.ai-note h3 { font-family: var(--f-jp); font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--fg); }
.ai-note p { font-family: var(--f-jp); font-size: 16px; color: var(--fg-2); line-height: 1.95; max-width: 62em; }
.ai-note p + p { margin-top: 12px; }

/* ---------- 14. voice ---------- */
.voices { display: grid; gap: clamp(16px, 3vw, 30px); }
@media (min-width: 900px) { .voices { grid-template-columns: 1fr 1fr; align-items: start; } }
.voice {
  border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(22px, 3vw, 40px); background: var(--bg-2);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .voice:nth-child(1) { margin-top: 0; }
  .voice:nth-child(2) { margin-top: 40px; }
  .voice:nth-child(4) { margin-top: 40px; }
}
.voice blockquote {
  font-family: var(--f-sf); font-weight: 400;
  font-size: clamp(16px, 1.45vw, 20px); line-height: 2.05; letter-spacing: 0.01em;
  color: var(--fg-2);
}
.voice__q { display: block; color: var(--acc); font-size: 2.4em; line-height: 0.2; height: 0.5em; font-family: var(--f-sf); }
.voice figcaption {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--f-jp); font-size: 15px; color: var(--fg-3);
  display: flex; flex-wrap: wrap; gap: 4px 12px;
}
.voice figcaption b { color: var(--fg-2); font-weight: 700; }

/* ---------- 15. faq ---------- */
.faq { border-top: 1px solid var(--line); max-width: 1000px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__btn {
  width: 100%; display: flex; align-items: flex-start; gap: 14px; text-align: left;
  padding: 18px 4px; min-height: 60px; color: var(--fg);
  font-family: var(--f-jp); font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; line-height: 1.6;
  transition: color 0.35s var(--e2);
  -webkit-tap-highlight-color: var(--acc-soft);
}
@media (min-width: 900px) { .faq__btn { padding: clamp(20px, 2.2vw, 30px) 4px; gap: 18px; } }
.faq__btn:hover { color: var(--acc); }
.faq__q { font-size: 14px; color: var(--acc); letter-spacing: 0.08em; flex: none; margin-top: 0.45em; font-family: var(--f-en); font-weight: 700; }
.faq__tx { flex: 1 1 auto; }
.faq__ic { flex: none; width: 16px; height: 16px; position: relative; margin-top: 0.55em; }
.faq__ic::before, .faq__ic::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 1.5px;
  background: currentColor; transition: transform 0.45s var(--e2);
}
.faq__ic::after { transform: rotate(90deg); }
.faq__item.is-open .faq__ic::after { transform: rotate(0deg); }
.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--e2); }
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; }
.faq__panel p {
  font-family: var(--f-jp); font-size: 16px; line-height: 2; color: var(--fg-2);
  max-width: 62em; padding: 0 0 clamp(20px, 2.4vw, 32px) clamp(0px, 3vw, 46px);
}
.faq__panel p + p { padding-top: 0; margin-top: -8px; }
html:not(.js):not(.rm) .faq__panel { grid-template-rows: 1fr; }

/* ---------- 16. contact ---------- */
.contact-mail {
  display: inline-block; color: var(--acc);
  font-size: clamp(26px, 6.2vw, 88px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.1; word-break: break-word;
  background-image: linear-gradient(to right, var(--acc), var(--acc));
  background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.6s var(--e1), color 0.4s var(--e2);
}
.contact-mail:hover { color: var(--acc-hov); background-size: 100% 2px; }
.contact-row {
  margin-top: clamp(22px, 3.4vw, 44px);
  display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center;
}
.clock {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-size: 16px; color: var(--fg-3); font-family: var(--f-jp);
}
.clock b { font-family: var(--f-en); font-weight: 500; font-size: 20px; color: var(--fg-2); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.contact-cols { display: grid; gap: clamp(24px, 3vw, 48px); margin-top: clamp(40px, 6vw, 80px); }
@media (min-width: 860px) { .contact-cols { grid-template-columns: repeat(3, 1fr); } }
.ccol h3 { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; font-weight: 700; }
.ccol p, .ccol li { font-family: var(--f-jp); font-size: 16px; color: var(--fg-2); line-height: 1.95; }
.ccol li + li { margin-top: 2px; }

/* ---------- 17. buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2);
  padding: 13px 24px; min-height: 48px; font-family: var(--f-jp); font-size: 16px;
  color: var(--fg-2);
  transition: border-color 0.4s var(--e2), background-color 0.4s var(--e2), color 0.4s var(--e2);
}
.btn:hover { border-color: var(--acc); color: var(--acc); background: var(--acc-soft); }
.btn--acc { background: var(--acc); color: #ffffff; border-color: var(--acc); font-weight: 700; }
.btn--acc:hover { background: var(--acc-hov); border-color: var(--acc-hov); color: #ffffff; }
.btn i { font-style: normal; }

/* ---------- 18. footer ---------- */
.ftr { border-top: 1px solid var(--line); background: var(--bg); padding-block: clamp(40px, 6vw, 76px) 30px; }
.ftr__top { display: flex; flex-direction: column; gap: 26px; }
@media (min-width: 900px) { .ftr__top { flex-direction: row; flex-wrap: wrap; gap: 30px 48px; justify-content: space-between; } }
.ftr__mark { font-size: clamp(40px, 9vw, 120px); font-weight: 700; letter-spacing: -0.055em; line-height: 0.85; color: var(--fg); }
.ftr__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
@media (min-width: 760px) { .ftr__nav { display: flex; flex-wrap: wrap; gap: 10px 40px; } }
.ftr__nav ul { font-size: 16px; }
.ftr__nav h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 10px; font-weight: 700; }
.ftr__nav a { color: var(--fg-2); transition: color 0.3s var(--e2); display: inline-block; padding-block: 4px; }
.ftr__nav a:hover { color: var(--acc); }
.ftr__bot {
  margin-top: clamp(30px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: space-between;
  font-size: 15px; color: var(--fg-3); font-family: var(--f-jp);
}
.ftr__bot a { color: var(--fg-2); }
.ftr__bot a:hover { color: var(--acc); }

/* ---------- 19. work detail page ---------- */
.wpage { padding-top: calc(var(--nav-h) + clamp(28px, 6vw, 80px)); }
.crumb { font-size: 15px; color: var(--fg-3); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.crumb a { color: var(--acc); }
.crumb a:hover { color: var(--acc-hov); }
.wtitle {
  font-family: var(--f-jp); font-weight: 700; color: var(--fg);
  font-size: clamp(26px, 4.6vw, 62px); line-height: 1.4; letter-spacing: -0.01em;
  margin-top: 16px; max-width: 20em;
}
.wsub {
  margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-family: var(--f-jp); font-size: 16px; color: var(--fg-3);
}
.whero {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  margin-top: clamp(26px, 4vw, 56px);
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  background-image: linear-gradient(133deg, var(--c1), var(--c2));
  box-shadow: var(--shadow);
  view-transition-name: work-hero;
}
@media (min-width: 760px) { .whero { aspect-ratio: 16 / 8; } }
.whero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(85% 110% at 20% 6%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 62%);
}
.whero__type {
  position: absolute; z-index: 2; left: clamp(18px, 2.4vw, 40px); bottom: clamp(16px, 2.2vw, 34px);
  font-size: clamp(20px, 3.6vw, 52px); font-weight: 700; letter-spacing: 0.01em;
  text-transform: uppercase; color: var(--fg);
}
.wbody { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 940px) { .wbody { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); } }
.wblock + .wblock { margin-top: clamp(34px, 5vw, 66px); }
.wblock h2 {
  font-size: clamp(13px, 1.1vw, 15px); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--acc); margin-bottom: 14px; font-weight: 700;
}
.wblock h3 {
  font-family: var(--f-jp); font-size: clamp(20px, 2.3vw, 32px); font-weight: 700; color: var(--fg);
  line-height: 1.55; margin-bottom: 18px;
}
.wblock p { font-family: var(--f-jp); font-size: 16px; line-height: 2.05; color: var(--fg-2); max-width: 44em; }
@media (min-width: 900px) { .wblock p { font-size: 17px; } }
.wblock p + p { margin-top: 16px; }
.wtable { width: 100%; border-top: 1px solid var(--line); }
.wtable > div {
  display: grid; grid-template-columns: 1fr; gap: 4px 18px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 620px) { .wtable > div { grid-template-columns: 110px 1fr; gap: 6px 18px; padding: 15px 0; } }
.wtable dt { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); font-weight: 700; }
.wtable dd { font-family: var(--f-jp); font-size: 16px; color: var(--fg-2); line-height: 1.8; }
.wshots { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.wshot {
  position: relative; flex: 1 1 130px; max-width: 190px; aspect-ratio: 9 / 19;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background-image: linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow: var(--shadow);
}
.wshot::after {
  content: attr(data-label); position: absolute; inset: auto 0 0 0; padding: 12px 14px;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg);
  background: linear-gradient(to top, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
}
.ph-note { font-family: var(--f-jp); font-size: 15px; color: var(--fg-3); margin-top: 14px; }
.wnext {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px 30px; padding: clamp(28px, 4vw, 54px) 0;
  border-top: 1px solid var(--line);
}
.wnext__t { font-size: clamp(22px, 4vw, 52px); font-weight: 700; letter-spacing: -0.04em; color: var(--fg); }

/* ---------- 20. about page bits ---------- */
.apage { padding-top: calc(var(--nav-h) + clamp(28px, 6vw, 80px)); }
.lead {
  font-family: var(--f-jp); font-size: clamp(16px, 1.6vw, 21px); line-height: 1.95;
  color: var(--fg-2); max-width: 40em; margin-top: 20px;
}
.price { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { .price { grid-template-columns: 1fr 1fr; gap: 16px; } }
.price__i {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: clamp(22px, 3vw, 40px);
}
.price__n { font-family: var(--f-jp); font-size: 17px; font-weight: 700; color: var(--fg); }
.price__v { margin-top: 12px; font-size: clamp(32px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--fg); }
.price__v small { font-size: 0.36em; font-weight: 500; letter-spacing: 0; margin-left: 6px; color: var(--fg-3); font-family: var(--f-jp); }
.scope { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .scope { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .scope { grid-template-columns: repeat(3, 1fr); } }
.scope__i {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: clamp(20px, 2.6vw, 32px);
}
.scope__i h3 { font-family: var(--f-jp); font-size: 18px; font-weight: 700; color: var(--fg); }
.scope__i p { font-family: var(--f-jp); font-size: 16px; color: var(--fg-2); margin-top: 10px; line-height: 1.9; }
.info dl { border-top: 1px solid var(--line); }
.info dl > div { display: grid; grid-template-columns: 1fr; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 620px) { .info dl > div { grid-template-columns: 120px 1fr; gap: 6px 20px; padding: 16px 0; } }
.info dt { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); font-weight: 700; }
.info dd { font-family: var(--f-jp); font-size: 16px; color: var(--fg-2); }

/* ---------- 21. reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .stream { display: none; }
  .hero { height: auto; }
  .hero__sticky { position: static; height: auto; min-height: 0; padding-block: calc(var(--nav-h) + 40px) 60px; }
  .hero__grid { display: block; }
  .hero__stage { display: none; }
  .hrail { display: flex; }
  .rv__i { transform: none !important; opacity: 1 !important; }
  #loader { display: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
html.rm .stream { display: none; }
html.rm .hero { height: auto; }
html.rm .hero__sticky { position: static; height: auto; padding-block: calc(var(--nav-h) + 40px) 60px; }
html.rm .hero__grid { display: block; }
html.rm .hero__stage { display: none; }
html.rm .hrail { display: flex; }
html.rm #loader { display: none !important; }

/* =========================================================
   23. WordPress 用の追記
   プロトタイプの見た目は変えず、WordPress が出力する要素
   (管理バー、アイキャッチ画像、キャプション等)だけを吸収する。
   ========================================================= */

/* 管理バーぶんだけ固定ヘッダーを下げる */
body.admin-bar .hdr { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .hdr { top: 46px; } }

/* アイキャッチがある場合は、グラデーションの上に画像を敷く */
.work__visual img,
.whero img,
.wshot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.work__visual.has-img::after,
.whero.has-img::after {
  background: linear-gradient(to top, rgba(255,255,255,0.86), rgba(255,255,255,0) 56%);
}

/* Extras の中の小見出し(自社プロダクト枠) */
.extras-sub {
  margin-top: clamp(34px, 4.4vw, 60px); margin-bottom: 14px;
  font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3);
}

/* works アーカイブ(一覧)の素朴なグリッド */
.warchive { display: grid; gap: clamp(40px, 5vw, 74px) 24px; }
@media (min-width: 760px) { .warchive { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .warchive { grid-template-columns: repeat(3, 1fr); } }
/* 一覧では非対称配置の縦横比リセット(トップの .works だけ変則にする) */
.warchive .work .work__visual { aspect-ratio: 4 / 3; }
@media (min-width: 760px) { .warchive .work .work__visual { aspect-ratio: 16 / 10; } }
.warchive .work { grid-column: auto; margin-top: 0; }

/* Extras の行をリンクにしたとき */
.extra__n a { transition: color 0.3s var(--e2); }
.extra__n a:hover { color: var(--acc); }
.extra__n a { color: inherit; }

/* 声の本文が複数段落のとき */
.voice blockquote p + p { margin-top: 14px; }

/* ページネーション */
.pager { margin-top: clamp(40px, 5vw, 72px); display: flex; flex-wrap: wrap; gap: 10px; }
.pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; color: var(--fg-2);
  transition: border-color 0.35s var(--e2), color 0.35s var(--e2);
}
.pager .page-numbers:hover { border-color: var(--acc); color: var(--acc); }
.pager .page-numbers.current { border-color: var(--acc); color: var(--acc); }

/* 404 と汎用ページ */
.simple { padding-top: calc(var(--nav-h) + clamp(30px, 6vw, 80px)); }
.simple .wtitle { max-width: 18em; }

/* 記事本文(the_content)を置く場合の最低限 */
.entry > * + * { margin-top: 16px; }
.entry p, .entry li { font-family: var(--f-jp); font-size: 16px; line-height: 2.05; color: var(--fg-2); max-width: 44em; }
@media (min-width: 900px) { .entry p, .entry li { font-size: 17px; } }
.entry ul { list-style: disc; padding-left: 1.3em; }
.entry ol { list-style: decimal; padding-left: 1.4em; }
.entry a { border-bottom: 1px solid var(--line); }
.entry a:hover { color: var(--acc); border-color: var(--acc); }
.entry img { border-radius: 14px; }
.entry blockquote { border-left: 2px solid var(--acc); padding-left: 18px; color: var(--fg-2); }

/* WordPress 標準クラス */
.alignleft { float: left; margin: 0 24px 18px 0; }
.alignright { float: right; margin: 0 0 18px 24px; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .entry figcaption { font-family: var(--f-jp); font-size: 14px; color: var(--fg-3); margin-top: 8px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; left: 16px; top: 16px; z-index: 300; width: auto; height: auto;
  clip: auto; padding: 10px 18px; background: var(--acc); color: #ffffff; border-radius: 999px;
}

/* =========================================================
   22. テーマ内の実績画像(assets/works)
   アイキャッチが無くても、スラッグ名の JPG があれば表示する。
   ========================================================= */

/* ヒーローの3Dストリームと、スマホの横スクロール帯 */
.scard img,
.hrail__card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.scard.has-img::after,
.hrail__card.has-img::after {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 52%);
}

/* 画像の上に載せる種別ラベル(白い小さなチップ) */
.work__type--chip,
.whero__type--chip,
.scard__label--chip,
.hrail__label--chip {
  z-index: 3;
  display: inline-block;
  max-width: calc(100% - 32px);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #111111;
  font-size: 12px; font-weight: 700; line-height: 1.5;
  letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.06);
}
.work__type--chip { left: 14px; bottom: 14px; font-size: 12px; }
@media (min-width: 900px) { .work__type--chip { left: 16px; bottom: 16px; font-size: 13px; } }
.whero__type--chip { left: 16px; bottom: 16px; font-size: 12px; }
@media (min-width: 760px) { .whero__type--chip { left: 22px; bottom: 22px; font-size: 13px; } }
.scard__label--chip { left: 12px; bottom: 12px; font-size: 11px; padding: 4px 9px; }
.hrail__label--chip { left: 12px; bottom: 12px; }

/* 詳細ページの Mobile 枠(テーマ内のSP画像。縦長なのでスクロールさせる) */
.wshot--file {
  aspect-ratio: auto;
  max-height: 70vh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.wshot--file::after { content: none; }
.wshot--file img {
  position: static;
  display: block;
  width: 100%; height: auto;
  object-fit: fill;
}

/* 詳細ページの Gallery */
.wblock--gallery { margin-top: clamp(34px, 5vw, 66px); }
.wgallery { display: grid; gap: clamp(14px, 2vw, 22px); margin-top: 18px; }
.wgal {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow);
}
.wgal img { display: block; width: 100%; height: auto; border-radius: 0; }
.wgal--tall {
  max-height: 70vh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
