@charset "UTF-8";

/* ==========================================================================
   tirol data labo — 共通スタイル
   すべてのページ（/ , /tokushoho/ , /privacy/ , /terms/）で共有します。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. カラートークン
   -------------------------------------------------------------------------- */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1a1d21;
  --text-muted: #5c6570;
  --heading: #0f1216;
  --border: #e2e6ea;
  --border-strong: #cdd4db;
  --accent: #1f6feb;
  --accent-contrast: #ffffff;
  --note-bg: #f2f6fc;
  --note-border: #c9dbf7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --surface: #1c2024;
    --text: #dfe3e7;
    --text-muted: #9aa3ad;
    --heading: #f2f4f6;
    --border: #2c3237;
    --border-strong: #3a4147;
    --accent: #6fa8ff;
    --accent-contrast: #10131a;
    --note-bg: #1b232e;
    --note-border: #2f4360;
  }
}

/* --------------------------------------------------------------------------
   2. ベース
   -------------------------------------------------------------------------- */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium",
               "Yu Gothic", Meiryo, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

a { color: var(--accent); }

a.mail {
  font-weight: 600;
  word-break: break-all;
}

.wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 20px 48px;
}

/* --------------------------------------------------------------------------
   3. ページヘッダー（下層ページ）
   -------------------------------------------------------------------------- */

.page-head { margin-bottom: 32px; }

.brand {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 12px;
}

.brand:hover { color: var(--accent); }

.page-head h1 {
  font-size: 26px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 14px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-strong);
}

.lead {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. ヒーロー（トップページ）
   -------------------------------------------------------------------------- */

.hero {
  padding-bottom: 40px;
  border-bottom: 2px solid var(--border-strong);
  margin-bottom: 40px;
}

.logo {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--heading);
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}

.tagline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.hero p.desc {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   5. セクション見出し
   -------------------------------------------------------------------------- */

section { margin-bottom: 40px; }

h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 18px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   6. カード（共通コンテナ）
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   7. 定義リスト表（特定商取引法に基づく表記）
   -------------------------------------------------------------------------- */

.card dl { margin: 0; }

.row {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-bottom: 1px solid var(--border);
}

.row:last-child { border-bottom: none; }

.row dt {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 15px;
  color: var(--heading);
  background: var(--bg);
  border-right: 1px solid var(--border);
}

.row dd {
  margin: 0;
  padding: 20px 24px;
  font-size: 15px;
}

.row dd > :first-child { margin-top: 0; }
.row dd > :last-child { margin-bottom: 0; }
.row dd p { margin: 0 0 10px; }

/* --------------------------------------------------------------------------
   8. 条文（プライバシーポリシー / 利用規約）
   -------------------------------------------------------------------------- */

.prose {
  padding: 32px;
}

.prose section { margin-bottom: 34px; }
.prose section:last-child { margin-bottom: 0; }

.prose p {
  margin: 0 0 12px;
  font-size: 15px;
}

.prose p:last-child { margin-bottom: 0; }

.prose ol,
.prose ul {
  margin: 0 0 12px;
  padding-left: 1.5em;
  font-size: 15px;
}

.prose ol:last-child,
.prose ul:last-child { margin-bottom: 0; }

.prose li { margin-bottom: 8px; }
.prose li:last-child { margin-bottom: 0; }

.prose li > ol,
.prose li > ul {
  margin-top: 8px;
  margin-bottom: 0;
}

/* (1)(2)… の連番。マーカー幅を固定し、折り返し行を本文左端に揃えます。 */
.prose ol.paren {
  list-style-type: none;
  counter-reset: paren;
  padding-left: 0;
  text-indent: 0;
}

.prose ol.paren > li {
  counter-increment: paren;
  padding-left: 2.6em;
  text-indent: -2.6em;
}

.prose ol.paren > li::before {
  content: "(" counter(paren) ")";
  display: inline-block;
  width: 2.6em;
  text-indent: 0;
}

/* 号レベル（入れ子）。親の (1)(2) と区別するため漢数字を使います。 */
.prose ol.sub {
  list-style-type: cjk-ideographic;
  padding-left: 2.4em;
  text-indent: 0;
}

.prose ol.sub > li { text-indent: 0; }

/* --------------------------------------------------------------------------
   9. リスト（汎用）
   -------------------------------------------------------------------------- */

ul.plain {
  margin: 0;
  padding-left: 1.3em;
}

ul.plain li { margin-bottom: 6px; }
ul.plain li:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   10. 注記ブロック
   -------------------------------------------------------------------------- */

.note {
  display: block;
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
}

.note + .note { margin-top: 8px; }

.tel {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   11. サービスカード / お問い合わせ（トップページ）
   -------------------------------------------------------------------------- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.services li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 22px 24px;
}

.services h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 8px;
  line-height: 1.6;
}

.services p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-muted);
}

.contact {
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-radius: 10px;
  padding: 24px;
}

.contact p {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 11px 24px;
  border-radius: 6px;
  word-break: break-all;
}

.btn:hover { opacity: 0.85; }

/* --------------------------------------------------------------------------
   12. フッター
   -------------------------------------------------------------------------- */

.page-foot {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  font-size: 13px;
  color: var(--text-muted);
}

.page-foot nav {
  margin-bottom: 14px;
}

.page-foot nav a,
.page-foot nav .current {
  display: inline-block;
  margin-right: 20px;
  line-height: 2.1;
}

.page-foot nav a {
  color: var(--accent);
  text-decoration: none;
}

.page-foot nav a:hover { text-decoration: underline; }

.page-foot nav .current {
  color: var(--text);
  font-weight: 700;
}

.page-foot .meta,
.page-foot .copyright {
  margin: 0;
}

/* --------------------------------------------------------------------------
   13. レスポンシブ
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .wrap { padding: 36px 16px 40px; }

  .page-head h1 { font-size: 21px; }

  .logo { font-size: 24px; }
  .hero { padding-bottom: 30px; margin-bottom: 32px; }
  .hero p.desc { font-size: 15px; }

  .row { grid-template-columns: 1fr; }

  .row dt {
    padding: 14px 18px 12px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }

  .row dd { padding: 16px 18px 20px; font-size: 14.5px; }

  .prose { padding: 22px 18px; }
  .prose p,
  .prose ol,
  .prose ul { font-size: 14.5px; }

  .contact { padding: 20px; }
  .btn { display: block; text-align: center; }
}

/* --------------------------------------------------------------------------
   14. 印刷
   -------------------------------------------------------------------------- */

@media print {
  body { background: #fff; color: #000; }
  .card { border-color: #999; }
  .row, .row dt { border-color: #999; }
  .row dt { background: #f3f3f3; }
  .page-foot nav { display: none; }
}
