/* TATEKOH の製品情報・活用LP。管内測量管理支援システムの構成に合わせ、色・書体・基本部品はサイト共通の定義を使う。 */
@layer components {
  .tatekoh-shell {
    width: 100%;
    max-width: calc(var(--max-width) + 2 * var(--page-gutter));
    margin-inline: auto;
    padding-inline: var(--page-gutter);
  }
  .tatekoh-page main { padding-bottom: 0; }
  .tatekoh-page main :is(h1, h2, h3) { text-wrap: balance; }
  .tatekoh-page main p { line-height: 1.9; }
  .tatekoh-page h3 { color: var(--color-primary-dark); font-size: 21px; line-height: 1.6; }
  .tatekoh-page .section { scroll-margin-top: 80px; }
  .tatekoh-page .hero { padding-block: 40px; }
  .tatekoh-page .hero h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.5; letter-spacing: .025em; }
  .tatekoh-page .hero__actions .site-button { padding-inline: 24px; }
  .tatekoh-page .hero__product { margin-top: 24px; font-size: 15px; }
  .tatekoh-page .hero__product strong { display: block; font-size: 21px; color: var(--color-primary-dark); }
  .tatekoh-copy > * + * { margin-top: 20px; }
  .tatekoh-copy > h3:not(:first-child) { margin-top: 32px; }
  .tatekoh-note { color: var(--color-text-muted); font-size: 14px; line-height: 1.8; }
  .tatekoh-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; text-decoration: underline; text-underline-offset: 4px; }
  .tatekoh-copy a, .tatekoh-note a, .tatekoh-figure figcaption a { text-decoration: underline; text-underline-offset: 4px; }
  .tatekoh-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 48px; }
  .tatekoh-figure { min-width: 0; margin: 0; }
  .tatekoh-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
  .tatekoh-figure figcaption { margin-top: 12px; color: var(--color-text-muted); font-size: 14px; line-height: 1.8; }
  .tatekoh-figure figcaption a { display: inline-flex; align-items: center; min-height: 44px; }
  /* 冒頭の写真（電柱のデータ管理ユニット）は、扉の内側の古い呼び名の紙が写らないよう、左の箱の部分だけに切り取った縦長の写真（326×435。2026-11-04 依頼者の選択）。
     元の写真が小さいので、枠の幅いっぱいに引き伸ばさず、幅 420px までにして列の中央に置く（1023px 以下の max-width: 760px より強い指定にする）。 */
  .tatekoh-page .hero > .tatekoh-figure.tatekoh-photo { width: 100%; max-width: 420px; justify-self: center; }
  .tatekoh-diagram { margin-top: 40px; }
  .tatekoh-diagram img { border: 1px solid var(--color-border); background: var(--color-white); }
  .tatekoh-page img[data-zoomable] { pointer-events: auto; }
  .tatekoh-page .medium-zoom-image--opened { object-fit: contain; }
  .tatekoh-summary { margin-top: 24px; font-size: 14px; }
  .tatekoh-summary > div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--color-border); }
  .tatekoh-summary dt { color: var(--color-primary-dark); font-weight: 500; }
  .tatekoh-index { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 16px; border-block: 1px solid var(--color-border); }
  .tatekoh-index a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
  .tatekoh-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; }
  .tatekoh-origin .tatekoh-link { margin: 0; }
  .tatekoh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .tatekoh-grid > div { padding-top: 24px; border-top: 1px solid var(--color-border); }
  .tatekoh-grid h3 { margin-bottom: 16px; }
  .tatekoh-list { padding-left: 1.25em; list-style: disc; }
  .tatekoh-list li + li { margin-top: 12px; }
  .tatekoh-conditions { padding: 28px 32px; background: var(--color-bg-cool); border-radius: var(--radius-md); }
  .tatekoh-conditions h3 { margin-bottom: 16px; }
  .tatekoh-document { display: block; padding: 28px; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
  .tatekoh-document:hover { border-color: var(--color-primary); }
  .tatekoh-document + .tatekoh-note { margin-top: 12px; }
  .tatekoh-document strong { display: block; margin-bottom: 8px; text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
  .tatekoh-document small { color: var(--color-text-muted); font-size: 14px; }
  .tatekoh-development { margin-top: 28px; }
  .tatekoh-page .dads-accordion { border-top: 1px solid var(--color-border); }
  .tatekoh-page .dads-accordion:last-child { border-bottom: 1px solid var(--color-border); }
  .tatekoh-page .dads-accordion__summary { font-size: 17px; padding-block: 24px; }
  .tatekoh-page .dads-accordion__content { padding-bottom: 24px; }
  .tatekoh-contact { margin-top: var(--section-gap); padding-block: 56px; background: var(--color-bg-cool); border-top: 1px solid var(--color-border); }
  .tatekoh-contact h2 { margin-bottom: 20px; color: var(--color-primary-dark); font-size: 32px; line-height: 1.6; }
  .tatekoh-contact .cta-band__actions { justify-content: flex-start; margin-top: 28px; }
  @media (max-width: 1023px) {
    .tatekoh-page .hero { grid-template-columns: 1fr; gap: 32px; }
    .tatekoh-page .hero > .tatekoh-figure { max-width: 760px; }
    .tatekoh-split { gap: 32px; }
  }
  @media (max-width: 767px) {
    .tatekoh-page .hero { padding-block: 28px 32px; }
    .tatekoh-page .hero h1 { font-size: clamp(26px, 7.5vw, 30px); }
    .tatekoh-page .hero__actions .site-button { width: 100%; }
    .tatekoh-page .section-title { font-size: 27px; line-height: 1.6; }
    .tatekoh-split, .tatekoh-grid { grid-template-columns: 1fr; gap: 28px; }
    .tatekoh-conditions, .tatekoh-document { padding: 24px 20px; }
    .tatekoh-contact { padding-block: 40px; }
    .tatekoh-contact h2 { font-size: 26px; }
    .tatekoh-contact .site-button { width: 100%; }
  }
}
/* TATEKOH 固有: できることの枠・ユニットの並び・導入の段階・3者の窓口・ヒーローの写真枠 */
@layer components {
  .tatekoh-photo { padding: 24px; background: var(--color-bg-cool); border-radius: var(--radius-hero); }
  .tatekoh-photo img { border: 1px solid var(--color-border); }
  .tatekoh-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .tatekoh-reading { font-size: .6em; font-weight: 500; letter-spacing: 0; }
  .tatekoh-record { margin-top: 32px; padding: 24px 28px; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
  .tatekoh-record h3 { margin-bottom: 8px; font-size: 18px; }
  .tatekoh-features > div { padding: 24px; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
  .tatekoh-features > div:first-child { grid-column: span 2; }
  .tatekoh-features h3 { margin-bottom: 12px; font-size: 18px; }
  .tatekoh-features p { font-size: 15px; }
  .tatekoh-features + .tatekoh-note { margin-top: 20px; }
  .tatekoh-stage { margin-top: 32px; color: var(--color-primary-dark); font-size: 18px; font-weight: 700; }
  .tatekoh-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
  .tatekoh-units figure { margin: 0; }
  .tatekoh-units img { display: block; width: 100%; height: 240px; object-fit: contain; padding: 12px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-white); }
  .tatekoh-units figcaption { margin-top: 10px; font-size: 15px; line-height: 1.7; }
  .tatekoh-units figcaption strong { display: block; color: var(--color-primary-dark); font-weight: 500; }
  .tatekoh-units figcaption > span { display: block; color: var(--color-text-muted); font-size: 14px; }
  .tatekoh-badge { display: inline-block; margin-left: 6px; padding: 0 8px; border: 1px solid var(--color-primary); border-radius: 4px; color: var(--color-primary); font-size: 12px; line-height: 1.7; vertical-align: 1px; }
  .tatekoh-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: tatekoh-step; }
  .tatekoh-steps li { counter-increment: tatekoh-step; padding-top: 24px; border-top: 1px solid var(--color-border); }
  .tatekoh-steps li::before { content: "0" counter(tatekoh-step); display: block; margin-bottom: 12px; color: var(--color-primary); font-size: 14px; }
  .tatekoh-steps h3 { margin-bottom: 12px; font-size: 18px; }
  .tatekoh-steps p { font-size: 15px; }
  .tatekoh-purchase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 32px; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
  .tatekoh-purchase h3 { font-size: 18px; }
  .tatekoh-scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
  .tatekoh-scenes img { aspect-ratio: 3 / 2; object-fit: contain; background: var(--color-white); }
  .tatekoh-scenes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; }
  .tatekoh-scenes--2 img { aspect-ratio: 4 / 3; object-fit: cover; }
  .tatekoh-figure + .tatekoh-steps { margin-top: 40px; }
  .tatekoh-contact .cta-band__actions { flex-wrap: wrap; gap: 16px 32px; }
  /* 英語は単語間で折り返し、日本語用の字間を引き継がない。製品名 S-Lead はハイフンで割らない。 */
  html[lang="en"] .tatekoh-page .hero h1 { letter-spacing: 0; }
  html[lang="en"] .tatekoh-page main p { line-height: 1.8; }
  html[lang="en"] .tatekoh-page :is(h1, h2, h3, .tatekoh-link, .site-button) { overflow-wrap: break-word; }
  html[lang="en"] .tatekoh-summary > div { grid-template-columns: 7.5em minmax(0, 1fr); }
  .tatekoh-name { white-space: nowrap; }
  /* 紹介動画の導線（ケーブルウィザード css/cwiz.css と同じ指定。2026-11-04）。LPは課題の次の節にサムネイル、製品ページは冒頭のボタンの下に再生リンク */
  .tatekoh-kicker { margin-bottom: 16px; font-size: 14px; color: var(--color-primary); }
  .tatekoh-video-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 48px; }
  .tatekoh-video-intro .video-trigger { max-width: none; }
  .tatekoh-video-intro .section-title { margin-bottom: 24px; }
  .tatekoh-video-intro .video-trigger__label { text-decoration: underline; text-underline-offset: 4px; }
  .video-trigger.tatekoh-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; }
  .tatekoh-video-link svg { flex-shrink: 0; }
  .tatekoh-video-link span { text-decoration: underline; text-underline-offset: 4px; }
  /* このCSSを読むTATEKOHのページだけ、縦持ち端末で字幕と操作バーの余白を確保する（ケーブルウィザードと同じ値）。 */
  @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; }
  }
  @media (max-width: 1023px) {
    .tatekoh-video-intro { grid-template-columns: 1fr; gap: 28px; }
  }
  @media (max-width: 1023px) {
    .tatekoh-features, .tatekoh-units { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tatekoh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tatekoh-purchase { grid-template-columns: 1fr; gap: 28px; }
  }
  @media (max-width: 767px) {
    .tatekoh-features, .tatekoh-scenes, .tatekoh-steps { grid-template-columns: 1fr; gap: 16px; }
    .tatekoh-features > div { padding: 20px; }
    .tatekoh-features > div:first-child { grid-column: auto; }
    .tatekoh-units { gap: 16px; }
    .tatekoh-units img { height: 180px; padding: 8px; }
    .tatekoh-purchase { padding: 20px; }
  }
}
