/* First view: restrained, tactile and intentionally dark in both site themes. */
.hero-fv {
  --fv-bg: #101419;
  --fv-surface: #151b22;
  --fv-line: rgba(221, 230, 236, .18);
  --fv-text: #f2f3f0;
  --fv-muted: #aeb7c1;
  --fv-dim: #7f8a96;
  --fv-green: #9cf99d;
  color: var(--fv-text);
  background:
    radial-gradient(70% 85% at 80% 48%, rgba(70, 101, 117, .16), transparent 69%),
    var(--fv-bg);
  border: 1px solid var(--fv-line);
  border-top: 1px solid var(--fv-line);
  border-radius: 1.4rem;
  box-shadow: 0 1.5rem 3.5rem rgba(5, 8, 11, .2);
  padding: clamp(1.15rem, 3.5vw, 3rem);
  gap: 0;
}
.hero-fv::before { display: none; }
.fv-topline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.fv-brand { display: grid; grid-template-columns: auto auto; column-gap: .42rem; color: var(--fv-text); text-decoration: none; line-height: 1; }
.fv-brand-ja { font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(2.5rem, 5vw, 3.5rem); letter-spacing: .08em; }
.fv-brand .seal-mark { width: clamp(2.9rem, 5.5vw, 3.8rem); height: clamp(2.9rem, 5.5vw, 3.8rem); margin-top: 0; color: #e34b35; align-self: center; transform: rotate(-8deg); }
/* A single, firmer stamp and rebound; uniform scaling keeps the seal circular. */
@media screen and (prefers-reduced-motion: no-preference) {
  .fv-brand .seal-mark { animation: fv-seal-impact 880ms 80ms both; }
  @keyframes fv-seal-impact {
    0% { opacity: 0; transform: translateY(-22px) rotate(-16deg) scale(1.45); animation-timing-function: cubic-bezier(.5, 0, .85, .4); }
    36% { opacity: .94; transform: translateY(3px) rotate(-8deg) scale(.91); animation-timing-function: cubic-bezier(.16, .7, .3, 1); }
    57% { opacity: .94; transform: translateY(-10px) rotate(-10deg) scale(1.08); animation-timing-function: cubic-bezier(.5, 0, .8, .5); }
    76% { opacity: .94; transform: translateY(2px) rotate(-7deg) scale(.98); animation-timing-function: ease-out; }
    89% { opacity: .94; transform: translateY(-2px) rotate(-8deg) scale(1.01); animation-timing-function: ease-in-out; }
    100% { opacity: .94; transform: rotate(-8deg); }
  }
}
.fv-brand-meta { grid-column: 1 / -1; margin-top: .38rem; color: var(--fv-dim); font-family: "JetBrains Mono", monospace; font-size: .58rem; letter-spacing: .12em; }
.hero-fv .site-controls { margin: 0; }
.hero-fv .lang-switch, .hero-fv .theme-button { border-color: var(--fv-line); background: transparent; color: var(--fv-muted); }
.hero-fv .lang-switch button { color: inherit; }
.hero-fv .lang-switch button[aria-pressed="true"] { color: var(--fv-text); background: rgba(255,255,255,.09); }
.hero-fv .theme-button { min-height: 2.4rem; }
.fv-layout { display: grid; grid-template-columns: minmax(17rem, .9fr) minmax(20rem, 1.1fr); grid-template-areas: "copy visual" "actions visual"; align-items: center; gap: 1.5rem clamp(1.5rem, 5vw, 5rem); margin-top: clamp(2rem, 6vw, 5.5rem); }
.fv-copy { grid-area: copy; align-self: end; }
.fv-category { margin: 0 0 1rem; color: var(--fv-muted); font-size: clamp(.88rem, 1.3vw, 1.05rem); font-weight: 500; }
.hero-fv h1 { margin: 0; color: var(--fv-text); font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(2.4rem, 4.4vw, 5rem); font-weight: 500; letter-spacing: .025em; line-height: 1.19; }
.fv-lead { margin: 1.25rem 0 0; color: #d1d8de; font-size: clamp(1rem, 1.8vw, 1.35rem); letter-spacing: .02em; }
.fv-usecase { margin: .65rem 0 0; color: var(--fv-muted); font-size: clamp(.95rem, 1.35vw, 1.075rem); line-height: 1.7; text-wrap: pretty; }
.fv-visual { grid-area: visual; position: relative; min-width: 0; margin: 0; align-self: stretch; display: grid; place-items: end center; overflow: hidden; border-radius: .9rem; background: radial-gradient(65% 56% at 52% 79%, rgba(89, 131, 135, .13), transparent 73%); }
.fv-visual img { display: block; width: min(100%, 44rem); height: auto; object-fit: contain; filter: drop-shadow(0 1.5rem 1.7rem rgba(0, 0, 0, .45)); }
.fv-visual figcaption { position: absolute; right: .85rem; bottom: .7rem; color: rgba(211, 221, 225, .55); font-size: .72rem; }
.fv-actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.fv-install, .fv-copy-url { display: inline-flex; justify-content: center; align-items: center; min-height: 3.35rem; padding: .75rem 1.1rem; border: 1px solid rgba(255, 255, 255, .48); border-radius: 999px; font: inherit; font-weight: 700; line-height: 1.35; text-align: center; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.fv-install { background: #f5f3ed; color: #172028; text-decoration: none; }
.fv-copy-url { display: none; background: transparent; color: var(--fv-text); cursor: pointer; }
.fv-copy-enabled .fv-copy-url { display: inline-flex; }
.fv-install:hover, .fv-install:focus-visible { background: #fff; color: #111820; }
.fv-copy-url:hover, .fv-copy-url:focus-visible { border-color: var(--fv-green); color: var(--fv-green); }
.fv-install:focus-visible, .fv-copy-url:focus-visible, .fv-brand:focus-visible, .fv-url-fallback input:focus-visible { outline: 3px solid var(--fv-green); outline-offset: 3px; }
.fv-copy-status { flex-basis: 100%; min-height: 1.35rem; margin: 0; color: var(--fv-green); font-size: .82rem; }
.fv-url-fallback { flex-basis: 100%; display: grid; gap: .4rem; color: var(--fv-muted); font-size: .82rem; }
.fv-url-fallback[hidden] { display: none; }
.fv-url-fallback input { width: min(100%, 26rem); min-height: 2.75rem; padding: .5rem .7rem; border: 1px solid var(--fv-line); border-radius: .35rem; color: var(--fv-text); background: #0c1014; font: .82rem/1.3 "JetBrains Mono", monospace; }
.fv-compatibility { display: flex; flex-wrap: wrap; gap: .3rem .85rem; margin-top: clamp(1.6rem, 4vw, 3.4rem); padding-top: 1rem; border-top: 1px solid var(--fv-line); color: var(--fv-dim); font-size: .78rem; line-height: 1.55; }
.fv-compatibility > span:nth-of-type(2n)::before { content: "·"; margin-right: .85rem; color: var(--fv-line); }
.fv-film { margin: -1.75rem 0 0; padding: 0 clamp(1rem, 3vw, 2rem) 1.15rem; border: 1px solid var(--rule); border-radius: .7rem; background: var(--card); }
.fv-film summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; cursor: pointer; color: var(--ink); font-weight: 700; }
.fv-film summary small { color: var(--ink-soft); font-family: "JetBrains Mono", monospace; font-weight: 400; }
.fv-film .hero-visual { display: block; width: min(100%, 58rem); margin: 0 auto 1rem; overflow: visible; background: transparent; border-radius: 0; }
.fv-film .hero-visual figcaption { position: static; display: flex; color: var(--ink-soft); }
.fv-film .hero-example-note { color: var(--ink-soft); }
@media (min-width: 761px) { .fv-copy-enabled .fv-copy-url { display: inline-flex; } .fv-copy-status { order: 2; } }
@media (max-width: 760px) {
  .hero-fv { border-radius: 1rem; padding: 1.05rem; }
  .fv-topline { align-items: flex-start; }
  .hero-fv .site-controls { gap: .35rem; }
  .hero-fv .lang-switch button, .hero-fv .theme-button { min-width: 44px; min-height: 44px; padding-inline: .5rem; font-size: .75rem; }
  .fv-layout { grid-template-columns: 1fr; grid-template-areas: "copy" "visual" "actions"; gap: 1.2rem; margin-top: 2.35rem; }
  .hero-fv h1 { font-size: clamp(1.88rem, 10.8vw, 3.4rem); letter-spacing: .015em; }
  .fv-lead { margin-top: .9rem; }
  .fv-visual { min-height: 13.5rem; }
  .fv-visual img { width: min(100%, 31rem); }
  .fv-actions { display: grid; grid-template-columns: 1fr; }
  .fv-install, .fv-copy-url { width: 100%; min-height: 3.7rem; }
  .fv-install { grid-row: 1; background: #f5f3ed; color: #172028; border-color: rgba(255, 255, 255, .48); }
  .fv-copy-enabled .fv-install { grid-row: 2; background: transparent; color: var(--fv-text); border-color: transparent; min-height: 2.75rem; padding-block: .35rem; font-size: .9rem; text-decoration: underline; text-underline-offset: .2em; }
  .fv-copy-url { grid-row: 1; background: #f5f3ed; color: #172028; border-color: rgba(255, 255, 255, .48); }
  .fv-copy-url:hover, .fv-copy-url:focus-visible { background: #fff; border-color: #fff; color: #111820; }
  .fv-copy-status { grid-row: 3; text-align: center; }
  .fv-url-fallback { grid-row: 4; }
  .fv-compatibility { margin-top: 1.6rem; }
  .fv-compatibility > span:nth-of-type(2n)::before { display: none; }
  .fv-film { margin-top: -2.5rem; }
}
@media (prefers-reduced-motion: reduce) { .fv-install, .fv-copy-url { transition: none; } }
@media print { .hero-fv { color: #000; background: #fff; border-color: #000; box-shadow: none; } .fv-brand, .hero-fv h1, .fv-lead { color: #000; } .fv-category, .fv-usecase, .fv-compatibility { color: #333; } .fv-copy-url, .fv-copy-status, .fv-url-fallback, .fv-film { display: none !important; } }
