/* ヘカテの製品情報・活用LP専用。共通の色・書体・余白を継承する。 */
@layer components {
  .hekate-shell {
    width: 100%;
    max-width: calc(var(--max-width) + 2 * var(--page-gutter));
    margin-inline: auto;
    padding-inline: var(--page-gutter);
  }
  .hekate-page main { padding-bottom: 0; }
  .hekate-page main :is(h1, h2, h3) { text-wrap: balance; }
  .hekate-page h3 { color: var(--color-primary-dark); font-size: 21px; line-height: 1.6; }
  .hekate-page .section { scroll-margin-top: 80px; }
  .hekate-page img[data-zoomable] { pointer-events: auto; }
  .hekate-page .medium-zoom-image--opened { object-fit: contain; }
  .hekate-page main p { line-height: 1.9; }
  .hekate-page .hero { padding-block: 40px; }
  .hekate-page .hero h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.5; letter-spacing: .025em; }
  .hekate-page .hero__actions .site-button { padding-inline: 24px; }
  .hekate-page .hero__product { margin-top: 24px; font-size: 15px; }
  .hekate-page .hero__product strong { font-size: 21px; color: var(--color-primary-dark); }
  .hekate-copy > * + * { margin-top: 20px; }
  .hekate-copy > h3:not(:first-child) { margin-top: 32px; }
  .hekate-note { color: var(--color-text-muted); font-size: 14px; line-height: 1.8; }
  .hekate-kicker { margin-bottom: 16px; font-size: 14px; color: var(--color-primary); }
  .hekate-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; text-decoration: underline; text-underline-offset: 4px; }
  .hekate-copy a, .hekate-note a, .hekate-figure figcaption a { text-decoration: underline; text-underline-offset: 4px; }
  .hekate-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 48px; }
  .hekate-split--top { align-items: start; }
  .hekate-figure { min-width: 0; margin: 0; }
  .hekate-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
  .hekate-figure figcaption { margin-top: 12px; color: var(--color-text-muted); font-size: 14px; line-height: 1.8; }
  .hekate-figure figcaption a { display: inline-flex; align-items: center; min-height: 44px; }
  .hekate-product-photo { padding: 24px; background: var(--color-bg-cool); border-radius: var(--radius-hero); }
  .hekate-field-photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 38% center; }
  .hekate-summary { margin-top: 24px; font-size: 14px; }
  .hekate-summary > div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--color-border); }
  .hekate-summary dt { color: var(--color-primary-dark); font-weight: 500; }
  .hekate-index { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 16px; border-block: 1px solid var(--color-border); }
  .hekate-index a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
  .hekate-origin { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 16px; border-block: 1px solid var(--color-border); font-size: 14px; }
  .hekate-origin .hekate-link { margin: 0; }
  .hekate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .hekate-grid > div { padding-top: 24px; border-top: 1px solid var(--color-border); }
  .hekate-grid h3 { margin-bottom: 16px; }
  .hekate-grid .icon-svg { width: 28px; height: 28px; margin-bottom: 20px; color: var(--color-primary); }
  .hekate-video-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 48px; }
  .hekate-video-intro .video-trigger { max-width: none; }
  .hekate-video-intro .section-title { margin-bottom: 24px; }
  .hekate-video-intro .video-trigger__label { text-decoration: underline; text-underline-offset: 4px; }
  .video-trigger.hekate-video-link { display: inline-flex; align-items: center; gap: 8px; width: auto; max-width: 100%; min-height: 44px; margin: 16px 0 0; text-align: left; color: var(--color-primary-dark); font: inherit; font-size: 15px; }
  .hekate-video-link svg { flex-shrink: 0; }
  .hekate-video-link span { text-decoration: underline; text-underline-offset: 4px; }
  /* このCSSを読むヘカテ4ページだけ、縦持ち端末で字幕と操作バーの余白を確保する。 */
  @media (max-width: 767px) and (min-height: 500px) {
    .video-modal .video-modal__frame { aspect-ratio: 1; }
    .video-modal .video-modal__video { object-fit: contain; object-position: center top; background: #fff; }
    .video-modal__video::cue { font-size: 3.1vw; }
  }
  .hekate-table { width: 100%; margin-block: 32px 20px; border-collapse: collapse; table-layout: fixed; }
  .hekate-table caption { margin-bottom: 16px; color: var(--color-primary-dark); text-align: left; font-weight: 700; }
  .hekate-table :is(th, td) { padding: 18px 20px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
  .hekate-table th[scope="row"] { width: 32%; font-weight: 500; }
  .hekate-table thead th { background: var(--color-bg-cool); font-weight: 500; }
  .hekate-table--sizes th:first-child { width: 32%; }
  .hekate-table--sizes th:nth-child(2) { width: 48%; }
  .hekate-list { padding-left: 1.25em; list-style: disc; }
  .hekate-list li + li { margin-top: 12px; }
  .hekate-conditions { padding: 28px 32px; background: var(--color-bg-cool); border-radius: var(--radius-md); }
  .hekate-conditions h3 { margin-bottom: 20px; }
  .hekate-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 36px; counter-reset: hekate-step; }
  .hekate-steps li { counter-increment: hekate-step; padding-top: 24px; border-top: 1px solid var(--color-border); }
  .hekate-steps li::before { content: "0" counter(hekate-step); display: block; margin-bottom: 12px; color: var(--color-primary); font-size: 14px; }
  .hekate-steps h3 { margin-bottom: 12px; }
  .hekate-steps + .hekate-note { margin-top: 24px; }
  .hekate-screen { padding: 24px; background: var(--color-bg-cool); border-radius: var(--radius-md); }
  .hekate-screen img { border-radius: 0; }
  .hekate-case { padding: 32px; border: 1px solid var(--color-border); border-radius: var(--radius-hero); }
  .hekate-case + .hekate-copy { margin-top: 32px; }
  .hekate-case-map img { max-width: 424px; margin-inline: auto; border-radius: 0; }
  .hekate-documents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .hekate-document { display: block; padding: 28px; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
  .hekate-document:hover { border-color: var(--color-primary); }
  .hekate-document strong { display: block; margin-bottom: 12px; text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
  .hekate-document small { display: block; color: var(--color-text-muted); font-size: 14px; }
  .hekate-documents + .hekate-note { margin-top: 24px; }
  .hekate-page .dads-accordion { border-top: 1px solid var(--color-border); }
  .hekate-page .dads-accordion:last-child { border-bottom: 1px solid var(--color-border); }
  .hekate-page .dads-accordion__summary { font-size: 17px; padding-block: 24px; }
  .hekate-page .dads-accordion__content { padding-bottom: 24px; }
  .hekate-contact { margin-top: var(--section-gap); padding-block: 56px; background: var(--color-bg-cool); border-top: 1px solid var(--color-border); }
  .hekate-contact h2 { margin-bottom: 20px; color: var(--color-primary-dark); font-size: 32px; line-height: 1.6; }
  .hekate-contact .hekate-list { margin-block: 24px; }
  .hekate-contact .cta-band__actions { justify-content: flex-start; margin-top: 28px; }
  .hekate-contact .hekate-note { margin-top: 24px; }
  /* 英語は単語間で折り返し、日本語用の字間を引き継がない。 */
  html[lang="en"] .hekate-page .hero h1 { letter-spacing: 0; }
  html[lang="en"] .hekate-page main p { line-height: 1.8; }
  html[lang="en"] .hekate-page :is(h1, h2, h3, .hekate-link, .site-button) { overflow-wrap: break-word; }
  html[lang="en"] .hekate-page .hekate-table :is(th, td) { overflow-wrap: break-word; }
  @media (max-width: 1024px) {
    .hekate-split { gap: 32px; }
    .hekate-video-intro { grid-template-columns: 1fr; gap: 28px; }
    .hekate-documents { grid-template-columns: 1fr; }
  }
  @media (max-width: 767px) {
    .hekate-page .hero { padding-block: 28px 32px; }
    .hekate-page .hero h1 { font-size: 30px; }
    .hekate-page .hero__actions .site-button { width: 100%; }
    .hekate-split, .hekate-grid, .hekate-steps, .hekate-video-intro { grid-template-columns: 1fr; gap: 28px; }
    .hekate-product-photo, .hekate-screen, .hekate-case { padding: 20px; }
    .hekate-field-photo img { aspect-ratio: 16 / 10; }
    .hekate-table { font-size: 14px; }
    .hekate-table :is(th, td) { padding: 12px 8px; }
    .hekate-table th[scope="row"] { width: 36%; }
    .hekate-table--sizes th:first-child { width: 34%; }
    .hekate-table--sizes th:nth-child(2) { width: 44%; }
    .hekate-conditions { padding: 24px 20px; }
    .hekate-document { padding: 24px; }
    .hekate-contact { padding-block: 40px; }
    .hekate-contact h2 { font-size: 26px; }
  }
}
