/* 給与ノート Web — アプリアイコンの青緑と黄色に合わせた配色 */
:root {
  color-scheme: light dark;
  --teal-900: #124c5a;
  --teal-700: #17666f;
  --teal-500: #1f8d96;
  --teal-100: #e3f2f2;
  --gold: #ffd66b;
  --fg: #1c2a2e;
  --sub: #5d6d72;
  --bg: #f4f7f7;
  --card: #ffffff;
  --line: #dfe7e8;
  --accent: #17666f;
  --shadow: 0 1px 2px rgba(18, 76, 90, .06), 0 8px 24px rgba(18, 76, 90, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #eef4f4;
    --sub: #9fb1b4;
    --bg: #0d1a1d;
    --card: #152528;
    --line: #24383c;
    --accent: #5cc7cf;
    --teal-100: #183337;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.85 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { display: block; }

/* ヘッダー */
.site-header {
  background: linear-gradient(160deg, var(--teal-900), var(--teal-500));
  color: #fff;
}
.site-header .bar {
  max-width: 880px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.site-nav { margin-left: auto; display: flex; gap: 4px; }
.site-nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.site-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-nav a[aria-current="page"] { background: rgba(255,255,255,.18); color: #fff; }

.page-title { max-width: 880px; margin: 0 auto; padding: 36px 20px 44px; }
.page-title h1 { margin: 0; font-size: clamp(26px, 5vw, 34px); line-height: 1.35; letter-spacing: .02em; }
.page-title p { margin: 8px 0 0; color: rgba(255,255,255,.82); font-size: 15px; }

/* 本文 */
main { max-width: 880px; margin: -24px auto 0; padding: 0 20px 64px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: 28px clamp(20px, 4vw, 36px);
  margin-bottom: 20px;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
h2 { font-size: 19px; line-height: 1.5; margin: 0 0 10px; }
h3 { font-size: 16px; margin: 0 0 4px; }
p, li { margin: 0 0 12px; }
.sub { color: var(--sub); font-size: 14px; }

/* 要点（プライバシー） */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.point { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.point .ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--teal-100); color: var(--accent); margin-bottom: 10px;
}
.point .ico svg { width: 20px; height: 20px; }
.point p { margin: 0; color: var(--sub); font-size: 14px; line-height: 1.7; }

/* ポリシー本文の節 */
.section { padding: 20px 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; padding-top: 0; }
.section:last-of-type { padding-bottom: 0; }
.section h2 { display: flex; align-items: baseline; gap: 10px; }
.section h2 .no { color: var(--accent); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.section p:last-child { margin-bottom: 0; }

/* お問い合わせ */
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.contact .text { flex: 1 1 320px; }
.contact .text p { margin: 0; color: var(--sub); }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-700); color: #fff; text-decoration: none; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; white-space: nowrap;
}
.button:hover { background: var(--teal-900); }
.button svg { width: 18px; height: 18px; }
@media (prefers-color-scheme: dark) { .button { background: var(--teal-500); } .button:hover { background: var(--teal-700); } }

/* よくある質問 */
.faq details { border-top: 1px solid var(--line); }
.faq details:first-of-type { border-top: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 32px 16px 0; position: relative;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 18px; color: var(--sub); }
.faq details:last-of-type p { margin-bottom: 4px; }

/* トップページ */
.hero { max-width: 880px; margin: 0 auto; padding: 40px 20px 72px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.2); }
.hero h1 { margin: 0; font-size: clamp(30px, 6vw, 42px); line-height: 1.25; }
.hero p { margin: 10px 0 0; color: rgba(255,255,255,.88); max-width: 520px; }
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.links a {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px; text-decoration: none; color: var(--fg); box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}
.links a:hover { border-color: var(--teal-500); transform: translateY(-1px); }
.links a strong { display: block; font-size: 17px; margin-bottom: 2px; }
.links a span { color: var(--sub); font-size: 14px; }

/* フッター */
.site-footer { max-width: 880px; margin: 0 auto; padding: 0 20px 40px; color: var(--sub); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--sub); }
.site-footer .copy { margin-left: auto; }
.button.is-disabled, .button.is-disabled:hover { background: var(--line); color: var(--sub); cursor: default; }
