/* 工具手帳 専用サイト（アプリの配色 DESIGN.md v2「黒鉄の面にセーフティオレンジを一色」：影なし・角は小さく・区切りはヘアライン） */
:root {
  --bg: #0F1114;
  --bg2: #15181C;
  --card: #1A1D22;
  --fill: #23272E;
  --line: #2E333B;
  --ink: #F2F3F5;
  --ink2: #D2D6DC;
  --sub: #9AA0A8;
  --accent: #FF7A00;
  --accent-dark: #E56E00;
  --on-accent: #0F1114;
  --green: #3DDC84;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', 'Meiryo', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  letter-spacing: .04em;
  font-size: 16px;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
  font-feature-settings: "palt" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.45; margin: 0; letter-spacing: .05em; font-feature-settings: "palt" 1; }
.nobr { white-space: nowrap; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 420px) { .wrap, .narrow { padding: 0 16px; } }

/* 頭 */
.top-bar { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.top-nav { display: flex; gap: 18px; font-size: 14px; }
.top-nav a { color: var(--sub); text-decoration: none; }
.top-nav a:hover { color: var(--accent); }
.brand, .top-nav a { white-space: nowrap; }
@media (max-width: 640px) { .top-nav .hide-sp { display: none; } .top-nav { gap: 14px; } }
@media (max-width: 420px) { .top-nav .hide-xs { display: none; } .brand { font-size: 16px; } }

/* ボタン */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 22px; min-height: 56px; border-radius: var(--radius); text-decoration: none; font-weight: 700;
  font-size: 17px; line-height: 1.4; text-align: center; border: 2px solid transparent; cursor: pointer;
  font-family: inherit; letter-spacing: .04em;
}
.btn small { font-weight: 500; font-size: 12.5px; opacity: .85; }
.btn-main { background: var(--accent); color: var(--on-accent); }
.btn-main:hover { background: var(--accent-dark); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--card); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btns .btn { flex: 1 1 200px; }

/* 見出しの帯（下層の頁） */
.page-head { background: var(--card); padding: 40px 0 34px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 28px; font-weight: 800; }
.page-head p { margin: 6px 0 0; color: var(--sub); font-size: 15px; }
@media (max-width: 640px) { .page-head h1 { font-size: 23px; } }

/* 本文 */
.doc { padding: 36px 0 60px; color: var(--ink2); }
.doc h2 { font-size: 21px; margin: 40px 0 14px; padding-left: 12px; border-left: 4px solid var(--accent); color: var(--ink); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; color: var(--ink); }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 24px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); }
.doc .muted { color: var(--sub); font-size: 14px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.faq-q { font-weight: 700; color: var(--ink); margin: 26px 0 4px !important; }
.faq-q::before { content: "Q. "; color: var(--accent); }
.updated { text-align: right; color: var(--sub); font-size: 14px; margin-top: 32px !important; }

/* 足 */
.foot { background: #0A0B0D; border-top: 1px solid var(--line); color: var(--sub); font-size: 14px; padding: 34px 0 42px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot .tm { font-size: 12.5px; color: #7D848E; margin-top: 10px; line-height: 1.7; }
