/* 使い方・プライバシーポリシーなど、文章だけの静的ページ用。
   アプリ本体(src/styles.css)と同じ色・文字の決まりを、必要な分だけ持つ。 */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --band: #f3f5f9;
  --text: #1b1d22;
  --muted: #5b606b;
  --line: #e4e6ea;
  --accent: #24427a;
  --accent-soft: #dfe7f4;
  --on-accent: #ffffff;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui,
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #15171c;
    --band: #1c1f26;
    --text: #e8eaee;
    --muted: #a5aab4;
    --line: #2c3038;
    --accent: #93acde;
    --accent-soft: #22304b;
    --on-accent: #101a30;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* 画面幅いっぱいの帯が横スクロールを生まないように */
}

.wrap {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap.wide {
  max-width: 66rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

/* ヘッダーのリンクはパソコンだけ */
.site-nav {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-nav .nav-cta {
  color: var(--accent);
  font-weight: 700;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 7px 16px;
}

.site-nav .nav-cta:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

@media (min-width: 720px) {
  .site-header {
    border-bottom: 1px solid var(--line);
  }

  .site-nav {
    display: flex;
  }

  .header-inner {
    min-height: 68px;
  }
}

.wordmark {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 32px 0 8px;
}

h2 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 48px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 28px 0 4px;
}

p,
ul,
ol,
dl {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 1.4em;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.note {
  color: var(--muted);
  font-size: 0.88rem;
}

/* 目次や要点など、大事なところだけ帯を敷く */
.band {
  position: relative;
  isolation: isolate;
  background: var(--band);
  margin: 28px -20px 0;
  padding: 18px 20px 20px;
}

/* 画面が列より広いときは、帯の色を画面の端から端まで伸ばす */
@media (min-width: 600px) {
  .band {
    background: transparent;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .band::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    background: var(--band);
  }
}

.band > :last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}

dt {
  font-weight: 700;
  margin-top: 14px;
}

dd {
  margin: 2px 0 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 32px;
}

.site-footer a {
  color: var(--muted);
}
