/* スタンプミー サイトCSS
   ChatGPT が作成したデザイン案 (stampme_sample.html) をそのまま切り出したもの。
   カラーは LOGO GUIDELINE ver.1.0 準拠 (#FFC629 / #2D2D2D / #FFE0C2)。 */
/* =========================================================
   BASE
========================================================= */
/* hidden 属性を必ず効かせる。
   class 側の display 指定が hidden に勝つため、打ち消しを書き忘れると
   「隠したはずの要素が画面に残ってクリックを奪う」「チェックしても
   入力欄が出てこない」といった不具合になる（いずれも実際に踏んだ）。
   個別に書くと必ず漏れるので、ここで一括して優先させる。 */
[hidden] {
  display: none !important;
}

:root {
  --yellow: #ffc629;
  --yellow-dark: #f0b817;
  --yellow-soft: #fff5cf;

  --ink: #172033;
  --text: #252b35;
  --sub: #6c7280;

  --bg: #f7f8f8;
  --card: #ffffff;
  --field: #fbfcfd;
  --border: #e1e5e9;

  --radius: 18px;
  --shadow: 0 12px 36px rgba(20, 30, 45, .07);

  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  /* palt: 約物(、。「」())の余白を詰める。日本語が締まって見える最大の要因。
     わずかな字間の詰めと合わせて、間延びを防ぐ */
  font-feature-settings: "palt" 1;
  letter-spacing: .005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
label,
summary,
select {
  cursor: pointer;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;

  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(0,0,0,.05);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--content));
  height: 74px;
  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 180px;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
}

/* logo画像がまだない場合の仮表示 */
.logo-fallback {
  display: none;
  align-items: center;
  gap: 8px;

  color: #202020;
  font-size: 25px;
  font-weight: 800;
}

.logo-symbol {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  background: var(--yellow);
  border: 4px solid #242424;
  border-radius: 50% 50% 50% 36%;
}

.logo-symbol::after {
  content: "☺";
  font-size: 22px;
}

.logo-name span {
  color: var(--yellow-dark);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;

  /* CTA をナビの外に出したので、ナビ側を右に寄せて元の並びを保つ */
  margin-left: auto;
  margin-right: 32px;
}

.header-nav a {
  color: var(--text);
  text-decoration: none;

  font-size: 14px;
  font-weight: 600;
}

/* 狭い画面では「無料で試す」に縮める。長いままだとロゴと衝突する */
.cta-short { display: none; }

.header-cta {
  min-height: 46px;
  padding: 0 24px;
  text-decoration: none;   /* ナビの外にあるので、既定の下線が付いてしまう */

  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: var(--yellow);
  color: #151515 !important;

  border-radius: 999px;

  font-weight: 700 !important;
}
/* 主役は24個(黄色)。無料お試しは白抜きにして、並べても重くならないように */
.header-cta-order { margin-right: 8px; }
.header-cta-try { background: #fff; box-shadow: inset 0 0 0 1.5px #2d2d2d; }
.header-cta-try:hover { background: #f7f7f7; }

/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  overflow: hidden;

  /* 以前はここに薄い丸を2つ置いていたが、
     代わりに .hero-chats（トークで使われている様子）を散らす */
  background: linear-gradient(135deg,#ffffff 0%,#f6f8f8 100%);
}

/* 背景に散らすトーク画面。読ませるものではないので、
   薄く・小さく・本文の下に置く。文字が読みにくくなったら opacity を下げる */
.hero-chats {
  position: absolute;
  inset: 0;
  z-index: 0;

  overflow: hidden;
  pointer-events: none;
}

.hero-chats img {
  position: absolute;

  width: 200px;

  border-radius: 14px;

  opacity: .16;
  filter: saturate(.75);
}

/* 置く順番で位置が決まる。枚数が少なくても左右に散るように、
   1→左上 2→右上 3→左下 …と交互にしてある。
   ヒーローは画面幅いっぱいなので、本文(最大1180px)の外側の余白に逃がす */
/* すべて上端からの位置で置く。bottom で置くと、申し込みフォームを
   開いてヒーローが伸びたときに一緒に下へ流れて不自然になる（実際に踏んだ）。
   枚数が少なくても左右に散るよう、1→左 2→右 と交互にしてある */
.hero-chats img:nth-child(1) { top:  30px; left:  -40px; width: 214px; transform: rotate(-6deg); }
.hero-chats img:nth-child(2) { top:  58px; right: -52px; width: 198px; transform: rotate(6deg); }
.hero-chats img:nth-child(3) { top: 430px; left:  -70px; width: 206px; transform: rotate(5deg); }
.hero-chats img:nth-child(4) { top: 470px; right: -60px; width: 190px; transform: rotate(-5deg); }
.hero-chats img:nth-child(5) { top: 830px; left:  -86px; width: 182px; transform: rotate(4deg); }
.hero-chats img:nth-child(6) { top: 870px; right: -92px; width: 178px; transform: rotate(-7deg); }

/* 本文とフォームを背景より前に出す */
.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-inner {
  width: min(calc(100% - 40px), var(--content));
  margin: auto;
  padding: 55px 0 64px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 54px;
  align-items: start;
}

/* LEFT */

.hero-copy {
  padding-top: 20px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 10px;

  color: var(--ink);
  font-size: 14px;
  letter-spacing: .04em;
}

.kicker::before {
  content: "";
  width: 4px;
  height: 22px;

  background: var(--yellow);
  border-radius: 10px;

  transform: rotate(-18deg);
}

.hero h1 {
  margin: 0;

  color: #111c2e;

  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.12;
  letter-spacing: -.055em;
  font-weight: 800;
}

.hero-description {
  max-width: 570px;

  margin: 22px 0 0;

  color: #39404c;

  font-size: 18px;
  line-height: 1.85;
  letter-spacing: .01em;
}

/* STAMPS */

.stamp-showcase {
  margin-top: 35px;
}

.stamps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 20px;

  max-width: 590px;
}

.stamp {
  min-width: 0;
  padding: 5px 0;

  /* 元写真を角に重ねるための基準 */
  position: relative;

  text-align: center;
}

/* 行の顔写真と違う子のスタンプにだけ付く、小さな元写真。
   .stamp img の幅指定に負けないよう、セレクタを強めにしている */
.example-row .stamp img.stamp-face {
  position: absolute;
  left: -6px;
  top: -6px;

  width: 34px;
  height: 34px;
  margin: 0;

  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--card);
  box-shadow: 0 3px 8px rgba(20, 30, 45, .18);
}

.stamp img {
  /* 1行に4枚 + 顔写真 + 矢印が左カラム(約726px)に収まる幅 */
  width: 132px;
  aspect-ratio: 1;

  margin: auto;

  object-fit: contain;
}

.stamp-placeholder {
  width: 132px;
  aspect-ratio: 1;

  margin: auto;

  display: grid;
  place-items: center;

  border-radius: 24px;
  background: #fff;
  border: 1px dashed #c9ced5;

  color: var(--sub);
  font-size: 12px;
}

.more-examples {
  margin: 12px auto 0;

  display: block;
  width: fit-content;

  padding: 10px 25px;

  color: var(--ink);
  background: #fff;

  border: 1px solid #cfd4da;
  border-radius: 999px;

  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

/* BENEFITS */

.benefits {
  margin-top: 37px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.benefit {
  text-align: center;
}

.benefit-icon {
  width: 42px;
  height: 42px;

  margin: 0 auto 10px;

  display: grid;
  place-items: center;

  border-radius: 12px;
  background: #172033;
  color: #fff;

  font-size: 19px;
}

.benefit strong {
  display: block;

  color: #343b46;

  font-size: 12px;
}

/* =========================================================
   FORM CARD
========================================================= */

.form-card {
  position: relative;

  overflow: hidden;

  background: var(--card);
  border: 1px solid #e6e8eb;
  border-radius: 22px;

  box-shadow: var(--shadow);
}

.offer-bar {
  display: grid;
  grid-template-columns: 1.25fr .75fr;

  margin: 12px;
  overflow: hidden;

  border-radius: 12px;
}

.offer-free {
  padding: 12px 15px;

  background: var(--yellow);

  color: #1f1f1f;

  font-size: 13px;
  line-height: 1.65;
  letter-spacing: .01em;
}

.offer-free strong {
  display: block;
  font-size: 15px;
}

.offer-price {
  padding: 10px 13px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background: #fff6d9;

  font-size: 12px;
}

.offer-price del {
  color: #555;
}

.offer-price strong {
  color: #ec3b34;

  font-size: 21px;
  line-height: 1.2;
}

.form-main {
  padding: 10px 16px 20px;
}

.form-main h2 {
  margin: 4px 0 0;

  color: var(--ink);

  font-size: 24px;
  letter-spacing: -.02em;
}

.form-intro {
  margin: 3px 0 20px;

  color: var(--text);
  font-size: 13.5px;
  line-height: 1.75;
}

.step {
  margin-bottom: 10px;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 12px;
}

.step-header {
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;

  display: flex;
  align-items: center;
  gap: 10px;

  background: #fff;

  border: 0;

  color: var(--ink);

  text-align: left;

  font-weight: 700;
}

.step-number {
  flex: 0 0 34px;

  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: var(--yellow);

  color: #151515;

  font-weight: 800;
}

.chevron {
  margin-left: auto;
  color: #5f6672;
}

.step-body {
  padding: 5px 12px 16px;
}

.step.collapsed .step-body {
  display: none;
}

/* uploader */

.upload-row {
  display: grid;
  grid-template-columns: 1fr 105px;
  gap: 12px;
}

.upload-box {
  min-height: 150px;   /* 四隅の写真が上下で重ならない高さ */
  position: relative;      /* 四隅に散らす元写真(.upload-photos)の基準 */
  overflow: hidden;
  padding: 14px 76px;      /* 四隅の写真と文字が重ならない余白 */

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border: 1.5px dashed #b9c1ca;
  border-radius: 10px;

  background: #fbfcfe;

  text-align: center;
}

/* 「写真を選ぶ」の枠に、元写真の例を四隅に散らす(プリント写真のように白い縁と影、少し傾ける)。
   人物を選んでいれば人の写真、ペットなら動物の写真(data-only で出し分け)。文字の読みやすさのため中央は空ける */
.upload-photos img {
  position: absolute;
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 3px solid #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  pointer-events: none;
}
.upload-photos .ph-1 { left: 12px; top: 12px; transform: rotate(-8deg); }
.upload-photos .ph-2 { right: 14px; top: 10px; transform: rotate(7deg); }
.upload-photos .ph-3 { left: 16px; bottom: 12px; transform: rotate(6deg); }
.upload-photos .ph-4 { right: 12px; bottom: 14px; transform: rotate(-6deg); }
@media (max-width: 480px) {
  .upload-box { padding: 14px 62px; }
  .upload-photos img { width: 48px; height: 48px; }
}

.upload-box input {
  display: none;
}

.upload-icon {
  margin-bottom: 5px;
  font-size: 25px;
}

.upload-box strong {
  color: var(--ink);
  font-size: 14px;
}

.upload-box span {
  color: var(--sub);
  font-size: 11px;
}

.photo-preview {
  overflow: hidden;

  border-radius: 10px;
  background: #eceff1;
}

.photo-preview img {
  width: 100%;
  height: 126px;
  object-fit: cover;
}

.helper {
  margin: 8px 0 0;

  color: var(--sub);

  font-size: 11px;
}

/* fields */

.field {
  margin-top: 16px;
}

.field label,
fieldset legend {
  display: block;

  margin-bottom: 7px;

  color: #303641;

  font-size: 13px;
  font-weight: 700;
}

.optional {
  color: #9297a0;
  font-size: 11px;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 46px;

  padding: 10px 12px;

  border: 1px solid #d8dde3;
  border-radius: 9px;

  background: #fff;
  color: var(--text);

  outline: none;

  font-size: 16px;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #8b939e;

  box-shadow: 0 0 0 3px rgba(0,0,0,.05);
}

fieldset {
  padding: 0;
  border: 0;
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 8px;
}

/* 選択肢が3つ以下で横に並べたいとき（性別など） */
.radio-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

fieldset > legend {
  padding: 0;
  margin-bottom: 8px;

  color: var(--text);

  font-size: 13.5px;
  font-weight: 700;
}

/* 入力に不備があったときフォームの先頭に出す帯 */
.form-alert {
  margin: 0 0 18px;
  padding: 14px 16px;

  background: #fff4f0;
  border: 1px solid #e8b9a6;
  border-left: 4px solid #c2521f;
  border-radius: 10px;
}

.form-alert strong {
  display: block;
  margin-bottom: 6px;

  color: #a33f14;

  font-size: 13.5px;
}

.form-alert p {
  margin: 0;

  color: var(--text);

  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.form-alert .note {
  margin-top: 8px;

  color: var(--sub);

  font-size: 12px;
}

.radio-card input {
  position: absolute;
  opacity: 0;
}

.radio-card span {
  min-height: 44px;

  display: grid;
  place-items: center;

  border: 1px solid #d8dde3;
  border-radius: 9px;

  font-size: 13px;
  font-weight: 600;
}

.radio-card input:checked + span {
  border-color: #1c2635;
  background: #f6f7f8;

  box-shadow: inset 0 0 0 1px #1c2635;
}

/* checkbox */

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  margin-top: 13px;
}

.check-row input {
  width: 19px;
  height: 19px;

  margin-top: 2px;

  accent-color: var(--yellow-dark);
}

.check-row label {
  flex: 1;

  color: #333944;

  font-size: 13px;
}

/* 同意の枠(.consent)。これまで指定が無く本文の大きさ(16px)で出ていたので、.check-row と同じ大きさに揃える */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 13px;
}
.consent input[type="checkbox"] {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin-top: 2px;
  accent-color: var(--yellow-dark);
}
.consent > span { flex: 1; color: #333944; font-size: 13px; line-height: 1.75; }
.consent > span label { font-size: 13.5px; }
.consent .warn { font-size: 13px; }
.consent .note { font-size: 12.5px; }
/* 申請方法の2択の中は、説明文の大きさを 12.5px に揃える(11px だと読みにくい) */
.submit-option .helper, .submit-option .check-row label .helper { font-size: 12.5px; line-height: 1.75; }
.submit-option .check-row label { font-size: 13.5px; }
.submit-option .field .helper { font-size: 12px; }

/* チェックを入れたときだけ出す欄。
   表示の切り替えは hidden 属性（JS）で行う。ここで display:none を
   決め打ちすると、hidden を外しても出てこない（実際に踏んだ）。
   以前あった #add-name:checked ~ ... という指定は、いまのidと
   一致しない旧デザインの残骸だったので消した。 */
.conditional {
  margin: 10px 0 0 29px;
}

.conditional[hidden] {
  display: none;
}

/* accordion details */

.form-details {
  margin: 12px 0 0;

  border: 1px solid #dfe3e7;
  border-radius: 10px;
}

.form-details summary {
  padding: 13px 14px;

  list-style: none;

  color: #313944;

  font-size: 13px;
  font-weight: 700;
}

.form-details summary::-webkit-details-marker {
  display: none;
}

.form-details summary::after {
  content: "＋";
  float: right;
}

.form-details[open] summary::after {
  content: "−";
}

.details-content {
  padding: 0 14px 14px;

  color: var(--sub);

  font-size: 12px;
}

/* submit */

.submit-button {
  width: 100%;
  min-height: 57px;

  margin-top: 18px;
  padding: 0 22px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  border: 0;
  border-radius: 14px;

  background: linear-gradient(135deg,#ffd843,#ffc425);
  color: #191919;

  font-size: 17px;
  font-weight: 800;

  box-shadow: 0 7px 20px rgba(255,196,37,.25);
}

.submit-button:hover {
  background: linear-gradient(135deg,#ffdf60,#ffc425);
}

/* 審査通過後にお渡しする告知画像のご案内 */
.promo-box {
  margin: 0 0 18px;
  padding: 16px 18px;

  background: #fffaf0;
  border: 1px solid #f3e3bd;
  border-radius: 12px;
}

.promo-box .btn {
  margin: 0 8px 8px 0;
}

/* 使える支払い方法。公式マークは商標なので使わず、ブランド名を組んだバッジで出す */
.pay {
  margin-top: 30px;
  padding-top: 24px;

  border-top: 1px solid var(--border);
}

.pay-head {
  margin-bottom: 12px;

  display: flex;
  align-items: center;
  gap: 7px;

  color: var(--sub);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.pay-lock {
  width: 14px;
  height: 16px;

  flex: none;
}

.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pay-badge {
  height: 34px;
  padding: 0 13px;

  display: inline-flex;
  align-items: center;
  gap: 7px;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;

  box-shadow: 0 1px 2px rgba(20, 30, 45, .05);

  color: #3c4350;

  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* 申請中で、まだ選べない手段 */
.pay-badge.is-pending {
  background: transparent;
  border-style: dashed;

  box-shadow: none;

  color: var(--sub);
  font-weight: 700;
}

.pay-badge em {
  padding: 2px 7px;

  background: var(--field);
  border-radius: 999px;

  color: var(--sub);

  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}

.pay-note {
  margin: 12px 0 0;

  color: var(--sub);

  font-size: 11.5px;
  line-height: 1.7;
}

@media (max-width: 800px) {
  .pay {
    margin-top: 24px;
    padding-top: 20px;
  }

  .pay-badge {
    height: 31px;
    padding: 0 11px;

    font-size: 11.5px;
  }
}

.form-revisit {
  margin: 0;
  padding: 16px 24px 22px;

  border-top: 1px solid #eceef1;

  color: var(--sub);

  font-size: 12.5px;
  text-align: center;
}

.form-revisit a {
  color: inherit;
  font-weight: 700;
}

.no-charge {
  margin-top: 13px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;

  color: #505763;

  font-size: 12.5px;
}

/* =========================================================
   RESULT
========================================================= */

.result {
  background: linear-gradient(135deg,#f3f2ef 0%,#fafafa 60%);
}

.result-inner {
  width: min(calc(100% - 40px), var(--content));
  min-height: 455px;

  margin: auto;
  padding: 58px 0 0;

  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 50px;

  overflow: hidden;
}

.section-label {
  margin: 0 0 10px;

  color: #727884;

  font-size: 11px;
  letter-spacing: .35em;
}

.result h2 {
  margin: 0;

  color: var(--ink);

  font-size: 39px;
  line-height: 1.25;
}

.result-lead {
  margin-top: 12px;

  color: #58606c;

  font-size: 16px;
}

.result-list {
  margin: 24px 0 0;
  padding: 0;

  list-style: none;
}

.result-list li {
  position: relative;

  margin: 10px 0;
  padding-left: 30px;

  font-size: 15px;
}

.result-list li::before {
  content: "✓";

  position: absolute;
  left: 0;
  top: 1px;

  width: 20px;
  height: 20px;

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: var(--yellow);

  color: #171717;

  font-size: 12px;
  font-weight: 900;
}

/* sticker set visual */

.result-visual {
  position: relative;

  align-self: end;

  padding: 25px 25px 0;
}

.phone-frame {
  padding: 14px 12px 0;

  overflow: hidden;

  background: #101318;

  border: 3px solid #262a30;
  border-bottom: 0;
  border-radius: 38px 38px 0 0;

  box-shadow: 0 0 0 4px #bcc0c5;
}

.phone-screen {
  min-height: 355px;

  overflow: hidden;

  background: #fff;
  border-radius: 25px 25px 0 0;
}

.phone-screen img {
  width: 100%;
  min-height: 355px;
  object-fit: cover;
}

.result-badge {
  position: absolute;
  top: 0;
  right: 0;

  width: 92px;
  height: 92px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #1f242c;
  color: white;

  text-align: center;

  font-size: 14px;
  font-weight: 700;

  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.result-badge strong {
  color: var(--yellow);
  font-size: 25px;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
  padding: 14px 20px;

  background: #fff2ca;

  text-align: center;

  color: #30343a;

  font-size: 13px;
  letter-spacing: .18em;
}

/* =========================================================
   MOBILE
========================================================= */


@media (max-width: 800px) {

  .header-inner {
    width: calc(100% - 30px);
    height: auto;
  }

  .logo img {
    width: 152px;
  }

  /* ハンバーガーは用意していないので、ナビを隠さず2段目に折り返す。
     以前はここで display:none にしており、スマホからは
     作例・料金・ご注文の確認・特商法のどれにも行けなかった。 */
  .header-inner {
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 11px 0 12px;
  }

  .header-nav {
    order: 3;

    width: 100%;
    margin: 0;

    gap: 20px;
    flex-wrap: wrap;
  }

  .header-nav a {
    font-size: 13px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;

    font-size: 13px;
  }
  .header-cta-order { margin-right: 6px; }

  .cta-full  { display: none; }
  .cta-short { display: inline; }


  .hero-inner {
    width: 100%;
    padding: 0 13px 28px;

    display: block;
  }

  .hero-copy {
    padding: 27px 8px 0;
  }

  .kicker {
    font-size: 12px;
  }

  .hero h1 {
    font-size: 35px;
    line-height: 1.18;
  }

  .hero-description {
    margin-top: 13px;

    font-size: 13px;
    line-height: 1.75;
  }

  .stamp-showcase {
    margin-top: 22px;
  }

  .stamps {
    grid-template-columns: repeat(3,1fr);
    gap: 4px;
  }

  .stamp img,
  .stamp-placeholder {
    width: 100%;
  }

  .more-examples {
    margin-top: 5px;
  }

  .benefits {
    display: none;
  }

  .form-card {
    margin-top: 25px;

    border-radius: 15px;
  }

  .offer-bar {
    grid-template-columns: 1fr 1fr;
  }

  .form-main h2 {
    font-size: 22px;
  }

  .result-inner {
    min-height: 0;

    width: 100%;
    padding: 47px 22px 0;

    display: block;
  }

  .result h2 {
    font-size: 31px;
  }

  .result-lead {
    font-size: 14px;
  }

  .result-list li {
    font-size: 13px;
  }

  .result-visual {
    margin: 38px auto 0;
    max-width: 390px;
  }

  .footer {
    font-size: 11px;
  }
}

/* =========================================================
   DARK MODE
========================================================= */

@media (prefers-color-scheme: dark) {

  :root {
    --ink: #f2f4f6;
    --text: #e9ebee;
    --sub: #a5adb8;

    --bg: #0e1724;
    --card: #152235;
    --field: #19283c;
    --border: #314158;
  }

  body {
    background: var(--bg);
  }

  .site-header {
    background: rgba(12,22,35,.95);
    border-color: #263347;
  }

  .header-nav a {
    color: #eef1f5;
  }

  .hero {
    background: linear-gradient(135deg,#0d1724,#101c2b);
  }

  /* 暗い背景では白いトーク画面が浮くので、さらに薄くする */
  .hero-chats img {
    opacity: .09;
  }

  .hero h1,
  .hero-description,
  .kicker {
    color: #f1f4f7;
  }

  .form-card {
    background: #152235;
    border-color: #293950;
  }

  .form-main h2,
  .step-header {
    color: #f4f6f8;
  }

  .step-header,
  input[type="text"],
  input[type="email"],
  select,
  textarea,
  .radio-card span {
    background: #18283b;
    color: #eef1f5;
    border-color: #34455c;
  }

  .upload-box {
    background: #19283c;
    border-color: #536177;
  }

  .upload-box strong,
  .field label,
  fieldset legend {
    color: #edf0f3;
  }

  .check-row label,
  .form-details summary {
    color: #dde2e8;
  }

  .form-details {
    border-color: #34455c;
  }

  .result {
    background: #111d2b;
  }

  .result h2,
  .result-list {
    color: #f0f3f5;
  }

  .result-lead {
    color: #abb4bf;
  }

  .footer {
    background: #292619;
    color: #e8e2cc;
  }
}

/* ==================================================================
   移植にあたっての追加分
   （デザイン案になかった要素・既存機能ぶんのスタイル）
   ================================================================== */

/* ロゴ画像のライト/ダーク切替 */
.logo img { height: 42px; width: auto; display: block; }
.logo .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo .logo-light { display: none; }
  .logo .logo-dark  { display: block; }
}

/* アイコンを文字からSVGに変えたぶんの調整 */
.benefit-icon svg, .upload-icon svg { width: 22px; height: 22px; display: block; }
.benefit-icon { display: inline-flex; align-items: center; justify-content: center; }
.upload-icon  { display: inline-flex; align-items: center; justify-content: center;
                color: var(--sub); margin-bottom: 6px; }
.upload-icon svg { width: 26px; height: 26px; }

/* フッター */
.footer { padding: 34px 20px 46px; text-align: center; background: var(--card);
          border-top: 1px solid var(--border); }
.footer-tagline { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--ink); }
.footer-meta    { margin: 0 0 8px; font-size: 12.5px; color: var(--sub); line-height: 1.9; }
.footer-note    { margin: 0; font-size: 11.5px; color: var(--sub); }
.footer a { color: var(--sub); }

/* 汎用のページ枠（注文画面・特商法・管理画面） */
.page { max-width: 780px; margin: 0 auto; padding: 34px 20px 72px; }
.page.wide { max-width: 1180px; }
.page h1 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.4; letter-spacing: -.03em;
           margin: 0 0 10px; color: var(--ink); }
.page h2 { font-size: 18px; margin: 34px 0 12px; color: var(--ink); }
.lead { color: var(--sub); font-size: 15px; line-height: 1.9; margin: 0 0 24px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
        padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.note { font-size: 13px; color: var(--sub); line-height: 1.85; }
.warn { color: #c2521f; }
@media (prefers-color-scheme: dark) { .warn { color: #f0956a; } }

/* 状態バッジ */
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 4px 11px;
        border-radius: 99px; background: var(--field); border: 1px solid var(--border);
        color: var(--sub); }
.pill.paid   { background: var(--yellow); color: #2D2D2D; border-color: transparent; }
.pill.failed { background: #c2521f; color: #fff; border-color: transparent; }

/* 表 */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 9px; border-bottom: 1px solid var(--border);
         vertical-align: top; color: var(--text); }
th { color: var(--sub); font-size: 12px; font-weight: 700; }
.scroll { overflow-x: auto; }

/* 画像 */
img.sheet { width: 100%; border: 1px solid var(--border); border-radius: 12px;
            display: block; background: #fff; }
img.photo { max-width: 220px; border: 1px solid var(--border); border-radius: 12px; display: block; }
.beforeafter { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.beforeafter .arrow { align-self: center; font-size: 26px; color: var(--sub); }

/* 生成中のスピナー */
.spinner { width: 34px; height: 34px; border: 3px solid var(--border);
           border-top-color: var(--yellow); border-radius: 50%;
           animation: spin 1s linear infinite; margin: 4px 0 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ボタン（フォーム外で使う簡易版） */
.btn { display: inline-block; background: var(--yellow); color: #2D2D2D; border: 0;
       border-radius: 12px; padding: 13px 26px; font: inherit; font-weight: 700;
       cursor: pointer; text-decoration: none; margin-top: 18px; }
.btn:hover { background: var(--yellow-dark); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.sm { padding: 7px 14px; font-size: 12.5px; margin-top: 0; }
button.sm { padding: 7px 14px; font-size: 12.5px; margin-top: 0; border-radius: 10px;
            background: var(--yellow); color: #2D2D2D; border: 0; font-weight: 700;
            cursor: pointer; }

/* 作例のジャンル名キャプション */
.stamp { margin: 0; }
.stamp figcaption { margin-top: 6px; text-align: center; font-size: 11.5px;
                    color: var(--sub); font-weight: 700; letter-spacing: .02em; }

/* ==================================================================
   ヒーローの「写真 → 似顔絵スタンプ」構図
   元になった顔写真を中心に置き、その人から生まれたスタンプを
   まわりに散らして「この写真が、こうなる」を一目で見せる。
   ================================================================== */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 26px 0 8px;
  aspect-ratio: 1 / .84;
}
.hero-photo {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  aspect-ratio: 1 / 1.12;
  border-radius: 46% 46% 44% 44% / 40% 40% 50% 50%;  /* 有機的な丸み */
  object-fit: cover;
  border: 5px solid var(--card);
  box-shadow: 0 14px 34px rgba(20, 30, 45, .16);
  z-index: 2;
}
.hero-photo-tag {
  position: absolute;
  left: 50%; bottom: 2%;
  transform: translateX(-50%);
  z-index: 3;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 11.5px; font-weight: 700; color: var(--sub);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(20, 30, 45, .08);
}
.hero-visual .float {
  position: absolute;
  width: 33%;
  filter: drop-shadow(0 8px 18px rgba(20, 30, 45, .14));
}
.hero-visual .float:nth-child(2) { left:  -2%; top:   2%; transform: rotate(-7deg); }
.hero-visual .float:nth-child(3) { right: -2%; top:   0%; transform: rotate(6deg); }
.hero-visual .float:nth-child(4) { left:  -4%; bottom: 12%; transform: rotate(5deg); }
.hero-visual .float:nth-child(5) { right: -4%; bottom: 10%; transform: rotate(-6deg); }

/* 写真から生まれたことを示す矢印 */
.hero-visual::before {
  content: "";
  position: absolute; inset: 14% 16%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--yellow-soft) 0%, transparent 70%);
  z-index: 0;
}

@media (max-width: 720px) {
  .hero-visual { max-width: 340px; margin-left: auto; margin-right: auto; }
  .hero-photo-tag { font-size: 10.5px; padding: 4px 11px; }
}

/* 作例を「元の顔ごと」に並べる行 */
.example-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.example-face { width: 62px; height: 62px; border-radius: 50%; object-fit: cover;
                border: 3px solid var(--card); box-shadow: 0 6px 16px rgba(20,30,45,.14);
                flex: 0 0 auto; }
.example-label { font-size: 11.5px; color: var(--sub); font-weight: 700; }


/* 写真プレビュー
   src の無い <img> は壊れた画像として描かれてしまうので、
   選択されるまで枠ごと出さない。選ぶと右側に列が現れる。 */
.upload-row { grid-template-columns: 1fr; }
.upload-row.has-preview { grid-template-columns: 1fr 105px; }
.photo-preview { display: none; position: relative; }
.upload-row.has-preview .photo-preview { display: block; }
.photo-preview img { border-radius: 10px; }
.photo-clear {
  position: absolute; top: 5px; right: 5px;
  width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: rgba(20, 30, 45, .62); color: #fff;
  font-size: 13px; line-height: 1; cursor: pointer; padding: 0;
}
.photo-clear:hover { background: rgba(20, 30, 45, .82); }

/* 旧テンプレートから引き継いだ価格表示(注文確認画面で使用) */
.was  { color: var(--sub); text-decoration: line-through; font-size: 16px;
        font-weight: 600; margin-right: 8px; }
.sale { display: inline-block; background: #c2521f; color: #fff; font-size: 11px;
        font-weight: 800; padding: 3px 9px; border-radius: 99px; margin-left: 8px;
        vertical-align: middle; letter-spacing: .04em; }


/* 検証中であることの表示
   お金を扱う画面なので、テストであることは目立つ位置に出し続ける */
.beta-banner {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
  padding: 11px 18px;
  background: #c2521f; color: #fff;
  font-size: 13.5px; line-height: 1.6; text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);

  /* ただのお知らせ。下の要素のクリックを奪わない */
  pointer-events: none;
}
.beta-banner strong {
  background: rgba(255,255,255,.2); border-radius: 99px;
  padding: 3px 12px; font-size: 12.5px; font-weight: 800;
  letter-spacing: .03em; white-space: nowrap;
}
@media (max-width: 560px) { .beta-banner { font-size: 12.5px; padding: 10px 14px; } }


/* 注文の進み具合
   ログインの仕組みがないぶん、いま自分がどこにいるかは
   注文ページで明確に見せる。 */
.progress { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 22px;
            border: 1px solid var(--border); border-radius: 12px;
            overflow: hidden; background: var(--card);
            /* ol の既定の番号と、自前の丸番号が二重に出るのを止める */
            list-style: none; padding: 0; }
.progress-step { flex: 1 1 0; min-width: 110px; padding: 12px 10px;
                 text-align: center; font-size: 12px; color: var(--sub);
                 border-right: 1px solid var(--border); position: relative; }
.progress-step:last-child { border-right: 0; }
.progress-step .n { display: block; width: 22px; height: 22px; line-height: 22px;
                    margin: 0 auto 6px; border-radius: 50%;
                    background: var(--field); border: 1px solid var(--border);
                    font-size: 11px; font-weight: 700; }
.progress-step.done { color: var(--text); }
.progress-step.done .n { background: var(--yellow); border-color: transparent;
                         color: #2D2D2D; }
.progress-step.current { color: var(--ink); font-weight: 700; background: var(--yellow-soft); }
.progress-step.current .n { background: #2D2D2D; border-color: transparent; color: #fff; }
@media (prefers-color-scheme: dark) {
  .progress-step.current { background: rgba(255,210,77,.12); }
  .progress-step.current .n { background: var(--yellow); color: #2D2D2D; }
}

/* ==================================================================
   狭い画面でのスタンプの大きさ

   スタンプの原寸は 370x320px。CSS で 150px 指定だと、画素密度が
   2〜3倍のスマホでは 300〜450px 相当に引き伸ばされ、等倍を超える。
   生成時のにじみや輪郭の粗さがそのまま見えてしまうので、
   表示を小さくして原寸の内側に収める。
   ================================================================== */
@media (max-width: 800px) {
  .stamp img,
  .stamp-placeholder {
    width: 118px;
  }

  .stamp {
    padding: 3px 0;
  }

  .stamp figcaption {
    margin-top: 4px;
    font-size: 10.5px;
  }

  .stamps {
    gap: 6px 12px;
  }

  .example-row {
    gap: 10px;
    margin-bottom: 12px;
  }

  .example-face {
    width: 52px;
    height: 52px;
    border-width: 2px;
  }
}

@media (max-width: 480px) {
  .stamp img,
  .stamp-placeholder {
    width: 106px;
  }

  .example-face {
    width: 44px;
    height: 44px;
  }

  .example-row {
    gap: 8px;
  }
}

/* 背景のトーク画面はPCだけ。1100px 未満だと本文(最大1180px)の外側に
   余白が無くなり、文字の真下に来て読みにくくなる */
@media (max-width: 1100px) {
  .hero-chats {
    display: none;
  }
}

/* ==================================================================
   共有セクション
   XやLINEの公式ロゴは商標なので使わず、頭文字を丸で囲んだ印にしている
   ================================================================== */
.share {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.share-inner {
  width: min(calc(100% - 40px), var(--content));
  margin: auto;
  padding: 64px 0 72px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.share-lead {
  margin: 12px 0 0;

  color: var(--sub);

  font-size: 14.5px;
  line-height: 1.9;
}

.share-buttons {
  margin-top: 24px;

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-btn {
  height: 46px;
  padding: 0 20px 0 14px;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;

  box-shadow: 0 1px 2px rgba(20, 30, 45, .05);

  color: var(--text);
  text-decoration: none;

  font-size: 13.5px;
  font-weight: 700;

  cursor: pointer;
  transition: border-color .15s, transform .15s;
}

.share-btn:hover {
  border-color: #b9c0c9;
  transform: translateY(-1px);
}

.share-mark {
  width: 26px;
  height: 26px;

  display: grid;
  place-items: center;

  background: var(--ink);
  border-radius: 50%;

  color: #fff;

  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

/* SNS のフォロー導線(_follow.html)。各社の公式ロゴ(SVG)を丸いブランド色のボタンに */
.follow { margin-top: 34px; padding-top: 26px; border-top: 1px dashed var(--border); }
.share-follow .follow { margin-top: 0; padding-top: 0; border-top: 0; }
.follow-lead { margin: 12px 0 0; color: var(--sub); font-size: 14.5px; line-height: 1.9; }
.follow-buttons { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 18px 22px; }
.follow-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 7px;
  text-decoration: none; color: var(--text); font-size: 12.5px; font-weight: 700;
  transition: transform .15s; }
.follow-btn:hover { transform: translateY(-2px); }
.follow-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: 0 6px 16px rgba(20, 30, 45, .14); }
.follow-icon svg { width: 26px; height: 26px; display: block; }
.follow-tiktok .follow-icon { background: #000; }
.follow-x .follow-icon { background: #000; }
.follow-youtube .follow-icon { background: #ff0000; }
.follow-instagram .follow-icon {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.follow-compact { margin: 0; padding: 0; border: 0; }
.follow-compact .follow-buttons { margin-top: 8px; gap: 12px 18px; }
.follow-compact .follow-icon { width: 42px; height: 42px; box-shadow: 0 3px 10px rgba(20, 30, 45, .12); }
.follow-compact .follow-icon svg { width: 20px; height: 20px; }
.follow-compact .follow-name { font-size: 11.5px; }
.follow-handle { margin: 14px 0 0; font-size: 12.5px; color: var(--sub); }
.follow-box { margin-top: 18px; padding: 14px 16px; background: var(--yellow-soft); border-radius: 14px; }
.sample-post { margin-top: 12px; padding: 12px 14px; background: var(--field); border: 1px solid var(--border); border-radius: 12px; }
.sample-post code { font-size: 12px; background: var(--card); padding: 1px 5px; border-radius: 4px; word-break: break-all; white-space: pre-wrap; display: inline-block; }
.promo-x a, .promo-x code { word-break: break-all; }
.promo-x-banner { margin: 10px 0 0; padding: 10px 14px; background: #eef4ff; border: 1px solid #cfdcf7; border-radius: 12px; font-size: 14px; line-height: 1.7; text-align: left; }
/* X への投稿で割引(支払い前の画面) */
.promo-x { margin-top: 16px; padding: 14px 16px; background: #eef4ff; border: 1px solid #cfdcf7; border-radius: 14px; font-size: 13.5px; }
.promo-x-done { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.promo-x-done strong { font-size: 15px; color: #1d4ed8; }
.promo-x-done .note { flex-basis: 100%; }
.promo-x-badge { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; font-size: 24px;
  background: #fff; border: 2px solid #cfdcf7; border-radius: 50%; }
.promo-x-steps { margin: 6px 0 0; padding-left: 20px; line-height: 1.8; }
.promo-x-howto { margin: 4px 0 2px; font-size: 13px; }
.promo-x-howto summary { cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.promo-x-howto ul { margin: 4px 0 0; padding-left: 18px; line-height: 1.7; }
.promo-x-howto code { font-size: 12px; background: var(--field); padding: 1px 5px; border-radius: 4px; }
.promo-x-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.promo-x-form input { flex: 1 1 260px; min-width: 0; padding: 9px 10px; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; }
.footer-social { margin: 6px 0 16px; }
.footer-social-title { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--ink); }
.footer-social-note { font-size: 11.5px; font-weight: 400; color: var(--sub); }
.footer-social .follow-buttons { justify-content: center; }
.footer-social .follow-name { color: var(--sub); }

.share-url {
  margin: 16px 0 0;

  color: var(--sub);

  font-size: 12px;
  word-break: break-all;
}

.share-qr {
  margin-top: 22px;
  padding: 14px 18px;
  max-width: 440px;

  display: flex;
  align-items: center;
  gap: 16px;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;

  box-shadow: var(--shadow);

  text-align: left;
}

.share-qr img {
  width: 120px;
  height: 120px;
  flex: none;

  display: block;
}

.share-qr p {
  margin: 0 0 6px;
  line-height: 1.7;

  color: var(--sub);

  font-size: 11.5px;
}

.share-qr a {
  color: var(--sub);

  font-size: 11.5px;
  font-weight: 700;
}

@media (max-width: 800px) {
  .share-inner {
    width: calc(100% - 30px);
    padding: 44px 0 52px;

    grid-template-columns: 1fr;
    gap: 30px;
    justify-items: center;
    text-align: center;
  }

  .share-buttons {
    justify-content: center;
  }
  .share-qr { margin: 22px auto 0; text-align: left; }
  .share-follow { width: 100%; }
  .share-follow .follow { margin-top: 6px; padding-top: 26px; border-top: 1px dashed var(--border); }
  .share-follow .follow-buttons { justify-content: center; }

  .share-lead br {
    display: none;
  }
}

/* 入力しながらスタンプのタイトルを見せる。
   タイトルはLINEのストアで公開されるので、事前に目に入るようにする */
.title-preview {
  margin-top: 12px;
  padding: 12px 14px;

  background: var(--field);
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.title-preview-label {
  display: block;
  margin-bottom: 4px;

  color: var(--sub);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.title-preview strong {
  display: block;

  color: var(--text);

  font-size: 16px;
  font-weight: 800;
  word-break: break-all;
}

.title-preview .note {
  display: block;
  margin-top: 8px;

  color: var(--sub);

  font-size: 11.5px;
  line-height: 1.7;
}

/* ==================================================================
   送信中の覆い
   写真の検査に10秒ほどかかる。何も出ないと「押せていない」と
   思われるので、何をしているかを順に見せる
   ================================================================== */
.sending {
  position: fixed;
  inset: 0;
  z-index: 100;

  display: grid;
  place-items: center;

  padding: 20px;

  background: rgba(18, 26, 38, .62);
  backdrop-filter: blur(4px);
}

.sending-box {
  width: min(100%, 420px);
  padding: 32px 28px 26px;

  background: var(--card);
  border-radius: 20px;

  box-shadow: 0 24px 60px rgba(12, 20, 32, .28);

  text-align: center;
}

.sending-face {
  width: 104px;
  height: 104px;

  margin: 0 auto 18px;

  display: grid;
  place-items: center;

  background: var(--yellow-soft);
  border-radius: 50%;

  animation: sending-bob 1.6s ease-in-out infinite;
}

.sending-face img {
  width: 88px;
  height: 88px;

  object-fit: contain;
}

@keyframes sending-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-6px) rotate(2deg); }
}

.sending-box strong {
  display: block;

  color: var(--ink);

  font-size: 18px;
  font-weight: 800;
}

.sending-box > p {
  margin: 6px 0 0;

  color: var(--sub);

  font-size: 13px;
}

.sending-steps {
  margin: 22px 0 0;
  padding: 0;

  list-style: none;
  text-align: left;
}

.sending-steps li {
  position: relative;

  padding: 7px 0 7px 30px;

  color: #aab0b9;

  font-size: 13.5px;
  transition: color .3s;
}

.sending-steps li span {
  position: absolute;
  left: 0;
  top: 50%;

  width: 18px;
  height: 18px;

  margin-top: -9px;

  border: 2px solid #dfe3e8;
  border-radius: 50%;

  transition: border-color .3s, background .3s;
}

.sending-steps li.now {
  color: var(--text);
  font-weight: 700;
}

.sending-steps li.now span {
  border-color: var(--yellow);
  border-top-color: transparent;

  animation: spin .8s linear infinite;
}

.sending-steps li.done {
  color: var(--sub);
}

.sending-steps li.done span {
  background: var(--yellow);
  border-color: var(--yellow);

  animation: none;
}

.sending-steps li.done span::after {
  content: "";

  position: absolute;
  left: 4px;
  top: 1px;

  width: 5px;
  height: 9px;

  border: solid #2d2d2d;
  border-width: 0 2px 2px 0;

  transform: rotate(42deg);
}

.sending-foot {
  margin: 20px 0 0;
  padding-top: 14px;

  border-top: 1px solid var(--border);

  color: var(--sub);

  font-size: 11.5px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==================================================================
   生成中の画面（サンプル・24個）
   1〜2分かかるので、進み具合と見どころを出して待ち時間を持たせる
   ================================================================== */
.working {
  margin: 26px 0 0;
  padding: 30px 26px;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;

  text-align: center;
}

.working-art {
  width: 132px;
  height: 132px;

  margin: 0 auto 20px;

  display: grid;
  place-items: center;

  background: var(--yellow-soft);
  border-radius: 50%;

  animation: sending-bob 1.8s ease-in-out infinite;
}

.working-art img {
  width: 112px;
  height: 112px;

  object-fit: contain;

  /* 作例の切り替え時にふわっと入れ替える */
  transition: opacity .25s ease;
}

.working-art img.is-fading { opacity: 0; }

/* 待機中の「お客様の写真 → 作例(または自分のサンプル)」の並び */
.working-flow {
  margin: 0 auto 14px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.working-flow .working-show { margin: 0; }
.working-flow .working-art { margin: 0; }

.working-photo,
.working-own {
  width: 132px;
  height: 132px;
  flex: 0 0 auto;

  object-fit: cover;

  background: var(--field);
  border: 1px solid var(--border);
}

.working-photo { border-radius: 50%; }
.working-own { border-radius: 18px; }

.working-arrow {
  flex: 0 0 auto;

  color: var(--sub);

  font-size: 26px;
}

/* 細い画面でも「写真 → 絵」が1行に収まるように少し小さく */
@media (max-width: 400px) {
  .working-photo, .working-own, .working-flow .working-art { width: 108px; height: 108px; }
  .working-flow .working-art img { width: 92px; height: 92px; }
}

/* 待機中の作例紹介(絵 + どんな指定で作ったか) */
.working-show { margin: 0 auto 18px; }

.working-show .working-art { margin-bottom: 12px; }

.working-caption {
  margin: 0;

  display: flex;
  flex-direction: column;
  gap: 2px;

  color: var(--sub);

  font-size: 12px;
  line-height: 1.5;

  transition: opacity .25s ease;
}

.working-caption.is-fading { opacity: 0; }

.working-caption .wc-genre {
  color: var(--text);

  font-size: 13.5px;
}

.working-bar {
  height: 6px;

  margin: 0 auto 18px;
  max-width: 320px;

  overflow: hidden;

  background: var(--field);
  border-radius: 99px;
}

.working-bar i {
  display: block;

  width: 40%;
  height: 100%;

  background: var(--yellow);
  border-radius: 99px;

  animation: working-slide 1.6s ease-in-out infinite;
}

@keyframes working-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

.working-tips {
  margin: 20px auto 0;
  padding-top: 18px;
  max-width: 460px;

  border-top: 1px solid var(--border);

  color: var(--sub);

  font-size: 12.5px;
  line-height: 1.9;
  text-align: left;
}

/* 見出しだけを行にする。すべての strong を block にすると、
   文中の強調まで改行になって文章が崩れる（実際に踏んだ） */
.working-tips .working-tips-head {
  display: block;
  margin-bottom: 6px;

  color: var(--text);

  font-size: 12px;
  letter-spacing: .04em;
}

/* 生成中の経過時間と目安 */
.working-clock {
  margin: 14px 0 0;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.working-clock span {
  padding: 4px 12px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;
}

.working-clock .elapsed {
  background: var(--field);
  border: 1px solid var(--border);

  color: var(--text);

  font-variant-numeric: tabular-nums;
}

.working-clock .eta {
  background: var(--yellow-soft);

  color: #8a6200;
}

/* 画像の拡大表示 */
.zoom {
  position: fixed;
  inset: 0;
  z-index: 120;

  display: grid;
  place-items: center;

  padding: 24px;

  background: rgba(14, 20, 30, .86);
  cursor: zoom-out;
}

.zoom figure {
  margin: 0;
  max-width: min(100%, 1100px);

  text-align: center;
}

.zoom img {
  max-width: 100%;
  max-height: 82vh;

  background: #fff;
  border-radius: 12px;

  cursor: default;
  object-fit: contain;
}

.zoom figcaption {
  margin-top: 12px;

  color: #e7eaee;

  font-size: 12.5px;
}

.zoom-close {
  position: absolute;
  top: 16px;
  right: 18px;

  width: 40px;
  height: 40px;

  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);

  color: #fff;

  font-size: 22px;
  line-height: 1;

  cursor: pointer;
}

/* 作る予定のセリフ一覧 */
.phrase-list {
  margin-top: 16px;
  padding: 0;

  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.phrase-list > summary {
  padding: 12px 16px;

  color: var(--text);

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}

.phrase-body {
  padding: 0 16px 16px;
}

.phrases {
  margin: 0;
  padding-left: 22px;

  columns: 2;
  column-gap: 24px;

  color: var(--text);

  font-size: 13px;
  line-height: 2;
}

@media (max-width: 600px) {
  .phrases { columns: 1; }
}

/* ==================================================================
   実機のスクリーンショット確認で見つかった崩れの手当て
   ================================================================== */

/* 主要ボタン（お支払い・申請）は狭い画面では幅いっぱいに。
   押し間違いが減り、次に何をするかが一目で分かる */
@media (max-width: 600px) {
  .btn.block {
    width: 100%;
    text-align: center;
  }
}

/* 進み具合は4段。折り返すと3+1になって「今どこか」が読み取りにくい。
   文字を詰めてでも4つ横並びを保つ */
@media (max-width: 600px) {
  .progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .progress-step {
    min-width: 0;
    padding: 9px 4px;
    font-size: 11px;
  }

  .progress-step .n {
    width: 20px;
    height: 20px;
    line-height: 20px;
    margin-bottom: 4px;
  }
}

/* 写真 → サンプル。狭い画面では横矢印の置き場が無いので縦に積む。
   縦の間隔は .beforeafter の gap が受け持つ */
@media (max-width: 600px) {
  .beforeafter {
    flex-direction: column;
    align-items: stretch;
  }

  .beforeafter .arrow {
    display: none;
  }
}

/* 特商法の表。見出し列が1文字ずつ折り返して「販売事業者」が3行になる。
   もとは .card.scroll の表すべてに当たっていたので、注文一覧の列まで
   「中身ぶんの幅」に縮み、作業列のボタンが縦に積まれていた(2026-09-19)。
   legal.html の表(.legal-table)だけに限定する */
.legal-table th {
  white-space: nowrap;
  width: 1%;
  padding-right: 18px;
}

@media (max-width: 600px) {
  /* 狭い画面では横スクロールを増やさないよう、折り返しに戻す */
  .legal-table th {
    white-space: normal;
    min-width: 7em;
  }

  /* 上の指定を legal.html だけに絞ったので、ほかの表(紹介元・アクセス解析など)にも
     見出しが1文字ずつ折り返さないだけの下限を残しておく。
     注文一覧は colgroup で幅を決めているので対象外 */
  .card.scroll table:not(.admin-orders) th {
    min-width: 7em;
  }
}

/* 作例の行。flex の折り返しだと「顔＋2枚 / 2枚」という妙な形になるので、
   顔を左に固定して、右側をスタンプ4枚の2x2にする */
@media (max-width: 480px) {
  .example-row {
    display: grid;
    grid-template-columns: 52px repeat(2, 1fr);
    gap: 8px;
    align-items: center;
    justify-items: center;
  }

  .example-face {
    grid-row: 1 / span 2;
    align-self: center;
    width: 52px;
    height: 52px;
  }

  .example-row .stamp img {
    width: 100%;
    max-width: 120px;
  }

  .example-row .stamp img.stamp-face {
    width: 28px;
    height: 28px;
  }
}

/* PCでは左の説明文が先に終わって余白が空く。
   フォームを見ながら読めるよう、説明文を貼り付ける。
   スマホは1カラムなので適用しない */
@media (min-width: 801px) {
  .hero-copy {
    position: sticky;
    top: 96px;
    align-self: start;
  }
}

/* ==================================================================
   告知画像のご案内（トップ）
   「できあがるもの」と「共有」のあいだ。PCは2カラム、スマホは縦積み
   ================================================================== */
.promo-intro {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.promo-inner {
  width: min(calc(100% - 40px), var(--content));
  margin: auto;
  padding: 56px 0 60px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
}

.promo-intro h2 {
  margin: 0;

  color: var(--ink);

  font-size: 27px;
  line-height: 1.4;
  letter-spacing: -.02em;
}

.promo-lead {
  margin: 14px 0 0;

  color: var(--sub);

  font-size: 14.5px;
  line-height: 1.95;
}

.promo-visual img {
  width: 100%;
  max-width: 360px;

  display: block;
  margin: 0 auto;

  border-radius: 16px;

  box-shadow: 0 14px 34px rgba(20, 30, 45, .16);
}

@media (max-width: 800px) {
  .promo-inner {
    width: calc(100% - 30px);
    padding: 42px 0 46px;

    grid-template-columns: 1fr;
    gap: 26px;
  }

  .promo-intro h2 { font-size: 22px; }
  .promo-visual img { max-width: 300px; }
}

/* ==================================================================
   どの方の似顔絵を作るかを選ぶ画面
   枠の位置は % 指定なので、画像が幅に合わせて縮んでも顔からずれない
   ================================================================== */
.face-pick {
  position: relative;

  width: 100%;
  max-width: 520px;

  margin: 0 auto;

  line-height: 0;
}

.face-pick img {
  width: 100%;
  height: auto;

  display: block;

  border-radius: 12px;
}

.face-box {
  position: absolute;

  padding: 0;

  background: rgba(23, 32, 51, .34);
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 8px;

  cursor: pointer;

  transition: background .15s, border-color .15s;
}

.face-box:hover {
  background: rgba(23, 32, 51, .18);
}

.face-box.selected {
  background: transparent;
  border-color: var(--yellow);

  box-shadow: 0 0 0 3px rgba(255, 198, 41, .45);
}

/* 番号の印。枠の左上に小さく出す */
.face-num {
  width: 22px;
  height: 22px;

  display: inline-grid;
  place-items: center;

  background: var(--ink);
  border-radius: 50%;

  color: #fff;

  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.face-box .face-num {
  position: absolute;
  left: -6px;
  top: -6px;
}

.face-box.selected .face-num {
  background: var(--yellow);
  color: #2d2d2d;
}

.face-hint {
  margin-top: 10px;
  text-align: center;
}

.face-cards {
  margin: 14px 0 20px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.face-card {
  position: relative;
  cursor: pointer;
}

.face-card input {
  position: absolute;
  opacity: 0;
}

.face-card span:not(.face-num) {
  min-height: 48px;
  padding: 0 12px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 10px;

  color: var(--text);

  font-size: 13.5px;
  font-weight: 700;
}

.face-card input:checked + span {
  background: var(--yellow-soft);
  border-color: var(--yellow);

  box-shadow: inset 0 0 0 1px var(--yellow);
}

.face-card input:checked + span .face-num {
  background: var(--yellow);
  color: #2d2d2d;
}

.face-card input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  .face-card input:checked + span {
    background: rgba(255, 198, 41, .14);
    color: var(--ink);
  }
}

@media (max-width: 480px) {
  .face-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* ------------------------------------------------------------------
   大分類（人物 / ペット）のカード

   .radio-card の見た目を借りるが、中身はアイコン＋見出し＋補足の3段なので
   place-items:center の1段組みを上書きする。
   表示の出し入れは hidden 属性（site.js）で行うので、ここでは触らない。
------------------------------------------------------------------ */
.subject-pick {
  margin: 0 0 18px;
}

.subject-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* 補足の行数が違っても、2枚の枠は同じ高さにする。
   ラベルはグリッドの列いっぱいに伸びるが、枠を描いているのは中の span なので、
   span を伸ばさないと狭い画面で「人物」だけ背が高くなる(360px で 113 対 96) */
.subject-card {
  display: flex;
}

.subject-card span {
  flex: 1;
  min-height: 0;
  padding: 13px 10px;

  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;

  text-align: center;
}

.subject-card svg {
  width: 26px;
  height: 26px;
}

.subject-card strong {
  font-size: 14px;
  font-weight: 700;
}

.subject-card small {
  color: var(--sub);

  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .subject-card span {
    padding: 11px 8px;
  }

  .subject-card small {
    font-size: 11px;
  }
}


/* ==================================================================
   方言・デフォルメ度・セリフの事前確認(フォーム)
   ================================================================== */
/* 方言は5つ。PCは3+2、スマホは2列で折り返す */
.dialect-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 480px) {
  .dialect-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* デフォルメ度は「大きな文字 + 補足」の2段。radio-card の見た目を借りる */
.deform-card span {
  padding: 10px 8px;

  gap: 4px;
  align-content: center;
}

.deform-card span strong {
  font-size: 16px;
  line-height: 1.1;
}

.deform-card span small {
  color: var(--muted, #667085);

  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 480px) {
  .deform-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .deform-card span small {
    font-size: 10px;
  }
}

/* フォーム内のセリフ確認。1個目(名前入り)を目立たせる */
.phrase-preview {
  margin-top: 4px;
  margin-bottom: 14px;
}

.phrase-preview .phrases li:first-child {
  font-weight: 700;
}

/* 方言カードの補足(うちなーぐち) */
.dialect-grid .radio-card span {
  gap: 2px;
}

.dialect-grid .radio-card span small {
  color: var(--muted, #667085);

  font-size: 10px;
  font-weight: 500;
}

/* 作例の補足(デフォルメ度・方言)。見出しの下に一段小さく */
.stamp figcaption small {
  display: block;

  margin-top: 2px;

  color: var(--muted, #667085);

  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

/* デフォルメ度の3枚は、補足の行数が違っても同じ高さにそろえる */
.deform-row {
  align-items: stretch;
}

.deform-card {
  display: flex;
}

.deform-card span {
  flex: 1;
  min-height: 104px;
  height: 100%;
}


/* ==================================================================
   お試し1枚(/try) と、トップのお試し導線
   ================================================================== */
.hero-actions {
  margin: 16px 0 4px;

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions .btn { margin-top: 0; }

/* セリフは5つ。3列(共通の .radio-row)のまま、狭い画面では2列に落とす。
   min-width を付けると 3×120px でスマホの枠から横にはみ出す(2026-09-12 に発生) */
.try-phrases .radio-card { min-width: 0; }
.try-phrases .radio-card span { padding: 8px 6px; white-space: nowrap; font-size: 14px; }

@media (max-width: 480px) {
  .try-phrases { grid-template-columns: repeat(2, 1fr); }
}

/* /try のフォームの上に並べる作例5枚。白フチ(下だけ太い)のポラロイド風を、
   少しずつ重ねて互い違いに傾ける。幅は vw で連れて縮むので、狭い画面でも5枚のまま収まる */
.try-polas {
  --pola-w: clamp(64px, 18vw, 170px);

  display: flex;
  justify-content: center;
  align-items: flex-start;

  /* 文字が隠れないよう、5枚ぶんは本文の幅(780px)より外まで使う */
  width: min(960px, calc(100vw - 28px));
  margin: 0 0 4px 50%;
  transform: translateX(-50%);
  padding: 14px 0 10px;
}

.try-polas .pola {
  position: relative;
  flex: none;
  width: var(--pola-w);
  /* 左どなりに少し重ねる(白フチのぶんだけ。中の絵の文字は隠さない) */
  margin: 0 0 0 calc(var(--pola-w) * -.11);

  background: #fff;
  padding: calc(var(--pola-w) * .055) calc(var(--pola-w) * .055) calc(var(--pola-w) * .19);
  border-radius: 3px;
  box-shadow: 0 6px 14px rgba(20, 30, 45, .18), 0 1px 3px rgba(20, 30, 45, .12);

  transition: transform .18s ease, box-shadow .18s ease;
}

.try-polas .pola:first-child { margin-left: 0; }

.try-polas .pola img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #fff;
}

.try-polas .pola figcaption {
  margin-top: calc(var(--pola-w) * .05);

  text-align: center;
  font-size: clamp(9px, 1.5vw, 12px);
  line-height: 1.2;
  white-space: nowrap;
  color: var(--sub);
  letter-spacing: .02em;
}

.try-polas .pola:nth-child(1) { transform: rotate(-7deg) translateY(6px); z-index: 1; }
.try-polas .pola:nth-child(2) { transform: rotate(3deg)  translateY(-4px); z-index: 2; }
.try-polas .pola:nth-child(3) { transform: rotate(-2deg) translateY(3px);  z-index: 3; }
.try-polas .pola:nth-child(4) { transform: rotate(5deg)  translateY(-2px); z-index: 4; }
.try-polas .pola:nth-child(5) { transform: rotate(-4deg) translateY(5px);  z-index: 5; }

/* 触れた1枚だけ、まっすぐ立ててすくい上げる(nth-child の傾きを上書きするので、後ろに置く) */
.try-polas .pola:hover,
.try-polas .pola:focus-within {
  transform: rotate(0deg) translateY(-8px) scale(1.05);
  z-index: 6;
  box-shadow: 0 14px 26px rgba(20, 30, 45, .24), 0 2px 4px rgba(20, 30, 45, .14);
}

.try-polas-note {
  margin: 0 0 18px;
  text-align: center;
  font-size: 12.5px;
  color: var(--sub);
}

@media (prefers-reduced-motion: reduce) {
  .try-polas .pola { transition: none; }
}

.try-result { text-align: center; }

.try-image {
  display: block;

  width: 100%;
  max-width: 420px;

  margin: 0 auto;

  border: 1px solid var(--border);
  border-radius: 18px;
}

.try-actions {
  margin-top: 16px;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.try-actions .btn { margin-top: 0; }

/* お試しから引き継いだ写真(トップの申し込みフォーム) */
.prefill-photo {
  margin: 0 0 12px;

  display: flex;
  align-items: center;
  gap: 12px;
}

.prefill-photo img {
  width: 72px;
  height: 72px;

  object-fit: cover;

  border: 1px solid var(--border);
  border-radius: 50%;
}

.prefill-photo .note { margin: 0; }

/* 送信中の覆いの中の作例(待機画面より一回り小さく) */
.sending-box .working-show { margin: 0 auto 10px; }
.sending-box .working-art { width: 108px; height: 108px; margin: 0 auto; }
.sending-box .working-art img { width: 92px; height: 92px; }
.sending-box .working-caption { margin: 0 0 12px; align-items: center; }

/* 送信中の覆い: お預かりした写真をスキャンしているアニメ */
.scan-box {
  position: relative;

  width: 132px;
  height: 132px;

  margin: 0 auto 14px;

  overflow: hidden;

  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.scan-box img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.scan-box img[hidden] { display: none; }

/* 細い走査線が上下に往復する。光の帯で「センサーで読んでいる」感じにする */
.scan-box .scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;

  height: 3px;

  background: var(--yellow);
  box-shadow: 0 0 14px 5px rgba(255, 198, 41, .55);

  animation: scan-sweep 1.6s ease-in-out infinite;
}

.scan-box::after {
  content: "";

  position: absolute;
  inset: 0;

  background: repeating-linear-gradient(0deg, rgba(255,255,255,0) 0 6px, rgba(255,255,255,.14) 6px 7px);

  pointer-events: none;
}

@keyframes scan-sweep {
  0%   { top: 0; }
  50%  { top: calc(100% - 3px); }
  100% { top: 0; }
}

/* 注文ページ: LINE で受け取る */
.line-card { border-color: #06c755; }
.line-steps { margin: 0; padding-left: 1.3em; line-height: 2.1; }
.line-steps .btn.sm { margin-top: 0; background: #06c755; color: #fff; }
.line-steps .btn.sm:hover { background: #05b34c; }
.line-code {
  display: inline-block;
  padding: 2px 10px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 20px;
  letter-spacing: .2em;
  font-variant-numeric: tabular-nums;
}

/* ==================================================================
   作例集 /examples (AI自画像 ゆうこ・たなか のジャンル別)
   ================================================================== */
.gallery .lead.small { font-size: 13.5px; margin: -4px 0 14px; }
.gallery-faces { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin: 6px 0 16px; }
.gallery-face { margin: 0; text-align: center; border: 0; background: none; padding: 4px; cursor: pointer;
  border-radius: 14px; font: inherit; color: inherit; }
.gallery-face:hover img { box-shadow: 0 0 0 4px var(--yellow-soft); }
.gallery-face.on img { box-shadow: 0 0 0 4px var(--yellow); }
.gallery-face.on .gallery-face-name { color: #2D2D2D; background: var(--yellow); border-radius: 999px; padding: 2px 10px; }
.gallery-face-name { display: block; margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--ink); }
.gallery-face-name small { display: block; font-size: 11px; color: var(--sub); font-weight: 700; }
.gallery-face.on .gallery-face-name small { color: #2D2D2D; }
.gallery-face img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
                    border: 3px solid var(--card); box-shadow: 0 6px 16px rgba(20,30,45,.14); display: block; margin: 0 auto; }
.gallery-face figcaption { margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--ink); }
.gallery-face figcaption small { display: block; font-size: 11px; color: var(--sub); font-weight: 700; }
.gallery-faces-note { font-size: 13.5px; color: var(--sub); line-height: 1.8; margin: -8px 0 18px; }

.gfilters { padding: 10px 0 8px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.gfilter-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.gfilter-label { font-size: 11.5px; color: var(--sub); font-weight: 700; margin-right: 4px; min-width: 44px; }
.chip { border: 1px solid var(--border); background: var(--card); color: var(--ink); border-radius: 999px;
        padding: 6px 12px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.chip.on { background: var(--yellow); border-color: var(--yellow); color: #2D2D2D; }

.gsection h2 { margin: 26px 0 10px; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gcard { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px 10px;
         background: var(--card); border: 1px solid var(--border); border-radius: 14px; cursor: pointer;
         font: inherit; color: var(--ink); text-align: center; transition: transform .12s, box-shadow .12s; }
.gcard:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20,30,45,.12); }
.gcard img { width: 100%; max-width: 150px; aspect-ratio: 1; object-fit: contain; }
.gcard-pic { display: block; border: 0; background: none; padding: 0; cursor: pointer; width: 100%; }
.gcard-actions { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.gcard-actions .btn.sm { padding: 6px 10px; font-size: 12px; }
.gcard-title { font-weight: 700; font-size: 13px; line-height: 1.35; }
.gcard-meta { font-size: 11px; color: var(--sub); font-weight: 700; }

.gallery-note { font-size: 12px; color: var(--sub); line-height: 1.9; margin: 26px 0 8px; }
.gallery-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-cta .btn { margin-top: 8px; }

.gdlg { border: 0; border-radius: 18px; padding: 0; width: min(1100px, 94vw); max-height: 92vh;
        background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.gdlg::backdrop { background: rgba(10, 14, 22, .6); }
.gdlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px 8px; }
.gdlg-head h3 { margin: 0; font-size: 18px; }
.gdlg-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--sub); font-weight: 700; }
.gdlg-close { border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--sub); padding: 0 4px; }
.gdlg-body { padding: 0 12px; overflow: auto; }
.gdlg-body img { display: block; width: 100%; height: auto; border-radius: 10px; background: #fff; }
.gdlg-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
             padding: 12px 18px 16px; margin: 0; font-size: 12.5px; color: var(--sub); }

@media (max-width: 720px) {
  .ggrid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
  .gcard { padding: 8px 4px 8px; border-radius: 12px; }
  .gcard-title { font-size: 12px; }
  .gallery-face img { width: 72px; height: 72px; }
  .gfilter-label { min-width: 0; }
  .gdlg-body { padding: 0 6px; }
}

/* 注文管理: 名前などで絞り込む */
.admin-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.admin-filter input[type="search"] { flex: 1 1 260px; max-width: 420px; padding: 8px 10px; font: inherit; font-size: 13px;
                                     border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--ink); }

/* ==================================================================
   作成の流れ /flow
   ================================================================== */
.hero-flow-link { margin: 10px 0 0; font-size: 13.5px; }
/* ===== トップ(2026-09-16 第2版): ChatGPT のイメージに寄せる ===== */
.hero3 { background: #fff; position: relative; overflow: hidden; }
/* 右側のクリーム色のぼかしは 2026-09-16 にいったん外した(ユーザー指示)。戻すなら .hero3::before に radial-gradient */
.hero3-inner { position: relative; z-index: 1; width: min(calc(100% - 40px), var(--content)); margin: auto; padding: 48px 0 18px;
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 34px; align-items: start; }
.hero3 h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.22; letter-spacing: -.02em; margin: 6px 0 14px; color: #1d2330; }
.hero3 .marker { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding: 0 2px; }
.hero3 .hero-description { font-size: 17px; color: #4d5563; margin: 0 0 22px; }
.hero3-actions { display: grid; gap: 14px; max-width: 420px; }
.btn.dark { background: #1d2330; color: #fff; }
.btn.dark:hover { background: #2d3546; }
/* 控えめのボタン(白地に黄色の枠)。主役の黄色いボタンと並べて使う */
.btn.soft { background: #fff; color: #1d2330; box-shadow: inset 0 0 0 2px var(--yellow); }
.btn.soft:hover { background: #fffdf3; }
/* ボタンの中(右側)に置く飾り(1枚サンプル / 24個のうち数個)。外に飛び出させない */
.btn-deco { position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; text-align: left; padding: 12px 16px 12px 24px; }
.btn-deco .deco { flex: none; pointer-events: none; }
.deco-one { width: 54px; height: 54px; object-fit: contain; transform: rotate(6deg); filter: drop-shadow(0 3px 6px rgba(20,30,45,.22)); }
.deco-stack { position: relative; display: block; width: 116px; height: 56px; }
.deco-stack img { position: absolute; width: 56px; height: 56px; object-fit: contain;
  filter: drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff) drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff)
          drop-shadow(0 3px 5px rgba(20,30,45,.3)); }
.deco-stack img:nth-child(1) { left: 0; top: 0; transform: rotate(-7deg); }
.deco-stack img:nth-child(2) { left: 30px; top: 0; transform: rotate(4deg); }
.deco-stack img:nth-child(3) { left: 60px; top: 0; transform: rotate(-3deg); }
.steps3-sub { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: var(--sub); }
.btn-xl { padding: 16px 26px; font-size: 17px; border-radius: 999px; }
.hero3-note { margin: 0; font-size: 12.5px; color: var(--sub); text-align: center; }
/* 24個ボタンの下の価格(チラシ風) */
.price-now { margin: 6px 0 0; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; line-height: 1; }
.price-was { font-size: 13.5px; color: var(--sub); text-decoration-thickness: 2px; }
.price-tag { display: inline-block; background: var(--yellow); color: #1d2330; font-size: 15px; font-weight: 700; padding: 6px 10px; border-radius: 999px; transform: rotate(-4deg); }
.price-now strong { font-size: 36px; font-weight: 900; color: #1d2330; letter-spacing: -.02em; }
.price-now strong small { font-size: 16px; font-weight: 800; margin-left: 2px; }
.price-tax { font-size: 12px; color: var(--sub); }
.hero3-visual { position: relative; padding-top: 34px; min-width: 0; }
.hv-frame { position: relative; background: var(--card); border: 1px solid #f1e6bd; border-radius: 26px; padding: 16px 18px 14px;
  box-shadow: 0 12px 34px rgba(90, 70, 0, .08); }
/* 吹き出し(ChatGPT 画像)。枠の上辺にかぶせて飛び出させる。画像が無いときは onerror で文字の吹き出しに落ちる */
.hv-bubble { position: absolute; z-index: 3; height: 74px; width: auto; pointer-events: none; }
.hv-bubble-a { right: 6%; top: -40px; transform: rotate(3deg); }
.hv-bubble-b { left: 4%; top: -30px; height: 62px; transform: rotate(-4deg); }
.hv-frame > .hv-badge-a { right: 6%; left: auto; top: -30px; white-space: nowrap; }
.hv-frame > .hv-badge-b { left: 4%; right: auto; top: -26px; font-size: 13px; white-space: nowrap; transform: rotate(-4deg); }
.hv-frame > .hv-badge-b::before, .hv-frame > .hv-badge-b::after { left: auto; right: 18px; }
.hv-frame > .hv-badge-b::after { right: 20px; }
.hv-stage { position: relative; min-width: 0; }
.hv-slide { display: none; position: relative; padding-bottom: 8px; min-width: 0; }
/* 「〇〇の作例を見る」の右下。幅の3割ほどが枠の右にはみ出す(枠の padding 18px + 幅159px×0.3)。しっぽが左上(リンク)を指す */
/* サムネの列の上に重ねる(場所を取らない)。右は枠から3割ほどはみ出す */
.hv-bubble-c { position: absolute; right: -66px; bottom: -52px; height: 52px; width: auto; z-index: 4; }
.hv-slide > .hv-badge-c { right: -40px; left: auto; top: auto; bottom: -44px; z-index: 4; white-space: nowrap; font-size: 13px; }
.hv-grid6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; height: 276px; }
.hv-cell { position: relative; margin: 0; min-width: 0; min-height: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 55%, #fff3c4 0%, #fff9e6 70%, #fffdf5 100%); border-radius: 16px; }
.hv-cell .hv-sticker { position: absolute; left: 10px; right: 10px; top: 10px; bottom: 24px; width: calc(100% - 20px); height: calc(100% - 34px); object-fit: contain; filter: drop-shadow(0 3px 6px rgba(20,30,45,.12)); }
/* 元写真はセルの右下いっぱい。スタンプの絵と多少重なるのは許容 */
.hv-cell .hv-face { position: absolute; right: 2px; bottom: 2px; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(20,30,45,.2); }
.hv-slide.active { display: block; animation: hv-fade .45s ease; }
@keyframes hv-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.hv-title { margin: 0 0 8px; min-width: 0; }
.hv-title strong { display: block; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-title small { display: block; font-size: 14px; color: var(--sub); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  background: radial-gradient(ellipse at 55% 50%, #fff1bf 0%, #fff8e3 60%, transparent 80%); border-radius: 20px; padding: 10px 6px; }
/* 手書き風の吹き出し(しっぽ付き)。フォントは Yomogi(Google Fonts)。読めない環境は本文フォントに落ちる */
.hand { font-family: "Yomogi", "Noto Sans JP", sans-serif; }
.hv-badge { position: absolute; right: 8px; top: -46px; background: #fff; border: 2px solid #2d2d2d; border-radius: 18px;
  padding: 6px 12px; font-size: 14px; font-weight: 700; line-height: 1.25; transform: rotate(4deg); color: #2d2d2d;
  font-family: "Yomogi", "Noto Sans JP", sans-serif; }
.hv-badge::before { content: ""; position: absolute; left: 18px; bottom: -13px; border: 7px solid transparent; border-top: 8px solid #2d2d2d; border-bottom: 0; }
.hv-badge::after { content: ""; position: absolute; left: 20px; bottom: -8px; border: 5px solid transparent; border-top: 6px solid #fff; border-bottom: 0; }
.hv-more { display: block; text-align: right; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-thumbs { display: flex; justify-content: center; gap: 6px; margin: 6px 0 0; flex-wrap: wrap; position: relative; }
.hv-thumb { border: 0; background: none; padding: 4px; cursor: pointer; text-align: center; font: inherit; color: var(--sub); border-radius: 12px; }
/* 各スタンプの下に、そのセットで選んだジャンルだけ小さく */
.hv-genre { position: absolute; left: 0; right: 0; bottom: 5px; margin: 0; text-align: center; font-size: 10.5px; line-height: 1.3; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.hv-thumb img { width: 50px; height: 50px; border-radius: 12px; object-fit: contain; background: #fff9e6; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(20,30,45,.14); display: block; margin: 0 auto 3px; padding: 2px; }
.hv-thumb span { font-size: 11px; font-weight: 700; }
.hv-thumb.active img { box-shadow: 0 0 0 3px var(--yellow); }
.hv-thumb.active span { color: var(--ink); }
.hv-all { margin: 10px 0 0; text-align: center; }
.hv-all .btn.sm { padding: 8px 16px; font-size: 13px; }
.hv-note { margin: 10px 0 0; font-size: 11px; line-height: 1.6; color: var(--sub); text-align: center; }
.trust-row { list-style: none; width: min(calc(100% - 40px), var(--content)); margin: 10px auto 0; padding: 18px 0 30px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.trust-row li { display: flex; align-items: center; gap: 12px; }
.ic { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 12px; color: #2d2d2d; }
.ic svg { width: 26px; height: 26px; }
.ic-img { object-fit: contain; background: none; width: 54px; height: 54px; flex-basis: 54px; }
.steps3-list .ic-img { width: 68px; height: 68px; }
.ic-yellow { background: var(--yellow); }
.ic-green { background: #dff5e3; color: #1e7a3a; }
.ic-pink { background: #ffe1e8; color: #b43a5b; }
.ic-blue { background: #dfeaff; color: #2352b8; }
.steps3-list .ic { margin: 8px auto 8px; width: 56px; height: 56px; }
.steps3-list .ic svg { width: 30px; height: 30px; }
.trust-row strong { display: block; font-size: 15px; }
.trust-row small { display: block; font-size: 12px; color: var(--sub); }
.steps3 { background: #fff7de; padding: 44px 0 40px; }
.steps3-inner { width: min(calc(100% - 40px), var(--content)); margin: auto; display: grid; grid-template-columns: 1fr 1.7fr 1fr; gap: 26px; align-items: center; }
.steps3-copy h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); line-height: 1.3; }
.steps3-copy p { margin: 0 0 6px; color: var(--sub); font-size: 14px; }
.steps3-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps3-list li { background: var(--card); border: 1px solid #f1e6bd; border-radius: 18px; padding: 14px 12px 16px; text-align: center; box-shadow: 0 6px 16px rgba(90,70,0,.06); }
.steps3-list .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); font-weight: 800; font-size: 13px; }
.steps3-list .ico { display: block; font-size: 40px; line-height: 1; margin: 8px 0 8px; }
.steps3-list strong { display: block; font-size: 14.5px; }
.steps3-list small { display: block; font-size: 11.5px; color: var(--sub); margin-top: 4px; line-height: 1.5; }
.steps3-cta { display: grid; gap: 10px; }
/* この段のボタンは幅が狭い(300px ほど)ので、ヒーローより一回り小さく組んで1行に収める */
.steps3-cta .btn-deco { font-size: 15.5px; padding: 12px 12px 12px 18px; gap: 8px; }
.steps3-cta .deco-stack { width: 94px; height: 46px; }
.steps3-cta .deco-stack img { width: 46px; height: 46px; }
.steps3-cta .deco-stack img:nth-child(1) { left: 0; }
.steps3-cta .deco-stack img:nth-child(2) { left: 24px; }
.steps3-cta .deco-stack img:nth-child(3) { left: 48px; }
.steps3-hand { margin: 0; text-align: center; font-size: 15px; color: var(--ink); transform: rotate(-2deg); }
.steps3-hand-img { display: block; height: 58px; width: auto; max-width: 100%; margin: 0 auto 4px; }
.steps3-note { width: min(calc(100% - 40px), var(--content)); margin: 22px auto 0; font-size: 12px; color: var(--sub); }
@media (max-width: 900px) {
  /* minmax(0,1fr): 1fr だと中身の最小幅で広がり、リード文の長いカテゴリだけ枠が横に伸びていた */
  .hero3-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 30px; }
  .hero3-actions { max-width: none; padding-right: 0; }
  .btn-deco { font-size: 15.5px; padding: 11px 12px 11px 18px; gap: 8px; }
  .deco-one { width: 46px; height: 46px; }
  .deco-stack { width: 94px; height: 46px; }
  .deco-stack img { width: 46px; height: 46px; }
  .deco-stack img:nth-child(1) { left: 0; }
  .deco-stack img:nth-child(2) { left: 24px; }
  .deco-stack img:nth-child(3) { left: 48px; }
  .hv-grid6 { height: 210px; gap: 6px; }
  .hv-cell .hv-face { width: 32px; height: 32px; }
  .hv-bubble { height: 52px; }
  .hv-bubble-c { height: 40px; bottom: -46px; right: 0; }
  .hv-slide > .hv-badge-c { right: 0; bottom: -44px; }
  .hv-slide { padding-bottom: 6px; }
  .hv-bubble-b { height: 44px; }
  .hv-frame > .hv-badge-b { display: none; }
  .hv-thumbs { gap: 3px; margin-top: 48px; }   /* 上に吹き出しの場所をあける */
  .hv-thumb { padding: 2px; }
  .hv-thumb img { width: 42px; height: 42px; border-width: 2px; }
  .hv-thumb span { font-size: 10px; }
  .trust-row { grid-template-columns: 1fr; gap: 10px; padding: 14px 0 22px; }
  .steps3-inner { grid-template-columns: 1fr; }
}
/* ===== 旧(第1版)の残り。使っていない所は無害 ===== */
.hero2 .hero2-inner { width: min(calc(100% - 40px), var(--content)); margin: auto; padding: 54px 0 26px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero2 h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.25; }
.hero-path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 18px 0 0; font-size: 13px; }
.hero-path .hp-step { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; font-weight: 700; line-height: 1.4; }
.hero-path .hp-step small { display: block; font-weight: 400; color: var(--sub); font-size: 11.5px; margin-top: 2px; }
.hero-path .hp-arrow { color: var(--sub); font-weight: 700; }
.hero-visual { position: relative; display: grid; grid-template-columns: 150px 28px 1fr; gap: 10px; align-items: center;
  background: radial-gradient(ellipse at 60% 50%, #fff3c4 0%, #fff9e6 55%, transparent 75%); padding: 26px 10px; border-radius: 30px; }
.trust-row { list-style: none; width: min(calc(100% - 40px), var(--content)); margin: 8px auto 0; padding: 18px 0 34px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.trust-row li { display: flex; align-items: center; gap: 12px; }
.trust-row strong { display: block; font-size: 15px; }
.trust-row small { display: block; font-size: 12px; color: var(--sub); }
.usecases { background: #fff8e9; padding: 52px 0 46px; }
.usecases-inner { width: min(calc(100% - 40px), var(--content)); margin: auto; text-align: center; }
.usecases h2 { margin: 0; font-size: clamp(24px, 3.2vw, 34px); }
.usecases-lead { margin: 8px 0 22px; color: var(--sub); font-size: 15px; }
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.usecase { display: block; background: var(--uc, var(--card)); border: 1px solid rgba(20,30,45,.06); border-radius: 18px; padding: 16px;
  text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
.usecase:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.uc-head { display: flex; align-items: center; gap: 12px; }
.uc-face { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(20,30,45,.12); }
.uc-head strong { display: block; font-size: 16px; }
.uc-head small { display: block; font-size: 12px; color: var(--sub); margin-top: 2px; }
.uc-stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 8px; }
.uc-stamps figure { margin: 0; text-align: center; }
.uc-stamps img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.uc-stamps figcaption { font-size: 11px; color: var(--sub); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-more { display: block; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.usecases-foot { margin: 22px 0 0; }
.usecases .example-label { margin-top: 14px; font-size: 12px; color: var(--sub); }
.steps3 { padding: 50px 0 56px; }
.steps3-inner { width: min(calc(100% - 40px), var(--content)); margin: auto; display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 28px; align-items: center; }
.steps3-copy h2 { margin: 0 0 8px; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.3; }
.steps3-copy p { margin: 0 0 6px; color: var(--sub); font-size: 14px; }
.steps3-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps3-list li { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 12px; text-align: center; }
.steps3-list .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); font-weight: 800; margin-bottom: 8px; }
.steps3-list strong { display: block; font-size: 14px; }
.steps3-list small { display: block; font-size: 11.5px; color: var(--sub); margin-top: 4px; line-height: 1.5; }
.steps3-cta { display: grid; gap: 10px; }
.apply { padding: 26px 0 60px; }
/* 申込ページは中央1列: 見出し → フォーム(最大 640px) → 補足(2列) */
.apply-inner { width: min(calc(100% - 40px), var(--content)); margin: auto; }
.apply-head { max-width: 720px; margin: 0 auto 16px; text-align: center; }
.apply-head .note { margin: 6px 0 0; }
.apply-h1 { margin: 0; font-size: clamp(22px, 2.8vw, 28px); line-height: 1.3; }
/* 申込ページの3ステップ: ボタン列なし・縦幅を詰める */
.steps3-compact { padding: 22px 0 20px; }
.steps3-compact .steps3-inner { grid-template-columns: 1fr 2fr; gap: 22px; }
.steps3-compact .steps3-copy h2 { font-size: clamp(20px, 2.2vw, 24px); margin: 0 0 4px; }
.steps3-compact .steps3-copy p { font-size: 13px; margin: 0 0 4px; }
.steps3-compact .steps3-list li { padding: 10px 10px 12px; }
.steps3-compact .steps3-list .ic, .steps3-compact .steps3-list .ic-img { width: 44px; height: 44px; margin: 4px auto 4px; }
.steps3-compact .steps3-list small { font-size: 11px; }
@media (max-width: 800px) { .steps3-compact .steps3-inner { grid-template-columns: 1fr; } }
.apply-lead { color: var(--sub); font-size: 14.5px; line-height: 1.9; margin: 0; }
/* 申込フォームは1列の一本道。段の番号(1→5)のとおりに上から下へ読める。
   PC だけ2列(.form-cols)にしていたころは、左が 1→2・右が 2-2→3→4 に分かれ、
   読む順番が分からないと言われた(2026-09-19 にやめた) */
.apply .form-card { max-width: 720px; margin: 0 auto; }
/* 折りたたみはやめて全部開いたまま(JS の style.display より !important が勝つ)。見出しは押せない飾りに */
.form-main .step-body { display: block !important; }
.form-main .step-header { pointer-events: none; cursor: default; }
.form-main .step-header .chevron { display: none; }
/* 必須マークと、項目の下のエラー */
.req { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: #e5484d; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1.5; vertical-align: middle; }
.step-header .req { font-size: 11px; }
.field-error { margin: 6px 0 0; color: #c62828; font-size: 12.5px; font-weight: 700; line-height: 1.6; }
.is-invalid input, .is-invalid textarea, .is-invalid select { border-color: #e5484d; box-shadow: 0 0 0 2px rgba(229,72,77,.15); }
.is-invalid .upload-box { border-color: #e5484d; }
/* PC は横幅が余るので、フォームの内側だけ広く取る(段は1列のまま) */
@media (min-width: 1000px) {
  .apply .form-main { padding: 18px 26px 26px; }
  .apply .form-main > .form-details { margin-top: 10px; }
}
.apply-more { max-width: 1000px; margin: 44px auto 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 44px; align-items: start; }
.apply-more #result { grid-row: span 2; }
@media (max-width: 800px) { .apply-more { grid-template-columns: 1fr; } .apply-more #result { grid-row: auto; } }
.apply-price { font-size: 30px; font-weight: 800; margin: 12px 0 0; }
.apply-price .unit { font-size: 15px; font-weight: 600; }
@media (max-width: 900px) {
  .hero2 .hero2-inner { grid-template-columns: 1fr; gap: 22px; padding-top: 34px; }
  .hero-visual { grid-template-columns: 110px 24px 1fr; padding: 18px 8px; }
  .hv-photo img { width: 96px; height: 96px; }
  .trust-row { grid-template-columns: 1fr; gap: 10px; padding: 14px 0 26px; }
  .usecase-grid { grid-template-columns: 1fr; }
  .steps3-inner { grid-template-columns: 1fr; }
  .apply-inner { grid-template-columns: 1fr; }
  .apply-inner .form-card { order: -1; }
}
/* 左カラムの「できあがるもの」「告知用の画像」(右のフォームと高さを合わせる) */
.hero-extra { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); }
.hero-h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.35; color: var(--ink); }
.hero-extra .result-list { margin-top: 12px; }
.hero-extra .result-list li { font-size: 14px; margin: 8px 0; }
.hero-extra .helper { font-size: 12px; line-height: 1.7; }
.hero-bonus { position: relative; }
.hero-bonus-img { float: right; width: 150px; margin: 0 0 8px 16px; border-radius: 12px; box-shadow: var(--shadow); }
.hero-bonus .promo-lead { margin: 8px 0 0; font-size: 14px; line-height: 1.8; color: #58606c; }
.hero-bonus::after { content: ""; display: block; clear: both; }
@media (max-width: 760px) { .hero-bonus-img { width: 110px; } }
/* ヒーローの下の特長カード(4枚) */
.hero-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hero-points li { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 12px 12px;
  display: flex; flex-direction: column; gap: 3px; box-shadow: 0 1px 2px rgba(20, 30, 45, .04); }
.hero-points .hp-icon { font-size: 20px; line-height: 1; margin-bottom: 4px; }
.hero-points strong { font-size: 13.5px; line-height: 1.4; color: var(--ink); }
.hero-points small { font-size: 11.5px; line-height: 1.5; color: var(--sub); }
@media (max-width: 760px) { .hero-points { grid-template-columns: repeat(2, 1fr); gap: 8px; } .hero-points li { padding: 10px; } }
.hero-flow-link a { color: var(--sub); font-weight: 700; }
.flow-legend { font-size: 12.5px; color: var(--sub); margin: -8px 0 22px; }
.flow-who { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
            vertical-align: middle; margin-right: 6px; letter-spacing: .02em; }
.flow-who.you { background: var(--yellow); color: #2D2D2D; }
.flow-who.us { background: #dbe8ff; color: #1d4ed8; }
.flow-who.line { background: #d9f5df; color: #06803a; }
.flow-steps { list-style: none; margin: 0; padding: 0; }
.flow-step { display: flex; gap: 16px; position: relative; padding-bottom: 26px; }
.flow-step::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--border); }
.flow-step.last::before { display: none; }
.flow-no { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff;
           font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; z-index: 1; }
.flow-body { flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.flow-body h2 { margin: 0 0 8px; font-size: 16px; }
.flow-body p { margin: 0 0 8px; font-size: 14px; line-height: 1.8; }
.flow-body p:last-child { margin-bottom: 0; }
.flow-meta { font-size: 12.5px !important; color: var(--sub); }
.flow-summary table { width: 100%; border-collapse: collapse; }
.flow-summary th { text-align: left; white-space: nowrap; padding: 8px 12px 8px 0; vertical-align: top; font-size: 13px; color: var(--sub); }
.flow-summary td { padding: 8px 0; font-size: 14px; line-height: 1.7; border-bottom: 1px solid var(--border); }
.flow .gallery-cta { margin-top: 22px; }
@media (max-width: 720px) {
  .flow-step { gap: 10px; }
  .flow-step::before { left: 14px; }
  .flow-no { flex-basis: 30px; width: 30px; height: 30px; font-size: 13px; }
  .flow-body { padding: 12px; }
  .flow-summary th { display: block; padding: 8px 0 0; }
  .flow-summary td { display: block; padding: 2px 0 8px; }
}

/* 作成の流れ: 工程ごとの画像とコツ */
.flow-body { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.flow-body > h2, .flow-body > p { flex: 1 1 100%; }
.flow-body > h2 { order: 1; }
.flow-body > p { order: 3; }
.flow-fig { order: 2; flex: 1 1 100%; margin: 0; }
.flow-fig img { display: block; max-width: 100%; max-height: 220px; height: auto; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.flow-fig figcaption { font-size: 11.5px; color: var(--sub); font-weight: 700; margin-top: 5px; }
.flow-tips { margin-top: 6px; }
/* 「内容を変更する」「作り直す」のコツ。注文ページでは入力欄の下に折りたたみで出す */
.retouch-tips-lead { font-size: 13.5px; line-height: 1.8; margin: 6px 0 4px; }
.retouch-tips { margin: 4px 0 8px; padding-left: 20px; font-size: 13.5px; line-height: 1.9; }
.retouch-howto { margin: 4px 0 10px; font-size: 13px; }
.retouch-tips-card { padding: 16px 18px; }
/* 作り直し・調整の候補ボタン */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.chip-fill { font-size: 12.5px; padding: 5px 11px; }
.chip-fill.on { background: var(--yellow-soft); border-color: var(--yellow); }
.retouch-tips-card h3 { margin: 0 0 4px; font-size: 15px; line-height: 1.6; }
.retouch-howto summary { cursor: pointer; color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.retouch-howto[open] summary { margin-bottom: 4px; }
.flow-tips ul { margin: 6px 0 10px; padding-left: 20px; font-size: 14px; line-height: 1.9; }
.flow-tips p { font-size: 14px; line-height: 1.8; margin: 0 0 8px; }
@media (min-width: 721px) {
  .flow-body { display: grid; grid-template-columns: 1fr 240px; grid-auto-rows: auto; column-gap: 18px; row-gap: 6px; }
  .flow-body > h2 { grid-column: 1; }
  .flow-body > p { grid-column: 1; }
  .flow-fig { grid-column: 2; grid-row: 1 / span 6; align-self: start; }
  .flow-fig img { max-height: none; width: 100%; }
}

/* 注文管理: 申請〜販売中までの手順(折りたたみ) */
.admin-howto { margin: 0 0 14px; padding: 12px 16px; }
.admin-howto summary { cursor: pointer; font-size: 14px; }
.admin-howto ol { margin: 10px 0 0; padding-left: 22px; font-size: 13.5px; line-height: 1.8; }
.admin-howto ol > li { margin-bottom: 6px; }
.admin-howto ul { margin: 4px 0 0; padding-left: 18px; }
.admin-howto code { font-size: 12px; background: var(--bg, #f3f4f6); padding: 1px 5px; border-radius: 5px; }
.admin-howto h3 { font-size: 14px; margin: 14px 0 6px; }
.admin-howto .admin-cmd { background: #1f2937; color: #e5e7eb; font-size: 12px; line-height: 1.7; padding: 10px 12px; border-radius: 8px;
                          overflow-x: auto; margin: 0 0 6px; white-space: pre; }
.admin-title-edit { display: inline-block; margin-left: 6px; font-size: 11.5px; }
.admin-title-edit summary { cursor: pointer; color: var(--sub); font-weight: 700; }
.admin-title-edit form { display: flex; gap: 6px; margin: 6px 0 2px; }
.admin-title-edit input[type="text"] { width: 240px; font: inherit; font-size: 12.5px; padding: 5px 8px;
                                       border: 1px solid var(--border); border-radius: 8px; }

/* 注文管理: 状態のバッジと、状態を進めるボタンを色で分ける
   申請待ち=黄 / 申請済=青 / 販売中=緑 / 審査NG対応中=赤 / お客様確認中=灰 */
.pill.st-wait     { background: var(--yellow); color: #2D2D2D; border-color: transparent; }
.pill.st-uploaded { background: #dbe8ff; color: #1d4ed8; border-color: transparent; }
.pill.st-approved { background: #16a34a; color: #fff; border-color: transparent; }
.pill.st-rejected { background: #dc2626; color: #fff; border-color: transparent; }
.pill.st-review   { background: #eef0f3; color: #4b5563; border-color: transparent; }
.pill.st-self     { background: #e0e7ff; color: #3730a3; border-color: transparent; }
/* 24個の確認画面: 申請の方法の2択 */
.choose-title { font-size: 19px; margin: 6px 0 6px; }
.submit-options { display: grid; grid-template-columns: 1fr; gap: 16px; }
.submit-option { border: 1px solid var(--border); border-radius: 16px; padding: 18px 18px 20px; background: var(--card); }
.submit-option h3 { margin: 0 0 6px; font-size: 17px; }
.submit-option .note { font-size: 13.5px; line-height: 1.8; }
.terms-box { margin-top: 14px; font-size: 13px; }
.terms-box summary { cursor: pointer; font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.terms-block { margin: 10px 0 4px; }
.terms-block h4 { margin: 8px 0 4px; font-size: 13.5px; }
.terms-block ul { margin: 0; padding-left: 20px; line-height: 1.8; }
/* デフォルメ度の3枚は説明の長さが違うので、カードを同じ高さに(グリッドで伸ばし、中身は上寄せ) */
.try-deform .radio-card { display: flex; }
.try-deform .radio-card span { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 10px 8px; text-align: center; line-height: 1.5; }
.try-deform .radio-card strong { font-size: 15px; }
.try-deform .radio-card small { display: block; font-size: 11.5px; color: var(--sub); font-weight: 400; margin-top: 4px; }
/* お試しの画風は10個。名前だけのカードなので、狭い幅では2列に落とす */
.try-style { grid-template-columns: repeat(3, 1fr); }
.try-style .radio-card strong { font-size: 13px; }

@media (max-width: 480px) {
  .try-style { grid-template-columns: repeat(2, 1fr); }
}

.try-caption { margin-top: 12px; text-align: left; }
/* お試しのフォームは申込フォームと同じ .form-card/.form-main(2026-09-20)。枠の外に置く最後の一言だけ余白を足す */
.try-card .try-foot { margin: 0 16px 16px; }
.memo { white-space: pre-wrap; font-size: 12.5px; line-height: 1.7; background: var(--field); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; margin: 10px 0 0; overflow-x: auto; }
@media (min-width: 760px) { .submit-options { grid-template-columns: 1fr 1fr; align-items: start; } }
button.sm.act-uploaded { background: #2563eb; color: #fff; }
button.sm.act-uploaded:hover { background: #1d4ed8; }
button.sm.act-approved { background: #16a34a; color: #fff; }
button.sm.act-approved:hover { background: #15803d; }
button.sm.act-rejected { background: #fff; color: #b91c1c; border: 1px solid #dc2626; }
button.sm.act-rejected:hover { background: #fee2e2; }
.admin-adjust { margin-top: 8px; font-size: 12px; }
.admin-adjust summary { cursor: pointer; color: var(--sub); font-weight: 700; }
.admin-adjust textarea { width: 100%; font: inherit; font-size: 12.5px; padding: 6px 8px; margin: 6px 0;
                         border: 1px solid var(--border); border-radius: 8px; resize: vertical; }
button.sm.act-adjust { background: #6b7280; color: #fff; }
button.sm.act-adjust:hover { background: #4b5563; }

/* 注文管理: 絞り込みの選択と運営フラグ */
/* 素の select は width: 100% / min-height: 46px(申し込みフォーム向け)。
   そのままだと絞り込みの2つが1行を丸ごと使って縦に積まれるので、ここで戻す */
.admin-filter select { width: auto; min-height: 0; font: inherit; font-size: 12.5px; padding: 7px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--ink); }
.admin-flag { margin-top: 6px; }
.admin-flag select { width: auto; min-height: 0; font: inherit; font-size: 11.5px; padding: 3px 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--sub); }
/* 無料クーポンの状態。未使用と使用済が同じ黄色で見分けられなかった(2026-09-20 本人の指摘)。
   未使用=黄(まだ使える・目立たせる) / 使用済=緑(使われた) / 期限切れ=薄いグレー(引っ込める) */
.pill.cp-open    { background: var(--yellow); color: #2D2D2D; border-color: transparent; }
.pill.cp-used    { background: #16a34a; color: #fff; border-color: transparent; }
.pill.cp-expired { background: #eef0f3; color: #6b7280; border-color: #e0e3e8; }
/* メモの欄。表の中に収まるよう、入力と保存ボタンを1行に並べる */
.coupon-note { display: flex; gap: 6px; align-items: center; margin: 0; }
.coupon-note input[type="text"] { width: 100%; min-width: 96px; max-width: 200px; margin: 0;
  padding: 5px 8px; font-size: 12.5px; }
.coupon-note button { flex: none; margin: 0; }

.pill.flag-hold { background: #fed7aa; color: #9a3412; border-color: transparent; }
.pill.flag-ignore { background: #4b5563; color: #fff; border-color: transparent; }
/* 行の見分け(注文一覧)。無視は既定で隠れていて、flag=all/ignore で出したときだけ見える。
   灰色の帯 + 灰色の下地 + 色抜きで「見なくてよいもの」と分かるようにする。
   販売中は仕事としては終わっているので緑の帯 + 薄い緑の下地。保留は橙の帯 */
tr.row-ignore td { opacity: .45; background: #f3f4f6; filter: grayscale(1); }
tr.row-ignore td:first-child { border-left: 4px solid #9ca3af; }
tr.row-hold td:first-child { border-left: 4px solid #f97316; }
tr.row-done td { background: #f0fdf4; }
tr.row-done td:first-child { border-left: 4px solid #16a34a; }
.admin-hidden-note { flex-basis: 100%; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) tr.row-ignore td { background: rgba(255,255,255,.04); }
  :root:not([data-theme="light"]) tr.row-done td { background: rgba(22,163,74,.10); }
}
:root[data-theme="dark"] tr.row-ignore td { background: rgba(255,255,255,.04); }
:root[data-theme="dark"] tr.row-done td { background: rgba(22,163,74,.10); }

/* ==================================================================
   注文管理の注文一覧(2026-09-19 作り直し)
   9列(チェック/日時/状態/ジャンル/連絡先/作り直し/金額/原価/作業)のうち
   作業列が 132px しか取れず、ボタンが縦に積まれて1行が 213〜414px あった。
   「注文 / 内容 / 金額 / 作業」の4列(+チェック)にまとめ、横幅を使って低くする
   ================================================================== */

/* 運営の画面は横幅いっぱい使ってよい。.page.wide はお客様側(紹介元・作例集)でも
   使っているので、運営だけの別クラスにする */
.page.admin { max-width: none; padding-left: 24px; padding-right: 24px; }

/* この表だけカードの内側の余白を詰めて、そのぶんを表に回す */
.admin-orders-card { padding: 4px 12px 8px; }

/* colgroup の幅を効かせるため table-layout: fixed。「内容」だけ幅を書かず残りを伸ばす。
   min-width は、狭い画面で .card.scroll の中だけを横スクロールさせるための下限 */
table.admin-orders { table-layout: fixed; min-width: 1040px; font-size: 13px; }
table.admin-orders th, table.admin-orders td { padding: 7px 8px; vertical-align: top; }
table.admin-orders .co-pick  { width: 36px; }
table.admin-orders .co-order { width: 182px; }
table.admin-orders .co-money { width: 200px; }
table.admin-orders .co-work  { width: 420px; }
/* 長いメールや注文IDで列を押し広げない(table-layout: fixed でもはみ出しは起きる) */
table.admin-orders td { overflow-wrap: anywhere; }

/* 見出し行は画面の上に貼り付ける。運営ヘッダは 74px + 下線 2px */
table.admin-orders thead th { position: sticky; top: 76px; z-index: 2;
  background: var(--card); box-shadow: inset 0 -1px 0 var(--border); }
/* .scroll の overflow-x: auto は縦のスクロール枠も作ってしまい sticky が効かない。
   表が収まる広さでは枠を外して、画面に対して貼り付くようにする */
@media (min-width: 1120px) { .card.scroll.admin-orders-card { overflow: visible; } }

/* セルの中身は <br> をやめて1行ずつの div にした */
table.admin-orders .c-when  { font-weight: 700; white-space: nowrap; line-height: 1.5; }
table.admin-orders .c-oid   { font-size: 11.5px; }
table.admin-orders .c-title { font-size: 13.5px; line-height: 1.5; margin-bottom: 2px; }
table.admin-orders .c-amount { font-size: 13.5px; }
table.admin-orders .note    { font-size: 12px; line-height: 1.5; }
table.admin-orders code     { font-size: 11px; padding: 1px 4px; }
table.admin-orders .pill    { font-size: 11px; padding: 2px 8px; line-height: 1.45; }

/* 印と小さなボタンは横に並べて折り返す(前は <br> で1行ずつ積んでいた) */
table.admin-orders .tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 3px; }
table.admin-orders .tags > .note, table.admin-orders .tags > .warn { min-width: 0; }
table.admin-orders .acts { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
table.admin-orders .acts .btn.sm { padding: 4px 9px; font-size: 11.5px; line-height: 1.45; border-radius: 8px; }

/* 表の中の入力欄。素の指定(min-height: 46px / font-size: 16px)のままだと行が伸びる */
table.admin-orders input[type="text"],
table.admin-orders textarea,
table.admin-orders select { min-height: 0; font-size: 12.5px; line-height: 1.4; padding: 6px 8px; margin: 0; }
table.admin-orders button.sm { padding: 5px 9px; font-size: 11.5px; line-height: 1.45; }
table.admin-orders summary { font-size: 12px; }
table.admin-orders .work-form { margin: 0 0 4px; }
/* URL・指摘・番号の入力欄とボタンを1行に収める */
table.admin-orders .work-line { display: flex; align-items: center; gap: 6px; }
table.admin-orders .work-line input[type="text"] { flex: 1 1 60px; width: auto; min-width: 0; }
table.admin-orders .work-line .w-numbers { flex: 0 1 132px; }
table.admin-orders .work-line button { flex: none; }
table.admin-orders .work-form label.note { display: block; margin-top: 4px; }
table.admin-orders .admin-adjust, table.admin-orders .admin-void { margin: 0 0 6px; }
table.admin-orders .admin-void summary { cursor: pointer; color: var(--sub); font-weight: 700; font-size: 12px; }
table.admin-orders .admin-void form { margin-top: 4px; }
table.admin-orders .admin-title-edit input[type="text"] { width: 200px; }
table.admin-orders .tags .admin-flag { margin-top: 0; }
/* 「無視（サンプル用など）」で select が広がり、状態の印と2行になるのを防ぐ */
table.admin-orders .tags .admin-flag select { max-width: 96px; }
table.admin-orders .admin-flag select { padding: 2px 6px; font-size: 11px; }
/* 「資料反映 2026-09-19 17:30」を2行にしない */
table.admin-orders .c-order .note { white-space: nowrap; }

/* 紹介元(紹介コード)の管理。項目が多いので2列に畳む(狭い画面では1列) */
.admin-partner-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; align-items: end; }
.admin-partner-form label { display: block; font-size: 12.5px; font-weight: 700; color: var(--sub); }
.admin-partner-form label.wide { grid-column: 1 / -1; }
.admin-partner-form input, .admin-partner-form select { width: 100%; margin-top: 5px; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--ink); }
.admin-partner-form button { grid-column: 1 / -1; justify-self: start; }
a.pill { text-decoration: none; }
/* 紹介元の画面: コピーして使う紹介文 */
/* 投稿するときのお願い(PR 表記)。紹介用 URL のすぐ下に出す薄い黄色の枠 */
.partner-pr { margin: 0 0 16px; padding: 10px 14px; border-left: 4px solid var(--accent, #f5b400); border-radius: 0 12px 12px 0; background: rgba(245, 180, 0, .09); font-size: 13.5px; }
.partner-pr strong { font-weight: 800; }
.partner-pr p { margin: 4px 0 0; color: var(--ink); }
.partner-intro-pick { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; }
.partner-intro-pick label { font-size: 12.5px; font-weight: 700; color: var(--sub); }
.partner-intro-pick select { width: auto; min-height: 0; font: inherit; font-size: 13px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--ink); }
.partner-intro-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.partner-intro-link code { word-break: break-all; }
.partner-intro-item { margin: 0 0 14px; }
.partner-intro-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 0 6px; }
.partner-intro-item textarea { font: inherit; font-size: 13.5px; line-height: 1.6; min-height: 0; }
/* 紹介元の画面: QR を差し替えたチラシの一覧 */
.partner-flyers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.partner-flyer { margin: 0; }
.partner-flyer img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.partner-flyer figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; font-size: 13px; }

/* 紹介元ご自身の画面のヘッダ(タブ)。運営の .admin-bar と同じ考え方で、
   ボタンを並べて画面を切り替える。狭い画面では .header-nav が2段目に回って折り返す */
.partner-bar { border-bottom: 2px solid var(--yellow); }
.partner-bar .header-nav { margin-left: auto; margin-right: 0; gap: 8px; flex-wrap: wrap; }
.partner-bar-label { font-size: 12px; font-weight: 700; color: var(--ink); background: var(--yellow-soft); border: 1px solid var(--yellow); border-radius: 999px; padding: 3px 10px; margin-left: 10px; }
.partner-bar .partner-tab { padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); }
.partner-bar .partner-tab.is-on { background: var(--yellow); border-color: var(--yellow-dark); }
@media (max-width: 800px) {
  .partner-bar .header-nav { gap: 6px; }
  .partner-bar .partner-tab { padding: 6px 10px; font-size: 12.5px; }
  .partner-bar-label { margin-left: 8px; }
}

/* 紹介用URL(紹介コード・素材の一番上)。長い URL でも横に溢れないように折り返す */
.partner-url-block { margin: 0 0 18px; }
.partner-url-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; font-size: 14px; }
.partner-url { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--field); }
.partner-url code { word-break: break-all; }
.partner-url-ja { font-size: 13px; min-width: 6em; }
.partner-url-note { flex-basis: 100%; margin: 0; }
.partner-steps { margin: 0; padding-left: 1.4em; font-size: 14px; line-height: 1.9; }
/* 運営: 紹介元への案内メール(下書きとプレビュー) */
.admin-mail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.admin-mail label { display: block; font-size: 12.5px; font-weight: 700; color: var(--sub); margin: 0 0 10px; }
.admin-mail input, .admin-mail textarea { width: 100%; margin-top: 5px; font: inherit; font-size: 13.5px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--ink); }
.admin-mail textarea { min-height: 0; line-height: 1.6; resize: vertical; }
.admin-mail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-mail-preview { white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 13.5px; line-height: 1.6; margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
/* 運営の画面のヘッダ。お客様向けのナビ・申込ボタンは出さず、運営の行き先だけ */
.admin-bar { border-bottom: 2px solid #2d2d2d; }
.admin-bar .header-nav { margin-left: auto; }
.admin-bar-label { font-size: 12px; font-weight: 700; color: #fff; background: #2d2d2d; border-radius: 999px; padding: 3px 10px; margin-left: 10px; }
/* 運営: アクセス解析(/admin/analytics)。JS なしで帯グラフを出す */
.an-ranges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.an-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.an-card { padding: 14px 16px; }
.an-card-label { font-size: 12.5px; font-weight: 700; color: var(--sub); }
.an-card-value { font-size: 30px; font-weight: 900; line-height: 1.2; margin: 4px 0 2px; letter-spacing: -.02em; }
.an-card-unit { font-size: 13px; font-weight: 700; margin-left: 3px; }
.an-card .note { margin-top: 4px; line-height: 1.5; }
.an-delta { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.an-delta.up { background: #dcfce7; color: #166534; }
.an-delta.down { background: #fee2e2; color: #991b1b; }
.an-delta.none { background: #eef0f3; color: #4b5563; }
.an-daily td { vertical-align: middle; }
.an-weekend td:first-child { color: #b45309; }
.an-bar-row { position: relative; height: 18px; min-width: 160px; }
.an-bar { position: absolute; left: 0; top: 0; height: 18px; border-radius: 4px; background: #fde68a; }
.an-bar.uv { background: #f59e0b; }
.an-bar-num { position: absolute; left: 6px; top: 0; line-height: 18px; font-size: 12px; font-weight: 700; color: #2d2d2d; }
.an-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.an-grid .card { margin: 0; overflow-x: auto; }
.an-grid h3 { font-size: 15px; margin: 0 0 8px; }
.an-grid table { width: 100%; font-size: 13px; }
.an-grid td:nth-child(n+2), .an-grid th:nth-child(n+2) { text-align: right; white-space: nowrap; }
.an-hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; align-items: end; height: 120px; }
.an-hour { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.an-hour-bar { background: #f59e0b; border-radius: 3px 3px 0 0; min-height: 1px; }
.an-hour-label { font-size: 10px; color: var(--sub); text-align: center; margin-top: 3px; }
@media (max-width: 640px) {
  .an-hour-label { font-size: 8px; }
  .an-card-value { font-size: 24px; }
}

/* ==================================================================
   次はこんなスタンプも(注文ページ / templates/_next_ideas.html)
   24個ができた画面と申請後の画面に出す、次のご注文のご案内。
   カードの中に入れ子で出る場面があるので、白の重なりだけ一段沈めて見分ける
   ================================================================== */
.next-ideas-h { margin: 0 0 6px; font-size: 18px; line-height: 1.5; }
.card .next-ideas { box-shadow: none; background: var(--field); margin-top: 18px; }
.next-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.next-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 12px 10px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.next-pic { width: 100%; max-width: 120px; aspect-ratio: 1; object-fit: contain; }
/* お客様ご自身のお写真で先に作った4個(2x2で1枚)。作例1個より大きく見せる */
.next-pic-wrap { display: block; width: 100%; text-align: center; }
.next-pic-mine { max-width: 260px; border-radius: 12px; background: #fff; }
.next-card.has-sample .next-title { margin-top: 4px; }
/* 作成中は作例を薄くして「いまのものではない」と分かるようにする */
.next-pic.dim { opacity: .35; filter: grayscale(.4); }
.next-making { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--sub); }
.next-title { font-weight: 700; font-size: 14px; line-height: 1.45; }
.next-reason { font-size: 12px; color: var(--sub); line-height: 1.7; }
.next-actions { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: auto; padding-top: 8px; }
.next-actions form { margin: 0; }
.next-actions .btn { width: 100%; text-align: center; margin-top: 0; }
.next-actions .btn[disabled] { opacity: .5; cursor: not-allowed; }
/* スマホでは縦に3枚並ぶので、絵は左に小さく置いて1枚あたりの高さを抑える */
@media (max-width: 600px) {
  .next-grid { grid-template-columns: 1fr; gap: 10px; }
  .next-card { display: grid; grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "pic title" "pic reason" "make make" "act act";
    column-gap: 10px; row-gap: 2px; text-align: left; align-items: start; }
  .next-pic-wrap { grid-area: pic; width: 72px; }
  .next-pic { width: 72px; max-width: 72px; height: 72px; }
  .next-making { grid-area: make; font-size: 12px; }
  /* ご自身のサンプルは4個入りなので、スマホでは横一杯に出す(72pxでは読めない) */
  .next-card.has-sample { grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "pic" "title" "reason" "make" "act"; text-align: center; }
  .next-card.has-sample .next-pic-wrap { width: 100%; }
  .next-card.has-sample .next-pic-mine { width: 100%; max-width: 260px; height: auto; }
  .next-title { grid-area: title; }
  .next-reason { grid-area: reason; }
  .next-actions { grid-area: act; }
}

/* 申請の方法を決めた直後に一度だけ出すダイアログ(templates/_next_ideas.html の <dialog>)。
   作例集の .gdlg と同じ作りに揃えている(枠なし・背景を暗く・中だけスクロール) */
.next-dlg { border: 0; border-radius: 18px; padding: 0; width: min(760px, 94vw); max-height: 90vh;
  display: none; flex-direction: column; overflow: hidden;
  background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.next-dlg[open] { display: flex; }
/* 開いたときの焦点はダイアログ自身(site.js)。入れ物なので枠は出さない */
.next-dlg:focus { outline: none; }
.next-dlg::backdrop { background: rgba(10, 14, 22, .6); }
.next-dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 18px 18px 6px; }
.next-dlg-h { margin: 0; font-size: 18px; line-height: 1.5; }
.next-dlg-close { border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer;
  color: var(--sub); padding: 0 4px; }
/* 中だけスクロールする。スマホでは3枚が縦に並ぶので、ここが伸びる */
.next-dlg-body { padding: 0 18px; overflow: auto; }
.next-dlg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.next-dlg-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 12px 10px; background: var(--field); border: 1px solid var(--border); border-radius: 14px; }
.next-dlg-pic { width: 100%; max-width: 260px; height: auto; aspect-ratio: 1;
  object-fit: contain; border-radius: 12px; background: #fff; }
.next-dlg-title { font-weight: 700; font-size: 14px; line-height: 1.45; }
.next-dlg-reason { font-size: 12px; color: var(--sub); line-height: 1.7; }
.next-dlg-card form { margin: 0; width: 100%; margin-top: auto; padding-top: 8px; }
.next-dlg-card .btn { width: 100%; text-align: center; margin-top: 0; }
.next-dlg-card > .btn { margin-top: auto; }
.next-dlg-foot { display: flex; justify-content: center; margin: 0; padding: 14px 18px 18px; }
.next-dlg-foot .btn { margin-top: 0; }

@media (max-width: 600px) {
  .next-dlg { width: min(760px, 94vw); max-height: 92vh; border-radius: 14px; }
  .next-dlg-head { padding: 14px 14px 4px; }
  .next-dlg-h { font-size: 16px; }
  .next-dlg-body { padding: 0 14px; }
  .next-dlg-grid { grid-template-columns: 1fr; gap: 10px; }
  .next-dlg-foot { padding: 12px 14px 14px; }
}

/* ==================================================================
   アンケート(お客様の声)とお礼クーポン
   お客様の画面 templates/survey.html と、注文ページに出すお願いのカード。
   運営の一覧(admin_surveys.html)は、アクセス解析の .an-* をそのまま借りている
   ================================================================== */
/* 注文ページ(確定後)に出すお願い */
.sv-ask { margin-top: 20px; background: var(--yellow-soft); border-color: transparent; }
.sv-ask .btn { margin-top: 0; }
.sv-code-sm { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700;
  font-size: 14px; letter-spacing: .08em; background: var(--card); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 7px; }

/* アンケートの画面 */
.sv-form { margin-top: 18px; }
.sv-q { margin-top: 22px; }
.sv-q legend { font-size: 14px; }
.sv-req { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px;
  background: #c2521f; color: #fff; font-size: 10.5px; font-weight: 700; vertical-align: 2px; }
/* 5段階。狭い画面でも5つが1行に収まるように等分する */
.sv-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sv-scale .radio-card span { font-size: 15px; }
.sv-ends { display: flex; justify-content: space-between; gap: 8px; margin: 5px 0 0;
  color: var(--sub); font-size: 11.5px; }
/* 長く感じた工程(複数選べる) */
.sv-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-chip input { position: absolute; opacity: 0; }
.sv-chip span { display: inline-block; padding: 9px 14px; border: 1px solid #d8dde3;
  border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; }
.sv-chip input:checked + span { border-color: #1c2635; background: #f6f7f8;
  box-shadow: inset 0 0 0 1px #1c2635; }
.sv-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0, 0, 0, .12); }
/* 何で知ったか(6つ)。3列 -> 狭い画面では2列 */
.sv-sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* 回答後のクーポン。コードは書き写すものなので、とにかく大きく読みやすく */
.sv-coupon { margin-top: 18px; text-align: center; background: var(--yellow-soft);
  border-color: transparent; }
.sv-coupon-lead { margin: 0 0 6px; font-size: 14px; }
.sv-code { margin: 6px 0 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 34px; font-weight: 800; letter-spacing: .16em; word-break: break-all;
  background: var(--card); border: 2px dashed #c9cfd6; border-radius: 14px; padding: 14px 10px; }
.sv-coupon-meta { margin: 10px 0 0; font-size: 13.5px; line-height: 1.9; }
.sv-coupon .btn { margin-top: 0; }
/* 運営の一覧: ご感想は長いので幅を決めて折り返す */
.sv-comment { max-width: 320px; white-space: pre-wrap; word-break: break-word; font-size: 12.5px; }

@media (max-width: 600px) {
  .sv-sources { grid-template-columns: repeat(2, 1fr); }
  .sv-code { font-size: 26px; letter-spacing: .1em; }
}

/* ==================================================================
   お知らせ(/news ・ トップの帯 ・ ヘッダーの未読の点 ・ /admin/news)
   本文はプレーンテキストなので、見た目はここだけで作る
   ================================================================== */
/* ヘッダーの「お知らせ」に付く未読の赤い点。文字の右上に小さく乗せる */
.nav-news { position: relative; }
.news-dot { position: absolute; top: -3px; right: -9px; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; }

/* トップ: ヒーローのすぐ下に出す細い帯。× で閉じられる(site.js) */
.news-strip { display: flex; align-items: center; gap: 8px; max-width: var(--content); margin: 0 auto 8px; padding: 8px 14px;
  background: #fff8e6; border: 1px solid #f6e3b0; border-radius: 12px; }
.news-strip-link { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; flex: 1; min-width: 0;
  color: var(--text); text-decoration: none; font-size: 13.5px; line-height: 1.6; }
.news-strip-tag { flex: none; font-size: 11px; font-weight: 900; letter-spacing: .06em; color: #8a5a00;
  background: var(--yellow); border-radius: 999px; padding: 2px 8px; }
.news-strip-date { flex: none; font-size: 12.5px; font-weight: 700; color: var(--sub); }
.news-strip-title { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.news-strip-arrow { color: var(--sub); }
.news-strip-close { flex: none; background: transparent; border: 0; margin: 0; padding: 4px 7px; cursor: pointer;
  color: var(--sub); font-size: 17px; line-height: 1; border-radius: 8px; }
.news-strip-close:hover { background: rgba(0,0,0,.06); }
/* 狭い画面では左右に余白を付ける(max-width では画面ちょうどになって窮屈に見える) */
@media (max-width: 1220px) {
  .news-strip { margin-left: 14px; margin-right: 14px; }
}
@media (max-width: 600px) {
  .news-strip { padding: 7px 10px; gap: 4px; }
  .news-strip-link { font-size: 12.5px; }
}

/* /news の記事。1件ずつカードにして、日付は小さく上に置く */
.news-list { display: grid; gap: 14px; }
.news-list .news-item { margin: 0; }
.news-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 12.5px; font-weight: 700; color: var(--sub); }
.news-pin { font-size: 11px; font-weight: 700; color: #8a5a00; background: var(--yellow-soft);
  border: 1px solid #f6e3b0; border-radius: 999px; padding: 1px 8px; }
.news-list .news-title { font-size: 17px; line-height: 1.55; margin: 0 0 8px; color: var(--ink); }
.news-body { font-size: 14.5px; line-height: 1.9; overflow-wrap: anywhere; }
.news-body a { color: #1d4ed8; }

/* 記事に付いた画像(最大4枚)。スタンプの見本は透過なので、白い台紙に余白つきで載せる。
   広い画面では1行に4枚まで、狭い画面では2列に落ちる */
.news-images { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.news-image { flex: 0 1 calc(25% - 8px); min-width: 120px; margin: 0; padding: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.news-image img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) {
  .news-image { flex-basis: calc(50% - 5px); }
}

/* 運営: お知らせ(/admin/news)。入力欄は紹介元の画面と同じ作り */
.news-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; align-items: end; }
.news-form label { display: block; font-size: 12.5px; font-weight: 700; color: var(--sub); }
.news-form label.wide { grid-column: 1 / -1; }
.news-form label.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.news-form input[type="text"], .news-form input[type="date"], .news-form textarea { width: 100%; margin-top: 5px;
  font: inherit; font-size: 13.5px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: var(--ink); }
.news-form textarea { min-height: 0; line-height: 1.7; resize: vertical; }
.news-form input[type="checkbox"] { width: auto; margin: 0; }
.news-form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.news-table td { vertical-align: top; }
.news-excerpt { white-space: pre-wrap; margin-top: 2px; }
.news-ops { white-space: nowrap; }
.news-ops form { display: inline-block; margin: 0 0 0 4px; }
.news-row-hidden td { opacity: .6; }
button.sm.news-del { background: #fff; color: #b91c1c; border: 1px solid #dc2626; }
button.sm.news-del:hover { background: #fee2e2; }
.news-img-n { display: inline-block; margin-left: 6px; font-size: 11.5px; white-space: nowrap; }
/* 運営: 編集中の記事に付いている画像(説明・順番・削除) */
.news-img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.news-img-cell { display: grid; gap: 6px; padding: 10px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px; }
.news-img-cell img { display: block; width: 100%; height: auto; max-height: 160px; object-fit: contain;
  background: #fff; border-radius: 8px; padding: 6px; }
.news-img-cell label { display: block; font-size: 12px; font-weight: 700; color: var(--sub); }
.news-img-cell input[type="text"], .news-img-cell input[type="number"] { width: 100%; margin-top: 4px;
  font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--card); color: var(--ink); }
.news-img-cell button { justify-self: start; }

@media (prefers-color-scheme: dark) {
  .news-strip { background: #2b2415; border-color: #4a3d1c; }
  .news-strip-close:hover { background: rgba(255,255,255,.08); }
  .news-pin { color: #f0c24c; background: #33291552; border-color: #4a3d1c; }
  .news-body a { color: #93b4ff; }
  button.sm.news-del { background: transparent; }
  button.sm.news-del:hover { background: #4a1d1d; }
  /* 透過のスタンプは暗い背景だと線が沈むので、台紙は暗くしても明るいままにする */
  .news-image { background: #f3f4f6; border-color: #3a4150; }
}

/* ==================================================================
   申込フォーム(/order)の色と段組み  2026-09-19

   「色が寂しい」「読む順番が分からない」への手当て。
     ・段は 1→5 の一本道(2列組みをやめた。HTML 側も form-cols を削除)
     ・段ごとに左の黄色い帯と、ごく薄いクリームの見出し。白一色をやめる
     ・選択中のカードはブランドの黄色。デフォルメ度は絵で選ぶ
   色は変数にまとめ、暗い配色では同じ変数だけを差し替える
   (bare :root が明るい配色。@media は :root:not([data-theme="light"])、
    手で暗くしたときのために [data-theme="dark"] も同じ値を持たせる)
   ================================================================== */
:root {
  --step-band: var(--yellow);   /* 段の左の帯 */
  --step-head: #fff7e0;         /* 段の見出しの下地(ごく薄い黄) */
  --step-face: #fffdf7;         /* 段の中身。真っ白の印象を消す程度に */
  --step-edge: #efe3c6;         /* 段の枠(クリームに寄せた灰) */
  --pick-bg:   #fff3c9;         /* 選択中のカードの下地 */
  --pick-line: #e0a509;         /* 選択中のカードの枠 */
  --pick-ink:  #3d2f00;         /* 選択中のカードの文字 */
  --pick-sub:  #6d5715;         /* 選択中のカードの補足 */
  --card-pick: #ffffff;         /* 未選択のカードの下地 */
  --focus-ring: #1c2635;        /* キーボードで移動したときの輪郭 */
  --note-ink: #505763;          /* 送信ボタンの下の但し書き */
  /* 補足の小さい文字。もともと var(--muted, #667085) と書かれていたが
     --muted がどこにも無く、暗い配色で #667085 のまま沈んでいた */
  --muted: #667085;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --step-head: #1d2b40;
    --step-face: #162335;
    --step-edge: #33445c;
    --pick-bg:   #3a2f12;
    --pick-line: #f0c24c;
    --pick-ink:  #ffefc6;
    --pick-sub:  #d8c9a6;
    --card-pick: #18283b;
    --focus-ring: #ffffff;
    --muted: #a7b0bd;
    --note-ink: #a7b0bd;
  }
}
:root[data-theme="dark"] {
  --step-head: #1d2b40;
  --step-face: #162335;
  --step-edge: #33445c;
  --pick-bg:   #3a2f12;
  --pick-line: #f0c24c;
  --pick-ink:  #ffefc6;
  --pick-sub:  #d8c9a6;
  --card-pick: #18283b;
  --focus-ring: #ffffff;
  --muted: #a7b0bd;
  --note-ink: #a7b0bd;
}

/* ---- 段(ステップ): 左の帯 + クリームの見出し ---- */
.form-main .step {
  margin-bottom: 14px;

  background: var(--step-face);
  border-color: var(--step-edge);
  border-left: 4px solid var(--step-band);
}

.form-main .step-header {
  padding: 11px 12px;
  background: var(--step-head);
  border-bottom: 1px solid var(--step-edge);
}

.form-main .step-number {
  box-shadow: 0 2px 6px rgba(224, 165, 9, .35);
}

/* 見出しは「番号 + 名前 + 一言の説明」の3つ組。説明で、その段で何を決めるのかが分かる */
.step-title {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.step-name {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 800;
}

.step-sub {
  color: var(--sub);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
}

/* ---- 最初の分かれ道「だれのスタンプ」 ---- */
.form-main .subject-pick {
  margin: 0 0 16px;
  padding: 13px 14px 15px;

  background: var(--step-head);
  border: 1px solid var(--step-edge);
  border-radius: 14px;
}

.form-main .subject-pick > legend {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 800;
}

.subject-note {
  margin: -3px 0 10px;
  color: var(--sub);
  font-size: 11.5px;
}

/* 未選択は白、選択中は黄色。段の下地がクリームなので、白のほうが
   「まだ選んでいない」ことがはっきりする。
   選択中(.radio-card input:checked + span)に負けない詳しさにするため、
   ここは .form-main を付けずに書く */
.radio-card span {
  background: var(--card-pick);
}

.form-main .subject-card span {
  padding: 12px 10px;
}

/* 顔の絵。元は正方形の透過画像なので、そのまま縮めるだけでよい。
   丸く抜くと犬・猫の耳が円で見切れるので、丸抜きと白い下地はやめた(2026-09-19) */
.subject-pic {
  width: 56px;
  height: 56px;
  margin-bottom: 2px;
}

/* 人物=男性+女性、ペット=犬+猫 の2人組。少し重ねて「どちらもできる」と一目で分かるように。
   白い縁(box-shadow)で重なりの境目を出す。カードの下地が黄色でも白でも効く */
.subject-pair {
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
}
.subject-pair .subject-pic {
  margin-bottom: 0;
}
.subject-pair .subject-pic + .subject-pic {
  margin-left: -14px;
}

/* ---- デフォルメ度: 絵で選ぶ ---- */
.deform-row {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* ---- 画風: 10枚並ぶので PC は5列・スマホは3列。カードの作りは deform-card を借りる ---- */
.style-row {
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

/* 10個ぶんの説明が縦に伸びるので、字は1段小さくして高さを抑える */
.form-main .style-card span {
  padding: 8px 5px 10px;
}

.style-card span strong {
  font-size: 13.5px;
}

.style-card span small {
  font-size: 10px;
}

.form-main .deform-card span {
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: 9px 6px 11px;

  gap: 5px;
  align-content: start;
  justify-items: center;
}

.deform-pic {
  position: relative;

  width: 100%;
  max-width: 108px;
  aspect-ratio: 1 / 1;
}

.deform-pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 「中」の目印。カードの高さを揃えたいので、行を足さず絵の上に重ねる */
.deform-badge {
  position: absolute;
  top: 0;
  right: 0;

  padding: 1px 7px;

  border-radius: 999px;
  background: var(--yellow);
  color: #2d2d2d;

  font-size: 9.5px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.6;
  white-space: nowrap;
}

/* ---- 選択中のカードはブランドの黄色(送信ボタン・段の番号と同じ色) ----
   radio-card は /order・お試し(/try)・アンケートの3画面にしか無い。
   /order だけ黄色にすると同じ形のカードが画面ごとに違う色になるので、まとめて変える */
.radio-card span {
  transition: background-color .12s ease, border-color .12s ease,
              box-shadow .12s ease;
}

.radio-card input:checked + span {
  background: var(--pick-bg);
  border-color: var(--pick-line);
  color: var(--pick-ink);

  box-shadow: inset 0 0 0 2px var(--pick-line);
}

.radio-card input:checked + span small {
  color: var(--pick-sub);
}

/* 絵のあるカードだけ、触れたときに少し浮かせる(押せると分かるように)。
   浮かせるのは label ごと。中の span に transform を付けると span が
   重ね合わせの文脈になり、opacity:0 で隠してあるラジオ本体を覆ってしまう
   (ブラウザ試験の page.check() がクリックできなくなる。実際に踏んだ) */
.subject-card,
.deform-card {
  transition: transform .12s ease;
}

.subject-card:hover,
.deform-card:hover {
  transform: translateY(-2px);
}

.subject-card:hover span,
.deform-card:hover span {
  box-shadow: 0 8px 18px rgba(20, 30, 45, .12);
}

.subject-card:hover input:checked + span,
.deform-card:hover input:checked + span {
  box-shadow: inset 0 0 0 2px var(--pick-line), 0 8px 18px rgba(20, 30, 45, .12);
}

/* ラジオ本体は opacity:0 で隠してあるので、キーボードで移動しても
   どこにいるか分からない。枠に輪郭を出す(押せることの手がかりにもなる) */
.radio-card input:focus-visible + span {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .radio-card span,
  .subject-card,
  .deform-card { transition: none; }

  .subject-card:hover,
  .deform-card:hover { transform: none; }
}

/* 送信ボタンの下の但し書き。元は #505763 の直書きで、暗い配色では
   地に沈んで読めなかった(明暗の比 2.2)。変数にして暗いときだけ明るくする */
.form-main > .no-charge {
  color: var(--note-ink);
}

/* ---- 性別: 線画の印を添える ----
   絵を出せない欄(文字だけの3択)は、どれも同じ見た目になって読み飛ばされる。
   印があると「ここは性別だ」と一目で分かる。
   .radio-card span は place-items:center の1段組みなので、
   横に2つ並ぶよう流れだけ column に変える */
.gender-card span {
  padding: 8px 6px;

  grid-auto-flow: column;
  /* justify-content が既定(stretch)のままだと、枠を左右2等分して
     印が左端・文字が右端に離れてしまう。2つで1組に見えるよう中央に寄せる */
  justify-content: center;
  gap: 7px;
  align-items: center;
}

.gender-icon {
  width: 21px;
  height: 21px;
  /* 文字が2字("女性")でも5字("指定しない")でも、印の幅は変えない */
  flex: none;
}

.gender-card b {
  font-weight: 600;
}

/* スマホ(390px)でも、デフォルメ度の3枚は横3列のまま。絵だけ小さくする */
@media (max-width: 480px) {
  .form-main .step { margin-bottom: 12px; }
  .form-main .step-header { padding: 10px 9px; gap: 8px; }
  .step-name { font-size: 13.5px; }
  .step-sub { font-size: 11px; }
  .deform-row { gap: 6px; }
  /* 画風は10枚。390px では3列(絵は3列でも 100px 弱あるので顔が分かる) */
  .style-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .style-card span strong { font-size: 12.5px; }
  .style-card span small { font-size: 9.5px; }
  .form-main .deform-card span { padding: 8px 4px 10px; }
  .deform-badge { padding: 1px 5px; font-size: 9px; }
  .subject-pic { width: 48px; height: 48px; }
  /* 390px の枠は89px。「指定しない」の5字を折り返させないよう、印と字を詰める */
  .gender-card span { gap: 4px; padding: 8px 2px; font-size: 11.5px; }
  .gender-card b { white-space: nowrap; }
  .gender-icon { width: 16px; height: 16px; }
}

/* 人物/ペットのカードの2人組(.subject-pair)は span なので、radio-card の「span=カードの中身」の
   見え方(白い下地・枝・角丸・grid)を引き継いでしまい、縦に積まれて白い箱に入っていた(2026-09-19 に本番で確認)。
   ここで打ち消して、絵を横に2つ並べるだけの透明な枠にする */
.subject-card span.subject-pair {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: auto;
  min-height: 0;
  margin: 0 0 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
