/* 注文の画面（AruaruPup）。見た目の土台は ../assets/site.css（色・書体・ゆがんだ角・手描きの線・.btn）。
   ここには注文の画面だけの並べ方を書く。スマホ 375px が主。<body class="order"> のページだけに効く */
body.order { min-height: 100vh; }
.order main { max-width: 560px; margin: 0 auto; padding: 4px 16px 56px; }
@media (min-width: 900px) { .order main { max-width: 720px; } }
.order .site-header { padding-left: 16px; padding-right: 16px; }
.order .brand-name { text-decoration: none; color: inherit; }
.order h1 { font-family: var(--font-head); font-weight: 400; font-size: 26px; line-height: 1.4; margin: 8px 0 6px; }
.order h2 { font-family: var(--font-head); font-weight: 400; font-size: 20px; margin: 20px 0 6px; line-height: 1.5; }
.order h2:first-child { margin-top: 2px; }
.order h3 { font-size: 15px; margin: 12px 0 2px; }
.order p { margin: 6px 0; }
.note { font-size: 14px; }
.price { font-size: 26px; font-family: var(--font-head); }

/* 進み具合 */
.progress { display: flex; gap: 6px; margin: 10px 0 4px; padding: 0; list-style: none; }
.progress li { flex: 1; height: 12px; border: 2px solid var(--ink); border-radius: var(--r-d); background: #fff; }
.progress li.on { background: var(--rose); }
.progress li.done { background: var(--accent); }
.stepname { font-family: var(--font-hand); font-size: 17px; color: var(--rose); margin: 0; }

/* 白い手描きの枠 */
.card { background: #fff; border: 2px solid var(--ink); border-radius: var(--r-a); padding: 16px 20px; margin: 14px 0; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
details.card summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }

/* 選ぶボタン（種類・デザイン・個数・申請のしかた） */
.choices { display: grid; gap: 10px; margin: 10px 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choices.three { grid-template-columns: repeat(3, 1fr); }
.choice { position: relative; min-height: 58px; padding: 8px 12px; border: 2.5px solid var(--ink); border-radius: var(--r-a); background: #fff; color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; line-height: 1.5; }
.choice:nth-child(even) { border-radius: var(--r-b); }
.choice small { display: block; font-size: 12px; font-weight: 500; }
.choice[aria-pressed=true] { background: var(--accent); box-shadow: 3px 4px 0 var(--ink); }
.choice[disabled] { background: #F3EEEA; color: #948a84; border-style: dashed; cursor: not-allowed; }
.choice .soon { display: inline-block; margin-top: 2px; font-size: 12px; font-weight: 500; background: var(--accent-yellow); color: var(--ink); border-radius: var(--r-d); padding: 0 8px; }
.choice.opt { text-align: center; min-height: 66px; }
.choice.opt b { display: block; font-size: 18px; font-family: var(--font-head); font-weight: 400; }

/* ボタン：.btn（ゆがんだ角）は site.css。ここでは幅いっぱいにして、使い分けだけ */
.order .btn { display: flex; width: 100%; margin: 14px 0 6px; font-size: 17px; background: var(--accent); border-width: 3px; box-shadow: 3px 4px 0 var(--ink); }
.order .btn.sub { background: #fff; border-width: 2.5px; box-shadow: none; font-weight: 500; }
.order .btn.line { background: var(--accent-blue); }
.order .btn[disabled] { background: #F3EEEA; color: #948a84; border-style: dashed; box-shadow: none; cursor: not-allowed; }
.order label.btn { cursor: pointer; }
.row { display: flex; gap: 10px; }
.row .btn { margin-top: 14px; }

/* 入力 */
.order label { display: block; font-size: 15px; margin: 8px 0; }
label.chk { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 6px 0; font-size: 15px; cursor: pointer; }
label.chk input { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--rose); }
.order input[type=text], .order input[type=email], .order textarea, .order select { font: inherit; width: 100%; min-height: 44px; padding: 8px 12px; margin-top: 2px; border: 2px solid var(--ink); border-radius: var(--r-d); background: #fff; color: var(--ink); }
.order textarea { min-height: 96px; }
.err { color: #B3321E; font-size: 14px; min-height: 20px; font-weight: 700; }
.okmsg { color: #3E7C59; font-weight: 700; }

/* 特商法の確認 */
.tk-item { border-top: 1.5px dashed var(--dash); padding: 8px 0; }
.tk-item:first-child { border-top: 0; }
.tk-item h3 { color: var(--rose); font-family: var(--font-head); font-weight: 400; font-size: 16px; }
.tk-item p { font-size: 14px; margin: 2px 0; }
.tk-item.strong p:first-of-type { font-size: 20px; font-weight: 700; }
.tk-links { margin-top: 10px; }
.tk-links a { display: inline-block; min-height: 44px; line-height: 44px; margin-right: 12px; }

/* お知らせ */
.banner { background: var(--monitor-bg); border-radius: var(--r-e); padding: 8px 14px; font-size: 14px; font-weight: 700; }
.closed { background: var(--blush-bg); border: 2.5px solid var(--rose); border-radius: var(--r-c); padding: 8px 16px; font-weight: 700; }

/* 写真・絵 */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; list-style: none; padding: 0; }
.thumbs li { background: #fff; border: 2px solid var(--ink); border-radius: var(--r-d); padding: 6px; font-size: 13px; }
.thumbs li:nth-child(even) { border-radius: var(--r-e); }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--sky-bg); }
.portrait img { width: 100%; max-width: 420px; display: block; margin: 8px auto; border-radius: var(--r-d); background: var(--sky-bg); }
.slot { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: start; border-top: 1.5px dashed var(--dash); padding: 10px 0; }
.slot:first-child { border-top: 0; }
.slot.noimg { grid-template-columns: 1fr; }
.slot img { width: 72px; height: 72px; object-fit: contain; background: var(--sky-bg); border-radius: var(--r-d); }
/* v8.10：候補は2行で横に流す（前は高さを切っていて、最後の行が枠の下で切れていた） */
.slot .cands { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: max-content; gap: 6px; margin-bottom: 6px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; }
.slot .cands .chip { scroll-snap-align: start; white-space: nowrap; }
.slot > div { min-width: 0; }   /* 横に流す箱が、画面の幅を押し広げないように（grid の子は min-width: auto のままだと中身の幅まで広がる） */
.slot .cands { max-width: 100%; }
.slot .swipe { font-size: 12px; color: #8a7f79; margin: -2px 0 6px; }
.chip { min-height: 44px; padding: 6px 14px; border: 2px solid var(--ink); border-radius: var(--r-c); background: #fff; font: inherit; color: var(--ink); cursor: pointer; }
.chip[aria-pressed=true] { background: var(--accent); font-weight: 700; }
.finals { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.final { background: #fff; border: 2px solid var(--ink); border-radius: var(--r-a); padding: 8px; text-align: center; }
.final:nth-child(even) { border-radius: var(--r-b); }
.final img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--sky-bg); border-radius: 6px; }
.final label { display: flex; justify-content: center; gap: 6px; align-items: center; min-height: 44px; }
.code { font-family: monospace; font-size: 18px; background: var(--accent-yellow); border: 2px solid var(--ink); padding: 4px 10px; border-radius: var(--r-d); display: inline-block; word-break: break-all; }
.order details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

/* 模擬の決済ページ（routes.js が出す） */
.mock table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.mock td { padding: 8px 4px; border-bottom: 1.5px dashed var(--dash); }
.mock .r { text-align: right; white-space: nowrap; }
.mock .tot { font-size: 20px; font-weight: 700; }
.mock .note-box { white-space: pre-wrap; font-size: 13px; background: #fff; border: 2px solid var(--ink); border-radius: var(--r-d); padding: 10px 12px; }
.mock .msg { font-size: 14px; min-height: 22px; }
.mock .banner { text-align: center; }
/* v8.8：選んだ物（押すとその段に戻る） */
.picked { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.pick { border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; padding: 4px 12px; cursor: pointer; }
/* v8.8：LINE の進み具合 */
.linesteps { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.linesteps li { border: 2px dashed #b9aea8; border-radius: 12px; padding: 8px 12px; color: #948a84; font-weight: 700; }
.linesteps li small { display: block; font-weight: 500; font-size: 12px; }
.linesteps li.done { border-style: solid; border-color: var(--ink); color: var(--ink); }
.linesteps li.on { border-style: solid; border-color: var(--ink); background: var(--accent); color: var(--ink); box-shadow: 3px 4px 0 var(--ink); }
