/* 構造物モニタの製品情報・活用LP。ペネログの構成に合わせ、色・書体・基本部品はサイト共通の定義を使う。 */
@layer components {
  .smon-shell {
    width: 100%;
    max-width: calc(var(--max-width) + 2 * var(--page-gutter));
    margin-inline: auto;
    padding-inline: var(--page-gutter);
  }
  .smon-page main { padding-bottom: 0; }
  .smon-page main :is(h1, h2, h3) { text-wrap: balance; }
  .smon-page main p { line-height: 1.9; }
  .smon-page h3 { color: var(--color-primary-dark); font-size: 21px; line-height: 1.6; }
  .smon-page .section { scroll-margin-top: 80px; }
  .smon-page .hero { padding-block: 40px; }
  .smon-page .hero h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.5; letter-spacing: .025em; }
  .smon-page .hero__actions .site-button { padding-inline: 24px; }
  .smon-page .hero__product { margin-top: 24px; font-size: 15px; }
  .smon-page .hero__product strong { display: block; font-size: 21px; color: var(--color-primary-dark); }
  .smon-copy > * + * { margin-top: 20px; }
  .smon-copy > h3:not(:first-child) { margin-top: 32px; }
  .smon-note { color: var(--color-text-muted); font-size: 14px; line-height: 1.8; }
  .smon-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; text-decoration: underline; text-underline-offset: 4px; }
  .smon-copy a, .smon-note a, .smon-figure figcaption a { text-decoration: underline; text-underline-offset: 4px; }
  .smon-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 48px; }
  .smon-figure { min-width: 0; margin: 0; }
  .smon-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
  .smon-figure figcaption { margin-top: 12px; color: var(--color-text-muted); font-size: 14px; line-height: 1.8; }
  .smon-figure figcaption a { display: inline-flex; align-items: center; min-height: 44px; }
  .smon-diagram { margin-top: 40px; }
  .smon-diagram img { border: 1px solid var(--color-border); background: var(--color-white); }
  .smon-page img[data-zoomable] { pointer-events: auto; }
  .smon-page .medium-zoom-image--opened { object-fit: contain; }
  /* 紹介資料のスライド（文字が細かいので 960px で見せる）。components.css の .main-image と .hero-slideshow は 700px。両方とも広げ、.main-image の左右の余白 10px も外す */
  .smon-page #slides .main-image { max-width: 960px; padding: 0; }
  .smon-page #slides .hero-slideshow { max-width: 960px; }
  /* 表紙など白地の多いスライドがページの白地に溶けないよう、画像に枠線を付ける */
  .smon-page #slides .hero-slideshow__img { border: 1px solid var(--color-border-strong); }
  .smon-summary { margin-top: 24px; font-size: 14px; }
  .smon-summary > div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--color-border); }
  .smon-summary dt { color: var(--color-primary-dark); font-weight: 500; }
  .smon-index { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 16px; border-block: 1px solid var(--color-border); }
  .smon-index a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
  .smon-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; }
  .smon-origin .smon-link { margin: 0; }
  .smon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .smon-grid > div { padding-top: 24px; border-top: 1px solid var(--color-border); }
  .smon-grid h3 { margin-bottom: 16px; }
  /* 紹介動画の導線（ペネログ・Sリードと同じ指定）。LPは課題の次の節にサムネイル、製品ページは冒頭のボタンの下に再生リンク */
  .smon-kicker { margin-bottom: 16px; font-size: 14px; color: var(--color-primary); }
  .smon-video-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 48px; }
  .smon-video-intro .video-trigger { max-width: none; }
  .smon-video-intro .section-title { margin-bottom: 24px; }
  .smon-video-intro .video-trigger__label { text-decoration: underline; text-underline-offset: 4px; }
  .video-trigger.smon-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; }
  .smon-video-link svg { flex-shrink: 0; }
  .smon-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; }
  }
  .smon-flow { padding: 28px 32px; background: var(--color-bg-cool); border-radius: var(--radius-md); counter-reset: smon-flow; }
  .smon-flow li { position: relative; counter-increment: smon-flow; padding-left: 44px; }
  .smon-flow li + li { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--color-border); }
  .smon-flow li::before { content: "0" counter(smon-flow); position: absolute; left: 0; color: var(--color-primary); font-size: 16px; }
  .smon-flow p { margin-top: 8px; font-size: 15px; }
  .smon-table { width: 100%; margin-block: 28px 20px; border-collapse: collapse; table-layout: fixed; }
  .smon-table caption { margin-bottom: 16px; color: var(--color-primary-dark); text-align: left; font-weight: 700; }
  .smon-table :is(th, td) { padding: 18px 20px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
  .smon-table th[scope="row"] { width: 30%; font-weight: 500; color: var(--color-primary-dark); }
  .smon-list { padding-left: 1.25em; list-style: disc; }
  .smon-list li + li { margin-top: 12px; }
  .smon-conditions { padding: 28px 32px; background: var(--color-bg-cool); border-radius: var(--radius-md); }
  .smon-conditions h3 { margin-bottom: 16px; }
  .smon-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: smon-step; }
  .smon-steps li { counter-increment: smon-step; padding-top: 24px; border-top: 1px solid var(--color-border); }
  .smon-steps li::before { content: "0" counter(smon-step); display: block; margin-bottom: 12px; color: var(--color-primary); font-size: 14px; }
  .smon-steps h3 { margin-bottom: 12px; }
  .smon-steps p + p { margin-top: 12px; }
  .smon-steps + .smon-note { margin-top: 24px; }
  .smon-document { display: block; padding: 28px; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
  .smon-document:hover { border-color: var(--color-primary); }
  .smon-document strong { display: block; margin-bottom: 8px; text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
  .smon-document small { color: var(--color-text-muted); font-size: 14px; }
  .smon-development { margin-top: 28px; }
  .smon-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
  .smon-services > div { padding: 24px; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
  .smon-services h3 { margin-bottom: 12px; font-size: 18px; }
  .smon-services p { font-size: 15px; }
  /* LPの特長（5項目）は最後の行に空きを作らない。1024px以上は6列の格子で上の3項目を2列ずつ・下の2項目を3列ずつ、768〜1023pxは2列の最後の1項目を2列分にする（767px以下の1列は下の @media (max-width: 767px) の規則のまま） */
  @media (min-width: 1024px) {
    #features .smon-services { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    #features .smon-services > div { grid-column: span 2; }
    #features .smon-services > div:nth-child(n+4) { grid-column: span 3; }
  }
  @media (min-width: 768px) and (max-width: 1023px) {
    #features .smon-services > div:last-child { grid-column: span 2; }
  }
  .smon-parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
  .smon-parts figure { margin: 0; text-align: center; }
  .smon-parts img { display: block; width: 100%; height: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; }
  .smon-parts figcaption { margin-top: 10px; color: var(--color-text-muted); font-size: 14px; }
  .smon-page .dads-accordion { border-top: 1px solid var(--color-border); }
  .smon-page .dads-accordion:last-child { border-bottom: 1px solid var(--color-border); }
  .smon-page .dads-accordion__summary { font-size: 17px; padding-block: 24px; }
  .smon-page .dads-accordion__content { padding-bottom: 24px; }
  .smon-contact { margin-top: var(--section-gap); padding-block: 56px; background: var(--color-bg-cool); border-top: 1px solid var(--color-border); }
  .smon-contact h2 { margin-bottom: 20px; color: var(--color-primary-dark); font-size: 32px; line-height: 1.6; }
  .smon-contact .smon-list { margin-block: 24px; }
  .smon-contact .cta-band__actions { justify-content: flex-start; margin-top: 28px; }
  /* 英語は単語間で折り返し、日本語用の字間を引き継がない。要約の項目名と構成品名は日本語より長い。 */
  html[lang="en"] .smon-page .hero h1 { letter-spacing: 0; }
  html[lang="en"] .smon-page main p { line-height: 1.8; }
  html[lang="en"] .smon-page :is(h1, h2, h3, .smon-link, .site-button) { overflow-wrap: break-word; }
  html[lang="en"] .smon-summary > div { grid-template-columns: 9em minmax(0, 1fr); }
  html[lang="en"] .smon-table :is(th, td) { overflow-wrap: break-word; }
  .smon-name { white-space: nowrap; }
  @media (max-width: 1023px) {
    .smon-page .hero { grid-template-columns: 1fr; gap: 32px; }
    .smon-page .hero > .smon-figure { max-width: 760px; }
    .smon-split { gap: 32px; }
    .smon-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .smon-video-intro { grid-template-columns: 1fr; gap: 28px; }
  }
  @media (max-width: 767px) {
    .smon-page .hero { padding-block: 28px 32px; }
    .smon-page .hero h1 { font-size: clamp(26px, 7.5vw, 30px); }
    .smon-page .hero__actions .site-button { width: 100%; }
    .smon-page .section-title { font-size: 27px; line-height: 1.6; }
    .smon-split, .smon-grid, .smon-steps, .smon-services, .smon-video-intro { grid-template-columns: 1fr; gap: 28px; }
    .smon-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .smon-table { font-size: 14px; }
    .smon-table :is(th, td) { padding: 12px 8px; }
    .smon-table th[scope="row"] { width: 36%; }
    html[lang="en"] .smon-table th[scope="row"] { width: 42%; }
    .smon-conditions, .smon-flow, .smon-document { padding: 24px 20px; }
    .smon-contact { padding-block: 40px; }
    .smon-contact h2 { font-size: 26px; }
    .smon-contact .site-button { width: 100%; }
  }
}
