/* くまの座の HP と各アプリの LP で共通の見た目。
   紙の運転日報（白い用紙に藍の罫線）と、くま印の朱の判子を軸にする */
:root {
  color-scheme: light;
  --paper: #fdfdfb;
  --ground: #f3f4f1;
  --ink: #1c1d1a;
  --muted: #545a66;
  --rule: #3a5a8c;
  --rule-pale: #cdd8ea;
  --shu: #c43b2f;
  --accent: #1f4e9c;
  --accent-dark: #163a75;
  --mincho: 'BIZ UDPMincho', 'Hiragino Mincho ProN', serif;
  --gothic: 'BIZ UDPGothic', 'Hiragino Sans', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 18px;
  line-height: 1.8;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

/* 頭 */
.site-head { background: var(--paper); border-bottom: 2px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: var(--mincho); font-weight: 700; font-size: 18px; line-height: 1.3; }
.brand small { display: block; font-family: var(--gothic); font-weight: 400; font-size: 12px; color: var(--muted); }
.head-link { font-size: 16px; padding: 10px 4px; }

/* 見出し */
h1, h2, h3 { font-family: var(--mincho); font-weight: 700; line-height: 1.4; margin: 0; }
h2 { font-size: 28px; margin-bottom: 20px; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }

section { padding: 56px 0; }
section + section { border-top: 1px solid var(--rule-pale); }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 18px; text-decoration: none;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-line { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-line:hover { background: #eef2f9; color: var(--accent-dark); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* 帳票の欄（紙の日報の罫線の枠）。左上の小さな字は欄の名前 */
.form {
  background: var(--paper);
  border: 2px solid var(--rule);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cell { border: 1px solid var(--rule-pale); margin: -1px 0 0 -1px; padding: 14px 18px 18px; position: relative; }
.cell-name { display: block; font-size: 13px; color: var(--rule); margin-bottom: 6px; letter-spacing: 0.05em; }
.cell p { margin: 0; font-size: 17px; line-height: 1.75; }
.cell .full { display: inline-block; margin-left: 6px; font-size: 12px; color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 0 6px; line-height: 1.6; vertical-align: 2px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* 表 */
.table-box { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--paper); border: 2px solid var(--rule); font-size: 16px; }
th, td { border: 1px solid var(--rule-pale); padding: 12px 14px; text-align: left; vertical-align: top; }
thead th { color: var(--rule); font-weight: 700; font-size: 15px; background: #f6f8fc; }
td.yes { color: var(--ink); font-weight: 700; }
td.no { color: #8b909a; }

/* よくある質問 */
details { background: var(--paper); border: 1px solid var(--rule-pale); border-radius: 8px; padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style-position: outside; }
details[open] summary { border-bottom: 1px solid var(--rule-pale); margin-bottom: 12px; }
details p { font-size: 17px; }

/* 足 */
.site-foot { background: var(--paper); border-top: 2px solid var(--rule); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  h2 { font-size: 24px; }
  section { padding: 44px 0; }
}
