/* ============================================================
   基礎ロングライフシステム  —  style.css
   株式会社アミカ・エコテック / HYDROSKY®
   Design language: カタログ準拠（ネイビー×ゴールド×グリーン）
   ============================================================ */

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

:root {
  /* Brand palette (カタログ基準) */
  --navy:      #14264F;   /* primary deep navy */
  --navy-900:  #0C1A38;   /* darkest */
  --navy-700:  #21396E;
  --navy-500:  #35528F;
  --ink:       #1B2333;   /* heading near-black */
  --blue:      #1C6FB8;   /* water / 防水 */
  --blue-050:  #EAF2FA;
  --green:     #2E7D46;   /* 透湿 / eco */
  --green-050: #E9F4EC;
  --gold:      #B08D57;   /* premium hairline / accent */
  --gold-soft: #D8C6A6;
  --red:       #C8102E;   /* HYDROSKY brand red (sparingly) */

  /* Neutrals — warm paper + cool ink */
  --paper:     #FAF8F4;   /* warm page base for alt sections */
  --white:     #FFFFFF;
  --sand:      #F3EEE6;   /* warm card / band */
  --line:      #E4E0D8;   /* warm hairline */
  --line-cool: #E3E7EE;
  --gray-100:  #F5F6F8;
  --gray-300:  #CBD1DA;
  --gray-500:  #7A828F;
  --gray-600:  #5A6270;
  --text:      #2A303A;
  --muted:     #6B7280;

  --shadow-sm: 0 2px 8px rgba(20,38,79,.06);
  --shadow:    0 12px 28px -12px rgba(20,38,79,.16);
  --shadow-lg: 0 30px 60px -24px rgba(12,26,56,.28);

  --r:   10px;
  --r-lg: 18px;
  --tr:  .35s cubic-bezier(.2,.7,.3,1);
  --maxw: 1180px;
}

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

body {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text);
  line-height: 1.85;
  background: var(--white);
  overflow-x: clip; /* prevent horizontal overflow WITHOUT making body a scroll container */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
strong { font-weight: 700; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 28px; }

.section      { padding: 116px 0; }
.section-sm   { padding: 80px 0; }
.section-alt  { padding: 116px 0; background: var(--paper); }
.section-sand { padding: 116px 0; background: var(--sand); }
.section-dark {
  padding: 116px 0;
  background:
    radial-gradient(120% 100% at 85% -10%, rgba(53,82,143,.45) 0%, transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #E9EDF5;
}
.section-dark .section-title { color: #fff; }
.section-dark .lead { color: rgba(233,237,245,.82); }

.text-center { text-align: center; }

/* ---------- Typography ---------- */
.serif { font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif; font-weight: 500; }

/* アイブロウ（左に色線を添える装飾）は不使用 */
.eyebrow { display: none !important; }
.eyebrow--hidden {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 700; letter-spacing: .22em;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 30px; height: 1px; background: var(--gold); display: inline-block;
}
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::after {
  content: ""; width: 30px; height: 1px; background: var(--gold); display: inline-block;
}
.eyebrow.on-dark { color: var(--gold-soft); }
.eyebrow.on-dark::before, .eyebrow.on-dark::after { background: var(--gold-soft); }

/* Japanese-aware wrapping: break at phrase boundaries, balance lines
   (progressive enhancement — ignored by browsers that don't support it) */
.section-title, .hero h1, .page-hero h1, .cta h2, .title-block .lead,
.plan .p-name, .value-card h3, .callout h3, .faq-q .qt {
  word-break: auto-phrase;
  overflow-wrap: break-word;
}
.section-title, .hero h1, .page-hero h1, .cta h2 { text-wrap: balance; }

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.65rem);
  font-weight: 700; color: var(--ink);
  line-height: 1.38; letter-spacing: .01em;
}
.section-title .accent { color: var(--blue); }
.section-title .accent-green { color: var(--green); }

.lead {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--gray-600); line-height: 2;
}
.title-block { max-width: 760px; }
.title-block.centered { margin-left: auto; margin-right: auto; }
.title-block .lead { margin-top: 22px; }

/* ---------- Icon system ---------- */
.ic { width: 24px; height: 24px; display: inline-block; flex: none; fill: none;
      stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg { width: 34px; height: 34px; }
.ic-fill { fill: currentColor; stroke: none; }

/* icon badge (circle with icon inside) — replaces emoji */
.icon-badge {
  width: 60px; height: 60px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; flex: none;
}
.icon-badge .ic { width: 28px; height: 28px; }
.icon-badge.blue  { background: var(--blue); }
.icon-badge.green { background: var(--green); }
.icon-badge.gold  { background: var(--gold); }
.icon-badge.soft  { background: var(--blue-050); color: var(--navy); }
.icon-badge.soft-green { background: var(--green-050); color: var(--green); }
.icon-badge.outline {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--line-cool);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 8px;
  font-family: inherit; font-size: .98rem; font-weight: 700; letter-spacing: .02em;
  border: 1.5px solid transparent; cursor: pointer; transition: var(--tr);
  white-space: nowrap; line-height: 1.2;
}
.btn .ic { width: 19px; height: 19px; }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: #a50e26; border-color: #a50e26; transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-900); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: #9c7a48; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--gray-300); }
.btn-ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-sm { padding: 11px 22px; font-size: .875rem; }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn-group.centered { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: var(--tr);
}
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(20,38,79,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: .82rem; font-weight: 700; color: var(--navy); letter-spacing: .01em; white-space: nowrap; }
.brand-sub { font-size: .62rem; color: var(--gray-500); letter-spacing: .14em; font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  padding: 10px 15px; color: var(--gray-600); font-size: .875rem; font-weight: 500;
  border-radius: 7px; transition: var(--tr); position: relative;
}
.site-nav a:hover { color: var(--navy); }
.site-nav a.active { color: var(--navy); font-weight: 700; }
.site-nav a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.header-cta {
  background: var(--navy); color: #fff !important; padding: 12px 22px; border-radius: 8px;
  font-size: .85rem; font-weight: 700; white-space: nowrap; transition: var(--tr);
}
.header-cta:hover { background: var(--red); transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; border: none; background: none; cursor: pointer; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--tr); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; inset: 76px 0 0 0; background: var(--navy-900); z-index: 999;
  overflow-y: auto; padding: 28px; flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: #fff; font-size: 1.06rem; font-weight: 500; padding: 17px 18px; border-radius: 8px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.mobile-nav a:hover { background: rgba(255,255,255,.08); }

/* ---------- Audience toggle ---------- */
.audience-toggle {
  display: inline-flex; padding: 5px; gap: 4px; border-radius: 100px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(4px);
}
.audience-toggle button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 100px; border: none; cursor: pointer;
  font-family: inherit; font-size: .9rem; font-weight: 700; color: rgba(255,255,255,.8);
  background: transparent; transition: var(--tr); white-space: nowrap;
}
.audience-toggle button .ic { width: 18px; height: 18px; }
.audience-toggle button.is-active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }

/* light variant (on paper) */
.audience-toggle.light { background: var(--white); border-color: var(--line); }
.audience-toggle.light button { color: var(--gray-500); }
.audience-toggle.light button.is-active { background: var(--navy); color: #fff; }

/* audience-conditional visibility — elements keep their natural display when
   shown, and are hidden only when the OPPOSITE mode is active. body always
   carries a mode class (set inline in <head> to avoid any flash). */
body.mode-owner   .partner-only { display: none !important; }
body.mode-partner .owner-only   { display: none !important; }

/* ---------- Hero (LP) ---------- */
.hero {
  position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(100% 92% at 84% -8%, rgba(53,82,143,.55) 0%, transparent 52%),
    radial-gradient(85% 80% at 2% 108%, rgba(28,111,184,.30) 0%, transparent 48%),
    linear-gradient(158deg, var(--navy) 0%, var(--navy-900) 72%);
}
.hero::before { /* blueprint grid texture */
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .55;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(125% 105% at 72% 15%, #000 28%, transparent 76%);
          mask-image: radial-gradient(125% 105% at 72% 15%, #000 28%, transparent 76%);
}
.hero::after { /* bottom gold hairline */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
/* higher specificity than .container so its padding isn't clobbered by
   the .container override in the ≤480px media query (both classes share this element) */
.hero .hero-inner { position: relative; z-index: 2; color: #fff; padding: 150px 28px 92px; width: 100%; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.32; letter-spacing: .01em;
  margin: 28px 0 26px;
}
.hero h1 .hl { color: #8FD0F5; }
.hero h1 .hl-gold { color: var(--gold-soft); }
.hero-sub { font-size: clamp(1rem, 1.8vw, 1.22rem); color: rgba(255,255,255,.86); max-width: 620px; line-height: 1.95; }
.hero-cta { margin-top: 38px; }
/* 資格・実績（シンプルな円） */
.hero-circles { margin-top: 42px; display: flex; gap: 20px; flex-wrap: wrap; }
.hcirc {
  width: 122px; height: 122px; border-radius: 50%; flex: none;
  border: 1.5px solid rgba(216,198,166,.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 10px; gap: 3px;
}
.hcirc .hc-main { font-size: .92rem; font-weight: 700; line-height: 1.45; color: #fff; letter-spacing: .02em; }
.hcirc .hc-sub  { font-size: .66rem; font-weight: 600; letter-spacing: .14em; color: var(--gold-soft); }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; text-align: center; color: rgba(255,255,255,.6); }
.scroll-hint span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-hint i { display: block; width: 1px; height: 42px; margin: 8px auto 0; background: linear-gradient(rgba(255,255,255,.6), transparent); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; padding: 168px 0 74px; color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 120% at 90% -20%, rgba(53,82,143,.5) 0%, transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%);
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-hero .breadcrumb { justify-content: flex-start; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.7); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; line-height: 1.32; margin-bottom: 16px; }
.page-hero p { font-size: 1.08rem; color: rgba(255,255,255,.8); max-width: 640px; margin: 0; line-height: 1.9; text-wrap: balance; }

/* ---------- Divider / rule ---------- */
/* かつてのゴールド下線バーは廃止。余白のみ確保（色線は入れない） */
.rule { width: 0; height: 0; margin: 4px 0 22px; }
.rule.centered { margin-left: auto; margin-right: auto; }

/* ---------- Grid helpers ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-2.wide-gap { gap: 72px; }
.grid { display: grid; gap: 26px; }
/* グリッド項目が最小内容幅で膨張して横溢れ（角丸カードの右端切れ等）するのを防ぐ */
.grid > *, .grid-2 > *, .grid-2c > *, .plan-grid > *, .metric-row > *,
.stats > *, .footer-grid > *, .contact-grid > *, .compare-note > *,
.decay-flow > *, .steps > * { min-width: 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-2c { grid-template-columns: repeat(2, 1fr); }

/* お問い合わせページ：フォーム＋サイドバー（モバイルで縦積み） */
.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); transition: var(--tr); overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.card-pad { padding: 34px 30px; }

/* value card (icon + title + text) — replaces emoji cards */
.value-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 38px 30px; transition: var(--tr); position: relative;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.value-card h3 { font-size: 1.16rem; font-weight: 700; color: var(--ink); margin: 22px 0 12px; }
.value-card p { font-size: .93rem; color: var(--gray-600); line-height: 1.85; }
.value-card .kicker { font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; }

/* numbered value (VALUE 01 …) */
.mini-value { display: flex; flex-direction: column; gap: 8px; }
.mini-value .no { font-family: "Zen Old Mincho", serif; font-size: 1rem; color: var(--gold); letter-spacing: .1em; }
.mini-value .ttl { font-weight: 700; color: var(--ink); font-size: 1rem; }
.mini-value .txt { font-size: .85rem; color: var(--gray-600); line-height: 1.7; }
.mini-value .icon-badge { margin-bottom: 6px; }

/* ---------- Feature list ---------- */
.feature-list { display: flex; flex-direction: column; gap: 15px; }
.feature-item { display: flex; align-items: flex-start; gap: 13px; font-size: .96rem; color: var(--text); line-height: 1.7; }
.feature-item .tick {
  width: 24px; height: 24px; border-radius: 50%; flex: none; margin-top: 2px;
  background: var(--green-050); color: var(--green); display: inline-flex; align-items: center; justify-content: center;
}
.feature-item .tick .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.feature-item.warn .tick { background: #FBE9E9; color: var(--red); }

/* ---------- Problem cards (課題) ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.problem-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 22px; text-align: left;
}
.problem-card .no { font-family: "Zen Old Mincho", serif; font-size: 1.4rem; color: var(--gold); }
.problem-card .icon-badge { margin: 6px 0 14px; }
.problem-card h4 { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.problem-card p { font-size: .85rem; color: var(--gray-600); line-height: 1.7; }

/* deterioration timeline */
.decay-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.decay-step { position: relative; padding: 0 14px; text-align: center; }
.decay-step:not(:last-child)::after {
  content: ""; position: absolute; top: 30px; right: -12px; width: 24px; height: 24px;
  border-top: 2px solid var(--gray-300); border-right: 2px solid var(--gray-300);
  transform: rotate(45deg); z-index: 1;
}
.decay-step .stage {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
  font-family: "Zen Old Mincho", serif; font-size: 1.5rem; color: #fff; background: var(--navy-500);
}
.decay-step:nth-child(1) .stage { background: var(--green); }
.decay-step:nth-child(2) .stage { background: var(--navy-500); }
.decay-step:nth-child(3) .stage { background: #C9962E; }
.decay-step:nth-child(4) .stage { background: var(--red); }
.decay-step h4 { font-size: .98rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.decay-step p { font-size: .82rem; color: var(--gray-600); line-height: 1.7; }

/* ---------- Video frame (YouTube / mp4) ---------- */
.video-frame {
  position: relative; padding-top: 56.25%; border-radius: var(--r-lg); overflow: hidden;
  background: #000; box-shadow: var(--shadow-lg); cursor: pointer;
}
.video-frame img, .video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-frame .v-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,26,56,.15), rgba(12,26,56,.55)); display: flex; align-items: center; justify-content: center; }
.play-btn {
  width: 82px; height: 82px; border-radius: 50%; background: rgba(255,255,255,.94);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: var(--tr);
}
.video-frame:hover .play-btn { transform: scale(1.08); background: #fff; }
.play-btn::after { content: ""; width: 0; height: 0; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent var(--red); margin-left: 5px; }
.video-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; color: #fff; font-size: .9rem; font-weight: 600;
  background: linear-gradient(transparent, rgba(0,0,0,.72)); z-index: 2; }

/* ---------- Stats bar ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--r-lg); overflow: hidden; }
.stat { text-align: center; padding: 40px 20px; background: transparent; }
.stat .num { font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 700; color: #8FD0F5; line-height: 1; letter-spacing: -.01em; }
.stat .num sup { font-size: 46%; margin-left: 2px; }
.stat .cap { font-size: .86rem; color: rgba(255,255,255,.78); margin-top: 12px; line-height: 1.5; }
.stat .src { font-size: .68rem; color: rgba(255,255,255,.42); margin-top: 8px; }

/* ---------- Business opportunity (事業者) ---------- */
.opp-hero {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
}
.opp-figure {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; padding: 48px;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.opp-figure .big { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 700; line-height: 1; color: #fff; }
.opp-figure .big small { font-size: 1.3rem; color: var(--gold-soft); }
.opp-figure .lbl { font-size: .95rem; color: rgba(255,255,255,.8); }
.opp-body { background: var(--white); padding: 44px; }

.metric-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.metric {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 14px; text-align: center;
}
.metric .icon-badge { margin: 0 auto 14px; }
.metric .m-num { font-size: 1.7rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.metric .m-num small { font-size: .95rem; }
.metric .m-lbl { font-size: .84rem; color: var(--gray-600); margin-top: 8px; word-break: keep-all; }

/* ---------- Plan cards ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: start; }
.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: var(--tr); position: relative; display: flex; flex-direction: column;
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.plan .ribbon {
  position: absolute; top: 18px; right: -34px; transform: rotate(45deg);
  background: var(--gold); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: 6px 42px;
}
.plan-head { padding: 30px 28px 22px; border-bottom: 1px solid var(--line); }
.plan .tier { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.plan .p-name { font-size: 1.42rem; font-weight: 700; color: var(--navy); margin: 6px 0 4px; }
.plan .p-desc { font-size: .88rem; color: var(--gray-600); }
.plan-price { padding: 22px 28px; background: var(--paper); border-bottom: 1px solid var(--line); }
.plan-price .amt { font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1; }
.plan-price .amt.range { font-size: clamp(1.25rem, 3.4vw, 1.55rem); }
.plan-price .amt small { font-size: .9rem; font-weight: 500; color: var(--gray-500); }
.plan-price .unit { font-size: .82rem; color: var(--gray-600); margin-top: 6px; }
.plan-price .note { font-size: .74rem; color: var(--gray-500); margin-top: 4px; }
.plan-body { padding: 24px 28px 30px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.mat-chip { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: var(--blue-050); color: var(--navy); font-size: .82rem; font-weight: 700; padding: 8px 14px; border-radius: 100px; }
.plan.featured .mat-chip { background: #F4ECDD; color: #8a6c3d; }
.plan .p-feats { display: flex; flex-direction: column; gap: 11px; }
.p-feats .row { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text); }
.p-feats .row .tick { width: 20px; height: 20px; border-radius: 50%; background: var(--green-050); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.p-feats .row .tick .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.p-feats .row.off { color: var(--gray-500); }
.p-feats .row.off .tick { background: var(--gray-100); color: var(--gray-300); }
/* profit box (事業者 mode) */
.profit-box { margin-top: auto; background: var(--navy); color: #fff; border-radius: var(--r); padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; }
.profit-box .pl { font-size: .78rem; color: rgba(255,255,255,.7); }
.profit-box .pv { font-size: 1.5rem; font-weight: 700; color: #8FD0F5; }
.plan-cta { padding: 0 28px 28px; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.compare { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 620px; background: #fff; }
.compare th, .compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--navy); color: #fff; font-weight: 700; }
.compare thead th:first-child { background: var(--navy-900); text-align: left; }
.compare tbody td:first-child { text-align: left; font-weight: 600; color: var(--ink); background: var(--paper); }
.compare tbody tr:hover td { background: var(--blue-050); }
.compare tbody tr:hover td:first-child { background: #dfeaf6; }
.compare .yes { color: var(--green); }
.compare .yes .ic { width: 20px; height: 20px; stroke-width: 2.4; }
.compare .no { color: var(--gray-300); }

/* ---------- Bar chart ---------- */
.bars { display: flex; flex-direction: column; gap: 16px; }
.bar .bl { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: .9rem; }
.bar .bl .nm { font-weight: 600; color: var(--ink); }
.bar .bl .vl { font-weight: 700; color: var(--gray-600); }
.bar .bl .vl.hi { color: var(--red); }
.bar .track { height: 13px; background: var(--gray-100); border-radius: 7px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 7px; background: var(--gray-300); width: 0; transition: width 1.3s cubic-bezier(.2,.7,.3,1); }
.bar .fill.hi { background: linear-gradient(90deg, var(--blue), #2E8FE0); }

/* ---------- Data card ---------- */
.data-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 28px; }
.data-card .dn { font-size: clamp(2.6rem,5vw,3.8rem); font-weight: 700; color: var(--navy); line-height: 1; }
.data-card .dn small { font-size: 1.3rem; }
.data-card .dt { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin: 14px 0 8px; }
.data-card .dd { font-size: .85rem; color: var(--gray-600); line-height: 1.7; }

/* ---------- Before / After ---------- */
.ba-figure { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.compare-note { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.note-box { padding: 26px; border-radius: var(--r); }
.note-box.bad { background: #FBF0F0; border: 1px solid #F1D6D6; }
.note-box.good { background: var(--green-050); border: 1px solid #D2E7D7; }
.note-box h4 { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.note-box.bad h4 { color: var(--red); }
.note-box.good h4 { color: var(--green); }
.note-box ul { display: flex; flex-direction: column; gap: 8px; }
.note-box li { font-size: .9rem; color: var(--gray-600); padding-left: 18px; position: relative; line-height: 1.6; }
.note-box li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; }
.note-box.bad li::before { background: var(--red); }
.note-box.good li::before { background: var(--green); }

/* ---------- Download cards ---------- */
.dl-card {
  display: flex; gap: 20px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px; transition: var(--tr);
}
.dl-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.dl-thumb { width: 56px; height: 56px; border-radius: var(--r); background: var(--blue-050); color: var(--navy);
  display: flex; align-items: center; justify-content: center; flex: none; }
.dl-thumb .ic { width: 27px; height: 27px; }
/* PDF表紙サムネイル */
.dl-cover { width: 132px; height: 96px; flex: none; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.dl-cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dl-info { flex: 1; }
.dl-title { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.dl-desc { font-size: .87rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 14px; }
.dl-tags { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dl-meta { font-size: .76rem; color: var(--gray-500); }

/* ---------- FAQ ---------- */
.faq-cat-title { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; font-weight: 700; color: #fff;
  background: var(--navy); padding: 15px 24px; border-radius: var(--r); margin-bottom: 16px; }
.faq-cat-title.blue { background: var(--blue); }
.faq-cat-title.green { background: var(--green); }
.faq-cat-title .ic { color: var(--gold-soft); }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 12px; transition: var(--tr); background: #fff; }
.faq-item.open { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.faq-q { display: flex; align-items: center; gap: 15px; padding: 20px 24px; cursor: pointer; transition: var(--tr); }
.faq-q:hover { background: var(--paper); }
.faq-q .qm { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none; font-size: .85rem; }
.faq-q .qt { flex: 1; font-size: 1rem; font-weight: 600; color: var(--ink); }
.faq-q .qtoggle { color: var(--gray-500); transition: var(--tr); flex: none; }
.faq-item.open .qtoggle { transform: rotate(45deg); color: var(--gold); }
.faq-a { display: none; padding: 0 24px 22px 69px; font-size: .95rem; color: var(--gray-600); line-height: 1.9; }
.faq-item.open .faq-a { display: block; }

/* ---------- Contact form ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 46px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fg { display: flex; flex-direction: column; gap: 7px; }
.fg.full { grid-column: 1 / -1; }
.fg label { font-size: .87rem; font-weight: 600; color: var(--ink); }
.fg label .req { color: var(--red); margin-left: 5px; font-size: .8rem; }
.fg input, .fg select, .fg textarea {
  border: 1.5px solid var(--line-cool); border-radius: 8px; padding: 13px 15px; font-size: 1rem;
  font-family: inherit; color: var(--text); background: #fff; transition: var(--tr); width: 100%;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28,111,184,.14); }
.fg textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .8rem; color: var(--gray-500); line-height: 1.6; }

/* ---------- Case cards ---------- */
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.case-head { background: var(--navy); color: #fff; padding: 22px 30px; }
.case-no { font-size: .74rem; font-weight: 700; letter-spacing: .14em; color: var(--gold-soft); margin-bottom: 5px; }
.case-title { font-size: 1.28rem; font-weight: 700; line-height: 1.4; }
.case-body { padding: 30px; }
.quote { background: var(--blue-050); border: 1px solid #D5E4F3; padding: 16px 20px; border-radius: var(--r);
  font-size: .92rem; color: var(--navy); line-height: 1.8; margin: 16px 0; }

/* ---------- Case media (採用実績 写真) ---------- */
.case-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 6px; }
.case-fig { margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-sm); }
.case-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case-fig figcaption { padding: 11px 14px; border-top: 1px solid var(--line);
  font-size: .82rem; line-height: 1.55; color: var(--gray-600); }
.case-fig figcaption b { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  color: var(--gold); margin-bottom: 2px; }
@media (max-width: 560px) { .case-media { grid-template-columns: 1fr; } }

/* ---------- Support process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: var(--line); }
.step { text-align: center; padding: 0 16px; position: relative; z-index: 1; }
.step .sn { width: 68px; height: 68px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; border: 4px solid var(--paper); }
.step.done .sn { background: var(--green); }
.step h4 { font-size: .98rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.step p { font-size: .83rem; color: var(--gray-600); line-height: 1.6; }

/* ---------- Callout / band ---------- */
.callout { background: var(--blue-050); border: 1px solid #D5E4F3; border-radius: var(--r-lg); padding: 30px 36px; }
.callout.gold { background: #F7F1E7; border-color: var(--gold-soft); }
.callout h3 { display: flex; align-items: center; gap: 12px; font-size: 1.12rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.callout p { font-size: .95rem; color: var(--gray-600); line-height: 1.85; }

/* ---------- CTA band ---------- */
.cta {
  padding: 96px 0; text-align: center; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 15% 0%, rgba(53,82,143,.5) 0%, transparent 50%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%);
}
.cta::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; margin-bottom: 16px; line-height: 1.4; }
.cta p { font-size: 1.06rem; color: rgba(255,255,255,.82); margin: 0 auto 34px; max-width: 600px; line-height: 1.9; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 72px 0 0; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 60%); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand img { height: 66px; margin-bottom: 18px; }
.footer-brand .fb-name { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: .87rem; line-height: 1.85; color: rgba(255,255,255,.62); }
.footer-col h4 { color: #fff; font-size: .92rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: .87rem; color: rgba(255,255,255,.62); transition: var(--tr); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-mail { margin-top: 16px; }
.footer-mail a { color: #8FD0F5; font-weight: 600; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: .78rem; color: rgba(255,255,255,.42); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: .8rem; color: var(--gray-500); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { opacity: .5; }

/* ---------- Reveal (only hidden when JS is active — robust fallback) ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1); }
html.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Utilities ---------- */
.mt-0{margin-top:0}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}.mt-5{margin-top:44px}
.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:40px}.mb-5{margin-bottom:56px}
.maxw-900{max-width:900px}.mx-auto{margin-left:auto;margin-right:auto}

/* ============================================================
   Responsive
   ============================================================ */
/* 6項目の横ナビが1行で収まらなくなる幅より前に、ハンバーガーメニューへ切替 */
@media (max-width: 1100px) {
  .site-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
}
/* 事業者オプションの2カラムは、右側の3メトリクスが窮屈になる手前で縦積みへ */
@media (max-width: 1180px) {
  .opp-hero { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-2, .grid-2.wide-gap { grid-template-columns: 1fr; gap: 40px; }
  .decay-flow { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .decay-step:nth-child(2)::after { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .steps::before { display: none; }
}
@media (max-width: 768px) {
  .section, .section-alt, .section-sand, .section-dark { padding: 76px 0; }
  .grid-3, .grid-2c, .plan-grid, .metric-row { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  /* インラインで多カラム指定されたグリッドは、モバイルでは縦積みに強制（横溢れ防止） */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .compare-note { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .btn-group:not(.keep-row) { flex-direction: column; align-items: stretch; }
  .btn-group:not(.keep-row) .btn { width: 100%; }
  .hero .hero-inner { padding: 120px 18px 72px; }
  .scroll-hint { display: none; }
  .page-hero { padding: 140px 0 60px; }
  .audience-toggle button { padding: 10px 16px; font-size: .82rem; }
  .opp-figure, .opp-body { padding: 32px 26px; }
  .dl-cover { width: 104px; height: 78px; }
  .hero-circles { gap: 14px; margin-top: 32px; }
  .hcirc { width: 104px; height: 104px; }
  .hcirc .hc-main { font-size: .82rem; }
}
@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 18px; }
  .problem-grid, .grid-4, .stats { grid-template-columns: 1fr; }
  .decay-flow { grid-template-columns: 1fr; }
  .decay-step::after { display: none !important; }
  .brand-text { display: none; }
  .hcirc { width: 96px; height: 96px; }
  .hcirc .hc-main { font-size: .76rem; }
  .hcirc .hc-sub { font-size: .6rem; letter-spacing: .1em; }
  .dl-card { gap: 14px; padding: 18px; }
  .dl-cover { width: 84px; height: 62px; }
}

/* ============================================================
   動画ライブラリ（library.html / watch.html / movie.html 動画一覧）
   縦型ショート動画（9:16）向け
   ============================================================ */

/* ---- コントロール（検索＋商材フィルタ） ---- */
.vlib-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  margin-bottom: 40px;
}
.vlib-search {
  position: relative; flex: 1 1 300px; max-width: 420px;
}
.vlib-search .ic {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; color: var(--gray-500); pointer-events: none;
}
.vlib-search input {
  width: 100%; padding: 14px 18px 14px 46px; border: 1.5px solid var(--line-cool);
  border-radius: 10px; font-family: inherit; font-size: .96rem; color: var(--text);
  background: var(--white); transition: var(--tr);
}
.vlib-search input:focus { outline: none; border-color: var(--navy-500); }
.vlib-search input::placeholder { color: var(--gray-500); }

.vchips { display: flex; flex-wrap: wrap; gap: 9px; }
.vchip {
  padding: 9px 18px; border-radius: 100px; border: 1.5px solid var(--line-cool);
  background: var(--white); color: var(--gray-600); font-family: inherit;
  font-size: .86rem; font-weight: 700; cursor: pointer; transition: var(--tr);
  white-space: nowrap;
}
.vchip:hover { border-color: var(--navy-500); color: var(--navy); }
.vchip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.vchip .cnt { opacity: .6; font-weight: 600; margin-left: 4px; font-size: .8em; }

.vlib-count { font-size: .88rem; color: var(--gray-500); margin: -18px 0 26px; }

/* ---- 商材セクション ---- */
.vlib-section { margin-bottom: 56px; }
.vlib-section:last-child { margin-bottom: 0; }
.vlib-sec-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.vlib-sec-head h2 {
  font-size: 1.28rem; font-weight: 700; color: var(--ink); letter-spacing: .01em;
}
.vlib-sec-head .sec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.vlib-sec-head .sec-dot.blue { background: var(--blue); }
.vlib-sec-head .sec-dot.green { background: var(--green); }
.vlib-sec-head .sec-dot.dark { background: var(--navy); }
.vlib-sec-head .sec-cnt { font-size: .82rem; color: var(--gray-500); font-weight: 600; }
.vlib-sec-head .sec-primary {
  margin-left: auto; font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  color: var(--gold); border: 1px solid var(--gold-soft); border-radius: 100px; padding: 5px 13px;
}

/* ---- グリッド ---- */
.vlib-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.vlib-grid.compact { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }

/* ---- 縦型カード ---- */
.vcard {
  display: flex; flex-direction: column; cursor: pointer;
  background: none; border: 0; text-align: left; font-family: inherit; padding: 0;
}
.vcard-poster {
  position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  background: var(--navy-900); box-shadow: var(--shadow-sm); transition: var(--tr);
}
.vcard-poster img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.vcard:hover .vcard-poster { box-shadow: var(--shadow); }
.vcard:hover .vcard-poster img { transform: scale(1.04); }
.vcard-poster .v-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(12,26,56,.08) 40%, rgba(12,26,56,.5));
  opacity: 0; transition: var(--tr);
}
.vcard:hover .v-play, .vcard:focus-visible .v-play { opacity: 1; }
.vcard:focus-visible { outline: none; }
.vcard:focus-visible .vcard-poster { outline: 3px solid var(--navy-500); outline-offset: 2px; }
.v-play i {
  width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.v-play i::after {
  content: ""; width: 0; height: 0; border-style: solid;
  border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--navy);
  margin-left: 4px;
}
.vcard-dur {
  position: absolute; right: 9px; bottom: 9px; z-index: 2;
  background: rgba(12,26,56,.82); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; letter-spacing: .02em;
}
.vcard-badge {
  position: absolute; left: 9px; top: 9px; z-index: 2;
  background: rgba(255,255,255,.94); color: var(--navy); font-size: .68rem; font-weight: 700;
  padding: 4px 9px; border-radius: 6px; letter-spacing: .02em;
}
.vcard-badge.gold { background: var(--gold); color: #fff; }
.vcard-body { padding: 12px 2px 0; }
.vcard-title {
  font-size: .92rem; font-weight: 700; color: var(--ink); line-height: 1.5;
  word-break: auto-phrase; overflow-wrap: break-word;
}
.vcard-sub { font-size: .78rem; color: var(--gray-500); margin-top: 4px; line-height: 1.5; }

/* ---- 空状態 ---- */
.vlib-empty { text-align: center; padding: 70px 20px; color: var(--gray-500); }
.vlib-empty h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }

/* ============================================================
   モーダル（ライブラリ内クイック再生＋共有）
   ============================================================ */
.vmodal {
  position: fixed; inset: 0; z-index: 2000; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(8,16,34,.72); backdrop-filter: blur(4px);
}
.vmodal.open { display: flex; }
.vmodal-inner {
  background: var(--white); border-radius: 18px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 340px) minmax(280px, 380px);
  max-width: 760px; width: 100%; max-height: 92vh; box-shadow: var(--shadow-lg);
}
.vmodal-player { background: #000; position: relative; display: flex; }
.vmodal-player video { width: 100%; height: 100%; max-height: 92vh; object-fit: contain; display: block; }
.vmodal-side { padding: 30px 30px 34px; overflow-y: auto; display: flex; flex-direction: column; }
.vmodal-eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .08em; color: var(--gold); margin-bottom: 8px; }
.vmodal-side h3 { font-size: 1.22rem; font-weight: 700; color: var(--ink); line-height: 1.5; margin-bottom: 8px; }
.vmodal-side .m-sub { font-size: .88rem; color: var(--gray-600); margin-bottom: 4px; }
.vmodal-side .m-meta { font-size: .8rem; color: var(--gray-500); margin-bottom: 22px; }

.vclose {
  position: absolute; top: 14px; right: 16px; z-index: 3; width: 40px; height: 40px;
  border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--navy);
  box-shadow: var(--shadow-sm); transition: var(--tr);
}
.vclose:hover { background: #fff; transform: scale(1.05); }
.vclose::before, .vclose::after {
  content: ""; position: absolute; width: 17px; height: 2px; background: currentColor; border-radius: 2px;
}
.vclose::before { transform: rotate(45deg); }
.vclose::after { transform: rotate(-45deg); }

/* ---- 共有パネル ---- */
.share-panel { margin-top: auto; border-top: 1px solid var(--line); padding-top: 20px; }
.share-panel h4 {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; color: var(--navy); letter-spacing: .04em; margin-bottom: 12px;
}
.share-row { display: flex; gap: 8px; margin-bottom: 14px; }
.share-url {
  flex: 1; min-width: 0; padding: 11px 13px; border: 1.5px solid var(--line-cool); border-radius: 8px;
  font-size: .8rem; color: var(--gray-600); background: var(--gray-100);
  font-family: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.share-copy {
  flex: none; padding: 11px 16px; border-radius: 8px; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; font-family: inherit; font-size: .82rem; font-weight: 700;
  transition: var(--tr); white-space: nowrap;
}
.share-copy:hover { background: var(--navy-900); }
.share-copy.copied { background: var(--green); }
.share-qr { display: flex; align-items: center; gap: 16px; }
.share-qr img {
  width: 96px; height: 96px; border-radius: 10px; border: 1px solid var(--line); flex: none; background: #fff;
}
.share-qr p { font-size: .78rem; color: var(--gray-500); line-height: 1.7; }
.share-open {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 6px;
  font-size: .82rem; font-weight: 700; color: var(--navy);
}
.share-open:hover { color: var(--blue); }
.share-open .ic { width: 16px; height: 16px; }

/* ============================================================
   視聴ページ（watch.html）
   ============================================================ */
.watch-wrap {
  display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: 48px;
  align-items: start;
}
.watch-player {
  background: #000; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 9 / 16; max-height: 78vh; margin: 0 auto; width: 100%;
}
.watch-player video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.watch-side { padding-top: 6px; }
.watch-side .breadcrumb { margin-bottom: 18px; }
.watch-badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  color: var(--gold); border: 1px solid var(--gold-soft); border-radius: 100px; padding: 5px 14px; margin-bottom: 16px;
}
.watch-side h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; color: var(--ink); line-height: 1.45; margin-bottom: 12px; }
.watch-side .w-sub { font-size: 1rem; color: var(--gray-600); margin-bottom: 6px; }
.watch-side .w-meta { font-size: .86rem; color: var(--gray-500); margin-bottom: 26px; }
.watch-share {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; margin-bottom: 22px;
}
.watch-notfound { text-align: center; padding: 60px 20px; }
.watch-notfound h1 { font-size: 1.5rem; color: var(--navy); margin-bottom: 12px; }

/* ---- レスポンシブ ---- */
@media (max-width: 860px) {
  .watch-wrap { grid-template-columns: 1fr; gap: 30px; }
  .watch-player { max-height: 70vh; max-width: 360px; }
  .vmodal-inner { grid-template-columns: 1fr; max-width: 400px; }
  .vmodal-player video { max-height: 52vh; }
  .vmodal-side { padding: 22px 24px 26px; }
}
@media (max-width: 560px) {
  .vlib-grid, .vlib-grid.compact { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .vlib-controls { gap: 14px; }
  .vlib-search { max-width: none; flex-basis: 100%; }
  .vcard-title { font-size: .86rem; }
}
