/* =========================================================
   株式会社ジオニック コーポレートサイト 共通スタイル
   ブランド色はロゴ（ZEONICオレンジ／エンブレムのネイビー）から採色
   ========================================================= */
:root {
  --orange: #fd7e00;      /* ロゴのオレンジ */
  --orange-ink: #a85200;  /* 白地の文字に使う濃いオレンジ（コントラスト確保） */
  --navy: #002060;        /* ロゴのネイビー */
  --navy-deep: #00153f;
  --ink: #1b1f2a;
  --muted: #5b6270;
  --steel: #eef0f3;
  --line: #d5d9e0;
  --white: #ffffff;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --display: "Barlow Semi Condensed", "Noto Sans JP", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.85; letter-spacing: .02em;
  font-feature-settings: "palt" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand img { width: 168px; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.gnav a { display: block; padding: 8px 10px; font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: 4px; }
.gnav a:hover, .gnav a[aria-current="page"] { color: var(--navy); background: var(--steel); }
.gnav .has-sub { position: relative; }
.gnav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--white); border: 1px solid var(--line); padding: 6px; flex-direction: column; align-items: stretch; }
.gnav .has-sub:hover .sub, .gnav .has-sub:focus-within .sub { display: flex; }
.gnav .btn-contact { background: var(--orange); color: var(--navy-deep); font-weight: 700; padding: 8px 16px; margin-left: 6px; }
.gnav .btn-contact:hover { background: #ff9426; color: var(--navy-deep); }
.gnav .lang { font-family: var(--display); font-weight: 600; letter-spacing: .04em; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .gnav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; max-height: calc(100vh - 72px); overflow-y: auto; }
  .gnav.open { display: block; }
  .gnav ul { flex-direction: column; align-items: stretch; }
  .gnav .sub { display: flex; position: static; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .gnav .btn-contact { margin: 8px 0 0; text-align: center; }
}

/* ---------- ヒーロー（トップ） ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; background: var(--navy); color: var(--white); min-height: 560px; }
.hero-copy { padding: 72px 56px 64px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); display: flex; flex-direction: column; justify-content: center; }
.tagline { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(52px, 7.4vw, 104px); line-height: .95; letter-spacing: -.01em; margin: 0 0 20px; }
.tagline .dot { color: var(--orange); }
.hero-sub { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; margin: 0 0 18px; line-height: 1.5; }
.hero-lead { font-size: 16px; color: #d9e0ef; max-width: 34em; margin: 0 0 32px; }
.hero-photo { position: relative; overflow: hidden; background: #0a0f1c; margin: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hero-photo figcaption { position: absolute; left: 16px; bottom: 12px; font-size: 12px; color: #fff; background: rgba(0,21,63,.7); padding: 2px 8px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 48px 20px 40px; }
  .hero-photo { height: 300px; }
}

/* 開発目標値の帯 */
.spec-strip { background: var(--orange); color: var(--navy-deep); }
.spec-strip .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 48px; padding-top: 18px; padding-bottom: 18px; }
.spec-strip dl { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 0; }
.spec-strip dl div { display: flex; align-items: baseline; gap: 10px; }
.spec-strip dt { font-size: 14px; font-weight: 700; }
.spec-strip dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; }
.spec-strip dd small { font-family: var(--sans); font-size: 14px; font-weight: 700; margin-left: 2px; }
.spec-strip .strip-note { font-size: 13px; font-weight: 700; margin: 0 0 0 auto; color: var(--navy-deep); }

/* ---------- ボタン ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 4px; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--orange); color: var(--navy-deep); }
.btn-primary:hover { background: #ff9426; color: var(--navy-deep); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- セクション共通 ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--steel); }
.section.dark { background: var(--navy); color: var(--white); }
.section.dark a { color: var(--white); }
.section h2, .hero-sub, .page-head h1, .cta h2 { text-wrap: balance; }
.section h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.45; margin: 0 0 16px; color: var(--navy); letter-spacing: .03em; }
.section.dark h2 { color: var(--white); }
.section .intro { max-width: 46em; color: var(--muted); margin: 0 0 40px; }
.section.dark .intro { color: #d9e0ef; }
h3 { font-size: 19px; line-height: 1.5; margin: 0 0 8px; color: var(--ink); }
.section.dark h3 { color: var(--white); }
p { margin: 0 0 1em; }

/* ページ見出し（下層） */
.page-head { background: var(--navy); color: var(--white); padding: 56px 0 48px; }
.page-head h1 { margin: 0; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.4; letter-spacing: .03em; }
.page-head .en { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 18px; color: var(--orange); margin: 0 0 6px; }
.page-head .lead { margin: 16px 0 0; color: #d9e0ef; max-width: 44em; }
.crumbs { font-size: 13px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "／"; margin-right: 4px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* グリッド */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cols-3, .cols-2, .cols-4 { grid-template-columns: 1fr; gap: 32px; } .section { padding: 64px 0; } }

/* 課題・技術などの項目（罫線で区切る） */
.point { border-top: 3px solid var(--navy); padding-top: 18px; }
.section.dark .point { border-top-color: var(--orange); }
.point p { color: var(--muted); margin: 0; }
.section.dark .point p { color: #d9e0ef; }

/* 用途タイル */
.use { display: block; text-decoration: none; color: var(--ink); background: var(--white); padding: 24px; border: 1px solid var(--line); border-radius: 6px; height: 100%; }
.use:hover { border-color: var(--navy); color: var(--ink); }
.use svg { width: 40px; height: 40px; color: var(--navy); margin-bottom: 12px; }
.use p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* 2カラム（画像＋文） */
.media { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.media.flip > :first-child { order: 2; }
.media figure { margin: 0; }
.media figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .media { grid-template-columns: 1fr; gap: 28px; } .media.flip > :first-child { order: 0; } }

/* 表 */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table th { width: 28%; background: var(--steel); font-weight: 700; color: var(--navy); }
.table thead th { background: var(--navy); color: var(--white); width: auto; }
.table .num { font-family: var(--display); font-weight: 700; font-size: 20px; }
.table-scroll { overflow-x: auto; }
.table-note { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
@media (max-width: 640px) { .table th { width: 36%; } .table th, .table td { padding: 12px 10px; } }

/* 沿革（年代順） */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); }
.timeline li.plan::before { background: var(--white); border: 2px solid var(--orange); }
.timeline time, .timeline .year { display: block; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--navy); line-height: 1.4; }
.timeline .plan .year { color: var(--orange-ink); }

/* 開発ステータス（トップ） */
.status { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.status li { padding: 20px 24px 20px 0; border-top: 3px solid var(--line); }
.status li.now { border-top-color: var(--orange); }
.status .year { display: block; font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--navy); }
@media (max-width: 640px) { .status { grid-template-columns: 1fr; } }

/* お知らせ */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 9em 9em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.news .cat { font-size: 12.5px; border: 1px solid var(--navy); color: var(--navy); padding: 0 8px; border-radius: 3px; justify-self: start; }
.news time { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--muted); }
@media (max-width: 640px) { .news li { grid-template-columns: auto 1fr; } .news li > :last-child { grid-column: 1 / -1; } }
.article { border-top: 1px solid var(--line); padding: 32px 0; }
.article h2 { font-size: 22px; }

/* 役員 */
.ceo { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.ceo img { border-radius: 4px; }
.role { font-size: 14px; color: var(--muted); margin: 0; }
.name { font-size: 24px; font-weight: 700; margin: 0 0 12px; color: var(--navy); }
.officers { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; }
.officers li { border-top: 1px solid var(--line); padding-top: 16px; }
.officers .name { font-size: 19px; margin-bottom: 6px; }
.officers p { font-size: 14.5px; color: var(--muted); margin: 0; }
@media (max-width: 760px) { .ceo { grid-template-columns: 1fr; } .ceo img { max-width: 220px; } .officers { grid-template-columns: 1fr; } }

/* 注記・リスト */
.note { font-size: 13.5px; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.4em; margin-bottom: 8px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .72em; width: .6em; height: .6em; background: var(--orange); }
.tag-dev { display: inline-block; font-size: 13px; font-weight: 700; color: var(--navy-deep); background: var(--orange); padding: 0 8px; border-radius: 3px; vertical-align: middle; margin-left: 8px; letter-spacing: .04em; }

/* 3層構成図 */
.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.layers li { display: grid; grid-template-columns: 13em 1fr; gap: 16px; padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.layers li strong { color: var(--navy); }
@media (max-width: 640px) { .layers li { grid-template-columns: 1fr; gap: 4px; } }

/* CTA帯 */
.cta { background: var(--orange); color: var(--navy-deep); padding: 56px 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta h2 { margin: 0; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.5; color: var(--navy-deep); }
.cta .btn { background: var(--navy); color: var(--white); }
.cta .btn:hover { background: var(--navy-deep); color: var(--white); }

/* フォーム */
.form { max-width: 760px; }
.field { margin-bottom: 22px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.req { font-size: 12px; font-weight: 700; color: var(--white); background: #b3261e; padding: 1px 6px; border-radius: 3px; margin-left: 8px; }
.opt { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 0 6px; border-radius: 3px; margin-left: 8px; font-weight: 500; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #aeb5c1; border-radius: 4px; background: var(--white); color: var(--ink);
}
.field textarea { min-height: 200px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0 0 22px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.radios label { font-weight: 400; display: flex; align-items: center; gap: 6px; margin: 0; }
.consent { background: var(--steel); padding: 16px 18px; border-radius: 4px; }
.form-msg { margin-top: 16px; font-weight: 700; }
.form-msg.error { color: #b3261e; }
.form button { font: inherit; cursor: pointer; }

/* 法務ページ */
.legal { max-width: 46em; }
.legal h2 { font-size: 20px; margin: 40px 0 10px; }
.legal ol, .legal ul { padding-left: 1.4em; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy-deep); color: #cfd6e6; padding: 56px 0 32px; font-size: 14px; }
.site-footer a { color: #e8ecf5; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; }
.footer-grid img { width: 170px; margin-bottom: 16px; }
.footer-grid address { font-style: normal; line-height: 1.9; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.legal-note { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; font-size: 12.5px; color: #9aa6bf; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } .footer-nav { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header, .cta, .site-footer { display: none; } }

/* ---------- 動画（v4） ---------- */
.hero-video video { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; display: block; background: #0a0f1c; }
.video-toggle {
  position: absolute; right: 14px; bottom: 12px; z-index: 2;
  font: inherit; font-size: 12.5px; color: var(--white); background: rgba(0,21,63,.75);
  border: 1px solid rgba(255,255,255,.6); border-radius: 3px; padding: 4px 10px; cursor: pointer;
}
.video-toggle:hover { background: rgba(0,21,63,.95); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.video-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.video-card { margin: 0; }
.video-card video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #0a0f1c; border-radius: 4px; display: block; }
.video-card figcaption { margin-top: 14px; }
.video-card h3 { margin-bottom: 4px; }
.video-card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.video-card .meta { font-size: 13px; margin-top: 6px; }
.section.dark .video-card p { color: #d9e0ef; }
@media (max-width: 900px) { .video-grid, .video-grid:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; gap: 36px; } }

/* 言語切り替え（v4.1：インドネシア国旗） */
.gnav .lang { display: flex; align-items: center; gap: 6px; }
.gnav .lang .flag { width: 21px; height: 14px; flex: none; box-shadow: 0 0 0 1px #c3c9d3; border-radius: 1px; }
