/* ============================================================
   Video Technica base styles
   Tokens and parts come from the approved mockups (plan B, quadcom.jp style).
   No web fonts / icon fonts: system fonts only.
   ============================================================ */
:root {
  --navy: #154399;
  --navy-deep: #0f2f6b;
  --ink: #1f2933;
  --muted: #5b6573;
  --line: #e3e8ef;
  --bg-soft: #f4f7fb;
  --accent: #ff6a00;
  --accent-ink: #c74f00;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(16, 38, 84, 0.08);
  --wrap: 1120px;
  --hd-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd-h) + 16px); }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.8;
  font-size: 15px;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #6a9bff; outline-offset: 2px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.right { text-align: right; margin-top: 16px; }
.muted { color: var(--muted); }
.vt-skip { position: absolute; left: -9999px; }
.vt-skip:focus { left: 16px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---------- Buttons and small parts ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; line-height: 1.4; border: 1px solid transparent; transition: background-color .2s, color .2s, transform .2s; }
.btn::after { content: "→"; transition: transform .2s; }
.btn:hover::after { transform: translateX(3px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-ink); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--line { border-color: var(--navy); color: var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }
.label { display: block; font-size: 12px; letter-spacing: .25em; color: var(--navy); font-weight: 700; margin-bottom: 8px; }
.link-more { color: var(--navy); font-weight: 700; font-size: 14px; }
.link-more::after { content: " →"; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; background: #fff; transition: border-color .2s, color .2s; }
.chips a:hover { border-color: var(--navy); color: var(--navy); }
.chips a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Sections and cards ---------- */
.sec { padding: 88px 0; }
.sec--soft { background: var(--bg-soft); }
.sec__ttl { font-size: 28px; line-height: 1.5; margin: 0 0 12px; letter-spacing: .04em; }
.sec__lead { color: var(--muted); margin: 0 0 40px; }
.cards { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(16, 38, 84, .14); }
.card__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__en { font-size: 11px; letter-spacing: .2em; color: var(--navy); font-weight: 700; }
.card__ttl { font-size: 18px; margin: 0; }
.card__txt { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.card__more { color: var(--navy); font-weight: 700; font-size: 13px; }
.card__more::after { content: " →"; }
.vt-box { background: #fff; border-radius: var(--radius); padding: 24px; }
.vt-box h2 { font-size: 16px; margin: 0 0 12px; }

/* ---------- Header ---------- */
.vt-hd { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); view-transition-name: vt-header; }
.vt-hd__in { display: flex; align-items: center; justify-content: space-between; height: var(--hd-h); gap: 24px; }
.vt-hd__logo img { height: 34px; width: auto; }
.vt-nav { display: flex; align-items: center; gap: 28px; height: 100%; }
.vt-nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; height: 100%; }
.vt-nav__item { display: flex; align-items: center; position: relative; }
.vt-nav__link { font-size: 14px; font-weight: 700; padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.vt-nav__item:hover > .vt-nav__link, .vt-nav__item:focus-within > .vt-nav__link { color: var(--navy); border-bottom-color: var(--navy); }
.vt-nav__item--mega > .vt-nav__link::after, .vt-nav__item--drop > .vt-nav__link::after { content: " ▾"; font-size: 10px; }
.vt-nav__item--mega { position: static; }
.vt-mega, .vt-drop { visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s, transform .2s; transform: translateY(-6px); }
.vt-nav__item:hover > .vt-mega, .vt-nav__item:focus-within > .vt-mega,
.vt-nav__item:hover > .vt-drop, .vt-nav__item:focus-within > .vt-drop { visibility: visible; opacity: 1; transform: none; }
.vt-mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 16px 32px rgba(16, 38, 84, .12); }
.vt-mega__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 32px 0 36px; }
.vt-mega__cat { display: block; font-weight: 700; font-size: 16px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 2px solid var(--navy); }
.vt-mega__en { display: block; font-size: 10px; letter-spacing: .2em; color: var(--navy); }
.vt-mega ul, .vt-drop { list-style: none; margin: 0; padding: 0; }
.vt-mega li a { display: block; font-size: 13px; padding: 4px 0; color: var(--muted); }
.vt-mega li a:hover, .vt-drop a:hover { color: var(--navy); }
.vt-drop { position: absolute; top: 100%; left: -16px; min-width: 160px; background: #fff; border-radius: 8px; box-shadow: var(--shadow); padding: 8px 0; }
.vt-drop a { display: block; padding: 6px 16px; font-size: 13px; }
.vt-hd__menu { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.vt-hd__menu span, .vt-hd__menu span::before, .vt-hd__menu span::after { display: block; width: 18px; height: 2px; background: var(--ink); margin: auto; position: relative; content: ""; }
.vt-hd__menu span::before { position: absolute; top: -6px; }
.vt-hd__menu span::after { position: absolute; top: 6px; }

/* Mobile drawer (<dialog>) */
.vt-drawer { margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(360px, 88vw); border: 0; padding: 0; background: #fff; }
.vt-drawer::backdrop { background: rgba(13, 27, 51, .5); }
.vt-drawer[open] { animation: vt-drawer-in .25s ease; }
@keyframes vt-drawer-in { from { transform: translateX(100%); } }
.vt-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 700; }
.vt-drawer__close { width: 40px; height: 40px; font-size: 22px; border: 0; background: none; cursor: pointer; }
.vt-drawer__list { list-style: none; margin: 0; padding: 8px 16px 32px; }
.vt-drawer__list > li { border-bottom: 1px solid var(--line); }
.vt-drawer__list a, .vt-drawer__list summary { display: block; padding: 12px 4px; font-weight: 700; cursor: pointer; }
.vt-drawer__list ul { list-style: none; padding: 0 0 8px 12px; margin: 0; }
.vt-drawer__list ul a { font-weight: 400; padding: 6px 4px; font-size: 14px; }
.vt-drawer__list .btn { margin-top: 16px; justify-content: center; }

/* ---------- Breadcrumb and page header ---------- */
.vt-bc { border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.vt-bc ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 0; margin-block: 0; }
.vt-bc li + li::before { content: "›"; margin: 0 6px; color: #aab3c0; }
.vt-bc a { color: var(--navy); }
.vt-phd { background: var(--bg-soft); padding: 44px 0 40px; }
.vt-phd h1 { margin: 0; font-size: 30px; line-height: 1.4; letter-spacing: .03em; }
.vt-phd .muted { display: block; margin-top: 6px; }

/* ---------- Page body (core blocks and legacy blocks from the old theme) ---------- */
.vt-body { padding: 48px 0 72px; }
.vt-body--narrow { max-width: 820px; }
.vt-body > * + * { margin-top: 1.2em; }
.vt-body h2 { font-size: 24px; line-height: 1.5; margin: 2.4em 0 .8em; padding-bottom: 10px; border-bottom: 2px solid var(--line); position: relative; }
.vt-body h2:not([class^="qcsm"])::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: var(--navy); }
.vt-body h3 { font-size: 19px; margin: 2em 0 .6em; padding-left: 12px; border-left: 4px solid var(--navy); line-height: 1.5; }
.vt-body h4 { font-size: 16px; margin: 1.6em 0 .4em; }
.vt-body a:not(.btn):not(.wp-block-button__link):not(.vk_button_link):not([class^="qcsm"]):not(.vt-news__card) { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.vt-body ul:not(.chips), .vt-body ol { padding-left: 1.4em; }
.vt-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vt-body th, .vt-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.vt-body th { background: var(--bg-soft); width: 28%; }
.vt-body .wp-block-table { overflow-x: auto; }
.vt-body .wp-block-image img { border-radius: 8px; }
.vt-body .wp-block-columns { gap: 24px; }
.vt-body iframe { max-width: 100%; }
/* Buttons in content: core, VK Blocks (until replaced) and SANGO */
.vt-body .wp-block-button__link, .vt-body .vk_button_link, .vt-body .sgb-btn a, .vt-body .wp-block-sgb-btn a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px;
  background: var(--navy) !important; color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none !important; border: 0 !important; box-shadow: none !important;
}
.vt-body .vk_button_link::after, .vt-body .wp-block-button__link::after { content: "→"; }
.vt-body .vk_button_link i, .vt-body .vk_button_link .vk_button_link_before, .vt-body .vk_button_link .vk_button_link_after { display: none; }
.vt-body .vk_button { margin: 12px 0; }
/* SANGO separator */
.vt-body .wp-block-sgb-sen { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
/* Full-width alignments */
.vt-body .alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* ---------- News list ---------- */
.vt-news time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.vt-news .tag { font-size: 11px; border: 1px solid var(--navy); color: var(--navy); border-radius: 999px; padding: 1px 10px; white-space: nowrap; }
.navigation.pagination { margin-top: 32px; text-align: center; }
.page-numbers { display: inline-block; padding: 4px 12px; border-radius: 6px; }
.page-numbers.current { background: var(--navy); color: #fff; }

/* ---------- Related links (end of product pages) ---------- */
.vt-related { padding: 48px 0; }
.vt-related__in { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ---------- CTA band and footer ---------- */
.vt-cta { background: linear-gradient(120deg, var(--navy-deep), var(--navy)); color: #fff; padding: 56px 0; }
.vt-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.vt-cta h2 { margin: 0 0 6px; font-size: 24px; }
.vt-cta p { margin: 0; opacity: .85; }
.vt-cta__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.vt-cta__tel { display: grid; line-height: 1.4; }
.vt-cta__tel span { font-size: 12px; opacity: .8; }
.vt-cta__tel b { font-size: 26px; letter-spacing: .04em; }
.vt-cta__tel small { font-size: 12px; opacity: .8; }
.vt-ft { background: #0d1b33; color: #c9d3e3; padding: 56px 0 24px; font-size: 13px; }
.vt-ft__in { display: grid; grid-template-columns: 1fr 2.4fr 1fr; gap: 40px; }
.vt-ft__brand img { height: 44px; width: auto; margin-bottom: 12px; }
.vt-ft h2 { color: #fff; font-size: 13px; margin: 0 0 12px; letter-spacing: .1em; }
.vt-ft ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 6px; }
.vt-ft a:hover { color: #fff; text-decoration: underline; }
.vt-ft__cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.vt-ft__cat { display: block; color: #fff; font-weight: 700; margin-bottom: 8px; }
.vt-ft__cats ul { font-size: 12px; }
.vt-ft__copy { border-top: 1px solid rgba(255, 255, 255, .12); margin: 32px 0 0; padding-top: 16px; text-align: center; color: #8d9bb2; }
.vt-fixbar { display: none; }

/* ---------- Motion: page transitions and reveal on scroll (decorative, reduced-motion aware) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .vt-reveal {
      animation: vt-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
  /* Fallback (js/site.js adds .vt-io when scroll-driven animations are missing) */
  .vt-io .vt-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 80ms); }
  .vt-io .vt-reveal.is-in { opacity: 1; transform: none; }
}
@keyframes vt-reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive (keep after the base rules) ---------- */
@media (max-width: 1024px) {
  .vt-nav__list { gap: 18px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .vt-ft__in { grid-template-columns: 1fr 1fr; }
  .vt-ft__products { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 768px) {
  :root { --hd-h: 60px; }
  body { font-size: 14px; padding-bottom: 64px; }
  .vt-hd__logo img { height: 26px; }
  .vt-nav { display: none; }
  .vt-hd__menu { display: block; }
  .sec { padding: 56px 0; }
  .sec__ttl { font-size: 22px; }
  .sec__lead { margin-bottom: 28px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .vt-phd { padding: 28px 0 24px; }
  .vt-phd h1 { font-size: 23px; }
  .vt-body { padding: 32px 0 48px; }
  .vt-body h2 { font-size: 20px; }
  .vt-body h3 { font-size: 17px; }
  .vt-body th { width: 34%; }
  .vt-related__in { grid-template-columns: 1fr; }
  .vt-cta__in { flex-direction: column; align-items: flex-start; }
  .vt-ft__in, .vt-ft__cats { grid-template-columns: 1fr; gap: 20px; }
  .vt-fixbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(16, 38, 84, .08); padding-bottom: env(safe-area-inset-bottom); view-transition-name: vt-fixbar; }
  .vt-fixbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 10px; font-size: 11px; font-weight: 700; }
  .vt-fixbar span { font-size: 18px; line-height: 1; color: var(--navy); }
  .vt-fixbar a:last-child { background: var(--accent); color: #fff; }
  .vt-fixbar a:last-child span { color: #fff; }
}

/* Document links (PDF): same look on every page */
.vt-body a[href$=".pdf" i]:not(.vk_button_link):not(.wp-block-button__link) { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; font-weight: 700; font-size: 14px; }
.vt-body a[href$=".pdf" i]:not(.vk_button_link):not(.wp-block-button__link)::before { content: "PDF"; font-size: 10px; letter-spacing: .05em; color: #fff; background: #d13b2f; border-radius: 4px; padding: 2px 6px; }
.vt-body a[href$=".pdf" i]:hover { border-color: var(--navy); }
.vt-body .vk_button_link[href$=".pdf" i]::before { content: "PDF"; font-size: 10px; background: #fff; color: #d13b2f; border-radius: 4px; padding: 1px 5px; }

/* Page header with the featured image */
.vt-phd__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.vt-phd--photo { position: relative; color: #fff; background: #0c214d var(--vt-phd-img) center / cover no-repeat; padding: 72px 0 64px; }
.vt-phd--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 33, 77, .92) 0%, rgba(12, 33, 77, .72) 45%, rgba(12, 33, 77, .2) 100%); }
.vt-phd--photo .vt-phd__in { position: relative; }
.vt-phd--photo .label { color: #9fc0ff; }
.vt-phd--photo h1 { text-shadow: 0 2px 12px rgba(0, 0, 0, .3); max-width: 22em; }
.vt-phd--shot { background: linear-gradient(120deg, #0c214d, var(--navy)); color: #fff; padding: 32px 0; }
.vt-phd--shot .label { color: #9fc0ff; }
.vt-phd__shot { width: auto; max-width: 42%; max-height: 220px; border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
@media (max-width: 768px) {
  .vt-phd--photo { padding: 48px 0 40px; background-position: 70% center; }
  .vt-phd--photo::before { background: linear-gradient(90deg, rgba(12, 33, 77, .9), rgba(12, 33, 77, .55)); }
  .vt-phd__in { flex-direction: column; align-items: flex-start; gap: 16px; }
  .vt-phd__shot { max-width: 100%; max-height: 180px; }
}

/* Headings: never break inside a word ("Nxウィットネ／ス"). Break at spaces and Japanese phrase boundaries; very long runs still wrap */
h1, h2, h3, h4, .card__ttl, .vt-brand__body b, .vt-map__node b, .vt-index__ttl, .vt-role header b, .vt-arch__node b, .vt-timeline__head {
  word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance;
}
@supports (word-break: auto-phrase) {
  h1, h2, h3, h4, .card__ttl, .vt-brand__body b, .vt-map__node b, .vt-index__ttl, .vt-role header b, .vt-arch__node b, .vt-timeline__head { word-break: auto-phrase; }
}
.vt-phd--photo h1 { max-width: 26em; }

/* News cards */
.vt-news { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vt-news__card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.vt-news__card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(16, 38, 84, .14); }
.vt-news__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vt-news__body { display: grid; gap: 8px; padding: 16px 18px 20px; }
.vt-news__meta { display: flex; gap: 10px; align-items: center; }
.vt-news__ttl { font-weight: 700; line-height: 1.6; }
.vt-phd__date { display: block; margin-top: 8px; opacity: .85; }
@media (max-width: 960px) { .vt-news { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .vt-news { grid-template-columns: 1fr; } }

/* Sitemap boxes come with their own heading style */
.vt-body h2[class^="qcsm"] { border-bottom: 0; padding-bottom: 0; margin: 0; }

/* reCAPTCHA badge hidden: the Forms embed shows Google's required notice text instead */
.grecaptcha-badge { visibility: hidden !important; }
