/* SLPRO 公式サイト(slpro.me)の唯一の CSS。
   青はアプリアイコンの実効色(上 #88C9F7 → 4割から下 #2989CC)。 */
:root {
  --blue: #2989CC;
  --blue-light: #88C9F7;
  --ink: #1C2733;
  --body: #33414E;
  --sub: #5B6B7A;
  --line: #E3EAF1;
  --bg: #FFFFFF;
  --soft: #F4F8FC;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EEF3F8;
    --body: #C9D3DD;
    --sub: #8D9BA8;
    --line: #26323E;
    --bg: #10171E;
    --soft: #18222C;
  }
}

/* Zen Kaku Gothic New(SIL OFL 1.1。assets/fonts/OFL.txt)。
   サイトで使う文字だけに絞ってある。HTML の文言を変えたら web/tools/subset-fonts.sh で作り直す。
   300 以下は Light、400 以上は Regular を使う(太字の擬似合成はしない)。 */
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("../fonts/zen-kaku-gothic-new-light.woff2") format("woff2");
  font-weight: 100 300;
  font-display: swap;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("../fonts/zen-kaku-gothic-new-regular.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-weight: 300;
  font-synthesis: none;
  letter-spacing: -.03em; /* このフォントは palt が無いので字間を少し詰める */
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
@media (prefers-color-scheme: dark) { a { color: var(--blue-light); } }

/* --- ヘッダー(上に固定。ロゴ・ナビ・App Store バッジ) --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  transition: transform .3s ease, opacity .3s ease;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 60px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 400; }
.nav a:hover { color: var(--blue); }
.store-badge { display: block; flex: none; line-height: 0; }
.store-badge img { height: 40px; width: auto; }
/* スマホではナビをトップの下のボタンに任せる */
@media (max-width: 600px) {
  .nav { display: none; }
  .site-header .store-badge { margin-left: auto; }
}
html { scroll-padding-top: 60px; }
/* トップでは隠し、トップのバッジが見えなくなったら出す(assets/js/header.js) */
.has-js .site-header:not(.is-shown) { transform: translateY(-100%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
/* JS が無いとヘッダーが出たままなので、その分だけ本文を下げる */
html:not(.has-js) body { padding-top: 60px; }

/* --- トップ: 青い背景の真ん中にキャラ --- */
.hero {
  min-height: 100svh;
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue) 42%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 96px;
  text-align: center;
  position: relative;
}
.hero__character {
  width: min(42vw, 300px);
  height: auto;
  animation: float 4s ease-in-out infinite;
}
.hero h1 {
  margin: 28px 0 0;
  font-size: clamp(28px, 6vw, 40px);
  letter-spacing: .01em;
  font-weight: 300;
  line-height: 1.2;
}
.hero p { margin: 6px 0 0; opacity: .9; }
.hero__badge { margin-top: 28px; }
.hero__badge img { height: 50px; }
.hero__nav {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero__nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 6px 16px;
  border: 1.5px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
}
.hero__nav a:hover { background: rgba(255, 255, 255, .15); }
@media (min-width: 601px) { .hero__nav { display: none; } }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero__character { animation: none; } }

/* --- 本文 --- */
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.section { padding-top: 72px; padding-bottom: 8px; }
.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h2 { margin: 2px 0 20px; font-size: 26px; line-height: 1.4; font-weight: 300; letter-spacing: -.05em; }
strong { font-weight: 500; }
h3 { font-size: 16px; margin: 32px 0 8px; font-weight: 500; }
p { margin: 0 0 12px; }
.muted { color: var(--sub); font-size: 14px; }

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.features li { background: var(--soft); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.features--premium li { background: color-mix(in srgb, var(--blue) 10%, var(--bg)); }
.features + .muted { margin-top: 10px; }
.devices { list-style: none; padding: 0; margin: 0 0 8px; }
.devices li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--body); }
.devices li:first-child { border-top: 1px solid var(--line); }
.devices strong { display: inline-block; min-width: 7.5em; color: var(--ink); font-weight: 400; }
@media (max-width: 480px) { .devices strong { display: block; } }

.steps { padding: 0; margin: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 20px 48px; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 400;
  display: grid;
  place-items: center;
  font-size: 15px;
}
code { background: var(--soft); border-radius: 4px; padding: 1px 6px; font-size: .92em; word-break: break-all; }

/* --- FAQ(details で開閉。JS なし) --- */
details { border-bottom: 1px solid var(--line); }
h3 + details { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 400; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; font-weight: 200; color: var(--blue); }
details[open] summary::after { content: "−"; }
details > div { padding: 0 0 16px; color: var(--body); }
details ul { margin: 0 0 8px; padding-left: 1.2em; }

.hero--small .hero__character { width: min(30vw, 160px); }
.hero--small a.back { color: #fff; font-weight: 400; margin-top: 16px; }

/* --- フッター --- */
.site-footer { text-align: center; padding: 64px 16px 40px; color: var(--sub); font-size: 13px; }

/* --- お問い合わせ(contact.php) --- */
.page { padding-top: 60px; }
.page__title { margin: 2px 0 20px; font-size: 28px; line-height: 1.4; font-weight: 300; letter-spacing: -.05em; }
#form { scroll-margin-top: 80px; }
.form { display: grid; gap: 20px; margin-top: 32px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 400; }
.field label span { margin-left: 6px; font-size: 12px; color: var(--sub); }
.field :is(input, textarea, select) {
  width: 100%;
  font: inherit;
  font-size: 16px; /* 16px 未満だと iPhone の Safari が入力時に拡大する */
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  -webkit-appearance: none;
  appearance: none;
}
.field :is(input, textarea, select):focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--sub) 50%), linear-gradient(135deg, var(--sub) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field :is(input, textarea, select)[aria-invalid="true"] { border-color: #E5534B; }
.field__error { margin: 0; font-size: 13px; color: #E5534B; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 12px; padding: 14px 16px; margin-top: 24px; }
.notice strong { font-weight: 500; }
.notice p { margin: 4px 0 0; font-size: 14px; }
.notice--ok { background: #E7F5EF; color: #13573F; }
.notice--ng { background: #FDECEB; color: #8E2A24; }
@media (prefers-color-scheme: dark) {
  .notice--ok { background: #13342A; color: #BFE8D6; }
  .notice--ng { background: #3A1C1A; color: #F5C6C2; }
}
.button {
  justify-self: start;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 999px;
  padding: 12px 36px;
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.site-footer a { color: var(--sub); }

/* --- 規約・ポリシー(privacy / terms / tokusho) --- */
.doc { padding-bottom: 32px; }
.doc__meta { color: var(--sub); font-size: 13px; }
.doc h2 { font-size: 19px; font-weight: 400; letter-spacing: -.02em; margin: 40px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc li strong, .doc dt { font-weight: 400; color: var(--ink); }
.doc p, .doc li { color: var(--body); }
.doc__toc { margin: 24px 0 8px; padding: 16px 20px; background: var(--soft); border-radius: 12px; font-size: 14px; }
.doc__toc ol { margin: 0; padding-left: 1.4em; columns: 2 220px; column-gap: 24px; }
.doc__toc li { margin: 2px 0; break-inside: avoid; }
.doc__toc a { color: var(--ink); text-decoration: none; }
.doc__table { margin: 24px 0 0; border-top: 1px solid var(--line); }
.doc__table dt { padding: 14px 0 2px; font-size: 14px; color: var(--sub); }
.doc__table dd { margin: 0; padding: 0 0 14px; border-bottom: 1px solid var(--line); color: var(--body); }
.doc h2[id] { scroll-margin-top: 72px; }

/* --- フッターのリンク --- */
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.site-footer p { margin: 0; }
