@charset "UTF-8";
/* ============================================================
   COFO DESK STUDIO – LP  /  cms.css
   1) ORDER BAND … FV 直下の CTA（実績 / 割引 / カウントダウン / お知らせ / 購入）
   2) FOOT CTA   … Q&A 手前の明るい CTA
   3) ADMIN      … 管理パネル（?edit=1 のときだけ表示）
   ※ style.css の変数（--c-cofo / --ff-en / --pad-x 等）に依存。
      style.css の後に読み込むこと。
   ============================================================ */

/* ============================================================
   1) ORDER BAND
   ============================================================ */
/* ブロック間の間隔。--gap-l = 別グループ間 / --gap-m = 同じグループ内。
   .countdown / .tiers / .news / .order-action はフッターCTA でも使い回すため、
   両方のセクションで定義しておく。片方で未定義だと margin の一括指定ごと無効になり、
   max-width を持つ要素（.countdown など）が中央寄せされずに左へ寄ってしまう。 */
.order-band,
.foot-cta {
  --gap-l: clamp(56px, 5.8vw, 88px);
  --gap-m: clamp(32px, 3.3vw, 48px);
}

.order-band {
  background: var(--c-black); color: var(--c-light);
  padding: clamp(64px, 8.4vw, 120px) var(--pad-x) clamp(72px, 9vw, 128px);
  text-align: center;
}

/* ---- 実績バー ---- */
.stats-bar {
  display: flex; max-width: 840px; margin: 0 auto var(--gap-l);
  border: 1px solid rgba(255,255,255,.1);
}
.stats-bar[hidden] { display: none; }
.stat-item {
  flex: 0 0 24%; padding: clamp(20px, 2vw, 28px) 12px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:first-child { flex: 0 0 52%; }
.stat-item:last-child { border-right: none; }
.stat-number {
  display: block; font-weight: 500; line-height: 1.2;
  font-size: clamp(24px, 2.36vw, 34px); letter-spacing: .02em;
  color: var(--c-white); font-variant-numeric: tabular-nums;
}
.stat-unit { font-size: 14px; font-weight: 400; margin-left: 4px; color: rgba(255,255,255,.4); }
.stat-ended { font-size: 18px; font-weight: 500; letter-spacing: .06em; color: rgba(255,255,255,.7); }
.stat-label {
  display: block; margin-top: 10px;
  font-size: 11px; letter-spacing: .22em; color: rgba(255,255,255,.4);
}

/* ---- バッジ / 大見出し / 締切 ---- */
.order-badge {
  display: inline-block; padding: 10px 32px;
  border: 1px solid rgba(126,198,176,.3);
  font-size: clamp(12px, 1vw, 14px); font-weight: 500;
  letter-spacing: .35em; color: var(--c-cofo);
}
.order-rule {
  display: block; width: 1px; height: 36px; margin-inline: auto;
}
.order-rule--top    { margin-top: 24px; background: linear-gradient(to bottom, transparent, rgba(255,255,255,.22)); }
.order-rule--bottom { margin-bottom: 18px; background: linear-gradient(to bottom, rgba(255,255,255,.22), transparent); }
.order-huge {
  font-size: clamp(44px, 5.2vw, 75px); font-weight: 600;
  letter-spacing: .04em; line-height: 1; color: var(--c-white);
}
.order-sub { font-size: 15px; letter-spacing: .16em; color: rgba(255,255,255,.5); }
.order-sub__em { color: var(--c-cofo); font-weight: 500; }
.order-sub__num { font-family: var(--ff-en); letter-spacing: .08em; color: rgba(255,255,255,.65); }
.order-sub__line { display: block; margin-top: 6px; }

/* ---- カウントダウン ---- */
.countdown {
  display: flex; max-width: 480px; margin: var(--gap-m) auto 0;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.countdown[hidden] { display: none; }
.countdown__unit { flex: 1; padding-inline: 6px; border-right: 1px solid rgba(255,255,255,.08); }
.countdown__unit:last-child { border-right: none; }
.countdown__num {
  display: block; font-size: clamp(32px, 3.13vw, 45px); font-weight: 500;
  letter-spacing: .02em; line-height: 1; font-variant-numeric: tabular-nums;
}
.countdown__lbl {
  display: block; margin-top: 8px;
  font-size: 8px; letter-spacing: .36em; color: rgba(255,255,255,.34);
}

/* ---- 3段階の割引 ---- */
.tiers {
  display: flex; justify-content: center; gap: 12px;
  max-width: 600px; margin: var(--gap-l) auto 0;
}
.tiers[hidden] { display: none; }
.tier {
  flex: 1; min-width: 0; padding: 16px 12px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03);
  transition: border-color .3s var(--ease), background .3s var(--ease), opacity .3s var(--ease);
}
.tier.is-done   { opacity: .38; }
.tier.is-active { border-color: var(--c-cofo); background: rgba(126,198,176,.08); }
.tier__name {
  display: block; margin-bottom: 6px;
  font-size: 10px; letter-spacing: .18em; color: rgba(255,255,255,.5);
}
.tier.is-active .tier__name { color: var(--c-cofo); }
.tier__pct {
  display: block; font-family: var(--ff-en); font-weight: 500;
  font-size: clamp(18px, 1.53vw, 22px); letter-spacing: .02em; color: rgba(255,255,255,.82);
}
.tier__pct small { font-size: 13px; font-weight: 400; margin-left: 2px; }
.tier.is-active .tier__pct { color: var(--c-white); }
.tier__price {
  display: block; margin-top: 4px;
  font-family: var(--ff-en); font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.38);
}
.tier.is-active .tier__price { color: rgba(255,255,255,.62); }
.tier__period {
  display: block; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.07);
  font-family: var(--ff-en); font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.32);
}
.tier.is-active .tier__period { color: rgba(255,255,255,.5); }
.tiers__label {
  margin-top: var(--gap-m);
  font-size: clamp(16px, 1.53vw, 22px); font-weight: 500;
  letter-spacing: .06em; line-height: 1.5; color: var(--c-white);
}
.tiers__label[hidden] { display: none; }

/* ---- お知らせ ---- */
.news { max-width: 600px; margin: var(--gap-l) auto 0; text-align: left; }
.news[hidden] { display: none; }
.news__item {
  display: flex; align-items: center; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  cursor: pointer; transition: background .2s var(--ease);
}
.news__item:hover { background: rgba(255,255,255,.03); }
.news__date {
  min-width: 84px; white-space: nowrap;
  font-family: var(--ff-en); font-size: 12px; letter-spacing: .06em; color: rgba(255,255,255,.32);
}
.news__tag {
  white-space: nowrap; padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.5);
  font-family: var(--ff-en); font-size: 10px; letter-spacing: .1em;
}
.news__tag.is-new { border-color: var(--c-cofo); color: var(--c-cofo); }
.news__title {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; letter-spacing: .02em; color: rgba(255,255,255,.68);
}

/* ---- お知らせポップアップ ---- */
.news-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.news-modal.is-open { display: flex; }
.news-modal__box {
  position: relative; width: 90%; max-width: 560px; max-height: 80vh; overflow-y: auto;
  padding: 48px 40px; text-align: left;
  background: var(--c-ink); border: 1px solid rgba(255,255,255,.1);
}
.news-modal__close {
  position: absolute; top: 14px; right: 14px; padding: 8px;
  color: rgba(255,255,255,.45); font-size: 20px; line-height: 1;
  transition: color .2s var(--ease);
}
.news-modal__close:hover { color: var(--c-white); }
.news-modal__tag {
  display: inline-block; margin-bottom: 12px; padding: 3px 10px;
  border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.5);
  font-family: var(--ff-en); font-size: 9px; letter-spacing: .18em;
}
.news-modal__tag.is-new { border-color: var(--c-cofo); color: var(--c-cofo); }
.news-modal__date {
  display: block; margin-bottom: 16px;
  font-family: var(--ff-en); font-size: 10px; letter-spacing: .06em; color: rgba(255,255,255,.32);
}
.news-modal__title {
  margin-bottom: 24px; font-size: 18px; font-weight: 500;
  letter-spacing: .04em; line-height: 1.6; color: var(--c-white);
}
.news-modal__body { font-size: 14px; line-height: 2; color: rgba(255,255,255,.62); }
.news-modal__body h3 { margin: 24px 0 12px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.86); }
.news-modal__body p { margin-bottom: 16px; }
.news-modal__body strong { color: rgba(255,255,255,.86); }

/* ---- CTA ---- */
.order-action { margin-top: var(--gap-l); }
/* サイズは LP の見出しトークン --fs-40（DETAIL / SPEC / Q&A 見出しと同じ）に合わせる。
   ガジェットポーチ由来の 50px はこのデザインの見出しスケールだと大きすぎるため。 */
.order-action__title {
  margin-bottom: 16px;
  font-size: var(--fs-40); font-weight: 500;
  letter-spacing: .08em; line-height: 1.3; color: var(--c-white);
}
/* SP で「81,280円〜 で先行予約する」が「…で先行予約 / する」のように
   語の途中で折り返さないよう、金額と文言をそれぞれ改行禁止のかたまりにする。
   折り返しが必要なときは 2つのかたまりの間（半角スペース）で改行される。 */
.order-action__title .nobr { display: inline-block; white-space: nowrap; }

.order-action__price {
  max-width: 440px; margin: 0 auto 44px;
  font-size: 13px; line-height: 2.1; letter-spacing: .04em; color: rgba(255,255,255,.42);
}
.order-action__price s { text-decoration: line-through; }
.order-action__price strong { color: var(--c-white); font-weight: 500; }
.order-action__note { margin-top: 14px; font-size: 10px; letter-spacing: .04em; color: rgba(255,255,255,.3); }

/* スティッキーバーの CV ボタン。文言が「商品ページへ」に変わっても折り返さないように。
   （ヘッダーの .btn-cv は XD どおり非表示のままなので触らない） */
.sticky-cta .btn-cv {
  flex: none;   /* 狭い画面で縮んで文字がボタンからはみ出すのを防ぐ（縮むのは商品名側） */
  width: auto; min-width: 136px; padding-inline: 16px; white-space: nowrap;
}

/* CTA ボタン（.btn-cv を継承しつつ横幅を広げたバリエーション） */
.btn-cv--wide {
  width: min(400px, 100%); height: 64px; margin-inline: auto;
  font-size: 15px; display: flex;
}
.btn-cv--line { background: #06c755; color: var(--c-white); }
.btn-cv--line:hover { background: #05b34c; color: var(--c-white); }

/* 購入ボタンのホバー。COFO グリーン + グロー + 3px 浮き。
   LINE ボタンは自前の色を持っているので除外する。 */
.btn-cv--wide:not(.btn-cv--line) {
  box-shadow: 0 4px 24px rgba(255,255,255,.08);
  transition: background .25s var(--ease), color .25s var(--ease),
              transform .2s var(--ease), box-shadow .25s var(--ease);
}
.btn-cv--wide:not(.btn-cv--line):hover {
  background: var(--c-cofo); color: var(--c-white);
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(126,198,176,.4), 0 8px 32px rgba(126,198,176,.2);
}
.btn-cv--wide.is-disabled { box-shadow: none; }
/* 購入ページ URL 未設定のとき（押せないことを見て分かるように） */
.btn-cv.is-disabled {
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.45);
  cursor: not-allowed; pointer-events: none;
}
.order-action__warn {
  margin-top: 10px; font-size: 11px; letter-spacing: .04em; color: #f5b400;
}
.order-action--light .btn-cv.is-disabled { background: rgba(0,0,0,.08); color: var(--c-gray-2); }
.order-action--light .order-action__warn { color: #b07d00; }

/* 事前登録フォーム */
.reg { max-width: 400px; margin-inline: auto; }
.reg__label {
  display: block; margin-bottom: 20px;
  font-family: var(--ff-en); font-size: 9px; letter-spacing: .36em; color: rgba(255,255,255,.32);
}
.reg__or { margin: 16px 0; font-size: 11px; letter-spacing: .16em; color: rgba(255,255,255,.3); }
.reg__form { display: flex; gap: 8px; }
.reg__input {
  flex: 1 1 auto; min-width: 0; height: 60px; padding: 0 16px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 5px;
  background: rgba(255,255,255,.05); color: var(--c-light);
  font-family: var(--ff-jp); font-size: 14px; letter-spacing: .02em;
}
.reg__input::placeholder { color: rgba(255,255,255,.32); }
.reg__input:focus { outline: none; border-color: rgba(255,255,255,.45); }
.reg__submit {
  flex: 0 0 auto; height: 60px; padding: 0 22px; border-radius: 5px; cursor: pointer;
  border: 1px solid var(--c-white); background: var(--c-white); color: var(--c-black);
  font-family: var(--ff-jp); font-weight: 500; font-size: 14px; letter-spacing: .04em;
  transition: opacity .3s var(--ease);
}
.reg__submit:hover { opacity: .84; }
.reg__submit:disabled { opacity: .5; cursor: default; }

/* 送信結果モーダル */
.msg-modal { position: fixed; inset: 0; z-index: 1000; display: none; background: rgba(0,0,0,.55); }
.msg-modal.is-open { display: block; }
.msg-modal__box {
  position: relative; width: min(90%, 400px); margin: 15% auto; padding: 30px 28px;
  border-radius: 6px; background: var(--c-white); color: var(--c-ink); text-align: center;
}
.msg-modal__box p { font-size: 15px; line-height: 1.75; }
.msg-modal__close {
  position: absolute; top: 6px; right: 16px;
  font-size: 26px; line-height: 1; font-weight: 700; color: var(--c-gray-2);
}
.msg-modal__close:hover { color: var(--c-ink); }

/* ============================================================
   2) FOOT CTA（明るい帯の中）
   ============================================================ */
/* style.css の .cta-slot--light は枠だけの仮組みで aspect-ratio が入っている。
   実装後は中身の高さで決まるので解除する（SP/タブレットの上書きも含めて）。 */
.foot-cta {
  display: block; aspect-ratio: auto; padding: clamp(56px, 6.3vw, 90px) var(--pad-x);
  background: var(--c-light); color: var(--c-ink); text-align: center;
}
.foot-cta__badge {
  display: inline-block; padding: 9px 28px;
  border: 1px solid rgba(126,198,176,.6);
  font-size: clamp(12px, 1vw, 14px); font-weight: 500;
  letter-spacing: .26em; color: #4fa78c;
}
.foot-cta__huge {
  margin-top: 22px; font-size: clamp(36px, 4.9vw, 70px); font-weight: 600;
  letter-spacing: .04em; line-height: 1; color: var(--c-ink);
}
.foot-cta__sub { margin-top: 12px; font-size: 15px; letter-spacing: .16em; color: var(--c-gray-1); }
.foot-cta__sub .order-sub__em { color: #3f9179; }
.foot-cta__sub .order-sub__num { color: var(--c-ink); }

.countdown--light {
  border-color: rgba(0,0,0,.1);
}
.countdown--light .countdown__unit { border-right-color: rgba(0,0,0,.08); }
.countdown--light .countdown__unit:last-child { border-right: none; }
.countdown--light .countdown__num { color: var(--c-ink); }
.countdown--light .countdown__lbl { color: var(--c-gray-2); }

.order-action--light .order-action__title { color: var(--c-ink); }
.order-action--light .order-action__price { color: var(--c-gray-1); }
.order-action--light .order-action__price s { color: var(--c-gray-2); }
.order-action--light .order-action__price strong { color: var(--c-ink); }
.order-action--light .order-action__note { color: var(--c-gray-2); }
.order-action--light .btn-cv { background: var(--c-black); color: var(--c-white); }
.order-action--light .btn-cv--wide:not(.btn-cv--line) { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.order-action--light .btn-cv--wide:not(.btn-cv--line):hover {
  background: var(--c-cofo); color: var(--c-white);
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(126,198,176,.45), 0 8px 32px rgba(126,198,176,.25);
}
.order-action--light .btn-cv--line { background: #06c755; color: var(--c-white); }
.order-action--light .reg__label { color: var(--c-gray-2); }
.order-action--light .reg__or { color: var(--c-gray-2); }
.order-action--light .reg__input {
  background: var(--c-white); border-color: var(--c-line); color: var(--c-ink);
}
.order-action--light .reg__input::placeholder { color: var(--c-gray-2); }
.order-action--light .reg__submit {
  background: var(--c-ink); border-color: var(--c-ink); color: var(--c-white);
}

/* ============================================================
   SP
   ============================================================ */
@media (max-width: 900px) {
  /* SP は .sticky-cta__date が非表示。ボタンが伸びたぶん商品名を詰める。 */
  .sticky-cta__inner { min-width: 0; }
  .sticky-cta__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  /* 文言が「35%OFFで先行予約」まで伸びるので、SP では左右の余白を詰めて
     商品名が省略記号にならない幅を確保する。 */
  .sticky-cta .btn-cv { min-width: 0; padding-inline: 12px; }

  .order-band { padding-inline: 20px; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:first-child { flex: 0 0 100%; }
  .stat-item:nth-child(2) { border-right: 1px solid rgba(255,255,255,.1); }
  .stat-item:last-child { border-bottom: none; }
  .order-badge, .foot-cta__badge { letter-spacing: .2em; padding: 9px 20px; }
  .tiers {
    justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -20px; padding-inline: 20px;
  }
  .tiers::-webkit-scrollbar { height: 0; }
  .tier { flex: 0 0 47%; scroll-snap-align: center; }
  .news__item { flex-wrap: wrap; gap: 8px 12px; }
  .news__title { flex: 0 0 100%; white-space: normal; }
  .news-modal__box { padding: 40px 24px; }
  .reg__form { flex-direction: column; }
  .reg__submit { width: 100%; }
  .foot-cta { padding-inline: 20px; }

  /* --fs-40 の下限は 32px だが、CTA 見出しは日本語の長文なので SP では少し詰める */
  .order-action__title { font-size: clamp(22px, 6.9vw, 26px); }
}

/* ============================================================
   2.1) FV の定価表示
        写真の下端に薄い暗幕を敷いて可読性を確保する。
   ============================================================ */
/* タイトル群は上からの固定値ではなく、画像内のモニター上端（高さの36.7%）を
   基準に下端を合わせる。px/vw 指定だと画面が広いほど余白が開いてしまうため。 */
@media (min-width: 901px) {
  .fv__inner { top: auto; bottom: 66%; padding-top: 0; }
}


.fv__price {
  margin-top: clamp(12px, 1.4vw, 20px);
  color: rgba(255,255,255,.55);
  font-size: clamp(12px, 1.05vw, 15px); letter-spacing: .12em;
  opacity: 0; transform: translateY(10px);
  animation: fvPriceIn 1s var(--ease) .6s forwards;
}
.fv__price[hidden] { display: none; }
.fv__price .fv__price-amount {
  margin-left: 4px; font-family: var(--ff-en); font-weight: 500;
  font-size: clamp(18px, 1.67vw, 24px); letter-spacing: .06em; color: rgba(255,255,255,.9);
}
.fv__price .fv__price-note {
  margin-left: 6px; font-size: 10px; letter-spacing: .08em; color: rgba(255,255,255,.35);
}
@keyframes fvPriceIn { to { opacity: 1; transform: none; } }

/* 901〜1200px は FV が低くタイトル群が上端に迫るので、定価まわりを少し詰める */
@media (min-width: 901px) and (max-width: 1200px) {
  .fv__price { margin-top: 8px; font-size: 12px; }
  .fv__price .fv__price-amount { font-size: 17px; }
}

@media (max-width: 900px) {
  .fv__price { margin-top: 14px; }
}

/* ============================================================
   2.2) SHIPPING SCHEDULE（Q&A の上・明るい帯の中）
        gadget-pouch の schedule-band を移植
   ============================================================ */
.schedule {
  background: var(--c-light); color: var(--c-ink);
  padding: clamp(56px, 6.1vw, 88px) var(--pad-x);
  text-align: center;
}
.schedule__label {
  margin-bottom: clamp(32px, 3.4vw, 48px);
  font-size: 14px; letter-spacing: .3em; color: #b0ada8;
}
.schedule__inner { max-width: 1100px; margin-inline: auto; }
.schedule__steps { position: relative; display: flex; justify-content: space-between; }

.schedule__step { position: relative; flex: 1; padding: 0 12px; text-align: center; }
.schedule__num {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin: 0 auto 24px; border-radius: 50%;
  background: var(--c-white); color: rgba(0,0,0,.4);
  border: 2px solid rgba(0,0,0,.08);
  font-family: var(--ff-en); font-size: 18px; font-weight: 600;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.schedule__step.is-active .schedule__num {
  background: var(--c-cofo); border-color: var(--c-cofo); color: var(--c-white);
  box-shadow: 0 0 0 6px rgba(126,198,176,.12);
}
.schedule__step.is-done .schedule__num {
  background: rgba(126,198,176,.15); border-color: rgba(126,198,176,.4); color: var(--c-cofo);
}
/* ステップ間をつなぐ線 */
.schedule__step::after {
  content: ""; position: absolute; z-index: 1;
  top: 26px; left: calc(50% + 26px); right: calc(-50% + 26px);
  height: 2px; background: rgba(0,0,0,.08);
}
.schedule__step:last-child::after { display: none; }
.schedule__step.is-done::after { background: rgba(126,198,176,.4); }

.schedule__title {
  margin-bottom: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: .04em; line-height: 1.5;
  color: rgba(0,0,0,.75);
}
.schedule__date {
  margin-bottom: 10px;
  font-family: var(--ff-en); font-size: 13px; font-weight: 500;
  letter-spacing: .05em; color: var(--c-cofo);
}
.schedule__desc {
  font-size: 12px; line-height: 1.7; letter-spacing: .02em; color: rgba(0,0,0,.45);
}

@media (max-width: 900px) {
  .schedule { padding: 64px 20px; }
  .schedule__steps { flex-direction: column; gap: 32px; }
  .schedule__step { padding: 0; }
  .schedule__num { margin-bottom: 16px; }
  /* SP は縦につなぐ */
  .schedule__step::after {
    top: 56px; left: 50%; right: auto;
    width: 2px; height: 32px; transform: translateX(-50%);
  }
}

/* ============================================================
   2.5) 注文通知トースト
   ============================================================ */
.order-notif {
  position: fixed; left: 20px; bottom: 20px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 18px; border-radius: 6px;
  background: rgba(10,10,10,.92); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--c-light); font-size: 12px; line-height: 1.5;
  /* 非表示は visibility / opacity で確実に消す。
     transform の % 指定だけだと、中身が空で高さが小さいときに
     画面外へ押し出しきれず端に見えてしまう。 */
  visibility: hidden; opacity: 0;
  transform: translateX(calc(-100% - 40px));
  transition: transform .5s var(--ease), opacity .35s var(--ease), visibility 0s .35s;
}
.order-notif.is-show {
  visibility: visible; opacity: 1; transform: none;
  transition: transform .5s var(--ease), opacity .35s var(--ease), visibility 0s 0s;
}
.order-notif__dot {
  flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c-cofo);
  box-shadow: 0 0 0 0 rgba(126,198,176,.6); animation: notif-pulse 2s infinite;
}
@keyframes notif-pulse {
  70%  { box-shadow: 0 0 0 7px rgba(126,198,176,0); }
  100% { box-shadow: 0 0 0 0 rgba(126,198,176,0); }
}
.order-notif__txt { flex: 1; }
.order-notif__time { flex: none; font-size: 10px; color: rgba(255,255,255,.4); }

@media (max-width: 900px) {
  /* SP はスティッキーCTAが下部にいるので、その上に出す */
  .order-notif { left: 12px; right: 12px; bottom: 72px; max-width: none; }
  .order-notif:not(.is-show) { transform: translateY(24px); }
}

/* ============================================================
   3) ADMIN PANEL（?edit=1 のときだけ）
   ============================================================ */
.admin-gear {
  position: fixed; top: 74px; right: 14px; z-index: 9990;
  width: 38px; height: 38px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  color: var(--c-white); font-size: 17px; line-height: 1;
  cursor: pointer; transition: background .2s var(--ease);
}
.admin-gear.is-show { display: flex; }
.admin-gear:hover { background: rgba(255,255,255,.2); }

.admin-login {
  position: fixed; inset: 0; z-index: 9991;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.82);
}
.admin-login.is-open { display: flex; }
.admin-login__box {
  width: 320px; max-width: 88vw; padding: 40px; text-align: center;
  background: var(--c-ink); border: 1px solid rgba(255,255,255,.1);
}
.admin-login__ttl {
  margin-bottom: 20px; font-family: var(--ff-en); font-weight: 500;
  font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.6);
}
.admin-login__input {
  width: 100%; margin-bottom: 16px; padding: 12px 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15);
  color: var(--c-white); font-family: var(--ff-jp); font-size: 14px; outline: none;
}
.admin-login__btn {
  width: 100%; padding: 12px; background: var(--c-white); color: var(--c-black);
  font-family: var(--ff-en); font-weight: 500; font-size: 11px; letter-spacing: .2em;
}
.admin-login__err { display: none; margin-top: 10px; font-size: 11px; color: #e74c3c; }
.admin-login__err.is-show { display: block; }

.admin-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 9992;
  width: 440px; max-width: 92vw;
  display: flex; flex-direction: column; overflow: hidden;
  background: #101010; border-left: 1px solid rgba(255,255,255,.1);
  color: var(--c-white); font-family: var(--ff-jp);
  transform: translateX(100%); transition: transform .3s var(--ease);
}
.admin-panel.is-open { transform: none; }
.admin-panel__head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-panel__ttl { font-family: var(--ff-en); font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.6); }
.admin-panel__close { padding: 4px 8px; color: rgba(255,255,255,.45); font-size: 20px; line-height: 1; }
.admin-tabs { flex: none; display: flex; overflow-x: auto; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-tabs::-webkit-scrollbar { height: 0; }
.admin-tab {
  flex: none; padding: 11px 14px; border-bottom: 1px solid transparent;
  font-family: var(--ff-en); font-size: 9px; letter-spacing: .1em; color: rgba(255,255,255,.35);
}
.admin-tab:hover { color: rgba(255,255,255,.65); }
.admin-tab.is-active { color: var(--c-white); border-bottom-color: var(--c-white); }
.admin-body { flex: 1; overflow-y: auto; padding: 18px 20px 28px; }
.admin-pane { display: none; }
.admin-pane.is-active { display: block; }
.admin-group { margin-bottom: 22px; }
.admin-group__label {
  display: block; margin-bottom: 8px;
  font-family: var(--ff-en); font-size: 9px; letter-spacing: .14em; color: rgba(255,255,255,.4);
}
.admin-hint { margin: -4px 0 8px; font-size: 10px; line-height: 1.7; color: rgba(255,255,255,.32); }
.admin-input, .admin-textarea {
  width: 100%; margin-bottom: 8px; padding: 9px 11px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13);
  color: var(--c-white); font-family: var(--ff-jp); font-size: 12px; line-height: 1.6; outline: none;
}
.admin-input:focus, .admin-textarea:focus { border-color: rgba(255,255,255,.35); }
.admin-textarea { min-height: 86px; resize: vertical; }
.admin-input::placeholder, .admin-textarea::placeholder { color: rgba(255,255,255,.28); }
.admin-input[type="datetime-local"], .admin-select { color-scheme: dark; }
.admin-select { cursor: pointer; }
.admin-select option { background: #131313; color: var(--c-white); }
.admin-row { display: flex; gap: 8px; }
.admin-row > * { flex: 1; }
.admin-check {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 12px; color: rgba(255,255,255,.75); cursor: pointer;
}
.admin-check input { width: 14px; height: 14px; accent-color: var(--c-cofo); }
.admin-newsrow {
  position: relative; margin-bottom: 14px; padding: 12px 12px 4px;
  border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.02);
}
.admin-del {
  position: absolute; top: 4px; right: 4px; z-index: 1; padding: 4px 8px;
  color: rgba(255,255,255,.35); font-size: 16px; line-height: 1;
}
.admin-del:hover { color: #e74c3c; }
.admin-add {
  width: 100%; padding: 10px;
  border: 1px dashed rgba(255,255,255,.15); color: rgba(255,255,255,.4);
  font-family: var(--ff-jp); font-size: 12px;
}
.admin-add:hover { border-color: rgba(255,255,255,.32); color: rgba(255,255,255,.65); }
/* 危険な設定（強制ステート） */
.admin-group.is-danger {
  padding: 14px 14px 6px; border: 1px solid rgba(231,76,60,.35); background: rgba(231,76,60,.04);
}
.admin-group.is-danger .admin-group__label { color: #e74c3c; letter-spacing: .18em; }
.admin-group.is-danger .admin-hint { color: rgba(255,255,255,.4); }

/* バックアップ */
.admin-backup__btns { display: flex; gap: 8px; margin-bottom: 14px; }
.admin-backup__btns .admin-add { width: auto; flex: 1; }
.admin-backup__msg { padding: 10px; font-size: 12px; color: rgba(255,255,255,.32); }
.admin-backup__msg.is-err { color: #e74c3c; }
.admin-backup__current {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 10px; padding: 10px 12px;
  background: rgba(126,198,176,.06); border-left: 2px solid var(--c-cofo);
  font-size: 12px; color: rgba(255,255,255,.72);
}
.admin-backup__cur-lbl {
  font-family: var(--ff-en); font-size: 9px; letter-spacing: .1em; color: var(--c-cofo);
}
.admin-backup__count {
  margin-bottom: 6px;
  font-family: var(--ff-en); font-size: 9px; letter-spacing: .1em; color: rgba(255,255,255,.3);
}
.admin-backup__item {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 6px; padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.02);
}
.admin-backup__meta { flex: 1; min-width: 170px; display: flex; flex-direction: column; gap: 2px; }
.admin-backup__meta span { font-size: 12px; color: rgba(255,255,255,.85); }
.admin-backup__meta small { font-size: 10px; color: rgba(255,255,255,.3); word-break: break-all; }
.admin-backup__pre { margin-left: 6px; font-size: 9px; font-style: normal; letter-spacing: .1em; color: #f5b400; }
.admin-backup__btn {
  padding: 5px 10px; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7);
  font-family: var(--ff-en); font-size: 9px; letter-spacing: .1em;
}
.admin-backup__btn:hover { border-color: rgba(255,255,255,.4); color: var(--c-white); }
.admin-backup__btn.is-warn { border-color: rgba(245,180,0,.4); color: #f5b400; }
.admin-backup__btn.is-warn:hover { border-color: #f5b400; }

.admin-foot {
  flex: none; display: flex; gap: 8px; padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.admin-foot button {
  flex: 1; padding: 12px; font-family: var(--ff-en); font-weight: 500;
  font-size: 10px; letter-spacing: .16em;
}
.admin-preview { background: rgba(255,255,255,.1); color: var(--c-white); }
.admin-preview:hover { background: rgba(255,255,255,.18); }
.admin-publish { background: var(--c-cofo); color: var(--c-black); }
.admin-publish:hover { background: #6bb6a0; }
.admin-toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 9999;
  transform: translateX(-50%) translateY(160%);
  padding: 12px 20px; background: var(--c-ink); border: 1px solid rgba(255,255,255,.14);
  font-family: var(--ff-jp); font-size: 12px; color: rgba(255,255,255,.85);
  transition: transform .3s var(--ease);
}
.admin-toast.is-show { transform: translateX(-50%) translateY(0); }
.admin-toast.is-ok  { border-color: rgba(126,198,176,.45); }
.admin-toast.is-err { border-color: rgba(231,76,60,.45); }

@media (max-width: 900px) {
  .admin-gear { top: 64px; right: 10px; }
  .admin-panel { width: 100vw; max-width: 100vw; }
}
