@charset "UTF-8";
/* ==========================================================================
   株式会社ビジョンテック リニューアル版 共通スタイル
   作成：2026-11-16（試作）
   --------------------------------------------------------------------------
   ・ホームページビルダーは使わず、手書きで管理する前提のCSS
   ・スマホ優先（モバイルファースト）で書き、画面が広いときの指定を
     @media (min-width: …) で後から足している
   ・色や余白は、下の「:root」の変数をまとめて変えれば、サイト全体に反映される
   ・目次
       1. 変数（色・フォント・幅）
       2. 基本設定（リセット・本文）
       3. 共通パーツ（ボタン・見出し・セクション）
       4. ヘッダー・ナビゲーション
       5. トップ：ヒーロー（RGB/NDVI 比較スライダー）
       6. トップ：事業領域・製品・ニュース・数字
       7. 下層ページ共通（ページタイトル・表・タイムライン）
       8. 製品ページ（散布の助）
       9. お問い合わせ帯・フッター
      10. 動画ポップアップ
      11. ユーティリティ
      12. 本文ページ（.prose）・製品一覧・お問い合わせフォーム ※11の前に置いている
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 変数
   -------------------------------------------------------------------------- */
:root {
  /* 基本色：濃紺（宇宙・信頼感）を主に、緑（植生）と水色（衛星・データ）を差し色に使う */
  --c-navy: #0b2545;
  --c-navy-2: #13315c;
  --c-green: #2ba84a;
  --c-green-dark: #1f8a3b;
  --c-blue: #1e88c8;
  --c-bg: #f4f7fa;          /* 薄いグレーの背景（セクションを交互に塗り分ける） */
  --c-line: #dde4ec;        /* 罫線 */
  --c-text: #1b2733;        /* 本文の文字色 */
  --c-muted: #5b6b7a;       /* 補足文の文字色 */
  --c-white: #fff;

  /* フォント：日本語は Noto Sans JP、英字の小見出しは Montserrat */
  --f-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --f-en: "Montserrat", "Noto Sans JP", sans-serif;

  /* レイアウト */
  --w-content: 1340px;      /* 本文の最大幅（左右の余白20pxずつを含む。中身は1300px）。2026-11-20：1160px → 1340px（PCで中央に寄って見えるとの意見） */
  --header-h: 64px;         /* ヘッダーの高さ（スマホ） */
  --radius: 10px;
  --shadow: 0 6px 24px rgba(11, 37, 69, .08);
  --shadow-hover: 0 12px 32px rgba(11, 37, 69, .16);
}
@media (min-width: 1024px) {
  :root { --header-h: 80px; }
}

/* --------------------------------------------------------------------------
   2. 基本設定
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-base);
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-text);
  background: var(--c-white);
  letter-spacing: .02em;
  /* ヘッダーを画面上部に固定しているので、その分だけ本文を下げる */
  padding-top: var(--header-h);
}
@media (min-width: 768px) { body { font-size: 16px; } }
img, video { max-width: 100%; height: auto; display: block; }
/* hidden を付けた要素は必ず隠す（2026-12-01 追加）
   上の display: block が hidden より強く、画像のポップアップで、隠したはずの動画プレーヤー（黒い枠）まで
   表示されていたため（main.js の 8. ポップアップは、画像のときは動画を hidden にしている） */
[hidden] { display: none !important; }
a { color: var(--c-blue); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--c-navy); }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
/* キーボード操作時にフォーカス位置が分かるようにする */
:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 2px; }

/* 画面読み上げソフト向けの文字（見た目は非表示） */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
/* 「本文へスキップ」リンク（Tabキーで最初にフォーカスしたときだけ表示） */
.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 1000;
  background: var(--c-navy); color: #fff; padding: 8px 16px; border-radius: 4px;
}
.skip-link:focus { top: 8px; color: #fff; }

/* --------------------------------------------------------------------------
   3. 共通パーツ
   -------------------------------------------------------------------------- */
/* 本文の幅をそろえる入れ物 */
.container { width: 100%; max-width: var(--w-content); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* セクション（上下の余白）。.section--gray で背景を薄いグレーにする */
.section { padding: 64px 0; }
.section--gray { background: var(--c-bg); }
@media (min-width: 1024px) { .section { padding: 96px 0; } }

/* セクション見出し：英字の小見出し（.section-head__en）＋日本語の見出し */
.section-head { margin-bottom: 40px; }
.section-head--center { text-align: center; }
.section-head__en {
  display: inline-block;
  font-family: var(--f-en); font-weight: 600; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--c-green);
  margin-bottom: 8px;
}
.section-head__ja { font-size: 24px; color: var(--c-navy); margin: 0; }
.section-head__lead { color: var(--c-muted); margin: 16px 0 0; }
.section-head--center .section-head__lead { max-width: 720px; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .section-head__ja { font-size: 30px; } }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 12px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s;
  line-height: 1.4;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-green); color: #fff; }
.btn--primary:hover { background: var(--c-green-dark); color: #fff; }
.btn--outline { border-color: var(--c-navy); color: var(--c-navy); background: transparent; }
.btn--outline:hover { background: var(--c-navy); color: #fff; }
.btn--white { background: #fff; color: var(--c-navy); }
.btn--white:hover { background: var(--c-green); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--c-navy); }
/* ボタン内の矢印 */
.btn .arrow, .link-more .arrow { transition: transform .2s; }
.btn:hover .arrow, .link-more:hover .arrow { transform: translateX(4px); }

/* 「詳しく見る →」のような文字リンク */
.link-more { font-weight: 700; display: inline-flex; align-items: center; gap: .4em; color: var(--c-navy); }
.link-more:hover { color: var(--c-green); }

/* カードを並べる格子（スマホ1列 → タブレット2列 → PC3列） */
.grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   4. ヘッダー・ナビゲーション
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .2s;
}
/* 少しスクロールしたら影を付ける（main.js が .is-scrolled を付ける） */
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(11,37,69,.08); }
.site-header__inner {
  height: 100%; max-width: var(--w-content); margin: 0 auto; padding: 0 20px;   /* 2026-11-20：本文の幅に合わせた（1280px → 本文と同じ） */
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 40px; width: auto; }
@media (min-width: 1024px) { .site-logo img { height: 46px; } }
/* 文字のロゴ（2026-11-17 画像から変更）：英字フォント Montserrat の太字・濃紺 */
.site-logo__text {
  font-family: var(--f-en); font-weight: 700; font-size: 22px; letter-spacing: .01em;
  color: var(--c-navy); line-height: 1; white-space: nowrap;
}
@media (min-width: 1024px) { .site-logo__text { font-size: 26px; } }
/* 日本語の社名にするとき（2026-11-17 試し）：日本語フォントの太字。英字より字幅が広いので少し小さくする */
.site-logo__text--ja { font-family: var(--f-base); font-size: 18px; letter-spacing: .04em; }
@media (min-width: 1024px) { .site-logo__text--ja { font-size: 22px; } }
/* 2段のロゴ（2026-11-17 試し）：上に英字「VisionTech Inc.」、下に小さく「株式会社ビジョンテック」
   ・下の社名は、上の英字とほぼ同じ幅になるよう文字間（letter-spacing）を広げている
   ・ヘッダー（.site-logo__text--stack）とフッター（.footer__logo--stack）で共通の部品を使う */
.site-logo__text--stack, .site-footer a.footer__logo--stack { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.site-logo__text--stack .site-logo__en { font-size: 20px; line-height: 1; }
.site-logo__text--stack .site-logo__ja { font-family: var(--f-base); font-weight: 700; font-size: 10px; letter-spacing: .3em; line-height: 1; color: var(--c-navy); }
@media (min-width: 1024px) {
  .site-logo__text--stack .site-logo__en { font-size: 24px; }
  .site-logo__text--stack .site-logo__ja { font-size: 11.5px; letter-spacing: .32em; }
}
a.footer__logo--stack .site-logo__en { font-size: 24px; line-height: 1; }
a.footer__logo--stack .site-logo__ja { font-family: var(--f-base); font-weight: 700; font-size: 11.5px; letter-spacing: .32em; line-height: 1; color: rgba(255,255,255,.85); }

/* --- PC用メニュー（1024px 以上で表示） --- */
.gnav { display: none; }
@media (min-width: 1024px) {
  .gnav { display: flex; align-items: center; gap: 4px; height: 100%; }
  .gnav__item { position: relative; height: 100%; display: flex; align-items: center; }
  .gnav__link {
    display: flex; align-items: center; gap: 4px; height: 100%;
    padding: 0 14px; color: var(--c-text); font-weight: 500; font-size: 15px;
    background: none; border: 0; cursor: pointer; font-family: inherit;
    position: relative;
  }
  /* 選択中・マウスを乗せたときに下線を出す */
  .gnav__link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 18px; height: 2px;
    background: var(--c-green); transform: scaleX(0); transition: transform .2s;
  }
  .gnav__link:hover, .gnav__link[aria-current="page"] { color: var(--c-navy); }
  .gnav__link:hover::after, .gnav__link[aria-current="page"]::after { transform: scaleX(1); }
  .gnav__caret { font-size: 10px; transition: transform .2s; }

  /* 製品・サービスのメガメニュー（マウスを乗せる／クリックで開く） */
  .mega {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-top: 1px solid var(--c-line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .gnav__item--mega:hover .mega,
  .gnav__item--mega:focus-within .mega,
  .gnav__item--mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
  .gnav__item--mega:hover .gnav__caret,
  .gnav__item--mega.is-open .gnav__caret { transform: rotate(180deg); }
  .mega__inner {
    max-width: var(--w-content); margin: 0 auto; padding: 32px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 32px;
  }
  .mega__title {
    font-size: 13px; font-weight: 700; color: var(--c-green); letter-spacing: .08em;
    border-bottom: 1px solid var(--c-line); padding-bottom: 8px; margin-bottom: 8px;
  }
  .mega__list { list-style: none; }
  .mega__list a { display: block; padding: 5px 0; color: var(--c-text); font-size: 14px; line-height: 1.5; }
  .mega__list a:hover { color: var(--c-green); }
  .mega__list .is-sub a { padding-left: 1em; font-size: 13px; color: var(--c-muted); }
  .mega__all { grid-column: 1 / -1; text-align: right; }
}

/* ヘッダー右側（English・お問い合わせ） */
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-lang { font-family: var(--f-en); font-weight: 600; font-size: 13px; color: var(--c-navy); letter-spacing: .06em; }
.header-contact { display: none; }
@media (min-width: 1024px) { .header-contact { display: inline-flex; padding: 10px 22px; font-size: 14px; } }

/* --- スマホ用：ハンバーガーボタン --- */
.menu-toggle {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  padding: 0;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--c-navy); transition: transform .25s, opacity .25s; }
/* メニューが開いているときは「×」の形にする */
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* --- スマホ用：開閉メニュー（ドロワー） --- */
.drawer {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99;
  background: #fff; overflow-y: auto; padding: 8px 20px 40px;
  transform: translateX(100%); transition: transform .3s; visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
@media (min-width: 1024px) { .drawer { display: none; } }
.drawer__list { list-style: none; }
.drawer__list > li { border-bottom: 1px solid var(--c-line); }
.drawer__list a, .drawer__acc {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 16px 4px; color: var(--c-text); font-weight: 500; font-size: 16px;
  background: none; border: 0; font-family: inherit; text-align: left; cursor: pointer;
}
.drawer__acc .plus { font-size: 20px; color: var(--c-green); transition: transform .2s; }
.drawer__acc[aria-expanded="true"] .plus { transform: rotate(45deg); }
.drawer__sub { list-style: none; padding: 0 0 12px 12px; display: none; }
.drawer__sub.is-open { display: block; }
.drawer__sub a { padding: 8px 4px; font-size: 14px; font-weight: 400; color: var(--c-muted); }
.drawer__sub .is-sub a { padding-left: 1.2em; font-size: 13px; }
.drawer__cta { margin-top: 24px; display: grid; gap: 12px; }
/* メニューを開いている間は後ろの本文をスクロールさせない */
body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   5. トップ：ヒーロー（RGB/NDVI 比較スライダー）
   --------------------------------------------------------------------------
   ・同じ範囲を撮影した RGB画像 と NDVI画像 を重ね、上に重ねた NDVI画像 を
     clip-path で左右に切り取って見せている
   ・切り取り位置は CSS変数 --pos（0〜100%）。main.js がドラッグに合わせて変える
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: 560px; height: calc(100vh - var(--header-h)); max-height: 820px;
  background: var(--c-navy);
}
.compare { position: absolute; inset: 0; --pos: 58%; touch-action: pan-y; cursor: ew-resize; }
.compare img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.compare__top { clip-path: inset(0 0 0 var(--pos)); }   /* NDVI画像（右側に見える） */
/* 境目の縦線とつまみ */
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: rgba(255,255,255,.9); z-index: 3; pointer-events: none;
}
.compare__knob {
  position: absolute; top: 62%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--c-navy);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,.3); pointer-events: auto; cursor: ew-resize;
  border: 0; letter-spacing: -2px;
}
/* 「RGB」「NDVI」のラベル */
.compare__label {
  position: absolute; bottom: 24px; z-index: 3; font-family: var(--f-en); font-weight: 600; font-size: 12px;
  letter-spacing: .12em; background: rgba(11,37,69,.7); padding: 6px 12px; border-radius: 4px;
  pointer-events: none;
}
.compare__label--left { left: 20px; }
.compare__label--right { right: 20px; }
/* 文字を読みやすくするため、左側を暗くするグラデーションを重ねる */
.hero__shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,37,69,.88) 0%, rgba(11,37,69,.62) 45%, rgba(11,37,69,.05) 75%);
}
@media (max-width: 767px) {
  .hero__shade { background: linear-gradient(180deg, rgba(11,37,69,.85) 0%, rgba(11,37,69,.55) 55%, rgba(11,37,69,.15) 100%); }
}
.hero__body {
  position: relative; z-index: 4; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  pointer-events: none;                 /* 文字の上でもスライダーをドラッグできるようにする */
  padding-top: 24px; padding-bottom: 96px;
}
.hero__body a { pointer-events: auto; }
.hero__eyebrow {
  font-family: var(--f-en); font-size: 13px; letter-spacing: .2em; font-weight: 600;
  color: #9be3ad; margin-bottom: 16px;
}
@media (max-width: 767px) { .hero__eyebrow { font-size: 11px; letter-spacing: .12em; } }
.hero__title { font-size: 30px; line-height: 1.35; margin-bottom: 20px; letter-spacing: .04em; }
.hero__title em { font-style: normal; color: #7fe09a; }
.hero__lead { font-size: 15px; max-width: 520px; color: rgba(255,255,255,.9); margin-bottom: 32px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__hint {
  position: absolute; z-index: 4; left: 50%; bottom: 64px; transform: translateX(-50%);
  font-size: 12px; background: rgba(0,0,0,.45); padding: 4px 12px; border-radius: 999px;
  pointer-events: none; white-space: nowrap; transition: opacity .4s;
}
.hero.is-touched .hero__hint { opacity: 0; }
@media (min-width: 768px) {
  .hero__title { font-size: 44px; }
  .hero__lead { font-size: 17px; }
}
@media (min-width: 1200px) { .hero__title { font-size: 52px; } }

/* --------------------------------------------------------------------------
   6. トップ：事業領域・製品・ニュース・数字
   -------------------------------------------------------------------------- */
/* 事業領域カード（写真＋番号＋説明） */
.biz-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.biz-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-bg); }
.biz-card__img img { width: 100%; height: 100%; object-fit: cover; }
.biz-card__body { padding: 20px 22px 24px; flex: 1; }
.biz-card__no { font-family: var(--f-en); font-weight: 700; color: var(--c-green); font-size: 13px; letter-spacing: .12em; }
.biz-card__title { font-size: 18px; color: var(--c-navy); margin: 4px 0 8px; }
.biz-card__text { font-size: 14px; color: var(--c-muted); margin: 0; }

/* 製品カード（画像全体が製品ページへのリンク） */
.prod-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); color: var(--c-text);
  transition: transform .25s, box-shadow .25s;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: var(--c-text); }
.prod-card__img { aspect-ratio: 2 / 1; overflow: hidden; background: #fff; border-bottom: 1px solid var(--c-line); }
.prod-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.prod-card:hover .prod-card__img img { transform: scale(1.04); }
.prod-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.prod-card__tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--c-green-dark);
  background: #e7f6eb; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px;
}
.prod-card__tag--blue { color: #13689c; background: #e4f1fa; }
.prod-card__tag--navy { color: var(--c-navy); background: #e6ebf2; }
.prod-card__title { font-size: 17px; color: var(--c-navy); margin-bottom: 6px; }
.prod-card__text { font-size: 14px; color: var(--c-muted); margin: 0 0 12px; flex: 1; }
.prod-card__more { font-size: 14px; font-weight: 700; color: var(--c-navy); }
.prod-card:hover .prod-card__more { color: var(--c-green); }

/* 製品一覧の下の「すべて見る」ボタン */
.center-btn { text-align: center; margin-top: 40px; }

/* ニュース一覧（日付＋分類＋本文） */
.news-list { list-style: none; border-top: 1px solid var(--c-line); }
.news-item { border-bottom: 1px solid var(--c-line); padding: 20px 4px; display: grid; gap: 6px; }
@media (min-width: 768px) {
  .news-item { grid-template-columns: 120px 100px 1fr; gap: 16px; align-items: baseline; padding: 22px 8px; }
}
.news-item__date { font-family: var(--f-en); font-weight: 600; color: var(--c-muted); font-size: 14px; }
.news-item__cat {
  justify-self: start; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 4px;
  background: var(--c-navy); color: #fff; white-space: nowrap;
}
.news-item__cat--event { background: var(--c-green); }
.news-item__cat--product { background: var(--c-blue); }
.news-item__text { margin: 0; font-size: 15px; }
.news-item__text small { display: block; color: var(--c-muted); font-size: 13px; margin-top: 4px; }
/* トップのニュースの写真（2026-11-27 追加。build.py が news.json の images から書き出す）
   ・本文の列の下に、高さ110pxの小さな写真を横に並べる（PC では3列目＝本文の列に置く）
   ・クリックで拡大する写真（.js-popup）は、虫めがねのマークを小さくする */
.news-item__imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
@media (min-width: 768px) { .news-item__imgs { grid-column: 3; } }
.news-item__imgs a { display: block; line-height: 0; }
.news-item__imgs img { height: 110px; width: auto; max-width: 100%; object-fit: cover; border-radius: 4px; border: 1px solid var(--c-line); }
.news-item__imgs .js-popup::after { right: 4px; bottom: 4px; width: 22px; height: 22px; font-size: 12px; line-height: 22px; }

/* 数字で見るビジョンテック（濃紺の帯） */
.facts { background: var(--c-navy); color: #fff; padding: 56px 0; }
.facts__grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 768px) { .facts__grid { grid-template-columns: repeat(4, 1fr); } }
.facts__num { font-family: var(--f-en); font-weight: 700; font-size: 40px; line-height: 1.1; color: #7fe09a; }
.facts__num small { font-size: 16px; margin-left: 2px; color: #fff; font-family: var(--f-base); }
.facts__label { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 8px; line-height: 1.6; }

/* 会社紹介（左に文章、右に写真） */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split__img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
/* .split--reverse：PCでは左右を入れ替える（文章を右、画像を左に） */
@media (min-width: 900px) { .split--reverse > :first-child { order: 2; } }

/* --------------------------------------------------------------------------
   7. 下層ページ共通
   -------------------------------------------------------------------------- */
/* ページタイトル（濃紺の帯＋パンくず） */
.page-hero {
  background: linear-gradient(120deg, var(--c-navy) 0%, var(--c-navy-2) 60%, #1b4d7a 100%);
  color: #fff; padding: 48px 0 40px; position: relative; overflow: hidden;
}
/* 右側に衛星の軌道をイメージした円の飾り */
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 120px rgba(255,255,255,.02);
}
.page-hero__en { font-family: var(--f-en); font-size: 13px; letter-spacing: .2em; color: #9be3ad; font-weight: 600; }
.page-hero__title { font-size: 28px; margin: 6px 0 0; }
@media (min-width: 768px) { .page-hero { padding: 72px 0 56px; } .page-hero__title { font-size: 38px; } }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; margin-top: 20px; color: rgba(255,255,255,.75); }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; opacity: .6; }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ページ内リンク（目次） */
.page-nav { background: #fff; border-bottom: 1px solid var(--c-line); }
.page-nav ul { list-style: none; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; }
.page-nav a {
  display: block; white-space: nowrap; padding: 6px 16px; border-radius: 999px;
  font-size: 14px; color: var(--c-navy); background: var(--c-bg);
}
.page-nav a:hover { background: var(--c-navy); color: #fff; }

/* 会社概要などの「項目：内容」の表（スマホでは縦に並べる） */
.info-table { border-top: 2px solid var(--c-navy); }
.info-table tr { border-bottom: 1px solid var(--c-line); }
.info-table th, .info-table td { display: block; padding: 0 4px; text-align: left; vertical-align: top; }
.info-table th { padding-top: 16px; color: var(--c-navy); font-weight: 700; font-size: 14px; }
.info-table td { padding-bottom: 16px; }
@media (min-width: 768px) {
  .info-table th, .info-table td { display: table-cell; padding: 20px 16px; }
  .info-table th { width: 200px; background: var(--c-bg); }
}

/* 沿革のタイムライン（左に縦線と点） */
.timeline { list-style: none; position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--c-line); }
.timeline__item { position: relative; padding: 0 0 24px; }
.timeline__item::before {
  content: ""; position: absolute; left: -24px; top: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--c-green);
}
.timeline__date { font-family: var(--f-en); font-weight: 700; color: var(--c-navy); font-size: 15px; }
.timeline__text { margin: 2px 0 0; }
.timeline__text + .timeline__text { margin-top: 4px; }
@media (min-width: 768px) {
  .timeline__item { display: grid; grid-template-columns: 120px 1fr; gap: 24px; }
}

/* 加入団体・認証などのタグ並び */
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-list li {
  background: #fff; border: 1px solid var(--c-line); border-radius: 999px;
  padding: 8px 18px; font-size: 14px;
}

/* 白い枠のパネル */
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.panel h3 { color: var(--c-navy); font-size: 18px; }

/* --------------------------------------------------------------------------
   8. 製品ページ（散布の助）
   -------------------------------------------------------------------------- */
/* 製品ページの冒頭（左に説明、右に動画サムネイル） */
.prod-hero { background: linear-gradient(180deg, #eef7f1 0%, #fff 100%); padding: 48px 0 56px; }
.prod-hero__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .prod-hero__grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.prod-hero__cat { font-size: 14px; font-weight: 700; color: var(--c-green-dark); margin-bottom: 8px; }
.prod-hero__title { font-size: 28px; color: var(--c-navy); }
.prod-hero__title small { display: block; font-size: 16px; color: var(--c-muted); font-weight: 500; margin-top: 4px; }
@media (min-width: 768px) { .prod-hero__title { font-size: 36px; } }
.prod-hero__lead { font-size: 16px; }
.prod-hero__note { background: #fff; border-left: 4px solid var(--c-green); padding: 12px 16px; border-radius: 0 6px 6px 0; font-weight: 500; }
.prod-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.prod-hero__sub { font-size: 13px; color: var(--c-muted); margin-top: 12px; }

/* 動画サムネイル（クリックでポップアップ再生）。中央に再生ボタンを重ねる */
.video-thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hover); }
.video-thumb img { width: 100%; transition: transform .4s; }
.video-thumb:hover img { transform: scale(1.03); }
.video-thumb__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%; background: rgba(43,168,74,.92);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.video-thumb__play::before { content: ""; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff; margin-left: 6px; }
.video-thumb__cap { display: block; text-align: center; font-size: 13px; color: var(--c-muted); margin-top: 8px; }

/* 3つの特長（アイコン画像＋見出し） */
.feature { text-align: center; }
.feature img { width: 180px; margin: 0 auto 16px; }
.feature__title { font-size: 18px; color: var(--c-navy); }

/* 計画・散布・報告・シェアの説明ブロック */
.flow-block + .flow-block { margin-top: 72px; }
.flow-block__label {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #fff;
  background: var(--c-navy); padding: 6px 18px 6px 6px; border-radius: 999px; font-size: 15px; margin-bottom: 14px;
}
.flow-block__label b {
  background: var(--c-green); width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-en); font-size: 13px;
}
.flow-block__title { font-size: 22px; color: var(--c-navy); }
@media (min-width: 768px) { .flow-block__title { font-size: 26px; } }

/* STEP1〜3 のカード */
.step-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.step-card__head { padding: 16px 20px 0; }
.step-card__no { font-family: var(--f-en); font-weight: 700; color: var(--c-green); font-size: 13px; letter-spacing: .12em; }
.step-card__title { font-size: 17px; color: var(--c-navy); margin: 2px 0 12px; }
.step-card__img { padding: 0 20px; flex: 1; display: flex; align-items: center; }
.step-card__img img { border: 1px solid var(--c-line); border-radius: 6px; }
.step-card__point { margin: 16px 20px 20px; font-size: 14px; font-weight: 700; color: var(--c-green-dark); }
.step-card__point::before { content: "✓ "; }

/* 画像を横に並べる（スマホは折り返す） */
.img-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: center; }
.img-row img { border-radius: 8px; box-shadow: var(--shadow); }
.img-row .is-icon { box-shadow: none; width: 110px; mix-blend-mode: multiply; } /* 白背景の画像をグレーの背景になじませる */

/* 「メインユーザー」「サブユーザー」の比較カード */
.user-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.user-card__head { background: var(--c-navy); color: #fff; padding: 16px 24px; font-size: 18px; font-weight: 700; }
.user-card--sub .user-card__head { background: var(--c-blue); }
.user-card__body { padding: 20px 24px 24px; }
.user-card__h { font-size: 14px; font-weight: 700; color: var(--c-muted); margin: 0 0 8px; }
.check-list, .dot-list { list-style: none; margin-bottom: 20px; }
.check-list li { padding-left: 1.8em; position: relative; margin-bottom: 6px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: .15em; width: 1.3em; height: 1.3em; line-height: 1.3em;
  text-align: center; border-radius: 50%; background: var(--c-green); color: #fff; font-size: 12px; font-weight: 700;
}
.dot-list li { padding-left: 1.1em; position: relative; margin-bottom: 4px; font-size: 15px; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-navy); }
.user-card__warn { background: #fff6e5; border: 1px solid #f3d08a; border-radius: 6px; padding: 10px 14px; font-size: 14px; margin: 0; }

/* 資料ダウンロードのリンク */
.dl-list { list-style: none; display: grid; gap: 12px; }
@media (min-width: 768px) { .dl-list { grid-template-columns: 1fr 1fr; } }
.dl-list a {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 16px 20px; color: var(--c-text); font-weight: 500;
}
.dl-list a:hover { border-color: var(--c-green); color: var(--c-green-dark); }
.dl-list .ext {
  flex-shrink: 0; font-family: var(--f-en); font-size: 11px; font-weight: 700; color: #fff;
  background: #d9534f; padding: 4px 8px; border-radius: 4px;
}
.dl-list .ext--xlsx { background: #1f7a45; }

/* 注記（補助事業の説明など） */
.note-list { list-style: none; font-size: 13px; color: var(--c-muted); }
.note-list li { padding-left: 1em; text-indent: -1em; margin-bottom: 8px; }
.note-list li::before { content: "・"; }

/* --------------------------------------------------------------------------
   9. お問い合わせ帯・フッター
   -------------------------------------------------------------------------- */
.cta {
  background: linear-gradient(120deg, var(--c-green-dark) 0%, var(--c-green) 50%, #39b98c 100%);
  color: #fff; padding: 56px 0; text-align: center;
}
.cta__title { font-size: 22px; margin-bottom: 8px; }
.cta__text { color: rgba(255,255,255,.92); margin-bottom: 24px; }
.cta__btns .btn { white-space: nowrap; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta__tel { font-family: var(--f-en); font-size: 22px; font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.cta__tel:hover { color: #fff; opacity: .85; }
@media (min-width: 768px) { .cta__title { font-size: 28px; } }

.site-footer { background: #081a31; color: rgba(255,255,255,.78); font-size: 14px; padding: 56px 0 24px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.3fr 2fr; gap: 56px; } }
.footer__logo img { height: 44px; width: auto; margin-bottom: 16px; }
/* フッターの文字のロゴ（2026-11-17 画像から変更） */
a.footer__logo { display: inline-block; font-family: var(--f-en); font-weight: 700; font-size: 24px; color: #fff; margin-bottom: 16px; line-height: 1; }
a.footer__logo--ja { font-family: var(--f-base); font-size: 20px; letter-spacing: .04em; }
.footer__addr { font-style: normal; line-height: 1.8; }
.footer__addr strong { color: #fff; display: block; margin-top: 12px; }
.footer__nav { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .footer__nav { grid-template-columns: repeat(3, 1fr); } }
.footer__nav h3 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.footer__nav ul { list-style: none; }
.footer__nav li { margin-bottom: 6px; line-height: 1.5; }
.footer__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer__badges span { border: 1px solid rgba(255,255,255,.3); border-radius: 4px; padding: 2px 10px; font-size: 12px; }
.footer__bottom {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 12px;
}

/* ページ上部へ戻るボタン（main.js がスクロール量に応じて .is-show を付ける） */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-navy); color: #fff; border: 0; cursor: pointer; font-size: 18px;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-green); }

/* --------------------------------------------------------------------------
   10. 動画ポップアップ（.js-video を押すと開く。main.js で制御）
   -------------------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 500; background: rgba(5,15,30,.86);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal.is-open { display: flex; }
.modal__box { position: relative; width: 100%; max-width: 1000px; }
.modal__box video { width: 100%; max-height: 80vh; background: #000; border-radius: 6px; }
.modal__close {
  position: absolute; right: 0; top: -48px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: #fff; color: var(--c-navy); font-size: 22px; cursor: pointer; line-height: 1;
}

/* --------------------------------------------------------------------------
   12. 本文ページ（.prose）
   --------------------------------------------------------------------------
   ・convert_hpb.py で現行サイトから変換したページの本文に使う
   ・本文の中のタグ（h2・p・img・表など）に、まとめて見た目を付けている
   -------------------------------------------------------------------------- */
.section--page { padding-top: 48px; }
/* 2026-11-20：.prose の最大幅 980px をやめ、.container の幅（--w-content）いっぱいに使うようにした */
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-size: 22px; color: var(--c-navy); margin: 56px 0 20px; padding-left: 14px;
  border-left: 5px solid var(--c-green); line-height: 1.5;
}
.prose h3 { font-size: 18px; color: var(--c-navy); margin: 36px 0 12px; }
.prose h4 { font-size: 16px; color: var(--c-navy); margin: 24px 0 8px; }
@media (min-width: 768px) { .prose h2 { font-size: 26px; } .prose h3 { font-size: 20px; } }
.prose p { margin: 0 0 1.1em; }
.prose .lead { font-size: 17px; font-weight: 500; color: var(--c-navy); line-height: 1.9; }
.prose a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--c-navy); }
.prose img { border-radius: 6px; margin: 12px 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose hr { border: 0; border-top: 1px solid var(--c-line); margin: 40px 0; }
/* 定義リスト（会社概要・沿革など「項目：内容」の並び）。PCでは2列の表のように見せる */
.prose dl { margin: 0 0 1.6em; border-top: 2px solid var(--c-navy); }
.prose dt { font-weight: 700; color: var(--c-navy); padding: 14px 4px 2px; }
.prose dd { margin: 0; padding: 0 4px 14px; border-bottom: 1px solid var(--c-line); }
@media (min-width: 768px) {
  .prose dl { display: grid; grid-template-columns: 220px 1fr; }
  /* dt は左の列、dd は必ず右の列に置く（dd が続くときに左の狭い列に入り込まないようにする） */
  .prose dl > dt { grid-column: 1; }
  .prose dl > dd { grid-column: 2; min-width: 0; }
  .prose dt { padding: 14px 16px; border-bottom: 1px solid var(--c-line); background: var(--c-bg); }
  .prose dd { padding: 14px 16px; }
}
/* 縦並びの定義リスト（dl class="dl-stack"）：項目名が長いとき用（例 re.html の採択実績）
   上に項目名（太字・左に緑の線）、下に内容を置き、1件ずつ線で区切る。PCでも2列にしない */
.prose dl.dl-stack { display: block; }
.prose dl.dl-stack > dt { padding: 16px 4px 6px 14px; border-top: 1px solid var(--c-line); border-bottom: 0; background: none;
  position: relative; line-height: 1.7; }
.prose dl.dl-stack > dt:first-child { border-top: 0; }
.prose dl.dl-stack > dt::before { content: ""; position: absolute; left: 0; top: 19px; bottom: 9px; width: 4px; border-radius: 2px; background: var(--c-green); }
.prose dl.dl-stack > dd { padding: 0 4px 16px 14px; border-bottom: 0; }
.prose dl.dl-stack { border-bottom: 1px solid var(--c-line); }
/* 本文中に単独で置いた画像は、大きくなりすぎないよう 720px までにする */
.prose > img, .prose > a > img, .prose > p > img { max-width: min(100%, 720px); }
.prose .btn { margin: 4px 8px 4px 0; text-decoration: none; }
.btn--sm { padding: 8px 18px; font-size: 14px; }

/* 段組み（HPBのレイアウト用の表を変換したもの）：スマホでは縦に並べ、640px 以上で横に並べる */
.cols { display: grid; gap: 20px; margin: 20px 0 28px; align-items: start; }
@media (min-width: 640px) {
  .cols-2 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) { .cols-4 { grid-template-columns: repeat(4, 1fr); } }
.col > *:first-child, .col-single > *:first-child { margin-top: 0; }
.col img, .col-single img { margin: 0 auto 8px; }
.col-single { margin: 16px 0 24px; }

/* データの表：罫線を付け、スマホで入りきらないときは横にスクロールできるようにする */
.table-wrap { overflow-x: auto; margin: 16px 0 28px; -webkit-overflow-scrolling: touch; }
.data-table { min-width: 560px; font-size: 14px; border-top: 2px solid var(--c-navy); }
.data-table th, .data-table td { border-bottom: 1px solid var(--c-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.data-table th { background: var(--c-bg); color: var(--c-navy); white-space: nowrap; }
.data-table tr:nth-child(even) td { background: #fafcfd; }
.data-table img { margin: 0; }

/* YouTube などの埋め込み動画：画面幅に合わせて 16:9 で縮める */
.embed { position: relative; aspect-ratio: 16 / 9; max-width: 800px; margin: 20px 0 28px; border-radius: 8px; overflow: hidden; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ニュース一覧：1件ずつ罫線で区切る */
.news-archive { list-style: none; padding: 0 !important; border-top: 1px solid var(--c-line); }
.news-archive > li { padding: 20px 4px; border-bottom: 1px solid var(--c-line); margin: 0; }
.news-archive img { max-width: 360px; width: 100%; }
/* ニュース一覧の写真（2026-11-27 追加）：1枚の幅は最大360px、複数枚は横に並べる（狭い画面では折り返す） */
.news-imgs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.news-imgs > a { flex: 0 1 360px; display: block; line-height: 0; }
.news-imgs .js-popup::after { bottom: 8px; }

/* クリックで拡大・再生できる画像（.js-popup）：虫めがねのマークを重ねる */
.js-popup { position: relative; display: inline-block; cursor: zoom-in; }
.js-popup::after {
  content: "⤢"; position: absolute; right: 8px; bottom: 16px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(11,37,69,.75); color: #fff; font-size: 16px; line-height: 30px; text-align: center;
}
.modal__box img { max-height: 85vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 6px; }

/* 製品・サービス一覧のカテゴリ見出し */
.cat-head { display: flex; align-items: baseline; gap: 16px; margin: 0 0 24px; }
.cat-head h2 { font-size: 22px; color: var(--c-navy); margin: 0; }
.cat-head span { font-family: var(--f-en); font-size: 12px; letter-spacing: .16em; color: var(--c-green); font-weight: 600; text-transform: uppercase; }
.svc-list { list-style: none; display: grid; gap: 12px; }
@media (min-width: 768px) { .svc-list { grid-template-columns: 1fr 1fr; } }
.svc-list a {
  display: block; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 16px 20px; color: var(--c-text); height: 100%;
}
.svc-list a:hover { border-color: var(--c-green); box-shadow: var(--shadow); }
.svc-list b { display: block; color: var(--c-navy); margin-bottom: 4px; }
.svc-list small { color: var(--c-muted); font-size: 13px; line-height: 1.7; display: block; }

/* お問い合わせフォーム */
.form-table { border-top: 2px solid var(--c-navy); margin-bottom: 32px; }
.form-table th, .form-table td { display: block; text-align: left; padding: 0 4px; }
.form-table th { padding-top: 18px; font-weight: 700; color: var(--c-navy); font-size: 15px; }
.form-table td { padding-bottom: 18px; border-bottom: 1px solid var(--c-line); }
@media (min-width: 768px) {
  .form-table th, .form-table td { display: table-cell; padding: 20px 16px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
  .form-table th { width: 220px; background: var(--c-bg); }
}
.req { display: inline-block; background: #d9534f; color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 3px; margin-left: 8px; vertical-align: 2px; }
.form-table input[type="text"], .form-table input[type="email"], .form-table input[type="tel"], .form-table textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #c6d0db; border-radius: 6px; background: #fff;
}
.form-table textarea { min-height: 180px; resize: vertical; }
.form-table input:focus, .form-table textarea:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(30,136,200,.2); }
.choice-list { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.choice-list label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.form-agree { background: var(--c-bg); border-radius: var(--radius); padding: 24px; text-align: center; }
.form-agree p { font-size: 14px; }
.form-submit { text-align: center; margin-top: 24px; }
.form-submit .btn { min-width: 240px; font-size: 16px; padding: 14px 32px; }

/* --------------------------------------------------------------------------
   11. ユーティリティ
   -------------------------------------------------------------------------- */
/* スクロールして画面に入ったら、ふわっと表示する（main.js が .is-visible を付ける）
   ※JavaScript が動かない環境でも表示されるよう、html に .js が付いたときだけ隠す */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* 「視差効果を減らす」設定の端末では動きを止める */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.mt-0 { margin-top: 0 !important; }
.mt-40 { margin-top: 40px !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-muted { color: var(--c-muted); }
.text-center { text-align: center; }
/* 試作版であることを示す帯（本番公開時に削除する） */
.test-banner {
  /* 画面の一番上・中央に小さく表示（ヘッダーの文字に重ならない位置） */
  position: fixed; left: 50%; top: 0; transform: translateX(-50%); z-index: 600;
  background: #ffcc00; color: #000; font-size: 11px; font-weight: 700; line-height: 1.5;
  padding: 1px 12px; border-radius: 0 0 4px 4px; box-shadow: 0 2px 8px rgba(0,0,0,.25); pointer-events: none;
}

/* ソフトウェアのロゴ画像（software.html / english/e-software.html）：大きくなりすぎないようにする */
.prose img.logo-img { max-width: 240px; }

/* スマホでは、比較スライダーのつまみをボタンと重ならない下の方に置く */
@media (max-width: 767px) { .compare__knob { top: 86%; } }

/* --------------------------------------------------------------------------
   編集ツール（見たまま編集）で幅を変えたもの
   ・幅は HTML の style に書かれる（例 style="max-width: 60%"）
   ・.vw   ：幅を変えた表・枠・段組み。スマホでは幅いっぱいに戻す（表は横スクロールできる幅を保つ）
   ・.vratio：列の比率を変えた段組み。スマホでは縦並びに戻す
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .vw { max-width: 100% !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
  table.data-table.vw { min-width: 560px !important; }
}
@media (max-width: 639px) { .vratio { grid-template-columns: 1fr !important; } }
/* 編集ツールの「写真を上・文章を下」で、文章の列に付く class：段組みの全列にまたがって幅いっぱいに置く（2026-11-17 追加） */
.vfull { grid-column: 1 / -1; }
@media (max-width: 899px) { .split.vratio { grid-template-columns: 1fr !important; } }

/* ===== 編集ツールの「文章の回り込み」で付く class（2026-11 追加）=====
   ・.vfloat-l：写真を左に置き、文章を右側に回り込ませる
   ・.vfloat-r：写真を右に置き、文章を左側に回り込ませる
   ・.prose を flow-root にして、回り込みが枠の外にはみ出さないようにする
   ・スマホ（767px以下）では回り込みをやめ、写真を幅いっぱいで縦に並べる */
.prose { display: flow-root; }
.vfloat-l, .prose img.vfloat-l { float: left; margin: 4px 20px 12px 0; max-width: 60%; }
.vfloat-r, .prose img.vfloat-r { float: right; margin: 4px 0 12px 20px; max-width: 60%; }
@media (max-width: 767px) {
  .vfloat-l, .vfloat-r, .prose img.vfloat-l, .prose img.vfloat-r { float: none; display: block; width: 100% !important; max-width: 100%; margin: 0 0 12px; }
}

/* ===== 2026-11-20 社内の意見による調整 ===== */
/* 日本語の改行位置：文節（単語のまとまり）の区切りで改行する（Chrome・Edge が対応。ほかのブラウザでは従来どおり）
   ・見出しは行の長さをそろえ、本文は最後の行が1～2文字だけにならないようにする */
html:lang(ja) body { word-break: auto-phrase; line-break: strict; overflow-wrap: anywhere; }
/* 段組み・横並びの中身が、長い文節や表の幅で画面からはみ出さないようにする（スマホ対策） */
.cols > *, .split > *, .grid > * { min-width: 0; }
h1, h2, h3, h4, .page-hero__title, .section-head__ja { text-wrap: balance; }
p, li, dd, td { text-wrap: pretty; }

/* 枠で囲んだ段の中身（例 metashape_top.html の右のダウンロード関係） */
.col.col-box { border: 1px solid var(--c-line); border-radius: 10px; background: #f7f9fb; padding: 20px 22px; }

/* mesh.html「取得可能データ」：気象要素・過去値・予報値の列を折り返さない（狭い画面では表が横にスクロールする） */
table.mesh-elements th:nth-child(1), table.mesh-elements td:nth-child(1), table.mesh-elements td:nth-child(2),
table.mesh-elements td:nth-child(4), table.mesh-elements td:nth-child(5) { white-space: nowrap; }

/* ボタンを横に並べる行（例 metashape_top.html のマニュアル・標高変換ツール）。2026-11-20 追加
   ・狭い画面では自動で折り返す。ボタンの横に注記（<span>）を置いてもよい */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 8px 0 18px; }
.prose .btn-row .btn { margin: 0; }
.btn-row > span { font-size: 13px; color: var(--c-muted); }

/* 本文の中の紹介動画のサムネイル（agrilook.html・sakumo.html）。2026-11-20 追加
   ・見た目は sanp-no-suke.html の .video-thumb と同じ。画像の元の幅（1200px）までにして中央に置く */
.video-block { max-width: 1200px; margin: 16px auto 28px; }
.prose .video-block .video-thumb img { margin: 0; border-radius: 0; }

/* お問い合わせフォームのロボットよけの隠し項目（2026-11-30 追加）
   人には見えないよう画面の外に出す（display:none だと、それを見分けて空にするロボットがいるため） */
.hp-field { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
