/* MyPostiz — shared stylesheet */

:root {
  --brand: #7B3FE4;
  --brand-dark: #5B21B6;
  --fg: #1c1c1e;
  --muted: #5b5f66;
  --line: #e3e5e8;
  --bg: #ffffff;
  --soft: #f7f7fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16.5px;
}

a { color: var(--brand-dark); }

/* ---- site header (app icon is shown on every page) ---- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .01em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: block;
}

.site-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .9rem;
  margin-left: auto;
}

.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--brand-dark); text-decoration: underline; }
.site-nav a.current { color: var(--brand-dark); font-weight: 600; }

/* ---- layout ---- */

.wrap { max-width: 940px; margin: 0 auto; padding: 0 24px 96px; }

.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: 2rem; margin: 0 0 10px; letter-spacing: .01em; }
.page-head .lead { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* app icon block at the top of legal pages */
.doc-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0 0;
}
.doc-mark img { width: 56px; height: 56px; border-radius: 12px; display: block; }
.doc-mark .name { font-weight: 700; font-size: 1.1rem; }
.doc-mark .sub { color: var(--muted); font-size: .88rem; }

h2 { font-size: 1.3rem; margin: 44px 0 12px; }
h3 { font-size: 1.02rem; margin: 26px 0 8px; }
p { margin: 12px 0; }
ul, ol { padding-left: 1.3em; }
li { margin: 7px 0; }

code {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: .9em;
}

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; }
th { background: var(--soft); font-weight: 600; }
table.kv th { width: 34%; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 20px 0; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; background: #fff; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.note {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #fbfaff;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: .96rem;
}

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  margin: 22px 0;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jp {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 26px;
  margin-top: 56px;
}
.jp h2:first-child { margin-top: 0; }

.faq dt { font-weight: 700; margin: 26px 0 6px; }
.faq dd { margin: 0; color: var(--fg); }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer .inner { max-width: 940px; margin: 0 auto; padding: 0 24px; }
.site-footer .foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.site-footer .foot-brand img { width: 26px; height: 26px; border-radius: 6px; }
.site-footer .foot-brand span { font-weight: 700; color: var(--fg); }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }

@media (max-width: 640px) {
  .site-nav { width: 100%; margin-left: 0; gap: 12px; }
  .page-head h1 { font-size: 1.6rem; }
}
