/* 公開版の見た目。色・字・しるしは、2026-11-22 にオーナーが決めたもの（docs/HANDOVER.md の決定 38）。 */
/* スマホの幅を先に考えて作ってある。 */

/* 字のファイルは、このページと同じ場所に置く。外の配り場からは読まない。 */
/* 下の 2 行のあいだは、そろえるとき（build.mjs）に、試作（prototype/style.css）と同じ字の読み込みに入れ替わる。 */
/* fonts:begin（build.mjs が入れる。手で直さない） */
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ZenKakuGothicNew-Medium-rest.woff2") format("woff2"); unicode-range: U+131, U+152-153, U+174-178, U+2C6, U+2DA, U+2DC, U+300-303, U+307-308, U+30A, U+327, U+37E, U+384-385, U+387, U+401, U+410-44F, U+451, U+1E80-1E85, U+1E9E, U+1EF2-1EF3, U+2074, U+20AC, U+20DD, U+2103, U+2109, U+2116, U+2121, U+2160-216B, U+2170-217B, U+2200, U+2202-2203, U+2207-2208, U+220B, U+2212, U+2215, U+221A, U+221D-2220, U+2227-222C, U+222E, U+2234-2235, U+223D, U+2252, U+2260-2261, U+2266-2267, U+226A-226B, U+2282-2283, U+2286-2287, U+22A5, U+22BF, U+2312, U+2500-2503, U+250C, U+250F-2510, U+2513-2514, U+2517-2518, U+251B-251D, U+2520, U+2523-2525, U+2528, U+252B-252C, U+252F-2530, U+2533-2534, U+2537-2538, U+253B-253C, U+253F, U+2542, U+254B, U+2605-2606, U+260E, U+261C-261F, U+2640, U+2642, U+2660-2667, U+266A, U+266D, U+266F, U+2776-277E, U+322A-3240, U+3242-3243, U+3296, U+3298-3299, U+329D-329E, U+32A4-32A9, U+3300, U+3303, U+3305, U+330D, U+3314-3316, U+3318, U+331E, U+3322-3323, U+3326-3327, U+332A-332B, U+3331, U+3333, U+3336, U+3339, U+333B, U+3342, U+3347, U+3349-334A, U+334D-334E, U+3351, U+3357, U+337B-337F, U+3385-3387, U+338E-3390, U+3396-3398, U+339C-33A2, U+33A4-33A5, U+33B0-33B3, U+33C4, U+33CB, U+33CD, U+33D4, U+4E00-9FFF, U+F900-FAFF, U+FE00-FEFF; }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ZenKakuGothicNew-Medium-mid.woff2") format("woff2"); unicode-range: U+4E00-9FFF; }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ZenKakuGothicNew-Medium-core.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/ZenKakuGothicNew-Bold-rest.woff2") format("woff2"); unicode-range: U+131, U+152-153, U+174-178, U+2C6, U+2DA, U+2DC, U+300-303, U+307-308, U+30A, U+327, U+37E, U+384-385, U+387, U+401, U+410-44F, U+451, U+1E80-1E85, U+1E9E, U+1EF2-1EF3, U+2074, U+20AC, U+20DD, U+2103, U+2109, U+2116, U+2121, U+2160-216B, U+2170-217B, U+2200, U+2202-2203, U+2207-2208, U+220B, U+2212, U+2215, U+221A, U+221D-2220, U+2227-222C, U+222E, U+2234-2235, U+223D, U+2252, U+2260-2261, U+2266-2267, U+226A-226B, U+2282-2283, U+2286-2287, U+22A5, U+22BF, U+2312, U+2500-2503, U+250C, U+250F-2510, U+2513-2514, U+2517-2518, U+251B-251D, U+2520, U+2523-2525, U+2528, U+252B-252C, U+252F-2530, U+2533-2534, U+2537-2538, U+253B-253C, U+253F, U+2542, U+254B, U+2605-2606, U+260E, U+261C-261F, U+2640, U+2642, U+2660-2667, U+266A, U+266D, U+266F, U+2776-277E, U+322A-3240, U+3242-3243, U+3296, U+3298-3299, U+329D-329E, U+32A4-32A9, U+3300, U+3303, U+3305, U+330D, U+3314-3316, U+3318, U+331E, U+3322-3323, U+3326-3327, U+332A-332B, U+3331, U+3333, U+3336, U+3339, U+333B, U+3342, U+3347, U+3349-334A, U+334D-334E, U+3351, U+3357, U+337B-337F, U+3385-3387, U+338E-3390, U+3396-3398, U+339C-33A2, U+33A4-33A5, U+33B0-33B3, U+33C4, U+33CB, U+33CD, U+33D4, U+4E00-9FFF, U+F900-FAFF, U+FE00-FEFF; }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/ZenKakuGothicNew-Bold-mid.woff2") format("woff2"); unicode-range: U+4E00-9FFF; }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/ZenKakuGothicNew-Bold-core.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/ZenKakuGothicNew-Black-rest.woff2") format("woff2"); unicode-range: U+131, U+152-153, U+174-178, U+2C6, U+2DA, U+2DC, U+300-303, U+307-308, U+30A, U+327, U+37E, U+384-385, U+387, U+401, U+410-44F, U+451, U+1E80-1E85, U+1E9E, U+1EF2-1EF3, U+2074, U+20AC, U+20DD, U+2103, U+2109, U+2116, U+2121, U+2160-216B, U+2170-217B, U+2200, U+2202-2203, U+2207-2208, U+220B, U+2212, U+2215, U+221A, U+221D-2220, U+2227-222C, U+222E, U+2234-2235, U+223D, U+2252, U+2260-2261, U+2266-2267, U+226A-226B, U+2282-2283, U+2286-2287, U+22A5, U+22BF, U+2312, U+2500-2503, U+250C, U+250F-2510, U+2513-2514, U+2517-2518, U+251B-251D, U+2520, U+2523-2525, U+2528, U+252B-252C, U+252F-2530, U+2533-2534, U+2537-2538, U+253B-253C, U+253F, U+2542, U+254B, U+2605-2606, U+260E, U+261C-261F, U+2640, U+2642, U+2660-2667, U+266A, U+266D, U+266F, U+2776-277E, U+322A-3240, U+3242-3243, U+3296, U+3298-3299, U+329D-329E, U+32A4-32A9, U+3300, U+3303, U+3305, U+330D, U+3314-3316, U+3318, U+331E, U+3322-3323, U+3326-3327, U+332A-332B, U+3331, U+3333, U+3336, U+3339, U+333B, U+3342, U+3347, U+3349-334A, U+334D-334E, U+3351, U+3357, U+337B-337F, U+3385-3387, U+338E-3390, U+3396-3398, U+339C-33A2, U+33A4-33A5, U+33B0-33B3, U+33C4, U+33CB, U+33CD, U+33D4, U+4E00-9FFF, U+F900-FAFF, U+FE00-FEFF; }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/ZenKakuGothicNew-Black-mid.woff2") format("woff2"); unicode-range: U+4E00-9FFF; }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/ZenKakuGothicNew-Black-core.woff2") format("woff2"); }
/* fonts:end */

:root {
  /* 色（こん） */
  --brand: #25467c;    /* 主の色。ボタン、しるし */
  --deep: #1a3260;     /* 主の色の濃いほう。押したとき */
  --tint: #e8edf6;     /* 主の色のうすい地 */
  --paper: #faf9f6;    /* 紙の色。あたたかい白 */
  --surface: #ffffff;  /* 紙の上に置く箱の白 */
  --soft: #f1f0ec;     /* 目立たせない地 */
  --ink: #1f2530;      /* 字の色 */
  --muted: #5a6373;    /* 控えめな字 */
  --line: #d9dce4;     /* 線 */
  --sub: #c8922a;      /* 差し色（山吹）。線と印にだけ使う */
  --subtint: #f8efdb;  /* 差し色のうすい地。「あとで片づける」 */
  --error: #b3261e;

  --font: "Zen Kaku Gothic New", "Noto Sans JP", "Yu Gothic UI", "Hiragino Sans", Meiryo, sans-serif;
  --w-body: 500;
  --w-bold: 700;
  --w-black: 900;
  --r-box: 14px;
  --r-small: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: var(--w-body);
  font-size: 17px;
  line-height: 1.8;
  accent-color: var(--brand);
  overflow-wrap: anywhere;
}

strong, b { font-weight: var(--w-bold); }
[hidden] { display: none !important; }

/* ロゴ（しるし＋字）と副題 */
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.marktile { fill: var(--brand); }
.markglyph { stroke: #fff; }
header.site { background: var(--surface); border-bottom: 1px solid var(--line); }
header.site .inner, footer.site .inner { max-width: 760px; margin: 0 auto; padding: 14px 16px 12px; }
.logo { display: inline-flex; align-items: center; gap: 0.32em; margin: 0; font-size: 28px; line-height: 1; color: var(--ink); }
.logo .mark { flex: none; width: 38px; height: 38px; }
.word { display: inline-flex; flex-direction: column; gap: 0.16em; }
.wordja { font-weight: var(--w-black); letter-spacing: 0.05em; white-space: nowrap; }
.wordroman { font-size: 0.26em; font-weight: var(--w-bold); letter-spacing: 0.42em; color: var(--muted); }
.subtitle { margin: 8px 0 0; font-size: 15px; font-weight: var(--w-bold); line-height: 1.6; }
footer.site { border-top: 1px solid var(--line); background: var(--surface); margin-top: 24px; }
footer.site p { margin: 2px 0; font-weight: var(--w-bold); }

main { max-width: 760px; margin: 0 auto; padding: 20px 16px 56px; }

h1 { font-size: 32px; font-weight: var(--w-black); line-height: 1.35; margin: 0 0 10px; }
h2 { font-size: 23px; font-weight: var(--w-black); line-height: 1.45; margin: 0 0 10px; }
h3 { font-size: 19px; font-weight: var(--w-bold); line-height: 1.5; margin: 26px 0 6px; }
p { margin: 8px 0; }

section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: 18px 16px;
  margin-bottom: 16px;
}

/* 最初の箱 */
.hero { background: var(--tint); border-color: transparent; padding: 24px 18px; }
.lead { font-size: 18px; margin: 0 0 12px; }
.points { margin: 12px 0; padding: 0; list-style: none; }
.points li { position: relative; margin: 8px 0; padding-left: 1.6em; }
.points li::before { content: ""; position: absolute; left: 0.2em; top: 0.5em; width: 0.9em; height: 0.5em; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }

.note { color: var(--muted); font-size: 15px; margin: 6px 0; }
.error { color: var(--error); font-weight: var(--w-bold); margin: 10px 0; white-space: pre-wrap; border: 2px solid var(--error); border-radius: var(--r-small); padding: 10px 12px; background: #fff; }
.progresstext { font-weight: var(--w-bold); font-size: 18px; margin: 10px 0 6px; min-height: 1.8em; }
progress { width: 100%; height: 14px; }

.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }

/* 手順 */
.step { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 18px; }
.step h3 { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.stepno { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: var(--w-black); font-size: 19px; line-height: 1; }
ol.guide { margin: 8px 0; padding-left: 1.5em; }
ol.guide li { margin: 10px 0; padding-left: 4px; }
details { margin: 10px 0; border: 1px solid var(--line); border-radius: var(--r-small); padding: 8px 12px; background: var(--paper); }
summary { cursor: pointer; font-weight: var(--w-bold); color: var(--brand); padding: 4px 0; }

/* メールの種類を選ぶ */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.segitem { position: relative; display: block; }
.segitem input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segitem span { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px; border: 2px solid var(--line); border-radius: var(--r-box); background: var(--surface); font-weight: var(--w-bold); font-size: 18px; text-align: center; }
.segitem input:checked + span { border-color: var(--brand); background: var(--tint); color: var(--deep); box-shadow: inset 0 0 0 1px var(--brand); }
.segitem input:focus-visible + span { outline: 3px solid var(--sub); outline-offset: 2px; }

/* 入力 */
.field { display: block; margin: 12px 0; font-weight: var(--w-bold); }
.field input { display: block; width: 100%; margin-top: 4px; }
input[type="text"], input[type="email"], input[type="search"] {
  font: inherit;
  font-size: 18px; /* 16px より小さいと、iPhone が画面を勝手に拡大する。 */
  padding: 12px 12px;
  border: 2px solid var(--line);
  border-radius: var(--r-small);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
input:focus { border-color: var(--brand); }
select { font: inherit; font-size: 16px; padding: 10px 10px; border: 2px solid var(--line); border-radius: var(--r-small); background: var(--surface); color: var(--ink); max-width: 100%; }
label { display: inline-flex; align-items: center; gap: 8px; }
label.field { display: block; }
input[type="checkbox"] { width: 22px; height: 22px; flex: none; cursor: pointer; }

/* ボタンは丸く。字が角ばっているぶん、ここでやわらかさを出す。 */
button, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: var(--w-bold);
  line-height: 1.4;
  min-height: 48px;
  padding: 8px 22px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
button:hover:not(:disabled), a.btn:hover { background: var(--tint); }
button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.primary:hover:not(:disabled) { background: var(--deep); border-color: var(--deep); }
button.big { width: 100%; min-height: 60px; font-size: 20px; font-weight: var(--w-black); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--sub); outline-offset: 2px; }

/* 数字のカード */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 10px 0 4px; }
.card { border: 1px solid var(--line); border-radius: var(--r-box); padding: 10px 12px; background: var(--paper); }
/* この字は数字が細い。大きさと太さで補う。 */
.card .num { font-size: 34px; font-weight: var(--w-black); line-height: 1.2; }
.card .cap { color: var(--muted); font-size: 14px; line-height: 1.5; }

ol#forgottenList { margin: 6px 0; padding-left: 1.4em; }
ol#forgottenList li { margin: 6px 0; }

/* 片づけ */
.progressline { font-size: 17px; font-weight: var(--w-black); margin: 8px 0; }
.filters { margin: 10px 0; }
.filters .checks { gap: 6px 16px; font-size: 15px; }
.bulk { border: 2px solid var(--brand); border-radius: var(--r-box); padding: 10px 12px; margin: 12px 0; background: var(--surface); }
.bulkhead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin: 0; font-weight: var(--w-black); }
.bulk .row { margin: 8px 0 0; gap: 8px; }
.bulk button { min-height: 44px; padding: 6px 16px; font-size: 15px; }
.bulkmsg { white-space: pre-wrap; }

.items { list-style: none; margin: 0; padding: 0; }
.item { border: 1px solid var(--line); border-radius: var(--r-box); padding: 12px 12px; margin: 10px 0; background: var(--surface); }
.itemhead { display: flex; gap: 10px; align-items: flex-start; }
.itemhead .pick { margin-top: 5px; }
.itemtitle { min-width: 0; }
.item .name { font-weight: var(--w-black); font-size: 18px; line-height: 1.5; }
.item .sub { color: var(--muted); font-size: 13px; word-break: break-all; }
.itemmeta { color: var(--muted); font-size: 14px; margin: 6px 0 2px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); background: var(--paper); }
.item .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 8px 0; }
/* 「配信停止を開く」だけを主役に。ほかは補助なので、控えめに（2026-11-22 オーナーの案）。 */
a.action { color: #4a5258; font-size: 15px; text-decoration: underline; padding: 6px 0; }
a.action.strong { flex-basis: 100%; color: var(--brand); font-size: 18px; font-weight: var(--w-black); }
select.status { font-size: 15px; font-weight: var(--w-bold); padding: 8px 8px; }
.item[data-status="done"] { background: var(--soft); color: var(--muted); }
.item[data-status="done"] .name { text-decoration: line-through; }
.item[data-status="using"] { background: var(--tint); }
.item[data-status="later"] { background: var(--subtint); }

/* 読み終わったあとの「合言葉を消す」。いちばん大事な案内なので、赤い枠で、大きく太く（2026-11-22 オーナーの案：「赤枠とか、分かりやすい方がいい」）。 */
/* 赤は、枠としるしだけ。押すボタンは、いつもの色のまま（どこを押すかで迷わせないため）。 */
.revoke { border: 4px solid var(--error); border-radius: var(--r-box); padding: 16px 14px 14px; margin: 0 0 22px; background: #fff; }
.revoketag { display: inline-block; margin: 0 0 8px; padding: 2px 12px; border-radius: 999px; background: var(--error); color: #fff; font-size: 15px; font-weight: var(--w-black); line-height: 1.6; }
.revokehead { font-size: 24px; font-weight: var(--w-black); line-height: 1.45; margin: 0 0 8px; word-break: keep-all; overflow-wrap: anywhere; }
.revokehow { font-size: 16px; font-weight: var(--w-bold); margin: 6px 0; }

/* 「告知」のボタン。押すと、告知のポップアップが開く。 */
.noticebtn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px 8px 10px; border: 2px solid var(--sub); border-radius: 999px; background: var(--subtint); color: var(--ink); font-size: 16px; font-weight: var(--w-bold); line-height: 1.5; text-align: left; }
.noticebtn:hover:not(:disabled) { background: #f3e3bf; }
.noticetag { flex: none; padding: 1px 10px; border-radius: 999px; background: var(--sub); color: #fff; font-size: 14px; font-weight: var(--w-black); }

/* 告知のポップアップ。中の箱（.pitch）の見た目は pitch.css（pitch/parts.css の写し）。 */
dialog.pitchdialog { width: min(94vw, 460px); max-height: 92vh; margin: auto; padding: 0; border: 0; border-radius: 14px; background: var(--surface); overflow: auto; }
dialog.pitchdialog::backdrop { background: rgba(20, 28, 44, 0.6); }
.pitchwrap { padding: 14px 0 18px; }
.pitchwrap .pitch { max-width: none; border: 0; border-radius: 0; padding: 6px 18px 0; }
.pitchtag { display: inline-block; margin: 0 18px 4px; padding: 1px 12px; border-radius: 999px; background: var(--sub); color: #fff; font-size: 14px; font-weight: var(--w-black); }
.pitchclose { justify-content: center; margin: 18px 0 0; }
/* 「購入する」の場所に出す、準備中の文（買える所ができるまで）。 */
.pitch p.buysoon { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
/* 「予約する」「知らせてほしい」は、押せるボタン。形は pitch.css（.buy、.tell）のまま。 */
.pitch button.buy, .pitch button.tell { cursor: pointer; min-height: 56px; line-height: 1.5; }
.pitch button.buy:hover:not(:disabled) { background: var(--deep); }
.pitch button.buy:disabled, .pitch button.tell:disabled { opacity: 0.5; cursor: default; }
/* ボタンを押すと開く、メールアドレスの欄。 */
.signup { margin: 12px 0 0; padding: 14px 14px; border: 2px solid var(--brand); border-radius: 10px; background: var(--tint); word-break: normal; }
.signup p { margin: 0 0 10px; }
.signupfield { display: block; font-weight: var(--w-bold); margin: 0 0 10px; }
.signupfield input { display: block; width: 100%; margin-top: 4px; font: inherit; font-size: 18px; padding: 12px 12px; border: 2px solid var(--line); border-radius: var(--r-small); background: var(--surface); color: var(--ink); }
.signup button.signupsubmit { width: 100%; min-height: 52px; border-radius: 10px; font-size: 18px; }
.signup p.signupnote { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.signup p.signupmsg { margin: 8px 0 0; font-weight: var(--w-bold); min-height: 1.6em; }
.signup p.signupdone { margin: 0; font-weight: var(--w-black); font-size: 18px; overflow-wrap: anywhere; }
/* 価格のページ */
main.pricepage { display: flex; justify-content: center; }
main.pricepage .pitch.price { width: 100%; }
.pitch a.tell { text-decoration: none; }
a.logolink { display: inline-flex; align-items: center; gap: 0.32em; color: inherit; text-decoration: none; }
.pitchclose button { min-width: 160px; }
a.btn.solid { background: var(--brand); color: #fff; min-height: 56px; font-size: 19px; font-weight: var(--w-black); }
a.btn.solid:hover { background: var(--deep); }

/* よくある質問の形 */
.qa dt { font-weight: var(--w-black); margin-top: 16px; }
.qa dd { margin: 4px 0 0; }

@media (min-width: 640px) {
  section { padding: 22px 24px; }
  .hero { padding: 32px 28px; }
  h1 { font-size: 38px; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  button.big { width: auto; min-width: 320px; }
  /* 広い画面では、まとめて開く箱を上に貼りつける。スマホでは場所を取りすぎるので、貼りつけない。 */
  .bulk { position: sticky; top: 0; z-index: 2; }
  .item { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; }
  .item > * { grid-column: 1; }
  .item > select.status { grid-column: 2; grid-row: 1; align-self: start; }
}
