/* ============================================================
   カキダス・CAD設計事務所 — 規約ページ共通スタイル
   利用規約 / プライバシーポリシー / 特定商取引法に基づく表記 の3ページで共有。
   デザインは index.html・thanks.html の製図シート風に合わせている。
   ブランド色： #1f88d6（青） / #13355e（濃紺） / #fafdff（地）
   ============================================================ */

*{box-sizing:border-box}

body{
  margin:0;
  background:#fafdff;
  color:#13355e;
  font-family:'Zen Kaku Gothic New',-apple-system,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
a{color:#1565b0}
::selection{background:#1f88d6;color:#fff}

/* 方眼グリッドの背景 */
.kd-grid{
  position:fixed;inset:0;z-index:0;pointer-events:none;
  background-image:
    linear-gradient(rgba(31,136,214,0.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(31,136,214,0.045) 1px,transparent 1px),
    linear-gradient(rgba(21,101,176,0.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(21,101,176,0.055) 1px,transparent 1px);
  background-size:22px 22px,22px 22px,110px 110px,110px 110px;
}

/* ---------- ヘッダー ---------- */
.kd-header{
  position:relative;z-index:2;
  background:rgba(250,253,255,0.92);
  backdrop-filter:saturate(1.4) blur(10px);
  -webkit-backdrop-filter:saturate(1.4) blur(10px);
  border-bottom:1.5px solid rgba(31,136,214,0.45);
}
.kd-header-in{
  max-width:820px;margin:0 auto;padding:0 20px;
  display:flex;align-items:stretch;justify-content:space-between;gap:14px;height:54px;
}
.kd-logo{
  display:flex;align-items:center;gap:11px;text-decoration:none;
  border-right:1.5px solid rgba(31,136,214,0.28);padding-right:16px;
}
.kd-logo img{height:24px;width:auto;display:block}
.kd-logo span{
  font-family:'JetBrains Mono',monospace;font-size:9px;letter-spacing:0.2em;
  color:#1f88d6;font-weight:500;white-space:nowrap;line-height:1.3;
}
.kd-crumb{
  flex:1;display:flex;align-items:center;
  font-family:'JetBrains Mono',monospace;font-size:9.5px;letter-spacing:0.16em;
  color:#9bb8d6;overflow:hidden;white-space:nowrap;
}

/* ---------- 本体（図枠） ---------- */
.kd-main{position:relative;z-index:2;padding:30px 16px 52px}
.kd-sheet{
  width:100%;max-width:820px;margin:0 auto;position:relative;
  border:1.5px solid rgba(31,136,214,0.5);
  background:rgba(255,255,255,0.86);
  border-radius:5px;
}
/* 四隅のティック */
.kd-tick{position:absolute;width:11px;height:11px}
.kd-tick.tl{top:7px;left:7px;border-top:1.5px solid #1f88d6;border-left:1.5px solid #1f88d6}
.kd-tick.tr{top:7px;right:7px;border-top:1.5px solid #1f88d6;border-right:1.5px solid #1f88d6}
.kd-tick.bl{bottom:7px;left:7px;border-bottom:1.5px solid #1f88d6;border-left:1.5px solid #1f88d6}
.kd-tick.br{bottom:7px;right:7px;border-bottom:1.5px solid #1f88d6;border-right:1.5px solid #1f88d6}

.kd-zone{
  display:flex;justify-content:space-between;padding:5px 24px 0;
  font-family:'JetBrains Mono',monospace;font-size:9px;color:#a9c4de;letter-spacing:0.1em;
}
.kd-body{padding:22px 30px 30px}

/* ---------- 見出し ---------- */
.kd-eyebrow{
  font-family:'JetBrains Mono',monospace;font-size:10.5px;letter-spacing:0.18em;
  color:#1f88d6;font-weight:700;margin-bottom:10px;
}
h1{
  margin:0 0 6px;font-weight:900;font-size:clamp(22px,5vw,30px);
  line-height:1.35;color:#13355e;
}
.kd-updated{
  font-family:'JetBrains Mono',monospace;font-size:11px;color:#8aa8c6;
  margin:0 0 22px;letter-spacing:0.04em;
}
h2{
  margin:34px 0 10px;font-size:17px;font-weight:900;color:#13355e;
  padding-left:11px;border-left:5px solid #1f88d6;line-height:1.5;
}
h2:first-of-type{margin-top:8px}
h3{margin:20px 0 6px;font-size:15px;font-weight:700;color:#13355e}

/* ---------- 本文 ---------- */
p{margin:9px 0;font-size:14.5px;line-height:1.95;color:#3a5573}
ol,ul{margin:9px 0;padding-left:1.5em}
li{font-size:14.5px;line-height:1.95;color:#3a5573;margin:5px 0}
li::marker{color:#1f88d6;font-weight:700}
b,strong{color:#13355e;font-weight:700}

/* 引用・補足 */
blockquote{
  margin:14px 0;padding:11px 16px;
  border-left:4px solid rgba(31,136,214,0.45);
  background:rgba(241,248,253,0.8);border-radius:0 5px 5px 0;
}
blockquote p{margin:0;font-size:13.5px}

/* ---------- 表 ---------- */
.kd-table-wrap{overflow-x:auto;margin:14px 0;border:1.3px solid rgba(31,136,214,0.3);border-radius:5px;background:#fff}
table{border-collapse:collapse;width:100%;min-width:420px;font-size:14px}
th,td{padding:10px 14px;text-align:left;vertical-align:top;border-bottom:1px solid rgba(31,136,214,0.18);line-height:1.8}
th{
  background:rgba(241,248,253,0.9);color:#13355e;font-weight:700;white-space:nowrap;
  border-bottom:1.2px solid rgba(31,136,214,0.3);
}
td{color:#3a5573}
tr:last-child th,tr:last-child td{border-bottom:none}

/* 項目名＋内容の2列表（.t-kv）は、狭い画面では横スクロールをやめて縦に積む。
   「所在地」などの長い文が細い列に押し込まれて読めなくなるのを防ぐ。
   3列以上の表（料金表・委託先一覧）は横スクロールのまま＝列の対応が崩れないため。 */
@media(max-width:620px){
  .t-kv{min-width:0}
  .t-kv,.t-kv tbody,.t-kv tr,.t-kv th,.t-kv td{display:block;width:100%}
  .t-kv tr{padding:9px 0;border-bottom:1px solid rgba(31,136,214,0.18)}
  .t-kv tr:last-child{border-bottom:none}
  .t-kv th{
    background:none;border-bottom:none;white-space:normal;
    padding:0 14px 2px;font-size:12.5px;color:#1f88d6;
  }
  .t-kv td{border-bottom:none;padding:0 14px;font-size:14px}
}

/* ---------- 目次 ---------- */
.kd-toc{
  margin:18px 0 6px;border:1.3px solid rgba(31,136,214,0.3);border-radius:5px;
  background:#fff;overflow:hidden;
}
.kd-toc-head{
  font-family:'JetBrains Mono',monospace;font-size:9.5px;letter-spacing:0.14em;
  color:#1f88d6;font-weight:700;padding:9px 14px;
  border-bottom:1.2px solid rgba(31,136,214,0.22);background:rgba(241,248,253,0.7);
}
.kd-toc ol{margin:0;padding:12px 16px 14px 2.1em;columns:2;column-gap:26px}
.kd-toc li{font-size:13px;line-height:1.7;margin:3px 0;break-inside:avoid}
.kd-toc a{text-decoration:none;color:#3a5573}
.kd-toc a:hover{color:#1f88d6;text-decoration:underline}
@media(max-width:620px){.kd-toc ol{columns:1}}

/* ---------- タイトルブロック（下辺） ---------- */
.kd-titleblock{
  display:flex;border-top:1.5px solid rgba(31,136,214,0.5);
  font-family:'JetBrains Mono',monospace;flex-wrap:wrap;
}
.kd-tb-cell{padding:9px 14px;border-right:1.3px solid rgba(31,136,214,0.32)}
.kd-tb-cell:last-child{border-right:none}
.kd-tb-cell .k{font-size:8px;letter-spacing:0.14em;color:#9bb8d6}
.kd-tb-cell .v{font-size:11px;font-weight:700;color:#13355e;margin-top:2px}
.kd-tb-cell .v.accent{color:#1f88d6}

/* ---------- ページ間リンク ---------- */
.kd-nav{
  max-width:820px;margin:20px auto 0;padding:0 2px;
  display:flex;gap:10px;flex-wrap:wrap;justify-content:center;
}
.kd-nav a{
  text-decoration:none;font-size:13px;font-weight:700;color:#1565b0;
  border:1.3px solid rgba(31,136,214,0.4);border-radius:5px;
  padding:9px 15px;background:rgba(255,255,255,0.75);transition:background .15s,color .15s;
}
.kd-nav a:hover{background:#1f88d6;color:#fff}
.kd-nav a[aria-current="page"]{background:#1f88d6;color:#fff;border-color:#1f88d6}

/* ---------- フッター ---------- */
.kd-footer{position:relative;z-index:2;background:#13355e;margin-top:34px}
.kd-footer-in{
  max-width:820px;margin:0 auto;padding:18px 20px;
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
}
.kd-footer img{height:24px;width:auto;opacity:0.95}
.kd-footer .meta{
  font-family:'JetBrains Mono',monospace;font-size:10px;letter-spacing:0.06em;
  color:rgba(255,255,255,0.55);
}

/* ---------- 印刷 ---------- */
@media print{
  .kd-grid,.kd-header,.kd-nav,.kd-footer{display:none !important}
  body{background:#fff}
  .kd-sheet{border:none;background:#fff;max-width:100%}
  .kd-tick,.kd-zone{display:none}
  .kd-body{padding:0}
  h2{break-after:avoid}
  .kd-table-wrap,li,blockquote{break-inside:avoid}
}
