@charset "UTF-8";
/* サイト共通のヘッダー・フッター・お手紙モーダル
   レイアウトは Figma（サイバーイージス / ダッシュボード）、配色・書体は「デザイン仕様書 4. 色と文字」に従う。
   仕様書の色表にない色は使わない（半透明は仕様書の色に透明度を付けたものだけ）。
   GMOグループ共通ヘッダー・フッターは外部スクリプトで読み込むため、ここでは扱わない */

:root {
  /* デザイン仕様書 4. 色と文字 */
  --ca-bg-page: #0E1116;      /* ページの背景 */
  --ca-bg-first: #04060A;     /* 最初の画面の背景 */
  --ca-bg-card: #171C23;      /* カードの背景 */
  --ca-border: #2B323D;       /* 枠線 */
  --ca-text: #F2F4F7;         /* 本文の文字 */
  --ca-text-sub: #C9CED6;     /* 補足の文字 */
  --ca-text-sub2: #A7AEB9;    /* 補足の文字（弱） */
  --ca-link: #8CC2FF;         /* グラフ・リンク（青） */
  --ca-link-strong: #6FB1FF;  /* グラフ・リンク（青） */
  --ca-pop-bg: #FFFFFF;       /* 調査資料のポップアップ：背景 */
  --ca-pop-text: #1F242B;     /* 調査資料のポップアップ：文字 */
  --ca-pop-alert: #B3261E;    /* 調査資料のポップアップ：警告 */
  --ca-link-on-light: #005BAC; /* 白背景の上のリンク（お手紙モーダル） */
  --ca-font: "Noto Sans JP", system-ui, sans-serif;
}

/* ページ内リンクの着地位置を、固定表示のヘッダー（GMO共通ヘッダー＋サイトヘッダー46px）の下にずらす */
/* スマホのブラウザが横スクロール表などの文字を勝手に拡大しないようにする */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html { scroll-padding-top: calc(var(--ca-gmo-header-h, 29px) + 46px + 16px); }

/* ===== ヘッダー ===== */
.ca-header {
  /* GMOグループ共通ヘッダー（PCでは position: fixed）の直下に固定する */
  position: sticky; top: var(--ca-gmo-header-h, 29px); z-index: 50;
  height: 46px; padding: 0 80px;
  display: flex; align-items: center; justify-content: flex-start; gap: 60px;
  background: rgba(0, 28, 84, .6); /* ヘッダーの背景 #001C54 を半透明に */
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ca-border);
  font-family: var(--ca-font);
  box-sizing: border-box;
}
.ca-header__logo { display: block; flex-shrink: 0; }
.ca-header__logo img { display: block; width: 148px; height: 20px; }
.ca-header__nav { display: flex; align-items: center; gap: 20px; height: 100%; }
.ca-header__link {
  height: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  font: 400 12px/2 var(--ca-font); color: var(--ca-text); white-space: nowrap;
}
.ca-header__link--schedule { font-size: 13px; }
.ca-header__link:hover { color: var(--ca-link); }
.ca-header__link:focus-visible { outline: 2px solid var(--ca-link); outline-offset: -2px; }
.ca-header__divider { width: 1px; height: 16px; background: var(--ca-border); }

/* ===== フッター ===== */
.ca-footer { font-family: var(--ca-font); color: var(--ca-text); }
.ca-footer__hero {
  /* CYBER AEGIS の背景（Figma の線形グラデーション。100% だけページの背景色にする） */
  background: linear-gradient(
    to top,
    #005BAC 0%,
    #12347A 20%,
    #0B2152 45%,
    var(--ca-bg-page) 100%
  );
  border-top: 1px solid var(--ca-border);
}
.ca-footer__wordmark { max-width: 1440px; margin: 0 auto; padding: 80px 80px 60px; box-sizing: border-box; }
.ca-footer__wordmark img { display: block; width: 100%; height: auto; }
.ca-footer__share { position: relative; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 0 20px 40px; }
.ca-footer__share-label { font-weight: 400; font-size: 16px; line-height: 28.8px; padding-right: 20px; border-right: 1px solid #FFFFFF; }
.ca-footer__share-buttons { display: flex; align-items: center; gap: 14px; }
.ca-footer__share-button { display: block; flex-shrink: 0; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; font: inherit; }
.ca-footer__share-button img { display: block; width: 28px; height: 28px; }
.ca-footer__share-button:hover { opacity: .7; }
.ca-footer__share-button:focus-visible { outline: 2px solid var(--ca-link); outline-offset: 4px; border-radius: 50%; }
.ca-footer__status { position: absolute; bottom: 12px; left: 0; width: 100%; text-align: center; font-size: 12px; color: var(--ca-text-sub); }

.ca-footer__info { background: var(--ca-text); color: var(--ca-pop-text); border-top: 1px solid var(--ca-text-sub); }
.ca-footer__info-inner { max-width: 1440px; margin: 0 auto; padding: 64px clamp(24px, 8.333vw, 120px); box-sizing: border-box; display: flex; flex-direction: column; gap: 40px; }
.ca-footer__grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.ca-footer__brand { width: 320px; display: flex; flex-direction: column; gap: 24px; }
.ca-footer__brand img { display: block; width: 192px; height: 26px; }
.ca-footer__operator { margin: 0; font-size: 12px; line-height: 20.4px; }
.ca-footer__press { width: 400px; display: flex; flex-direction: column; gap: 12px; }
.ca-footer__press-title { margin: 0; font-size: 14px; font-weight: 700; line-height: 25.2px; }
.ca-footer__press-text { margin: 0; font-size: 13px; line-height: 22.1px; }
.ca-footer__press-link { font-size: 14px; line-height: 25.2px; color: #005BAC; text-decoration: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; }
.ca-footer__press-link-icon { flex-shrink: 0; }
.ca-footer__press-link:hover { color: #005BAC; text-decoration: underline; }
.ca-footer__copy { margin: 0; padding-top: 30px; border-top: 1px solid var(--ca-text-sub); font: 400 10px/normal "Roboto Mono", monospace; text-align: center; }

/* GMOセキュリティフッター */
.ca-security-footer {
  padding: 12px clamp(12px, 3vw, 40px);
  background: #fff;
}
/* サイトシールを外している間は、シール下の余白（42px）をフッター自体に持たせる */
.ca-security-footer:not(:has(.ca-security-footer__seals)) { padding-bottom: 42px; }
.ca-security-footer > .gmoGroupSecurity_corp { box-sizing: border-box; }
.ca-security-footer > .gmoGroupSecurity_corp a { display: block; padding: 2px 0 9px; }
.ca-security-footer .gmoGroupSecurity_corpLogo { display: block; max-width: 100%; object-fit: contain; }
.ca-security-footer .gmoGroupSecurity_heading,
.ca-security-footer .gmoGroupSecurity_linklist li { line-height: 1.8; }
.ca-security-footer__seals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 52px 0 42px;
  list-style: none;
}
.ca-security-footer__seals li { width: 100px; height: 50px; }
.ca-security-footer__seal-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  vertical-align: top;
  line-height: 0;
}

/* ===== お手紙モーダル（配色は「調査資料のポップアップ」に合わせる） ===== */
html.is-letter-open { overflow: hidden; }
.ca-letter {
  /* dialog自体をスクロール領域にして、長い本文も全文読めるようにする */
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 155px 20px 80px; border: 0; box-sizing: border-box;
  background: transparent; overflow-y: auto; overscroll-behavior: contain;
}
/* 背景のぼかしが見えるよう、暗さは控えめにする（#04060A を半透明に） */
.ca-letter::backdrop { background: rgba(4, 6, 10, .4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
/* 開いた時はモーダル自体にフォーカスを当てる（本文中のリンクに枠が出ないように）。モーダル自体の枠は表示しない */
.ca-letter:focus { outline: none; }
.ca-letter[open] { animation: ca-letter-in .4s ease-out; }
@keyframes ca-letter-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ca-letter[open] { animation: none; } }

.ca-letter__panel {
  position: relative;
  max-width: 980px; margin: 0 auto; padding: 50px 60px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 40px;
  background: var(--ca-pop-bg); border-radius: 20px; box-shadow: 0 20px 60px rgba(4, 6, 10, .6);
  color: var(--ca-pop-text); font-family: var(--ca-font); font-variant-numeric: tabular-nums;
}
.ca-letter__head { display: flex; flex-direction: column; gap: 17px; }
.ca-letter__title { margin: 0; font-size: 34px; font-weight: 400; line-height: normal; }
.ca-letter__rule { height: 1px; background: var(--ca-pop-text); }

/* 本文：段落・見出し・表を24px間隔で並べる */
.ca-letter__body { display: flex; flex-direction: column; gap: 24px; font-size: 16px; line-height: 1.6; }
.ca-letter__body p { margin: 0; }
.ca-letter__heading { margin: 0; font-size: 18px; font-weight: 400; line-height: 1.6; }
.ca-letter__note { font-size: 15px; }
.ca-letter__sign { margin: 0; align-self: flex-end; font-size: 16px; line-height: normal; }

/* 本文中の「スケジュール」：スケジュールのモーダルへ切り替えるリンク */
.ca-letter__link {
  display: inline; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--ca-link-on-light); text-decoration: underline; text-underline-offset: .15em;
}
.ca-letter__link:hover { text-decoration: none; }
.ca-letter__link:focus-visible { outline: 2px solid var(--ca-link-on-light); outline-offset: 2px; }

/* 整理マトリックス（A：技術・予防の列 / B：国の行と注記を、警告色の枠で示す） */
.ca-matrix-wrap { padding: 28px 0 0 28px; overflow-x: auto; }
.ca-matrix { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 1.6; text-align: center; }
.ca-matrix th, .ca-matrix td { position: relative; padding: 12px; border-right: 1px solid var(--ca-text-sub); border-bottom: 1px solid var(--ca-text-sub); font-weight: 400; vertical-align: middle; }
.ca-matrix tr > :first-child { border-left: 1px solid var(--ca-text-sub); }
.ca-matrix thead th { border-top: 1px solid var(--ca-text-sub); background: var(--ca-text); font-size: 15px; text-align: left; vertical-align: top; }
.ca-matrix thead th:nth-child(1) { width: 19%; }
.ca-matrix thead th:nth-child(2) { width: 34%; }
.ca-matrix thead th:nth-child(3) { width: 27%; }
.ca-matrix .is-a { border-left: 2px solid var(--ca-pop-alert); border-right: 2px solid var(--ca-pop-alert); }
.ca-matrix thead .is-a { border-top: 2px solid var(--ca-pop-alert); }
.ca-matrix .is-b-top > * { border-top: 2px solid var(--ca-pop-alert); }
.ca-matrix .is-b-top > .is-a { border-bottom: 2px solid var(--ca-pop-alert); }
.ca-matrix .is-b-top > :first-child, .ca-matrix .is-b-notes > td { border-left: 2px solid var(--ca-pop-alert); }
.ca-matrix .is-b-top > :last-child, .ca-matrix .is-b-notes > td { border-right: 2px solid var(--ca-pop-alert); }
.ca-matrix .is-b-notes > td { border-bottom: 2px solid var(--ca-pop-alert); padding: 14px 16px; text-align: left; font-size: 15px; }
.ca-matrix__mark { position: absolute; color: var(--ca-pop-alert); font-weight: 400; font-size: 18px; line-height: 1.6; }
.ca-matrix__mark--a { top: -30px; left: 50%; transform: translateX(-50%); }
.ca-matrix__mark--b { top: 50%; left: -27px; transform: translateY(-50%); }
.ca-matrix__notes { margin: 0; padding: 0; list-style: none; }
.ca-matrix__notes li { padding-left: 2.5em; text-indent: -2.5em; }

/* 公開スケジュール */
.ca-schedule { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.6; }
.ca-schedule th, .ca-schedule td { padding: 12px; border: 1px solid var(--ca-text-sub); text-align: left; vertical-align: top; }
.ca-schedule thead th { background: var(--ca-text); font-weight: 400; }
.ca-schedule th:nth-child(1) { width: 80px; }
.ca-schedule th:nth-child(2) { width: 150px; }
.ca-schedule th:nth-child(3) { width: 160px; }
.ca-schedule td:nth-child(1), .ca-schedule td:nth-child(2) { white-space: nowrap; }
.ca-schedule__title { display: block; }
.ca-schedule ul { margin: 0; padding: 0; list-style: none; }
.ca-schedule li::before { content: "・"; }

.ca-letter__close {
  align-self: center; width: 200px; height: 54px; padding: 0 20px;
  border: 1px solid var(--ca-pop-text); border-radius: 70px; background: transparent; cursor: pointer;
  font: 400 16px/20px var(--ca-font); letter-spacing: 1px; color: var(--ca-pop-text);
}
.ca-letter__close:hover { background: var(--ca-pop-text); color: var(--ca-pop-bg); }
.ca-letter__close:focus-visible { outline: 2px solid var(--ca-pop-text); outline-offset: 3px; }

/* ===== スマートフォン ===== */
@media (max-width: 767px) {
  .ca-header { padding: 0 16px; gap: 12px; }
  .ca-header__logo img { width: 118px; height: 16px; }
  .ca-header__nav { gap: 12px; }
  .ca-header__link, .ca-header__link--schedule { font-size: 12px; }

  .ca-footer__wordmark { padding: 40px 24px 32px; }
  .ca-footer__info-inner { padding: 40px 24px; gap: 32px; }
  .ca-footer__grid { flex-direction: column; gap: 32px; }
  .ca-footer__brand, .ca-footer__press { width: 100%; }

  .ca-letter { padding: 24px 16px; }
  .ca-letter__panel { padding: 32px 20px; gap: 32px; border-radius: 16px; }
  .ca-letter__title { font-size: 26px; }
  .ca-letter__sign { font-size: 14px; }
  .ca-letter__body { font-size: 15px; }

  /* 整理マトリックスの注記はスマホでは一段小さく */
  .ca-matrix .is-b-notes > td { font-size: 13px; padding: 12px 14px; }

  /* スケジュール表はスマホでは縦のタイムラインにする（左の線と丸で各回をつなぐ） */
  .ca-schedule thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ca-schedule, .ca-schedule tbody { display: block; }
  .ca-schedule tr {
    position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center;
    column-gap: 8px; padding: 0 0 24px 26px;
  }
  /* 縦線（最後の回では消す） */
  .ca-schedule tr::before {
    content: ""; position: absolute; top: 14px; bottom: -6px; left: 6px; width: 2px;
    background: color-mix(in srgb, var(--ca-pop-text) 18%, transparent);
  }
  .ca-schedule tr:last-child { padding-bottom: 0; }
  .ca-schedule tr:last-child::before { display: none; }
  /* 各回の丸 */
  .ca-schedule tr::after {
    content: ""; position: absolute; top: 5px; left: 0; width: 14px; height: 14px; box-sizing: border-box;
    border: 3px solid var(--ca-pop-alert); border-radius: 50%; background: var(--ca-pop-bg);
  }
  .ca-schedule td { display: block; padding: 0; border: 0; line-height: 1.5; }
  /* 回 */
  .ca-schedule td:nth-child(1) { font-size: 14px; font-weight: 700; color: var(--ca-pop-alert); }
  /* 公開予定日 */
  .ca-schedule td:nth-child(2) { font-size: 13px; color: color-mix(in srgb, var(--ca-pop-text) 75%, #fff); }
  /* 区分：小さな札 */
  .ca-schedule td:nth-child(3) {
    justify-self: end; padding: 1px 10px; border: 1px solid color-mix(in srgb, var(--ca-pop-text) 35%, transparent);
    border-radius: 999px; font-size: 11px; white-space: nowrap;
  }
  /* 題名・内容 */
  .ca-schedule td:nth-child(4) {
    grid-column: 1 / -1; margin-top: 8px; padding: 12px 14px; border-radius: 10px;
    background: color-mix(in srgb, var(--ca-pop-text) 5%, var(--ca-pop-bg)); font-size: 13px; line-height: 1.6;
  }
  .ca-schedule__title { margin-bottom: 6px; font-size: 15px; font-weight: 500; line-height: 1.5; }
  .ca-schedule td:nth-child(4) > .ca-schedule__title:last-child { margin-bottom: 0; }
  .ca-schedule li { padding-left: 1em; text-indent: -1em; color: color-mix(in srgb, var(--ca-pop-text) 80%, #fff); }
}
/* 幅の狭い端末（〜374px）でもヘッダーが横にはみ出さないように詰める */
@media (max-width: 374px) {
  .ca-header { padding: 0 12px; gap: 8px; }
  .ca-header__logo img { width: 96px; height: 13px; }
  .ca-header__nav { gap: 8px; }
  .ca-header__link, .ca-header__link--schedule { font-size: 11px; }
}

/* 経由地の調査資料（ポップアップ）。<dialog> の既定の枠を消し、中のパネルだけをスクロールさせる */
.cz-pop {
  width: calc(100% - 40px);
  max-width: 760px;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  font-family: 'Noto Sans JP', sans-serif;
}
.cz-pop::backdrop { background: rgba(0, 0, 0, .72); }
.cz-pop__panel { max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto; }

/* 調査資料を開ける国名（押せる見た目：青字＋下線＋「資料」の札）。資料が無い国はただの文字で出す */
.cz-link {
  font: inherit; font-weight: 700; color: #8EC5FF; background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px;
}
.cz-link:hover { color: #B8DAFF; }
.cz-link:focus-visible { outline: 2px solid #8EC5FF; outline-offset: 2px; border-radius: 2px; }
.cz-link__mark {
  font-size: 10px; font-weight: 700; line-height: 1.5; color: #0E1116; background: #8EC5FF; border-radius: 4px; padding: 0 5px;
  display: inline-block; text-decoration: none;
}
.cz-link:hover .cz-link__mark { background: #B8DAFF; }

/* 経由地ごとの調査資料の札。押せるのは「公開中」だけ（金色の枠・塗り・手のカーソル）。「準備中」は枠を点線にして押せない見た目に */
.cz-chip {
  font: inherit; font-size: 14px; font-weight: 700; min-height: 44px; padding: 0 14px; border-radius: 8px; box-sizing: border-box;
  border: 1px dashed #3A424E; background: transparent; color: #8A929E; display: flex; align-items: center; gap: 8px; cursor: default;
}
.cz-chip__st { font-size: 11px; font-weight: 700; color: #6B7380; }
.cz-chip.is-open { border: 1px solid #FFC247; background: #2A2210; color: #F2F4F7; cursor: pointer; }
.cz-chip.is-open .cz-chip__st { color: #FFC247; }
.cz-chip.is-open:hover { background: #3A2E12; }
.cz-chip.is-open:focus-visible { outline: 2px solid #FFC247; outline-offset: 2px; }

/* 調査資料の中身（data.js が JSON から組み立てる） */
.cz-r { background: #fff; color: #1F242B; border-radius: 14px; padding: 28px 28px 24px; box-sizing: border-box; font-size: 15px; line-height: 1.85; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.cz-r p { margin: 0 0 8px; }
.cz-r ul { margin: 0; padding-left: 22px; }
.cz-r__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cz-r__h2 { margin: 0; font-size: 24px; line-height: 1.45; color: #14171C; }
.cz-r__h3 { margin: 22px 0 8px; padding-bottom: 8px; border-bottom: 1px solid #D9DCE1; font-size: 18px; line-height: 1.5; color: #14171C; }
.cz-r__close { flex: none; font: inherit; font-size: 14px; font-weight: 700; min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid #B8BEC8; background: #fff; color: #1F242B; cursor: pointer; }
.cz-r__more { display: block; width: 100%; margin: 18px 0 0; min-height: 44px; font: inherit; font-size: 15px; font-weight: 700; border-radius: 8px; border: 1px solid #B8BEC8; background: #F3F4F6; color: #1F242B; cursor: pointer; }
.cz-r__close:hover, .cz-r__more:hover { background: #E9EBEF; }
.cz-r__alert { margin-top: 14px; background: #FBEDEC; border-left: 5px solid #B3261E; border-radius: 0 6px 6px 0; padding: 14px 18px; font-weight: 700; color: #B3261E; }
.cz-r__tbl { overflow-x: auto; }
.cz-r table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.cz-r th, .cz-r td { padding: 10px 12px; border: 1px solid #D9DCE1; text-align: left; vertical-align: top; }
.cz-r th { width: 30%; font-weight: 700; }
.cz-r tr:first-child th { background: #F3F4F6; }
.cz-r__sub { display: block; font-weight: 400; }
.cz-r__why { display: block; margin-top: 4px; font-size: 13px; color: #6B7280; }
.cz-r__after { margin: 10px 0 0 !important; }
.cz-r__note { margin: 10px 0 0 !important; font-size: 13px; color: #6B7280; }
/* 墨（網掛け）をかけた語：墨と英数字の幅をそろえる */
.cz-r .k { font-family: Menlo, Consolas, "Courier New", monospace; font-size: .94em; white-space: nowrap; }
@media (max-width: 600px) { .cz-r { padding: 22px 18px 18px; } .cz-r__h2 { font-size: 20px; } }

/* ページ内リンクで移動した先（フォーカス用に tabindex="-1" を付けた見出しの区画）には枠を出さない */
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

/* 読み込み時のフッターのチラつき防止 */
#app {
  min-height: 100vh;
}
