/* セキュリティ・データポリシー（/security）の画面固有 CSS。
   🔴 Astro（src/pages/security.astro）と Next（apps/web/app/(public)/security/page.tsx）が
   **同じこのファイル**を読む。写すと経路によって絵が変わるので、片方に貼り直さないこと（#2902 / #2947）。 */
.sec-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  position: relative;
  z-index: 1;
}
.sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid #e6e8ec;
  margin-bottom: 48px;
}
.sec-header .row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sec-header .logo {
  height: 32px;
}
.sec-header .back-link {
  font-size: 12px;
  color: #9aa1ac;
  text-decoration: none;
}
.sec-header .back-link:hover { color: var(--blue); }

.sec-hero {
  margin-bottom: 56px;
}
.sec-hero .eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--blue);
  font-family: var(--mono);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sec-hero h1 {
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 16px;
  color: #1d2530;
}
.sec-hero p {
  font-size: 14px;
  line-height: 1.8;
  color: #6b7280;
  margin: 0;
  max-width: 580px;
}
.sec-hero .updated {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  font-family: var(--mono);
  color: #9aa1ac;
  background: #f7f8fa;
  padding: 4px 10px;
  border-radius: 4px;
}

.sec-section {
  margin-bottom: 48px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid #e6e8ec;
  border-radius: 8px;
}
.sec-section h2 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #1d2530;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-section h2 .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--blue-soft);
  border-radius: 6px;
  font-size: 14px;
  flex-shrink: 0;
}
/* 絵は線画（§4.0・旧 🏅 🏗 🔒 … の絵文字）。チップの中で 16px。 */
.sec-section h2 .icon svg { width: 16px; height: 16px; color: var(--blue, #1f6feb); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #3c4350;
}
.check-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}
.check-list li strong {
  color: #1d2530;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 4px;
}
.data-table th {
  text-align: left;
  font-weight: 500;
  color: #6b7280;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 12px 10px 0;
  border-bottom: 1px solid #e6e8ec;
}
.data-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid #e6e8ec;
  color: #3c4350;
  line-height: 1.5;
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td strong { color: #1d2530; font-weight: 500; }
.badge {
  display: inline-block;
  font-size: 10px;
  font-family: var(--mono);
  background: var(--blue-faint);
  color: var(--blue);
  border: 1px solid var(--blue-soft);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.badge.green {
  background: #F0F7EE;
  color: var(--success);
  border-color: #C8DEC4;
}

.responsibility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.resp-card {
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #e6e8ec;
}
.resp-card h3 {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--mono);
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}
.resp-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.resp-card ul li {
  font-size: 12px;
  color: #3c4350;
  line-height: 1.5;
  padding-left: 10px;
  position: relative;
}
.resp-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted);
  font-size: 10px;
}

.contact-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--blue-faint);
  border: 1px solid var(--blue-soft);
  border-radius: 6px;
}
.contact-box .contact-icon {
  font-size: 20px;
  flex-shrink: 0;
}
/* 同上（旧 ✉️）。文字だった頃と同じ 20px。 */
.contact-box .contact-icon svg { width: 20px; height: 20px; color: var(--blue, #1f6feb); }
.contact-box h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #1d2530;
}
.contact-box p {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 8px;
  line-height: 1.6;
}
.contact-box a {
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.contact-box a:hover { text-decoration: underline; }

.sec-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid #e6e8ec;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #9aa1ac;
}
.sec-footer a {
  color: #9aa1ac;
  text-decoration: none;
}
.sec-footer a:hover { color: var(--blue); }

@media (max-width: 600px) {
  .sec-section { padding: 20px 16px; }
  .responsibility-grid { grid-template-columns: 1fr; }
  .sec-hero h1 { font-size: 24px; }
}

/* ── スマホ（〜767px）でページ全体が横スクロールしていた（実測 375px で +209px）──
   原因は本文中の**空白を含まない長い英数トークン**（`PBKDF2-SHA256（100,000回イテレーション）`
   など）。これが折り返せないため `.check-list` の min-content 幅が 502px になり、
   `body` が flex コンテナなので `.sec-wrap` がその幅（584px）まで広がっていた。
   トークンの途中でも折る + ラッパを縮めてよいことを明示する、の 2 点で止める。
   規約は .claude/rules/responsive.md（新規は max-width クエリの内側に書く）。 */
@media (max-width: 767px) {
  .sec-wrap { min-width: 0; width: 100%; padding-left: 16px; padding-right: 16px; }
  .check-list li,
  .sec-section p,
  .data-table td,
  .data-table th { overflow-wrap: anywhere; }
  /* バッジは `white-space: nowrap` で 1 行固定。「24時間有効期限」のような長いものが
     そのまま横に伸びて 105px はみ出していたので、狭い画面では折り返しを許す。 */
  .badge { white-space: normal; }
  /* 表は列を削らず横スワイプで読ませる（規約 ①） */
  .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
