/* オイショイ！ — 登録まわりの共有スタイル。
 *
 * トークンは web/index.html と同じ値を使う。販売ページから続けて歩く画面なので、
 * 色や角丸が変わると「別のサイトに飛ばされた」と読まれる。⚠ 片方だけ直すと
 * その断絶が生まれるので、変えるときは両方そろえること。
 *
 * ここも index.html と同じく **ビルド無し・日本語のみ**。i18n.js は世界とUIの
 * 文字列を生きたまま差し替えるためのもので、この画面の同意文言は法務文であり
 * 英語版が存在しない（index.html が i18n を通っていないのと同じ理由）。 */

:root {
  --bg: #eef1f7; --card: #fff; --ink: #1d2433; --muted: #4a5468;
  --blue: #3b6fd4; --red: #e0453a; --gold: #8a6d0a; --green: #2fb54a;
  --line: #dfe4ee;
  --shadow: 0 2px 12px rgba(30,50,90,.14);
}
* { box-sizing: border-box; }
/* ⚠⚠ `hidden` は UA の `display:none` でしかないので、こちらで `display:flex`
 * や `grid` を当てた要素では**負ける**。2026-08-07 に承認画面で実際に起きた —
 * `.shots` を hidden にしたのに壊れた img が出ていた。個別に
 * `.err[hidden]{display:none}` と書いて回るより、ここで一度に押さえる。 */
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.75; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 20px; }
h1 { font-size: 23px; font-weight: 900; margin: 0 0 8px; line-height: 1.4; }
h2 { font-size: 17px; font-weight: 900; margin: 0 0 12px; }
p  { margin: 0 0 14px; }
.lead { font-size: 15px; color: var(--muted); margin: 0 0 22px; }
.small { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ── header ─────────────────────────────────────────────────────────── */
header { padding: 18px 0 0; }
.hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* ⚠ `white-space: nowrap` は必須。右の `.who` は人によって長さが違い
 * （メールアドレスがそのまま出る）、放っておくとブランド名のほうが折れて
 * 「オイショ／イ！」になる。ロゴが割れる画面は、その時点で信用を1枚落とす。 */
.brand { font-size: 19px; font-weight: 900; letter-spacing: .02em;
  text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand .bang { color: var(--red); }
.who { font-size: 13px; color: var(--muted); text-align: right;
  min-width: 0; overflow-wrap: anywhere; }
.who button { background: none; border: none; color: var(--blue); font: inherit;
  font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline; }

/* ── card & form ────────────────────────────────────────────────────── */
main { padding: 26px 0 60px; }
.card { background: var(--card); border-radius: 16px; padding: 24px;
  box-shadow: var(--shadow); margin: 0 0 16px; }

label { display: block; font-weight: 800; font-size: 14.5px; margin: 0 0 6px; }
.field { margin: 0 0 18px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin: 5px 0 0; line-height: 1.6; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"] {
  width: 100%; font: inherit; font-size: 16px; /* 16px 未満は iOS が拡大する */
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); }
input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
input[type="date"] { -webkit-appearance: none; appearance: none; min-height: 48px; }

.btn { display: block; width: 100%; text-align: center; text-decoration: none;
  font-weight: 800; border-radius: 14px; padding: 15px 22px; font-size: 16px;
  border: none; cursor: pointer; font-family: inherit; }
.btn-buy { background: var(--red); color: #fff; box-shadow: 0 6px 20px rgba(180,40,30,.3); }
.btn-demo { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.btn[disabled], .btn[aria-disabled="true"] { background: #b9c0cd; color: #fff;
  box-shadow: none; cursor: not-allowed; }
.btn.busy { opacity: .7; cursor: progress; }

.alt { text-align: center; margin: 16px 0 0; font-size: 14px; }

/* ── ログインボタン ──────────────────────────────────────────────────
 * ⚠ 出す順番は Google → LINE で、動かし式部（shikibu.jugoya.ai）と同じ。
 * 並びが違うと、両方を使う人が押し間違える。
 *
 * ⚠⚠ TODO(2026-08-06): **LINE の公式ボタン画像に差し替えること。**
 * LINE Login にはボタンのデザインガイドラインがあり、色とロゴの扱いが
 * 決まっている。いまは公式アセットを持っていないので、ブランド色
 * （#06C755）のテキストボタンで代用している。公開前に確認が要る。 */
.authbtns { display: grid; gap: 10px; }
.btn-google { background: #fff; color: #3c4043; border: 1px solid #dadce0;
  box-shadow: 0 1px 3px rgba(30,50,90,.12); }
.btn-line { background: #06C755; color: #fff;
  box-shadow: 0 6px 20px rgba(6,199,85,.28); }
.btn-google[disabled], .btn-line[disabled] { opacity: .55; cursor: progress; }

/* ── messages ───────────────────────────────────────────────────────── */
.err, .ok, .note {
  border-radius: 12px; padding: 13px 15px; margin: 0 0 16px;
  font-size: 14px; line-height: 1.7; }
.err  { background: #fdecea; border-left: 5px solid var(--red);   color: #8c2018; font-weight: 700; }
.ok   { background: #eaf7ec; border-left: 5px solid var(--green); color: #1c6b2c; font-weight: 700; }
.note { background: #fff6ea; border-left: 5px solid #e9a13b;      color: #8a5410; font-weight: 700; }
.err[hidden], .ok[hidden], .note[hidden] { display: none; }

/* ── steps (create.html) ────────────────────────────────────────────── */
.stepno { font-size: 12px; font-weight: 900; color: var(--blue);
  letter-spacing: .08em; margin: 0 0 6px; }

.plans { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 0 0 6px; }
.plan { background: #fff; border: 2px solid var(--line); border-radius: 14px;
  padding: 16px 18px; cursor: pointer; display: block; }
.plan.sel { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,111,212,.15); }
.plan.off { opacity: .55; cursor: not-allowed; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan .name { font-weight: 900; font-size: 16px; }
.plan .amt { font-size: 24px; font-weight: 900; margin: 2px 0 0; }
.plan .amt .tax { font-size: 12px; font-weight: 700; color: var(--muted); }
.plan .where { font-weight: 800; font-size: 14px; color: var(--blue); margin: 6px 0 0; }
.plan.paid .where { color: var(--red); }
.plan .why { font-size: 13px; color: var(--muted); margin: 6px 0 0; line-height: 1.65; }

.checks { margin: 0 0 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px;
  font-size: 14px; line-height: 1.65; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; flex: 0 0 auto; cursor: pointer; }

.drop { border: 2px dashed #c3cbdb; border-radius: 14px; background: #f7f9fd;
  padding: 26px 18px; text-align: center; cursor: pointer; }
.drop.has { border-style: solid; border-color: var(--blue); background: #fff; }
.drop input { display: none; }
.drop .ico { font-size: 30px; }
.drop .pick { font-weight: 800; color: var(--blue); }
.preview { max-height: 260px; width: auto; margin: 0 auto 10px; border-radius: 12px; }

/* ── ④' できあがりの確認 (approve.html) ──────────────────────────────
 * ⚠ 🔒 の帯はカードの一番上・画像より前に置く。「OKを出すまで見えません」は
 * 画像を見たあとに読ませても遅い — 見る前に安心してもらうための一行なので、
 * 順番を入れ替えると意味が消える。 */
.lockband { background: #fdecea; color: #8c2018; font-size: 13.5px;
  border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; line-height: 1.6; }

/* 世界に立つ箱人間そのもの。⚠ 背景は世界の草地ではなく淡い無地にする —
 * ここで見てほしいのは人であって、風景ではない。 */
.stage { position: relative; border-radius: 14px; overflow: hidden;
  background: linear-gradient(#eef3fb, #e2e9f5); box-shadow: var(--shadow); }
.stage canvas { display: block; width: 100%; height: 380px;
  touch-action: none;   /* ⚠ これが無いとスマホで回す代わりにページが動く */
  cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage .drag { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0;
  text-align: center; font-size: 12px; font-weight: 700; color: #6b768c;
  pointer-events: none; }

.turns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: 12px 0 0; }
.turns button { font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
  padding: 10px 0; border-radius: 12px; border: 2px solid var(--line);
  background: #fff; color: var(--muted); }
.turns button.sel { border-color: var(--blue); color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,111,212,.15); }

.shots { display: flex; gap: 12px; align-items: flex-start; }
.shot-main { flex: 1 1 auto; min-width: 0; border-radius: 14px;
  background: #f7f9fd; box-shadow: var(--shadow); }
.thumbs { flex: 0 0 76px; display: grid; gap: 8px; }
.thumbs button { display: block; width: 76px; padding: 0; cursor: pointer;
  background: #fff; border: 2px solid var(--line); border-radius: 10px;
  overflow: hidden; font: inherit; }
.thumbs button.sel { border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,111,212,.15); }
.thumbs img { width: 100%; height: 60px; object-fit: cover; }
.thumbs span { display: block; font-size: 11.5px; font-weight: 800;
  color: var(--muted); padding: 3px 0 4px; }

/* ── mypage ─────────────────────────────────────────────────────────── */
.vil { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0;
  border-bottom: 1px solid var(--line); }
.vil:last-child { border-bottom: none; }
.vil .body { flex: 1; min-width: 0; }
.vil .nm { font-weight: 900; font-size: 15.5px; }
.vil .meta { font-size: 13px; color: var(--muted); }
.badge { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 999px;
  padding: 2px 10px; margin: 0 0 4px; }
.badge.wip  { background: #fff2d8; color: #8a5410; }
/* ⚠ ここだけ塗りつぶし。ほかの状態は「いまこう」だが、これだけは
 * 「あなたが見ないと先へ進まない」で、淡い色に混ぜると見落とされる。 */
.badge.rev  { background: var(--red); color: #fff; }
.badge.pub  { background: #e6f0ff; color: #24509e; }
.badge.priv { background: #fdecea; color: #8c2018; }
.badge.del  { background: #eef1f7; color: #6b748a; }
.linkbtn { background: none; border: none; color: var(--red); font: inherit;
  font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline; }

footer { padding: 26px 0 60px; border-top: 1px solid var(--line); }
.flinks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 12px;
  font-size: 13px; font-weight: 700; }

@media (min-width: 560px) {
  h1 { font-size: 26px; }
}
