/* ===== 有限会社 コンピュータ・リサーチ ===== */
:root {
  --c-primary: #1a69ac;
  --c-primary-dark: #003f75;
  --c-accent: #f39a2b;
  --c-text: #1f2a37;
  --c-muted: #5b6776;
  --c-line: #e3e8ef;
  --c-bg: #ffffff;
  --c-bg-soft: #f4f7fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 42, 80, .08);
  --max: 1120px;
  --header-h: 72px;
}

/* UDフォント（BIZ UDPゴシック）
   PCに入っている場合（Windows 10 以降の標準）はそれを即座に使い、ない端末だけ Google Fonts から読み込む。
   読み込み待ちで文字の大きさが変わる「ちらつき」を防ぐため、端末内のフォントを優先する。 */
@font-face { font-family: "UD Gothic Local"; font-weight: 400; src: local("BIZ UDPGothic"), local("BIZUDPGothic"); }
@font-face { font-family: "UD Gothic Local"; font-weight: 700; src: local("BIZ UDPGothic Bold"), local("BIZUDPGothic-Bold"); }

/* ページ切替をなめらかに（対応ブラウザのみ。ヘッダーは固定したまま本文だけ切り替える） */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }

*, *::before, *::after { box-sizing: border-box; }
/* スクロールバーの有無でページ幅が変わり、レイアウトが左右にずれるのを防ぐ */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: "UD Gothic Local", "BIZ UDPGothic", "Meiryo", "Hiragino Sans", sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
/* 中身の短いページ（完了画面など）や、ズームを下げて画面が縦に長くなったときも、フッターを画面の一番下に置く
   （本文 main を伸ばして、フッターの下に白い余白が出ないようにする。中身の長いページの見た目は変わらない） */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; }
/* 広告の計測タグ（tontonlp/complete.php の Google 広告など）が body の最後に足す枠・画像は、
   フッターの下に白い帯を作るので、計測は止めずに画面の外へ逃がす */
body > iframe, body > img { position: absolute; left: -9999px; }
img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  view-transition-name: site-header;
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--c-text); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 44px; height: 44px; flex: none; border-radius: 10px; overflow: hidden;
  background: #fff; border: 1px solid var(--c-line);
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.site-header .logo-mark { border-color: #fff; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text small { font-size: 11px; color: var(--c-muted); }
.logo-text strong { font-size: 16px; }
.site-header .logo-text strong { color: var(--c-primary); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--c-text); font-size: 14px; font-weight: 500;
}
.nav a:hover { background: var(--c-bg-soft); text-decoration: none; color: var(--c-primary); }
.nav a.current { color: var(--c-primary); background: #e6f0fa; }
.nav .has-sub { position: relative; }
.nav .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.nav .sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 190px;
  background: #fff; border: 1px solid var(--c-line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { border-radius: 8px; white-space: nowrap; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--c-text); margin: 6px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 96px) 0 112px;
  /* 沖縄の浜辺（石垣島 米原ビーチ / Wikimedia Commons, CC0）。文字側だけ青を重ねて読みやすくする。HOME は下の .hero-split で上書き。
     画像が届くまでは下地の青を表示（白く抜けない） */
  background:
    linear-gradient(90deg, rgba(0, 47, 95, .85) 0%, rgba(0, 63, 117, .6) 45%, rgba(0, 63, 117, .1) 100%),
    url("../img/common/hero-beach.jpg") center 70% / cover no-repeat,
    #1a69ac;
  color: #fff;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.15); font-size: 13px; letter-spacing: .08em; margin-bottom: 24px;
}
/* HOME のヒーロー上部の一言（旧サイトのトップ画像にあった Person・Dream・Creation・Future） */
.hero-tagline { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; font-size: 13px; letter-spacing: .28em; white-space: nowrap; }
.hero-tagline .line { flex: none; width: 40px; height: 1px; background: #fff; }
@media (max-width: 600px) {
  .hero-tagline { font-size: 11px; letter-spacing: .14em; gap: 10px; }
  .hero-tagline .line { width: 22px; }
}
.hero h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 800; letter-spacing: .02em; }
.hero h1 em { font-style: normal; color: #ffd38a; }
.hero-lead { margin: 24px 0 40px; font-size: clamp(15px, 1.6vw, 18px); opacity: .92; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* HOME のヒーロー（案2。2026-11-12 採用）: 左上〜中央下で斜めに分けた北海道（上富良野町 千望峠からの眺め / Wikimedia Commons「Kamifurano view from Senbo pass.JPG」, パブリックドメイン → hero-hokkaido.jpg）と
   沖縄の浜辺（石垣島 米原ビーチ / 同 CC0 → hero-beach.jpg）。真ん中にキャッチコピー、左下にボタン、右下に説明文。画像が届くまでは下地の青 */
.hero.hero-split {
  min-height: clamp(600px, 86vh, 860px); padding: calc(var(--header-h) + 40px) 0 48px; display: flex;
  background: url("../img/common/hero-beach.jpg") 0% 85% / max(140%, 250vh) auto no-repeat, #1a69ac;
}
/* 左上〜中央下へ斜めに北海道の写真を重ねる */
.hero-split::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/common/hero-hokkaido.jpg") 20% 72% / cover no-repeat;
  /* 境目はぼかす。clip-path ではぼかせないので、斜めにだんだん透明になる SVG のマスクを画面いっぱいに引き伸ばして使う
     （引き伸ばしても境目の線と平行なまま。ぼかし幅は画像の幅の約 6%） */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='47.04' y1='49.53' x2='52.96' y2='50.47'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Crect width='100' height='100' fill='url(%23g)'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='47.04' y1='49.53' x2='52.96' y2='50.47'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Crect width='100' height='100' fill='url(%23g)'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
/* 文字を読みやすくするため全体を少し暗く */
.hero-split::after { content: ""; position: absolute; inset: 0; background: rgba(0, 32, 64, .24); }
/* 真ん中にキャッチコピー（左右のコピーの間を斜めの境目が通る）、左下にボタン、右下に説明文 */
.hero-split .container {
  position: relative; z-index: 1; align-self: stretch;
  display: grid; width: min(1200px, calc(100% - 48px));
  grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto 1fr auto; column-gap: 18px; align-items: center;
}
.hs-copy { display: contents; }
.hs-copy > span { font-size: clamp(28px, 3.6vw, 54px); line-height: 1.35; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
/* 「北は北海道から、」「南は沖縄まで。」を1行として横の中央に置く（左右の文の長さが違うので、間ではなく1行全体を中央に） */
.hs-copy > .hs-line { grid-column: 1 / -1; grid-row: 2; text-align: center; }
.hs-north, .hs-south { display: inline-block; }
.hs-south { margin-left: .33em; }
.hs-copy > .hs-main { grid-column: 1 / -1; grid-row: 3; margin-top: 24px; font-size: clamp(20px, 2.4vw, 32px); text-align: center; }
.hero.hero-split h1 em { color: #ffd38a; }
.hero-split .hero-actions { grid-column: 1; grid-row: 5; align-self: end; justify-content: flex-start; }
/* 説明文は参考画像に合わせて大きめ・太字。行が長くなるので、右の列からはみ出して左のボタンの手前（380px 空ける）まで広がってよい */
.hero-split .hero-lead { grid-column: 1 / -1; grid-row: 5; align-self: end; justify-self: end; max-width: min(720px, calc(100% - 380px)); margin: 0; opacity: 1; font-size: clamp(17px, 1.85vw, 22px); font-weight: 700; line-height: 1.7; }
/* 説明文は周りを暗くせず、文字のすぐ外側だけに紺の縁取り（ハロー）を付けて白い砂浜の上でも読めるようにする。
   1〜2px の濃い縁が文字の背景になるのでコントラストは 4.5:1 以上（WCAG の考え方でハローは背景として扱える） */
.hero-split .hero-lead { text-shadow: 0 0 1px rgba(0, 20, 40, .95), 0 0 2px rgba(0, 20, 40, .9), 0 0 4px rgba(0, 20, 40, .6), 0 1px 8px rgba(0, 0, 0, .35); }
@media (max-width: 960px) {
  /* 説明文が大きくなったので、タブレット幅では説明文を1段上に出し、その下にボタン */
  .hero-split .hero-lead { grid-row: 5; max-width: none; margin-bottom: 20px; }
  .hero-split .hero-actions { grid-row: 6; }
}
/* スマホ: すべて中央に縦並び。斜めの境目は上下に */
@media (max-width: 600px) {
  .hero.hero-split { min-height: 0; padding: calc(var(--header-h) + 28px) 0 64px; background-position: 20% 80%; background-size: cover; }
  /* 北海道は上側に。高さを区切ってから cover で敷くので、どの幅でも横いっぱいになる。境目は PC と同じく SVG のマスクでぼかす（箱の下にぼかしの余白を残すため高さは 60%） */
  .hero-split::before { inset: 0 0 auto; height: 60%; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='47.67' y1='63.85' x2='52.33' y2='79.15'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Crect width='100' height='100' fill='url(%23g)'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='47.67' y1='63.85' x2='52.33' y2='79.15'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Crect width='100' height='100' fill='url(%23g)'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; background-position: 25% 60%; }
  .hero-split .container { grid-template-columns: 1fr; grid-template-rows: none; text-align: center; }
  .hs-copy > span { font-size: 26px; }
  .hs-copy > .hs-line { grid-row: 1; }
  .hs-north, .hs-south { display: block; }
  .hs-south { margin-left: 0; }
  .hs-copy > .hs-main { grid-column: 1; grid-row: 3; margin-top: 14px; font-size: 20px; }
  .hero-split .hs-br { display: none; }
  .hero-split .hero-lead { grid-column: 1; grid-row: 4; justify-self: center; max-width: none; margin: 24px 0 32px; font-size: 16px; word-break: auto-phrase; }
  .hero-split .hero-actions { grid-column: 1; grid-row: 5; justify-content: center; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--c-accent); color: #fff; box-shadow: 0 8px 20px rgba(243,154,43,.35); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { border: 1.5px solid var(--c-primary); color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }


/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-soft { background: var(--c-bg-soft); }
.section-head { margin-bottom: 48px; }
.section-head .en {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .2em;
  color: var(--c-primary); text-transform: uppercase; margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; }
.section-head p { color: var(--c-muted); margin-top: 12px; max-width: 680px; }
.center { text-align: center; }
.center p { margin-inline: auto; }

/* News */
.news-list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.news-list li { display: flex; gap: 24px; padding: 20px 28px; border-bottom: 1px solid var(--c-line); align-items: center; }
.news-list li:last-child { border-bottom: 0; }
/* 枠の高さは「1行に収まる行 × 5件分」で一定。超える分は中をスクロール（高さは main.js が測って max-height に入れる。position は測るための行を重ねるため） */
.news-list { position: relative; }
.news-list.is-scroll { overflow-y: auto; overscroll-behavior: contain; }
.news-list.is-scroll:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.news-list time { font-weight: 700; color: var(--c-primary); font-variant-numeric: tabular-nums; flex: none; width: 7em; } /* 日付の幅は数字で変わるため固定（本文の書き出しをそろえる） */
.tag { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: #e6f0fa; color: var(--c-primary); white-space: nowrap; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: #e6f0fa; color: var(--c-primary); margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--c-muted); font-size: 15px; margin: 0; }

/* Product (Tonton) */
.product {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.product-visual {
  border-radius: 24px; padding: 40px;
  background: linear-gradient(145deg, #fff4e5, #ffe2bd);
  position: relative; min-height: 360px;
  display: flex; flex-direction: column; justify-content: center;
}
.product-visual .badge {
  position: absolute; top: 24px; right: 24px;
  background: var(--c-accent); color: #fff; font-weight: 700; font-size: 13px;
  padding: 6px 14px; border-radius: 999px;
}
.product-visual h3 { font-size: 40px; font-weight: 900; color: #7a3d00; }
.product-visual h3 small { display: block; font-size: 15px; font-weight: 700; color: #a2622a; letter-spacing: .1em; }
.product-visual ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product-visual li { background: rgba(255,255,255,.75); border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; color: #6b3a0c; }
.product-body h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 18px; }
.check-list { list-style: none; padding: 0; margin: 0 0 32px; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat;
}
.price-box { display: flex; align-items: baseline; gap: 10px; margin-bottom: 28px; padding: 16px 20px; border-radius: 12px; background: var(--c-bg-soft); }
.price-box strong { font-size: 28px; color: var(--c-accent); }
.product-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* Tech stack */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tech { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--c-line); }
.tech h4 { font-size: 14px; color: var(--c-primary); margin-bottom: 12px; letter-spacing: .05em; display: flex; align-items: center; gap: 10px; }
/* 会社情報「営業種目」の見出しアイコン（自作 SVG） */
.tech-icon { width: 34px; height: 34px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 13px; padding: 4px 10px; background: var(--c-bg-soft); border-radius: 6px; }

/* Timeline */
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 32px; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--c-primary), #9cc6ec); }
.timeline li { position: relative; padding: 0 0 28px 16px; }
.timeline li::before {
  content: ""; position: absolute; left: -30px; top: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--c-primary);
}
.timeline li.hl::before { background: var(--c-accent); border-color: var(--c-accent); }
.timeline time { display: block; font-weight: 700; color: var(--c-primary); font-size: 14px; }
.timeline time small { color: var(--c-muted); font-weight: 500; margin-left: 6px; }

/* Recruit */
.recruit { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.recruit-intro { position: sticky; top: calc(var(--header-h) + 24px); }
.recruit-roles { display: flex; gap: 12px; margin: 20px 0 28px; flex-wrap: wrap; }
.recruit-roles span { padding: 10px 18px; border-radius: 10px; background: var(--c-primary); color: #fff; font-weight: 700; }

/* Definition table */
.dl { margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.dl div { display: grid; grid-template-columns: 160px 1fr; border-bottom: 1px solid var(--c-line); }
.dl div:last-child { border-bottom: 0; }
.dl dt { padding: 18px 24px; background: #f8fafd; font-weight: 700; font-size: 14px; color: var(--c-muted); }
.dl dd { margin: 0; padding: 18px 24px; }
.dl ul { margin: 0; padding-left: 1.2em; }

/* Company + access */
.company { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.access-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.access-card iframe { width: 100%; height: 300px; border: 0; display: block; }
.access-card .body { padding: 24px; }
.access-card h3 { font-size: 18px; margin-bottom: 10px; }
.access-card p { color: var(--c-muted); font-size: 15px; }

/* Links */
.link-groups { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.link-group { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 28px; }
.link-group h3 { font-size: 16px; margin-bottom: 16px; }
.link-group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.link-group.single ul { grid-template-columns: 1fr; }
.link-group li a { font-size: 14px; }
.link-group li small { display: block; color: var(--c-muted); font-size: 12px; }
.link-group ul.link-logos { gap: 18px; }
.link-logos a { display: inline-block; line-height: 0; transition: opacity .2s; }
.link-logos a:hover { opacity: .75; }
.link-logos img { max-width: 100%; height: auto; }
.link-logos small { margin-top: 6px; }

/* Contact CTA */
.cta {
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
  color: #fff; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.cta h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.cta p { margin: 0; opacity: .9; }
.cta-tel { font-size: 32px; font-weight: 800; color: #fff; letter-spacing: .03em; display: block; }
.cta-tel:hover { text-decoration: none; opacity: .85; }
.cta small { display: block; opacity: .85; margin-bottom: 12px; }

.contact-band { padding: 0 0 96px; }
/* お問い合わせ枠（各ページ下部・「とんとん」詳細の試用版の案内）：右側に受話器と封筒の線画を大きく薄く敷く（画像ファイルは使わず SVG を直接書く） */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; opacity: .13;
  right: -24px; top: 50%; width: 420px; height: 260px; transform: translateY(-50%);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") left 10px top 10px / 170px 170px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E") right 0 bottom 0 / 240px 240px no-repeat;
}
@media (max-width: 600px) {
  .cta::before { width: 260px; height: 170px; right: -30px; top: auto; bottom: -10px; transform: none; background-size: 110px 110px, 160px 160px; }
}
.page-hero .crumb { font-size: 13px; opacity: .8; margin-bottom: 10px; }
.page-hero .crumb a { color: #fff; }
.home-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.home-links a { display: block; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; color: var(--c-text); transition: .25s; }
.home-links a:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow); }
.home-links strong { display: block; font-size: 17px; margin-bottom: 6px; }
.home-links span { font-size: 13px; color: var(--c-muted); }
/* カード上部のイラスト（index.html 内の SVG） */
.home-links .home-ill { display: flex; align-items: center; justify-content: center; height: 104px; margin-bottom: 18px; background: var(--c-bg-soft); border-radius: 10px; }
.home-links .home-ill svg { width: 100%; max-width: 120px; height: auto; aspect-ratio: 3 / 2; transition: transform .25s; } /* 狭い画面ではカード幅に合わせて縮む */
@media (max-width: 600px) { .home-links .home-ill { height: 88px; padding: 0 8px; margin-bottom: 14px; } }
.home-links a:hover .home-ill svg { transform: scale(1.06); }
.home-links .en { font-size: 11px; letter-spacing: .15em; color: var(--c-primary); font-weight: 700; display: block; margin-bottom: 8px; }
.banner-tonton { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; background: linear-gradient(145deg, #fff4e5, #ffe2bd); border-radius: 24px; padding: 32px; color: #4a2604; }
.banner-tonton:hover { text-decoration: none; }
.banner-tonton img { border-radius: 16px; width: 100%; height: auto; }
.banner-tonton h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; margin: 8px 0 12px; }
/* 左列に 自治体・養豚関連 を縦に重ね、右列に 他システム（2列構成） */
.dev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
.dev-col { display: grid; gap: 24px; }
.dev-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 28px; }
.dev-card h3 { font-size: 18px; margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; }
.dev-card h3 small { font-size: 12px; color: var(--c-muted); font-weight: 500; }
/* 見出し左の丸いアイコン（自作 SVG。自治体＝庁舎、養豚関連＝豚、他システム＝パソコンと歯車） */
.dev-h { display: inline-flex; align-items: center; gap: 12px; }
.dev-icon { width: 48px; height: 48px; flex: none; }
.dev-card ul { list-style: none; margin: 16px 0 0; padding: 0; }
.dev-card li { padding: 8px 0; border-top: 1px dashed var(--c-line); font-size: 14px; }
.series { display: grid; gap: 16px; }
.series article { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px 28px; border-left: 6px solid var(--c-accent); }
.series h3 { font-size: 18px; margin-bottom: 6px; }
.series h3 small { display: block; font-size: 13px; color: var(--c-muted); font-weight: 500; margin-bottom: 2px; }
.series p { margin: 0; color: var(--c-muted); font-size: 15px; }
/* 「とんとん」トップの製品カード: 左に画像（for Windows は旧サイトの製品ロゴ、他は自作 SVG）、右に文字 */
.series article { display: grid; grid-template-columns: 136px 1fr; gap: 22px; align-items: center; }
.series article h3 { margin-top: 0; }
.series-ill { display: flex; align-items: center; justify-content: center; padding: 6px; background: var(--c-bg-soft); border-radius: 10px; }
.series-ill svg { width: 100%; height: auto; }
.series-logo { padding: 0; background: none; }
.series-logo img { width: 100%; height: auto; border-radius: 8px; }
/* とんとんクラブ: 説明の右に成績表サンプル（pdf/tonprt.pdf の1ページ目を画像にした img/tonton/tonprt-sample.jpg） */
.club-doc { display: grid; grid-template-columns: 1fr 220px; gap: 28px; align-items: start; }
.club-sample { margin: 0; text-align: center; }
.club-sample a { display: block; border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(15, 40, 70, .08); transition: transform .2s, box-shadow .2s; }
.club-sample a:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15, 40, 70, .14); }
.club-sample img { display: block; width: 100%; height: auto; }
.club-sample figcaption { margin-top: 8px; font-size: 13px; color: var(--c-muted); }
@media (max-width: 600px) {
  .series article { grid-template-columns: 88px 1fr; gap: 14px; padding: 18px; }
  .club-doc { grid-template-columns: 1fr; }
  .club-sample { width: 100%; max-width: 240px; margin-inline: auto; }
}
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.photo-grid figure { margin: 0; }
.photo-grid img { border-radius: 12px; width: 100%; height: auto; }
.photo-grid figcaption { font-size: 13px; color: var(--c-muted); margin-top: 6px; }
.faq details { background: #fff; border: 1px solid var(--c-line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; gap: 12px; }
/* 右端の＋（開くと 45 度回って × になる。閉じ始めたら戻す。開閉の動きは main.js） */
.faq summary::after {
  content: "+"; flex: none; margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center;
  font-size: 26px; font-weight: 400; line-height: 1; color: var(--c-primary); transition: transform .45s ease;
}
.faq details[open]:not(.is-closing) > summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--c-primary); color: #fff; display: grid; place-items: center; font-size: 14px; }
.faq .a { padding: 0 22px 20px 62px; position: relative; color: var(--c-muted); }
.faq .a::before { content: "A"; position: absolute; left: 22px; top: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--c-accent); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.form-row select { width: 100%; max-width: 240px; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; background: #f8fafc; }

/* Footer */
.site-footer { background: #0d1b2a; color: #b8c3d1; padding: 56px 0 28px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .logo { color: #fff; }
.site-footer .logo-mark { background: none; border: 0; border-radius: 0; }
.site-footer .logo-text small { color: #8fa0b3; }
.site-footer address { font-style: normal; margin-top: 16px; line-height: 1.9; }
/* 企業情報の右側に横一列で並べる（狭い画面では下に回る） */
.footer-nav { flex: 1; min-width: 0; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; justify-content: flex-end; font-size: 13px; }
.footer-nav li + li::before { content: "|"; color: #4b5b6e; margin: 0 8px; }
@media (max-width: 800px) {
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-nav { width: 100%; }
  .footer-nav ul { flex-wrap: wrap; justify-content: flex-start; row-gap: 6px; }
}
.footer-nav a { white-space: nowrap; }
.site-footer a { color: #d6dee8; }
.copyright { text-align: center; padding-top: 24px; font-size: 12px; color: #7f8fa3; }

/* Page top */
/* 位置は画面幅によらず、画面の右下から右 20px・下 20px（2026-11-10。以前は広い画面で本文枠の右へ寄せていた） */
.to-top {
  position: fixed; right: 20px; bottom: 20px;
  width: 48px; height: 48px; border-radius: 0; box-sizing: border-box;
  /* 青の下地を高さ 0 で下端に置き、カーソルが当たると下から上へ伸ばす */
  background: linear-gradient(var(--c-primary), var(--c-primary)) no-repeat left bottom / 100% 0 #fff;
  color: var(--c-primary); border: 2px solid var(--c-primary);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; letter-spacing: .05em; line-height: 1;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s, background-size .3s, color .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { text-decoration: none; background-size: 100% 100%; color: #fff; }

/* Sub page */
/* 青空（Wikimedia Commons, CC0）。画像が届くまでは下地の青を表示 */
.page-hero {
  padding: calc(var(--header-h) + 56px) 0 56px; color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 63, 117, .88) 0%, rgba(0, 85, 160, .6) 50%, rgba(26, 105, 172, .15) 100%),
    url("../img/common/hero-sky.jpg") center / cover no-repeat,
    #1a69ac;
}
.page-hero h1 { font-size: clamp(26px, 4vw, 38px); }
.prose { max-width: 820px; }
.prose h2 { font-size: 20px; margin: 40px 0 12px; padding-left: 14px; border-left: 4px solid var(--c-primary); }
.prose .sign { text-align: right; color: var(--c-muted); }
.prose .box { background: var(--c-bg-soft); border-radius: var(--radius); padding: 24px; margin-top: 32px; }

/* ---------- とんとん 紹介ページ ---------- */
.tt-hero {
  padding: calc(var(--header-h) + 56px) 0 72px;
  background: linear-gradient(160deg, #fff8ee 0%, #ffe6c4 100%);
}
.tt-hero .container { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.tt-hero .eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: #a2622a; background: #fff; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.tt-hero h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 900; color: #4a2604; }
.tt-hero h1 em { font-style: normal; color: var(--c-accent); }
.tt-hero p.lead { margin: 20px 0 32px; color: #6b4a2b; font-size: 16px; }
.tt-hero-img { border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px rgba(122, 61, 0, .2); }
.tt-hero-img img { width: 100%; height: auto; }
.btn-dark { background: #4a2604; color: #fff; }
.btn-dark:hover { background: #2f1802; }

.problem { max-width: 860px; margin-inline: auto; background: #fff; border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
.problem p { font-size: 16px; }
.problem strong { color: #c2410c; }
.problem .big { font-size: 18px; font-weight: 700; color: var(--c-text); margin: 0; }
.problem .big mark { background: linear-gradient(transparent 60%, #ffe0a8 60%); color: inherit; }

.qa { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.qa-item { border-radius: 20px; padding: 32px; position: relative; overflow: hidden; }
.qa-item h3 { font-size: 22px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.qa-item h3 .q { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 18px; flex: none; }
.qa-item p, .qa-item li { font-size: 15px; }
.qa-item ul { padding-left: 1.2em; margin: 12px 0 0; }
.qa-item li { margin-bottom: 6px; }
.qa-1 { background: #e7f7ec; } .qa-1 .q { background: #16a34a; }
.qa-2 { background: #e4f3f0; } .qa-2 .q { background: #0f766e; }
.qa-3 { background: #fbf8dc; } .qa-3 .q { background: #a16207; }
.qa-4 { background: #fff0e0; } .qa-4 .q { background: #ea580c; }
.qa-wide { grid-column: 1 / -1; }

.reach { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; background: #fff1ec; border-radius: 24px; padding: 48px; }
.reach .num { font-size: clamp(56px, 8vw, 88px); font-weight: 900; color: #e11d48; line-height: 1; }
.reach .num small { font-size: 24px; margin-left: 4px; }
.reach h2 { font-size: clamp(20px, 2.6vw, 26px); margin: 12px 0 16px; word-break: auto-phrase; } /* 「いただい／た」のような途中改行を避ける（対応ブラウザのみ） */
/* 導入地域の日本地図（img/tonton/japan-map.png。背景は透明） */
.reach-map { margin: 0; }
.reach-map img { display: block; width: 100%; height: auto; }
.reach-map figcaption { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--c-text); }
.reach-map .swatch { flex: none; width: 28px; height: 14px; margin-top: 4px; background: #ee7275; border: 1px solid #3d2d29; }

.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.voice { background: #fff; border: 1px solid var(--c-line); border-radius: 20px; padding: 32px; position: relative; }
.voice::before { content: "\201C"; position: absolute; top: 4px; left: 20px; font-size: 72px; color: #fdd8a8; font-family: Georgia, serif; line-height: 1; }
.voice p { position: relative; margin-top: 24px; }
.voice footer { font-weight: 700; text-align: right; color: var(--c-muted); font-size: 14px; }

.screens-teaser { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.screens-teaser img { border-radius: 10px; border: 1px solid var(--c-line); width: 100%; height: auto; }

.pricing { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.price-card { border-radius: 20px; padding: 36px; background: #fff; border: 2px solid var(--c-accent); }
.price-card .label { font-weight: 700; color: #b45309; }
.price-card .amount { font-size: clamp(40px, 6vw, 56px); font-weight: 900; color: #dc2626; line-height: 1.2; margin: 8px 0; }
.price-card .amount small { font-size: 18px; color: var(--c-text); }
.price-card .lease-tag { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; background: var(--c-accent); color: #fff; font-size: 13px; vertical-align: 1px; }
.price-includes { list-style: none; margin: 0 0 12px; padding: 0; }
.price-includes li { position: relative; padding-left: 26px; font-weight: 700; }
.price-includes li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.price-lease { margin: 0 0 12px; font-size: 14px; }
.tel-card { border-radius: 20px; padding: 36px; background: #fffbea; border: 2px solid #facc15; }
.tel-card .tel { font-size: clamp(26px, 4vw, 34px); font-weight: 800; color: var(--c-text); display: block; margin: 8px 0; letter-spacing: .03em; }

.form-card { max-width: 760px; margin-inline: auto; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 40px; }
.form-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--c-line); align-items: start; }
.form-row label.head { font-weight: 700; font-size: 15px; padding-top: 10px; }
.req { display: inline-block; margin-right: 8px; font-size: 11px; background: var(--c-primary); color: #fff; padding: 1px 8px; border-radius: 4px; vertical-align: middle; } /* 必須は青 */
.req.opt { background: #facc15; color: #4a2604; } /* 任意（必須でない項目）は黄。白い文字は読めないので濃い茶色 */
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="tel"], .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; background: #f8fafc;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; background: #fff; }
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row .inline { display: flex; align-items: center; gap: 8px; }
.form-row .inline input { max-width: 160px; }
/* お問い合わせの営業メール対策のチェック欄（contact.html）。項目名は span なので label.head と同じ見た目をここで付ける。
   入力欄が無いので上の余白は取らず、行も低め。項目名・文章の行の高さを 24px にそろえ、チェック欄（18px）は 1 行目の中央に置く（(24-18)/2 = 3px） */
.form-row.form-check { padding: 12px 0; }
.form-check .head { font-weight: 700; font-size: 15px; line-height: 24px; }
.form-check label { display: flex; align-items: flex-start; gap: 10px; line-height: 24px; cursor: pointer; }
.form-check input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--c-primary); }
.checks { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #cbd5e1; border-radius: 999px; cursor: pointer; }
.checks input { accent-color: var(--c-accent); }
.form-actions { text-align: center; margin-top: 28px; }
.form-actions button { border: 0; cursor: pointer; font-family: inherit; }

/* お問い合わせ（contact.html） */
.contact-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 368px)); justify-content: center; gap: 24px; }
.contact-hours { text-align: center; font-size: 14px; color: var(--c-muted); margin: 20px 0 72px; }
.section-head p.contact-note { max-width: none; font-size: 14px; color: var(--c-text); }
.contact-ways .card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-ways .card:hover { transform: none; box-shadow: none; }
.contact-ways .card-icon { margin-bottom: 14px; }
.contact-ways small { color: var(--c-muted); font-size: 14px; font-weight: 700; }
.contact-num { font-size: clamp(26px, 3vw, 32px); font-weight: 700; color: var(--c-primary); letter-spacing: .03em; white-space: nowrap; line-height: 1.4; }
a.contact-num:hover { text-decoration: none; opacity: .8; }
/* 「お電話・FAXでのお問い合わせ」「メールでのお問い合わせ」の見出し（同じ大きさ） */
.contact-head { margin-bottom: 32px; }
#mail { scroll-margin-top: 24px; } /* contact.html#mail で来たとき、見出しがヘッダーに貼り付かないよう少し空ける */
/* フォーム下の個人情報保護方針：高さを抑えて枠の中だけスクロール */
.contact-policy { max-width: 760px; margin: 72px auto 0; }
.policy-scroll { max-width: none; height: 320px; overflow-y: auto; overscroll-behavior: contain; font-size: 14px; }
.policy-scroll:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.policy-scroll h3 { font-size: 16px; margin: 24px 0 10px; padding-left: 12px; border-left: 4px solid var(--c-accent); }
.policy-scroll .box { margin-top: 24px; }
.contact-head h2 { font-size: clamp(20px, 2.6vw, 26px); }
@media (max-width: 600px) {
  .contact-ways { grid-template-columns: 1fr; gap: 16px; }
  .contact-hours { margin-bottom: 56px; }
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 14px; }
.form-done { text-align: center; }
.form-done h2 { font-size: 22px; color: var(--c-primary); margin-bottom: 12px; }
.form-done p { color: var(--c-muted); }
/* 「とんとん」紹介フォームの確認・完了・エラー画面（tontonlp/confirm.php・complete.php・error.php） */
.form-card-title { font-size: clamp(20px, 2.6vw, 24px); margin-bottom: 8px; }
.form-card-lead { color: var(--c-muted); font-size: 14px; margin: 0 0 20px; }
.confirm-list.confirm-list-html dd { white-space: normal; } /* 備考は PHP 側で <br /> にしてあるので、改行文字では折り返さない */
.field-error { color: #b91c1c; font-weight: 700; }
.form-done-icon { width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #16a34a; } /* 完了は緑、エラー（.is-ng）は赤 */
.form-done-icon svg { width: 22px; height: 22px; }
.form-done-icon.is-ng { background: #dc2626; }
.form-done h2.is-ok { color: #16a34a; }
.form-done h2.is-ng { color: #b91c1c; }
/* 失敗画面の理由（見積フォームの mail.cgi のエラー、お問い合わせの contact.php の理由） */
.form-done-errors { list-style: none; margin: 0 auto 16px; padding: 12px 16px; max-width: 520px; text-align: left; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; color: #b91c1c; font-size: 14px; }
.form-done-errors li + li { margin-top: 4px; }
.form-done-tel { max-width: 440px; margin: 28px auto 0; padding: 24px; }
.form-done-tel p { color: var(--c-text); }
.form-done-tel .tel { white-space: nowrap; font-size: clamp(24px, 6.4vw, 34px); }
@media (max-width: 600px) {
  .form-card.form-done { padding: 32px 18px; }
  .form-done-tel { padding: 20px 12px; }}
.form-done .form-actions button { cursor: pointer; font-family: inherit; background: #fff; border: 1.5px solid var(--c-primary); }
.form-done .form-actions button:hover { background: var(--c-primary); }
dialog.confirm-dialog { border: 0; padding: 32px; border-radius: 16px; width: min(640px, calc(100% - 32px)); max-height: calc(100% - 32px); background: #fff; color: var(--c-text); box-shadow: var(--shadow); }
dialog.confirm-dialog::backdrop { background: rgba(10, 20, 35, .6); }
dialog.confirm-dialog h2 { font-size: 20px; margin-bottom: 8px; }
dialog.confirm-dialog > p { color: var(--c-muted); font-size: 14px; margin: 0 0 16px; }
.confirm-list { margin: 0; border-top: 1px solid var(--c-line); }
.confirm-list dt { font-weight: 700; font-size: 14px; padding-top: 12px; }
.confirm-list dd { margin: 4px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); white-space: pre-wrap; overflow-wrap: anywhere; }
.confirm-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.confirm-actions .btn { cursor: pointer; font-family: inherit; min-width: 140px; justify-content: center; }
.confirm-actions .btn-primary { border: 0; }
.confirm-actions .btn-outline { background: #fff; }
.confirm-actions .btn-outline:hover { background: var(--c-primary); }
.confirm-actions .btn:disabled { opacity: .6; cursor: wait; transform: none; }
@media (max-width: 600px) {
  dialog.confirm-dialog { padding: 22px 18px; }
  .confirm-actions .btn { min-width: 0; flex: 1; }
}

/* ---------- とんとん 詳細ページ ---------- */
.detail-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.detail-layout > * { min-width: 0; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; font-size: 14px; }
.toc strong { display: block; margin-bottom: 8px; font-size: 13px; color: var(--c-muted); letter-spacing: .1em; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--c-text); }
.toc a:hover, .toc a.active { background: #e6f0fa; color: var(--c-primary); text-decoration: none; }
.toc ol ol a { padding-left: 22px; font-size: 13px; color: var(--c-muted); }
.detail-body > section { padding: 0 0 64px; }
.detail-body h2 { font-size: clamp(22px, 2.8vw, 28px); font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
/* 見出しの番号（01 など）：見出しの文字と同じくらいの高さの角丸の四角にする */
.detail-body h2 .no {
  flex: none; display: inline-grid; place-items: center;
  min-width: clamp(34px, 3.6vw, 42px); height: clamp(34px, 3.6vw, 42px); padding: 0 6px;
  font-size: clamp(14px, 1.5vw, 17px); line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums;
  color: #fff; background: var(--c-primary); border-radius: 10px;
}
.detail-body h3 { font-size: 18px; margin: 32px 0 14px; padding-left: 12px; border-left: 4px solid var(--c-accent); }

/* 「とんとん」お知らせ詳細（iframe_RFID_Expr / iframe_PdaSys / iframe_trcblty） */
.news-date { color: var(--c-muted); font-size: 14px; margin: 0 0 20px; }
.detail-body p + h2, .detail-body .note + h2 { margin-top: 40px; }
.news-rows { display: grid; gap: 16px; }
.news-row { display: grid; grid-template-columns: 1fr 225px; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 24px; }
.news-row h2 { font-size: 18px; margin-bottom: 10px; }
.news-row p { margin: 0; }
.news-row img { border-radius: 8px; width: 100%; height: auto; }
.dot-list { margin: 0; padding-left: 1.2em; }
.dot-list li + li { margin-top: 4px; }
.pda-grid { max-width: 600px; align-items: end; }
.pda-grid figcaption { text-align: center; }
.acrobat { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; font-size: 13px; color: var(--c-muted); }
.acrobat img { flex-shrink: 0; }
.acrobat p { margin: 0; }
.letter { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 32px; }
.letter .sign { text-align: right; color: var(--c-muted); font-size: 14px; margin: 0; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; counter-reset: f; }
.feature-list li { counter-increment: f; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 20px 20px 20px 64px; position: relative; }
.feature-list li::before { content: counter(f); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; font-weight: 800; }

.diagram { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 32px; text-align: center; }
.diagram .core { display: inline-block; background: linear-gradient(135deg, var(--c-primary), #2a9df4); color: #fff; font-weight: 800; padding: 16px 32px; border-radius: 14px; font-size: 18px; }
.diagram .core small { display: block; font-size: 12px; opacity: .85; font-weight: 500; }
.diagram .mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 32px; position: relative; }
.diagram .mods::before { content: ""; position: absolute; left: 50%; top: -32px; height: 32px; width: 2px; background: #9cc6ec; }
.diagram .mods a { display: block; padding: 14px 10px; border-radius: 10px; background: #e6f0fa; font-weight: 700; font-size: 14px; color: var(--c-primary-dark); }
.diagram .mods a:hover { background: var(--c-primary); color: #fff; text-decoration: none; }

details.fn { background: #fff; border: 1px solid var(--c-line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
details.fn summary { cursor: pointer; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; list-style: none; }
details.fn summary::-webkit-details-marker { display: none; }
details.fn summary::after { content: "+"; font-size: 22px; color: var(--c-primary); transition: transform .45s ease; }
details.fn[open]:not(.is-closing) summary::after { transform: rotate(45deg); }
details.fn summary .count { font-size: 12px; font-weight: 500; color: var(--c-muted); margin-left: 8px; }
.fn-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fn-table th, .fn-table td { padding: 10px 16px; border-top: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.fn-table th { width: 42%; font-weight: 600; white-space: nowrap; }
.fn-table th span { display: inline-block; min-width: 2em; color: var(--c-muted); font-weight: 500; }
.fn-table td { color: var(--c-muted); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 12px 14px; font-size: 13px; color: var(--c-muted); line-height: 1.6; }
/* 幅は説明文の長さで変わらないよう固定（一番大きい 900px に統一）。画面の高さが低いときは、画像（4:3）と説明文が収まる幅まで縮める */
dialog.lightbox { border: 0; padding: 0; border-radius: 12px; width: min(900px, 94vw, (100vh - 160px) * 4 / 3); max-width: none; background: #fff; }
dialog.lightbox::backdrop { background: rgba(10, 20, 35, .8); }
dialog.lightbox img { width: 100%; height: auto; }
dialog.lightbox p { padding: 14px 18px; margin: 0; font-size: 14px; }
dialog.lightbox .close { z-index: 1; position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 20px; cursor: pointer; }

.point-list { list-style: none; padding: 0; margin: 0; }
.point-list > li { background: #fff; border: 1px solid var(--c-line); border-radius: 12px; padding: 20px 24px; margin-bottom: 12px; }
.point-list > li > strong { display: block; margin-bottom: 6px; }
.point-list ol { margin: 6px 0 0; padding-left: 1.4em; color: var(--c-muted); font-size: 15px; }

.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--c-line); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table.wide { min-width: 560px; }
.data-table th, .data-table td { padding: 12px 16px; border-bottom: 1px solid var(--c-line); text-align: left; }
.data-table thead th { background: #f1f6fc; color: var(--c-primary-dark); font-weight: 700; }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tr.sub td { background: #fafbfd; font-weight: 700; }
.data-table tr.total td { background: #fff7ea; font-weight: 800; font-size: 16px; }
.note { font-size: 13px; color: var(--c-muted); margin-top: 10px; }
.note p { margin: 0 0 4px; }
.note-em { color: #d32f2f; }
small.note-em { display: inline-block; margin-top: 4px; }
.note-lines { display: block; margin-top: 4px; color: var(--c-muted); font-size: 12px; line-height: 1.7; }

/* スクロールで浮かび上がる表示（.reveal）は 2026-11-06 にやめた */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .product, .recruit, .company, .link-groups { grid-template-columns: 1fr; }
  .recruit-intro { position: static; }
  .cta { grid-template-columns: 1fr; padding: 40px 28px; }
  .tt-hero .container, .reach, .pricing { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .toc ol ol { display: none; }
  .toc > ol { display: flex; flex-wrap: wrap; gap: 4px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .home-links { grid-template-columns: 1fr 1fr; }
  .banner-tonton { grid-template-columns: 1fr; }
}
/* 社名とメニューが1行に収まるよう、スマホメニューに切り替わる手前の幅では詰める */
.logo-text, .nav a { white-space: nowrap; }
@media (max-width: 1000px) {
  .site-header .container { gap: 12px; }
  .nav a { padding: 8px 9px; font-size: 13px; }
  .logo-text strong { font-size: 15px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--c-line);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav.open { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .nav .sub a { font-size: 13px; color: var(--c-muted); padding: 8px 14px; }
  .nav .has-sub > a::after { display: none; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; }
  .nav a { border-radius: 8px; padding: 12px 14px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
.sp-none { display: none; }

@media (max-width: 600px) {
  .sp-none { display: inline; }
  .news-row { grid-template-columns: 1fr; padding: 20px; }
  .news-row img { max-width: 320px; }
  .hero h1 { font-size: 24px; }
  section { padding: 72px 0; }
  .container { width: calc(100% - 32px); }
  .hero { padding: calc(var(--header-h) + 64px) 0 80px; }
  /* スマホは文字が全幅になるので、写真全体に青を重ねる */
  .hero { background: linear-gradient(rgba(0, 47, 95, .72), rgba(0, 63, 117, .6)), url("../img/common/hero-beach.jpg") 30% center / cover no-repeat, #1a69ac; }
  .page-hero { background: linear-gradient(rgba(0, 63, 117, .62), rgba(0, 85, 160, .4)), url("../img/common/hero-sky.jpg") center / cover no-repeat, #1a69ac; }
  .cards, .tech-grid { grid-template-columns: 1fr; }
  .dev-grid { grid-template-columns: 1fr; }
  .news-list li { flex-wrap: wrap; gap: 4px 12px; padding: 16px 20px; }
  .news-list li p { width: 100%; }
  .dl div { grid-template-columns: 1fr; }
  .dl dt { padding: 12px 20px 4px; background: #fff; }
  .dl dd { padding: 0 20px 14px; }
  .product-visual { padding: 28px; min-height: 0; }
  .product-visual h3 { font-size: 30px; }
  .link-group ul { grid-template-columns: 1fr; }
  .cta-tel { font-size: 26px; }
  .qa, .voices, .feature-list, .gallery, .photo-grid { grid-template-columns: 1fr; }
  .contact-band { padding-bottom: 72px; }
  .footer-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: center; }
  .footer-nav li + li::before { display: none; }
  .faq .a { padding-left: 22px; padding-top: 36px; }
  .screens-teaser { grid-template-columns: 1fr 1fr; }
  .reach, .problem, .form-card, .price-card, .tel-card, .letter { padding: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 6px; }
  .form-row label.head { padding-top: 0; }
  .fn-table th { white-space: normal; width: auto; display: block; border-top: 1px solid var(--c-line); padding-bottom: 2px; }
  .fn-table td { display: block; border-top: 0; padding-top: 0; }
  .fn-table tr { display: block; }
}
