@charset "UTF-8";

/* ぽつり サポートサイト 共通スタイル
   配色は端末アプリのトーン（雨青 + 生成りの紙）に合わせる。
   ブランド禁止色（金・オレンジ・黄色）は使用しない。 */

:root {
  --bg: #f7f5f0;
  --bg-card: #fffefb;
  --bg-sub: #efece5;
  --ink: #23262a;
  --ink-sub: #5c636b;
  --ink-faint: #868d95;
  --rain: #486982;
  --rain-deep: #35505f;
  --rain-pale: #dde5ec;
  --line: #dfdad0;
  --alert: #8f4141;
  --alert-bg: #f6ecec;
  --radius: 14px;
  --measure: 42rem;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--rain-deep);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--rain);
}

/* ---------- レイアウト ---------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 20px;
}

main {
  padding: 8px 0 56px;
}

section {
  margin: 0 0 40px;
}

/* ---------- ヘッダー / ナビ ---------- */

.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  padding-top: 16px;
  padding-bottom: 12px;
}

.site-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.site-title a {
  color: var(--ink);
  text-decoration: none;
}

.site-title .sub {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.site-nav {
  margin-top: 12px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 7px 13px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-sub);
  font-size: 0.85rem;
  text-decoration: none;
}

.site-nav a:hover {
  border-color: var(--rain);
  color: var(--rain-deep);
}

.site-nav a[aria-current="page"] {
  background: var(--rain);
  border-color: var(--rain);
  color: #fff;
}

/* ---------- 見出し ---------- */

.page-head {
  padding: 32px 0 8px;
}

h1 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.03em;
}

h2 {
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 600;
}

h3 {
  margin: 28px 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--rain-deep);
}

.lead {
  color: var(--ink-sub);
  font-size: 0.98rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.45em;
}

small,
.note {
  color: var(--ink-faint);
  font-size: 0.85rem;
  line-height: 1.8;
}

/* ---------- カード / パネル ---------- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 16px;
}

.card > :last-child {
  margin-bottom: 0;
}

.card h3 {
  margin-top: 0;
}

.calm {
  background: var(--rain-pale);
  border: 1px solid #c8d6e1;
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 24px;
}

.calm > :last-child {
  margin-bottom: 0;
}

.calm .calm-title {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--rain-deep);
}

/* 警告（パスフレーズ紛失など、取り返しのつかない操作） */
.warn {
  background: var(--alert-bg);
  border: 1px solid #dcc0c0;
  border-left: 4px solid var(--alert);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
}

.warn > :last-child {
  margin-bottom: 0;
}

.warn .warn-title {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--alert);
  line-height: 1.6;
}

.warn strong {
  color: var(--alert);
}

/* ---------- 手順ステップ ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  margin: 0 0 20px;
  padding: 18px 20px 18px 56px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rain);
  color: #fff;
  font-size: 0.82rem;
  line-height: 26px;
  text-align: center;
  font-weight: 600;
}

.steps > li > :last-child {
  margin-bottom: 0;
}

.step-title {
  margin: 0 0 8px;
  font-weight: 600;
  line-height: 1.6;
}

/* アプリ内の文言をそのまま示すラベル */
.ui {
  display: inline-block;
  padding: 1px 7px;
  margin: 0 1px;
  border: 1px solid #c8d6e1;
  border-radius: 6px;
  background: var(--rain-pale);
  color: var(--rain-deep);
  font-size: 0.88em;
  white-space: nowrap;
}

/* ---------- スクリーンショット差し込み位置 ---------- */

.screenshot-placeholder {
  margin: 14px 0 0;
  padding: 0;
  border: 1px dashed #b9c6d0;
  border-radius: var(--radius);
  background: var(--bg-sub) repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(72, 105, 130, 0.05) 10px,
      rgba(72, 105, 130, 0.05) 20px
    );
  overflow: hidden;
}

.screenshot-placeholder img {
  display: block;
  width: 100%;
}

.screenshot-placeholder .shot-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding: 20px;
  color: var(--rain-deep);
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.7;
}

.screenshot-placeholder figcaption {
  padding: 10px 14px;
  border-top: 1px dashed #b9c6d0;
  background: var(--bg-card);
  color: var(--ink-sub);
  font-size: 0.8rem;
  line-height: 1.75;
}

/* ---------- FAQ ---------- */

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 12px;
  overflow: hidden;
}

.faq-item > summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.7;
  list-style: none;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::before {
  content: "Q";
  display: inline-block;
  margin-right: 10px;
  color: var(--rain);
  font-weight: 700;
}

.faq-item[open] > summary {
  border-bottom: 1px solid var(--line);
}

.faq-body {
  padding: 16px 20px 4px;
  color: var(--ink-sub);
}

.faq-body > :last-child {
  margin-bottom: 1em;
}

/* ---------- 目次・リンク一覧 ---------- */

.toc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px 16px 38px;
  margin: 0 0 32px;
}

.toc li {
  margin-bottom: 0.3em;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list li {
  margin: 0 0 12px;
}

.link-list a {
  display: block;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}

.link-list a:hover {
  border-color: var(--rain);
}

.link-list .t {
  display: block;
  font-weight: 600;
  margin-bottom: 3px;
}

.link-list .d {
  display: block;
  color: var(--ink-faint);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ---------- 仕様テーブル ---------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 16px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 20rem;
  font-size: 0.92rem;
  background: var(--bg-card);
}

th,
td {
  padding: 11px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--bg-sub);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- フッター ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-card);
  padding: 24px 0 40px;
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--ink-sub);
}

.site-footer p {
  margin: 0;
}

/* ---------- レスポンシブ ---------- */

@media (min-width: 44rem) {
  body {
    font-size: 16.5px;
  }

  h1 {
    font-size: 1.75rem;
  }

  .site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 16px;
  }

  .site-nav {
    margin-top: 0;
  }
}

@media (max-width: 24rem) {
  .wrap {
    padding: 0 14px;
  }

  .steps > li {
    padding: 16px 14px 16px 48px;
  }

  .steps > li::before {
    left: 12px;
  }
}
