/**
 * MyCaseLabo - 一般ユーザー向けデザイン言語
 *
 * style.css（Knight テンプレート由来）の上に重ねる層。
 * すべて .theme-consumer 配下にスコープしているので、企業向けページ
 * （.theme-business）には一切効かない。読者が違うため意図的に分けている。
 *
 * 設計: sites/mycaselabo/docs/superpowers/specs/2026-07-30-consumer-site-renewal-design.md
 * 2026-10 の刷新（白いテラゾー・LINE Seed JP・明るいエメラルド）:
 *       sites/mycaselabo/docs/2026-10-09-design-renewal.md
 */

/*--------------------------------------------------------------
# トークン
--------------------------------------------------------------*/

.theme-consumer {
  /* エメラルドは役割で3つに分ける。1色に兼ねさせると、文字には薄すぎ、
     面には暗すぎる（2026-10-09 の刷新。ロゴ PNG の #3fad9e と同じ色相）
     - accent: 飾り・大きな面・印。白地で 2:1 しかないので文字には使わない
     - action: 白文字を載せるボタンなど。白で 3.5:1（大きな太字の基準 3:1 を満たす）
     - text:   エメラルドで書く文字・リンク。白で 5.1:1、淡い地でも 4.5:1 */
  --mcl-accent: #24c4a8;
  --mcl-action: #179a85;
  --mcl-action-hover: #128674;
  --mcl-action-shadow: #0e6c5d;
  --mcl-accent-text: #0f7c69;

  /* 旧名。既存の規則が使っているので役割に寄せて残す */
  --mcl-teal: var(--mcl-accent);
  --mcl-teal-deep: var(--mcl-accent-text);
  --mcl-teal-pale: #e2f7f2;

  /* 黄は「当日発送」などの強調だけに使う。coral は使わない
     （必須の印だけは警告の意味なので赤を残す） */
  --mcl-sun: #ffc93c;
  --mcl-danger: #d63c41;

  --mcl-ink: #19211f;
  --mcl-ink-soft: #545f5c;
  --mcl-paper: #ffffff;
  --mcl-cloud: #f2f1ec;
  --mcl-stone: #f5f4f0;

  --mcl-r-sm: 12px;
  --mcl-r-md: 18px;
  --mcl-r-lg: 28px;
  --mcl-r-pill: 999px;

  --mcl-shadow: 0 12px 30px -14px rgba(25, 33, 31, .35);
  --mcl-shadow-lift: 0 18px 38px -16px rgba(25, 33, 31, .42);

  /* キーボードで選んだ部品や、入力中の欄のまわりに出す輪（accent の 35%） */
  --mcl-focus-ring: 0 0 0 .25rem rgba(36, 196, 168, .35);

  /* ケースの影。1枚目がケースの厚み（側面）、2枚目が壁に落ちる影。光は左上から */
  --mcl-case-shadow: drop-shadow(1.5px 2.5px 0 rgba(20, 24, 23, .62)) drop-shadow(9px 16px 14px rgba(20, 24, 23, .38));

  /* Knight（style.css）の変数も一般向けだけ上書きする。リンク・.btn-primary・
     ヘッダーの文字などがこれで揃う。企業向けは :root の値のまま */
  --point-color: var(--mcl-accent-text);
  --text-color: var(--mcl-ink);

  font-family: "LINE Seed JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--mcl-ink);
}

/* 見出しの下の補足文。style.css の #aeaeae は白地で 2.3:1 しかなく、テラゾーの上では読めない */
.theme-consumer .section-title p {
  color: var(--mcl-ink-soft);
}

/* Bootstrap の灰色の角ボタン（「すべてのニュースを見る」「対応スマホ一覧」など）を、墨の線のピルにそろえる */
.theme-consumer .btn-outline-secondary {
  color: var(--mcl-ink);
  border-color: var(--mcl-ink);
  border-radius: var(--mcl-r-pill);
  padding-inline: 1.1em;
}

.theme-consumer .btn-outline-secondary:hover,
.theme-consumer .btn-outline-secondary:focus {
  color: var(--mcl-paper);
  background-color: var(--mcl-ink);
  border-color: var(--mcl-ink);
}

/* 見出しとボタンは字間を詰める（本文は詰めない。長文が読みにくくなるため） */
.theme-consumer h1,
.theme-consumer h2,
.theme-consumer h3,
.theme-consumer .btn-mcl,
.theme-consumer .btn-get-started,
.theme-consumer .navbar a {
  font-feature-settings: "palt" 1;
}

/* 白いテラゾーの面。ヒーローと使い方の帯などに敷く（画像は build/assets-terrazzo.mjs） */
.theme-consumer .mcl-terrazzo {
  background-color: var(--mcl-stone);
  background-image: url("../img/bg/terrazzo.webp");
  background-size: 512px 512px;
}

/*--------------------------------------------------------------
# セクション見出し
# 中央寄せ＋左右の装飾線をやめ、左寄せで大きく短く
--------------------------------------------------------------*/
.theme-consumer .section-title {
  text-align: left;
  padding-bottom: 0;
  margin-bottom: 1.75rem;
}

.theme-consumer .section-title h1,
.theme-consumer .section-title h2 {
  display: block;
  font-size: clamp(1.75rem, 5.5vw, 2.75rem);
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--mcl-ink);
  /* 新しい書体は字幅が広く、「これがMyCaseLabo で／す」のように1文字だけ落ちることがある */
  text-wrap: balance;
  padding: 0;
  margin: 0;
}

/* Knight の装飾線を止める */
.theme-consumer .section-title h1::before,
.theme-consumer .section-title h1::after,
.theme-consumer .section-title h2::before,
.theme-consumer .section-title h2::after {
  display: none;
}

/*--------------------------------------------------------------
# 日本語の折り返し
# 日本語はどの文字の間でも折り返すので、狭い画面では見出しが「ご注文ありが／とうございます」の
# ように語の途中で折れる。見出し・ボタンなどの短い文は、HTML の文節の切れ目に <wbr> を置く。
# <wbr> を置いた要素は、そこと句読点・空白でだけ折り返す（1つの文節が1行に入らないときだけ、その中で折る）。
# WebKit の keep-all には癖が2つある。開きかっこ「「（」の直後でも折るので、かっこで囲んだ語は
# <span class="text-nowrap"> で包む。PC だけの改行 <br class="d-none d-lg-block"> の直前では折らなくなるので、
# 読点の後に置いた br の前にも <wbr> を置く
--------------------------------------------------------------*/
:where(.theme-consumer, .theme-business) :has(> wbr) {
  word-break: keep-all;
  /* anywhere にすると、WebKit は均等に折る見出し（text-wrap: balance）で文節の途中を折り目に選ぶ */
  overflow-wrap: break-word;
}

/* 見出しのセル（th）と値（td）を横に並べた表は、スマホ幅では th の下に td を置く。
   th は text-nowrap で1行に保っているので、横に並べたままだと td が「商品到着後7／日以内にご／…」と
   数文字の幅に押しつぶされる。設置場所の表（.mcl-loc-table）は見出しが短く、並べたままで読めるので外す */
@media (max-width: 575.98px) {
  :where(.theme-consumer, .theme-business) .table:not(.mcl-loc-table):has(> tbody > tr > th + td) :is(tbody, tr, th, td) {
    display: block;
    width: auto;
  }

  :where(.theme-consumer, .theme-business) .table:not(.mcl-loc-table):has(> tbody > tr > th + td) th {
    border-bottom-width: 0;
    padding-bottom: 0;
  }
}

/* フッターのリンクは名前の途中で折らない */
#footer .privacy-policy a {
  white-space: nowrap;
}

.theme-consumer .section-title .section-caption,
.theme-consumer .section-caption {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mcl-ink);
  background: none;
  padding: 0;
  margin-bottom: .7rem;
}

.theme-consumer .section-caption::before {
  content: "";
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: var(--mcl-accent);
}

/* 見出しの直後に置くリード文 */
.theme-consumer .section-lead {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--mcl-ink-soft);
  max-width: 42rem;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# セクションの区切り
# 白／グレーの交互をやめ、色面で区切る
--------------------------------------------------------------*/
.theme-consumer .section-bg {
  background-color: var(--mcl-cloud);
}

.theme-consumer .mcl-band {
  background: var(--mcl-teal-pale);
}

.theme-consumer .mcl-band-ink {
  background: var(--mcl-ink);
  color: var(--mcl-paper);
}

.theme-consumer .mcl-band-ink .section-title h2,
.theme-consumer .mcl-band-ink .section-lead {
  color: var(--mcl-paper);
}

.theme-consumer .mcl-band-ink .section-caption {
  color: var(--mcl-sun);
  background: rgba(255, 255, 255, .12);
}

/* 色面を大きな角丸で切り出す */
.theme-consumer .mcl-round-band {
  border-radius: var(--mcl-r-lg);
  overflow: hidden;
}

/*--------------------------------------------------------------
# ボタン
--------------------------------------------------------------*/
.theme-consumer .btn-mcl,
.theme-consumer .btn-get-started {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--mcl-action);
  color: var(--mcl-paper);
  font-weight: 700;
  letter-spacing: .04em;
  padding: .9rem 1.9rem;
  border: 0;
  border-radius: var(--mcl-r-pill);
  /* 下にずらした影で「押せる」形にする。押すと影の分だけ沈む */
  box-shadow: 0 4px 0 var(--mcl-action-shadow);
  transition: transform .12s ease, box-shadow .12s ease, background-color .18s ease;
}

.theme-consumer .btn-mcl:hover,
.theme-consumer .btn-get-started:hover {
  background: var(--mcl-action-hover);
  color: var(--mcl-paper);
}

.theme-consumer .btn-mcl:active,
.theme-consumer .btn-get-started:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--mcl-action-shadow);
}

/* 主導線。以前は coral だったが、2026-10 の刷新で主ボタンと同じエメラルドにそろえた
   （クラス名は既存のマークアップが使っているので残す） */
.theme-consumer .btn-mcl-accent {
  background: var(--mcl-action);
}

.theme-consumer .btn-mcl-accent:hover {
  background: var(--mcl-action-hover);
}

/* 押せないとき（注文フォームの「注文を確定する」など）。押せるときと同じ緑と影のままだと、
   条件を満たしていないのに押せるように見える。処理中（aria-busy）は下の別の見た目にする。
   リンクのボタンは aria-disabled で同じ見た目にする（/design/ の停止中の「デザイン画面を開く」） */
.theme-consumer .btn-mcl:disabled:not([aria-busy="true"]),
.theme-consumer .btn-mcl:disabled:not([aria-busy="true"]):hover,
.theme-consumer .btn-mcl:disabled:not([aria-busy="true"]):active,
.theme-consumer a.btn-mcl[aria-disabled="true"],
.theme-consumer a.btn-mcl[aria-disabled="true"]:hover,
.theme-consumer a.btn-mcl[aria-disabled="true"]:active {
  background: #d9dcda;
  color: var(--mcl-ink-soft);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
  opacity: 1;
}

.theme-consumer .btn-mcl-ghost {
  background: rgba(255, 255, 255, .8);
  color: var(--mcl-ink);
  box-shadow: inset 0 0 0 1.5px var(--mcl-ink);
  border: 0;
}

.theme-consumer .btn-mcl-ghost:hover {
  background: var(--mcl-paper);
  color: var(--mcl-ink);
}

.theme-consumer .btn-mcl-ghost:active {
  transform: translateY(1px);
  box-shadow: inset 0 0 0 1.5px var(--mcl-ink);
}

/* Knight の .btn-primary（設置場所を探すの「現在地から探す」など） */
.theme-consumer .btn-primary,
.theme-consumer .btn.btn-primary {
  background-color: var(--mcl-action);
  border-color: var(--mcl-action);
}

.theme-consumer .btn-primary:hover,
.theme-consumer .btn.btn-primary:hover {
  background-color: var(--mcl-action-hover);
  border-color: var(--mcl-action-hover);
}

/* 文字のリンクだけに効かせる。Knight の a:hover と同じ強さにして、ボタンなど部品側の
   :hover の文字色（白など）には勝たないようにする（.theme-consumer a:hover だと
   a.btn-primary の文字が地と同じ色になって消えていた） */
:where(.theme-consumer) a:hover {
  color: var(--mcl-action-hover);
}

/*--------------------------------------------------------------
# Bootstrap の部品の色
--------------------------------------------------------------*/
/* Bootstrap 5.0 の部品は青（#0d6efd）を直に書いていて、変数で差し替えられない。
   一般向けで使っている部品を1つずつエメラルドに塗り直す */

/* 設置場所の詳細の「この設置場所のページを見る」「この場所の周辺を探す」 */
.theme-consumer .btn-outline-primary {
  color: var(--mcl-accent-text);
  border-color: var(--mcl-action);
}

.theme-consumer .btn-outline-primary:hover,
.theme-consumer .btn-outline-primary:active,
.theme-consumer .btn-outline-primary.active {
  color: var(--mcl-paper);
  background-color: var(--mcl-action);
  border-color: var(--mcl-action);
}

.theme-consumer .btn-outline-secondary:active {
  color: var(--mcl-paper);
  background-color: var(--mcl-ink);
  border-color: var(--mcl-ink);
}

.theme-consumer .btn:focus,
.theme-consumer .btn-outline-primary:focus,
.theme-consumer .btn-close:focus {
  box-shadow: var(--mcl-focus-ring);
}

.theme-consumer .form-control:focus,
.theme-consumer .form-select:focus,
.theme-consumer .form-check-input:focus {
  border-color: var(--mcl-accent);
  box-shadow: var(--mcl-focus-ring);
}

.theme-consumer .form-check-input:checked {
  background-color: var(--mcl-action);
  border-color: var(--mcl-action);
}

/* 開いた質問（.mcl-accordion 以外の、受注ページの FAQ など）と、その矢印 */
.theme-consumer .accordion-button:not(.collapsed) {
  color: var(--mcl-accent-text);
  background-color: var(--mcl-teal-pale);
}

.theme-consumer .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230f7c69'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.theme-consumer .accordion-button:focus {
  border-color: var(--mcl-accent);
  box-shadow: var(--mcl-focus-ring);
}

/* 読み込み中の輪や「設置フロア・詳細」の印。Bootstrap の水色をやめる */
.theme-consumer .text-info {
  color: var(--mcl-accent-text) !important;
}

/* 「まだ完了していません」「在庫は設置場所ごとに異なります」などの案内 */
.theme-consumer .alert-info {
  color: var(--mcl-ink);
  background-color: var(--mcl-teal-pale);
  border-color: rgba(15, 124, 105, .2);
}

.theme-consumer .alert-info .alert-link {
  color: var(--mcl-accent-text);
}

/* Knight が直に書いている古いティール（#3a8379・rgba(69, 155, 144)）の残り */
.theme-consumer .back-to-top:hover {
  background: var(--mcl-action-shadow);
}

.theme-consumer .contact .php-email-form input:focus,
.theme-consumer .contact .php-email-form select:focus,
.theme-consumer .contact .php-email-form textarea:focus {
  box-shadow: var(--mcl-focus-ring);
}

.theme-consumer .contact .php-email-form button[type="submit"]:hover {
  background: var(--mcl-action-shadow);
}

/*--------------------------------------------------------------
# カード
--------------------------------------------------------------*/
.theme-consumer .mcl-card {
  background: var(--mcl-paper);
  border: 0;
  border-radius: var(--mcl-r-md);
  box-shadow: var(--mcl-shadow);
  overflow: hidden;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}

.theme-consumer a.mcl-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--mcl-shadow-lift);
}

/* Knight のアイコンボックスの枠線を外す */
.theme-consumer .icon-box {
  border: 0;
  border-radius: var(--mcl-r-md);
  background: var(--mcl-paper);
  box-shadow: var(--mcl-shadow);
}

/*--------------------------------------------------------------
# 番号付きステップ
--------------------------------------------------------------*/
.theme-consumer .mcl-step {
  position: relative;
  padding-top: 1.25rem;
}

.theme-consumer .mcl-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--mcl-r-pill);
  background: var(--mcl-action);
  color: var(--mcl-paper);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: .75rem;
}

.theme-consumer .mcl-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mcl-ink);
}

/*--------------------------------------------------------------
# 画像
--------------------------------------------------------------*/
.theme-consumer .mcl-media {
  border-radius: var(--mcl-r-md);
  overflow: hidden;
}

.theme-consumer .mcl-media-lg {
  border-radius: var(--mcl-r-lg);
  overflow: hidden;
}

/*--------------------------------------------------------------
# 動きの抑制
# 「動かさない場所も作る」。OS側の設定も尊重する
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  .theme-consumer *,
  .theme-consumer *::before,
  .theme-consumer *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/*--------------------------------------------------------------
# ヒーロー（2026-10 の刷新）
# 白いテラゾーの壁に、自販機から飛び出したケースが貼られていく（assets/js/hero-collage.js）。
# 重なり順: 貼られたケース(1) < 自販機(2) < 飛んでいるケース(4) < 見出し・CTA(5)
--------------------------------------------------------------*/
/* style.css の #hero（100vh・暗いグラデーション・背景固定）を一般向けだけ置き換える */
.theme-consumer #hero {
  height: auto;
  min-height: clamp(640px, 100svh, 920px);
  background: var(--mcl-stone) url("../img/bg/terrazzo.webp") 0 0 / 512px 512px;
  background-attachment: scroll;
  isolation: isolate;
}

/* 左上から光が当たっている壁に見せる */
.theme-consumer #hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 70% at 18% 10%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 70%),
    radial-gradient(70% 70% at 100% 100%, rgba(40, 36, 30, .07), rgba(40, 36, 30, 0) 70%);
}

.theme-consumer .mcl-hero-field,
.theme-consumer .mcl-hero-fly {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.theme-consumer .mcl-hero-field { z-index: 1; }
.theme-consumer .mcl-hero-fly { z-index: 4; }

/* 外側は位置と影だけ（回さないので、どの傾きでも影の向きがそろう）。内側を回す */
.theme-consumer .mcl-pop {
  position: absolute;
  margin: 0;
  translate: -50% -50%;
  filter: var(--mcl-case-shadow);
}

.theme-consumer .mcl-pop-in {
  position: relative;
  will-change: transform;
}

.theme-consumer .mcl-pop img {
  display: block;
  width: 100%;
  height: auto;
}

/* JS が動く前から置いておく4枚の位置と傾き */
.theme-consumer .mcl-pop.is-seed { width: clamp(96px, 12vw, 190px); }
.theme-consumer .mcl-pop.is-seed-1 { left: 9%;  top: 88%; }
.theme-consumer .mcl-pop.is-seed-2 { left: 52%; top: 92%; }
.theme-consumer .mcl-pop.is-seed-3 { left: 94%; top: 22%; }
.theme-consumer .mcl-pop.is-seed-4 { left: 92%; top: 84%; }
.theme-consumer .mcl-pop.is-seed-1 .mcl-pop-in { transform: rotate(-24deg); }
.theme-consumer .mcl-pop.is-seed-2 .mcl-pop-in { transform: rotate(18deg); }
.theme-consumer .mcl-pop.is-seed-3 .mcl-pop-in { transform: rotate(28deg); }
.theme-consumer .mcl-pop.is-seed-4 .mcl-pop-in { transform: rotate(-16deg); }

/* カテゴリの札（ヒーローのケースとギャラリーで共用） */
.theme-consumer .mcl-tag {
  position: absolute;
  left: 50%;
  bottom: 12%;
  translate: -50% 0;
  rotate: -4deg;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .2em .75em;
  font-size: clamp(.62rem, .9vw, .76rem);
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--mcl-ink);
  background: var(--mcl-paper);
  border-radius: var(--mcl-r-pill);
}

.theme-consumer .mcl-tag::before {
  content: "";
  width: .5em;
  height: .5em;
  border-radius: 50%;
  background: var(--mcl-accent);
}

.theme-consumer .mcl-hero-inner {
  position: relative;
  width: min(1320px, 100% - 32px);
  margin-inline: auto;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 2rem;
  /* ヘッダー（70px）がヒーローに重なって乗る分を空ける */
  padding-block: calc(70px + 2rem) 5.5rem;
  pointer-events: none;
}

.theme-consumer .mcl-hero-inner a,
.theme-consumer .mcl-hero-inner button {
  pointer-events: auto;
}

/* 横並びになる幅では左右の余白を画面幅に応じて広げる（1100px 前後で文字が左端に寄って見えないように）。
   1320px の上限に当たる広さでは従来と同じ */
@media (min-width: 992px) {
  .theme-consumer .mcl-hero-inner {
    width: min(1320px, 100% - 2 * clamp(16px, 4.5vw, 56px));
  }
}

.theme-consumer .mcl-hero-copy {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.theme-consumer .mcl-hero-copy > * {
  position: relative;
  z-index: 5;
  margin: 0;
}

/* ヒーローの文字には白縁をつける（テラゾーの石やケースの上でも読めるように） */
.theme-consumer .mcl-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-shadow: 2.2px 0 0 #fff, 1.9px 1.1px 0 #fff, 1.1px 1.9px 0 #fff, 0 2.2px 0 #fff, -1.1px 1.9px 0 #fff, -1.9px 1.1px 0 #fff, -2.2px 0 0 #fff, -1.9px -1.1px 0 #fff, -1.1px -1.9px 0 #fff, 0 -2.2px 0 #fff, 1.1px -1.9px 0 #fff, 1.9px -1.1px 0 #fff;
}

.theme-consumer .mcl-hero-kicker::before {
  content: "";
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: var(--mcl-accent);
}

/* style.css の #hero h1（1.3rem）より強く指定する */
.theme-consumer #hero .mcl-hero-title {
  width: fit-content;
  font-size: clamp(2.1rem, 3.4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .03em;
  color: var(--mcl-ink);
  text-shadow: 0.075em 0em 0 #fff, 0.069em 0.029em 0 #fff, 0.053em 0.053em 0 #fff, 0.029em 0.069em 0 #fff, 0em 0.075em 0 #fff, -0.029em 0.069em 0 #fff, -0.053em 0.053em 0 #fff, -0.069em 0.029em 0 #fff, -0.075em 0em 0 #fff, -0.069em -0.029em 0 #fff, -0.053em -0.053em 0 #fff, -0.029em -0.069em 0 #fff, 0em -0.075em 0 #fff, 0.029em -0.069em 0 #fff, 0.053em -0.053em 0 #fff, 0.069em -0.029em 0 #fff;
}

.theme-consumer .mcl-hero-title > span { display: block; }

/* 「3分」はエメラルドで大きく。明るい色だが十分に大きいので読める */
.theme-consumer .mcl-hero-title em {
  font-style: normal;
  color: var(--mcl-accent);
  font-size: 1.32em;
  line-height: 1;
  letter-spacing: 0;
  margin-right: .04em;
}

.theme-consumer .mcl-br-sp { display: none; }

.theme-consumer .mcl-hero-lead,
.theme-consumer .mcl-hero-sub a {
  text-shadow: 2.2px 0 0 #fff, 1.9px 1.1px 0 #fff, 1.1px 1.9px 0 #fff, 0 2.2px 0 #fff, -1.1px 1.9px 0 #fff, -1.9px 1.1px 0 #fff, -2.2px 0 0 #fff, -1.9px -1.1px 0 #fff, -1.1px -1.9px 0 #fff, 0 -2.2px 0 #fff, 1.1px -1.9px 0 #fff, 1.9px -1.1px 0 #fff;
}

.theme-consumer .mcl-hero-lead {
  max-width: 28em;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.9;
  color: var(--mcl-ink);
}

.theme-consumer .mcl-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  padding: 0;
}

.theme-consumer .mcl-hero-facts li {
  padding: .3em .95em;
  font-size: .84rem;
  font-weight: 700;
  color: var(--mcl-ink);
  background: rgba(255, 255, 255, .8);
  border-radius: var(--mcl-r-pill);
  font-variant-numeric: tabular-nums;
}

.theme-consumer .mcl-hero-facts li.is-price {
  background: var(--mcl-ink);
  color: var(--mcl-paper);
}

.theme-consumer .mcl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem 1rem;
}

.theme-consumer .mcl-hero-sub a {
  font-size: .88rem;
  font-weight: 700;
  color: var(--mcl-ink);
  text-decoration: underline;
  text-decoration-color: var(--mcl-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.theme-consumer .mcl-hero-machine {
  position: relative;
  z-index: 2;
  justify-self: center;
  height: min(76svh, 720px);
  aspect-ratio: 720 / 1100;
  max-width: 100%;
}

.theme-consumer .mcl-hero-machine-btn {
  all: unset;
  display: block;
  height: 100%;
  cursor: pointer;
}

.theme-consumer .mcl-hero-machine-btn:focus-visible {
  outline: 3px solid var(--mcl-ink);
  outline-offset: 6px;
  border-radius: 12px;
}

.theme-consumer .mcl-hero-machine-btn img {
  height: 100%;
  width: auto;
  filter: drop-shadow(18px 26px 22px rgba(20, 24, 23, .32));
}

.theme-consumer .mcl-hero-bubble {
  position: absolute;
  z-index: 6;
  left: -4%;
  top: 11%;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  margin: 0;
  padding: .55em 1.05em;
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--mcl-paper);
  border-radius: var(--mcl-r-pill);
  box-shadow: var(--mcl-shadow);
  rotate: -5deg;
  pointer-events: none;
  animation: mcl-bob 2.6s ease-in-out infinite;
}

.theme-consumer .mcl-hero-bubble::before {
  content: "";
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: var(--mcl-accent);
}

.theme-consumer .mcl-hero-bubble::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: var(--mcl-paper);
  transform: rotate(45deg);
  border-radius: 0 0 3px 0;
}

@keyframes mcl-bob { 50% { translate: 0 -6px; } }

.theme-consumer .mcl-hero-burst {
  position: absolute;
  z-index: 4;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 3px solid var(--mcl-accent);
  pointer-events: none;
}

/* ヒーローとギャラリーの境目を横切る帯 */
.theme-consumer .mcl-hero-band-wrap {
  position: relative;
  z-index: 6;
  height: 0;
}

/* 傾けた帯の端が画面の横にはみ出さないよう、高さのある箱で切り取る */
.theme-consumer .mcl-hero-band-clip {
  position: absolute;
  left: 0;
  right: 0;
  top: -78px;
  height: 120px;
  overflow: hidden;
  pointer-events: none;
}

.theme-consumer .mcl-hero-band {
  position: absolute;
  left: -5%;
  width: 110%;
  top: 38px;
  rotate: -2deg;
  overflow: hidden;
  white-space: nowrap;
  background: var(--mcl-ink);
  color: var(--mcl-paper);
}

.theme-consumer .mcl-hero-band-track {
  display: inline-flex;
  animation: mcl-marquee 46s linear infinite;
}

.theme-consumer .mcl-hero-band-track span {
  padding: .75rem 0;
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  font-weight: 700;
  letter-spacing: .08em;
}

.theme-consumer .mcl-hero-band-track i {
  font-style: normal;
  padding-inline: 1.3em;
  color: var(--mcl-accent);
}

@keyframes mcl-marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .theme-consumer .mcl-hero-band-track,
  .theme-consumer .mcl-hero-bubble {
    animation: none;
  }
}

/* スマホ・タブレット: 見出し → 自販機 → CTA → ファクト → サブキャッチ の順に積む */
@media (max-width: 991.98px) {
  .theme-consumer #hero { min-height: auto; }
  .theme-consumer .mcl-hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    /* ヘッダーはこの幅で 50px */
    padding-block: calc(50px + 1.6rem) 5.5rem;
  }
  .theme-consumer .mcl-hero-copy { display: contents; }
  .theme-consumer .mcl-hero-kicker { order: 1; margin-bottom: .7rem; justify-self: start; }
  .theme-consumer #hero .mcl-hero-title { order: 2; font-size: clamp(1.95rem, 9.4vw, 2.6rem); line-height: 1.32; }
  .theme-consumer .mcl-br-sp { display: inline; }
  .theme-consumer .mcl-hero-machine { order: 3; height: min(40svh, 330px); margin-block: 1.1rem 1.3rem; }
  .theme-consumer .mcl-hero-actions { order: 4; display: grid; grid-template-columns: 1fr; width: 100%; gap: .8rem; }
  .theme-consumer .mcl-hero-sub { order: 5; margin-top: 1rem; justify-self: start; }
  .theme-consumer .mcl-hero-facts { order: 6; margin-top: 1.1rem; }
  .theme-consumer .mcl-hero-lead { order: 7; margin-top: 1rem; font-size: .94rem; }
  .theme-consumer .mcl-hero-bubble { left: auto; right: -16%; top: 4%; font-size: .76rem; rotate: 5deg; }
  .theme-consumer .mcl-hero-bubble::after { right: auto; left: 24px; }
}

/*--------------------------------------------------------------
# 作例ギャラリー（2026-10 の刷新）
# 一覧は src/data/gallery.json からビルドで並べる。絞り込みと「もっと見る」は
# assets/js/top-gallery.js（最初に見せる枚数は、下の列数でちょうど埋まる段数）
--------------------------------------------------------------*/
.theme-consumer .mcl-gallery {
  padding: 6.5rem 0 4.5rem;
}

.theme-consumer .mcl-gallery-price {
  margin: 1rem 0 0;
}

.theme-consumer .mcl-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.5rem 0 2.25rem;
}

.theme-consumer .mcl-gallery-filters button {
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--mcl-ink);
  padding: .75em 1.2em;
  border: 0;
  border-radius: var(--mcl-r-pill);
  background: var(--mcl-cloud);
  cursor: pointer;
  transition: background-color .15s ease;
}

.theme-consumer .mcl-gallery-filters button:hover {
  background: var(--mcl-teal-pale);
}

.theme-consumer .mcl-gallery-filters button[aria-pressed="true"] {
  background: var(--mcl-ink);
  color: var(--mcl-paper);
}

/* ケースは縦横比2.0と縦長。列を多めにして「一覧できる」密度にする */
.theme-consumer .mcl-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem .9rem;
}

@media (min-width: 561px) {
  .theme-consumer .mcl-gallery-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.6rem 1.1rem; }
}

@media (min-width: 1001px) {
  .theme-consumer .mcl-gallery-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2rem 1.6rem; }
}

/* 少しずつ傾けて、棚に並べたように見せる */
.theme-consumer .mcl-gallery-item {
  position: relative;
  margin: 0;
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1);
}

.theme-consumer .mcl-gallery-item:nth-child(4n+1) { rotate: -3deg; }
.theme-consumer .mcl-gallery-item:nth-child(4n+2) { rotate: 2.5deg; translate: 0 10px; }
.theme-consumer .mcl-gallery-item:nth-child(4n+3) { rotate: -1.5deg; }
.theme-consumer .mcl-gallery-item:nth-child(4n+4) { rotate: 3deg; translate: 0 6px; }

.theme-consumer .mcl-gallery-item:hover {
  transform: translateY(-8px) scale(1.05);
  z-index: 2;
}

/* ケースを押すと拡大表示が開く（ボタンの見た目は消して、ケースだけを見せる）。
   カテゴリの札をケースの上に重ねる土台も兼ねる。札の位置はケースの高さに対して決める（下の機種名を含めない） */
.theme-consumer .mcl-gallery-case {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--mcl-r-md);
  background: none;
  color: inherit;
  cursor: zoom-in;
}

.theme-consumer .mcl-gallery-case:focus {
  outline: 0;
}

.theme-consumer .mcl-gallery-case:focus-visible {
  box-shadow: var(--mcl-focus-ring);
}

.theme-consumer .mcl-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  filter: var(--mcl-case-shadow);
}

.theme-consumer .mcl-gallery-item .mcl-tag {
  bottom: 9%;
}

/* ケースの機種名。作例ごとに機種を散らしているので、どの機種のケースかを添える */
.theme-consumer .mcl-gallery-model {
  margin-top: .6rem;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
  text-align: center;
  color: var(--mcl-ink-soft);
  container-type: inline-size;
}

/* 「iPhone 17 Pro Max」は幅122px。カードがそれより狭いと2行に折り返すので略称に替える
   （コンテナクエリの無い古い Safari では折り返したまま） */
.theme-consumer .mcl-model-short { display: none; }

@container (max-width: 130px) {
  .theme-consumer .mcl-model-long { display: none; }
  .theme-consumer .mcl-model-short { display: inline; }
}

.theme-consumer .mcl-gallery-item.is-more {
  display: none;
}

.theme-consumer .mcl-gallery-item.is-in {
  animation: mcl-pop-in .4s cubic-bezier(.3, 1.5, .5, 1);
}

@keyframes mcl-pop-in { from { scale: .7; opacity: 0; } }

/* 機種で見る。絞り込みのすぐ下に置く。iOS は 16px 未満の select を選ぶと画面を拡大するので、文字は 1rem */
.theme-consumer .mcl-gallery-model-select {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: -1.25rem 0 2.25rem;
  font-size: .88rem;
  font-weight: 700;
}

.theme-consumer .mcl-gallery-model-select[hidden] {
  display: none;
}

.theme-consumer .mcl-gallery-model-select label {
  margin: 0;
}

.theme-consumer .mcl-gallery-model-select select {
  font: inherit;
  font-size: 1rem;
  color: var(--mcl-ink);
  padding: .45em 2.4em .45em 1em;
  border: 2px solid var(--mcl-ink);
  border-radius: var(--mcl-r-pill);
  background: var(--mcl-paper) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2319211f' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right .9em center / 12px 12px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.theme-consumer .mcl-gallery-model-select select:hover {
  background-color: var(--mcl-teal-pale);
}

.theme-consumer .mcl-gallery-model-select select:focus {
  outline: 0;
  box-shadow: var(--mcl-focus-ring);
}

.theme-consumer .mcl-gallery-more {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

.theme-consumer .mcl-gallery-more[hidden] {
  display: none;
}

.theme-consumer .mcl-gallery-note {
  margin: 1.75rem 0 0;
  font-size: .8rem;
  color: var(--mcl-ink-soft);
}

.theme-consumer .mcl-gallery-note a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--mcl-accent);
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  /* 絞り込みは横に流す（折り返すとボタンだけで画面が埋まる） */
  .theme-consumer .mcl-gallery-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -12px;
    padding: 0 12px .5rem;
    scrollbar-width: none;
  }
  .theme-consumer .mcl-gallery-filters button { flex: none; }
}

/*--------------------------------------------------------------
# 作例の拡大表示（#galleryModal）。ギャラリーのケースを押すと開き、
# 機種のボタンで切り替える（assets/js/top-gallery.js）
--------------------------------------------------------------*/
.theme-consumer .mcl-gallery-modal .modal-dialog {
  max-width: 420px;
}

.theme-consumer .mcl-gallery-modal .modal-content {
  border: 0;
  border-radius: var(--mcl-r-lg);
  background: var(--mcl-stone);
  box-shadow: var(--mcl-shadow-lift);
}

.theme-consumer .mcl-gallery-modal .modal-header {
  align-items: flex-start;
  padding: 1.1rem 1.25rem .25rem;
  border-bottom: 0;
}

.theme-consumer .mcl-gallery-modal .modal-title {
  margin: 0;
  color: var(--mcl-ink);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.5;
}

.theme-consumer .mcl-gallery-modal .modal-body {
  padding: .75rem 1.25rem 1.5rem;
  text-align: center;
}

/* ケースは縦長（縦横比2.0）。低い画面では機種のボタンまで見えるよう、画面の高さでも幅を抑える */
.theme-consumer .mcl-gallery-modal-case {
  position: relative;
  width: min(250px, 60vw);
  margin: 0 auto;
}

@supports (height: 100svh) {
  .theme-consumer .mcl-gallery-modal-case { width: min(250px, 60vw, calc((100svh - 300px) / 2)); }
}

.theme-consumer .mcl-gallery-modal-case img {
  display: block;
  width: 100%;
  height: auto;
  filter: var(--mcl-case-shadow);
  transition: opacity .15s ease;
}

.theme-consumer .mcl-gallery-modal.is-loading .mcl-gallery-modal-case img {
  opacity: .55;
}

.theme-consumer .mcl-gallery-modal-case .mcl-tag {
  bottom: 9%;
}

.theme-consumer .mcl-gallery-modal-label {
  margin: 1.4rem 0 .6rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--mcl-ink-soft);
}

.theme-consumer .mcl-gallery-modal-models {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
}

.theme-consumer .mcl-gallery-modal-models button {
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  color: var(--mcl-ink);
  padding: .55em 1em;
  border: 0;
  border-radius: var(--mcl-r-pill);
  background: var(--mcl-paper);
  cursor: pointer;
  transition: background-color .15s ease;
}

.theme-consumer .mcl-gallery-modal-models button:hover {
  background: var(--mcl-teal-pale);
}

.theme-consumer .mcl-gallery-modal-models button[aria-pressed="true"] {
  background: var(--mcl-ink);
  color: var(--mcl-paper);
}

.theme-consumer .mcl-gallery-modal-models button[hidden] {
  display: none;
}

.theme-consumer .mcl-gallery-modal-models button:focus {
  outline: 0;
}

.theme-consumer .mcl-gallery-modal-models button:focus-visible {
  box-shadow: var(--mcl-focus-ring);
}

/*--------------------------------------------------------------
# 使い方（テラゾーの帯）とアップロードできない画像の注意
--------------------------------------------------------------*/
.theme-consumer .how-to-use {
  position: relative;
  color: var(--mcl-ink);
}

.theme-consumer .step-box {
  border-radius: var(--mcl-r-md);
  box-shadow: var(--mcl-shadow);
}

.theme-consumer .step-number {
  background: var(--mcl-action);
  font-size: .78rem;
  letter-spacing: .06em;
  padding: .35em .9em;
  border-radius: var(--mcl-r-pill);
}

.theme-consumer .step-box h3 {
  color: var(--mcl-ink);
  font-size: 1.1rem;
}

/* 文言は変えず、赤い警告の枠から柔らかい枠にする（読まれる場所なので怖く見せない） */
.theme-consumer .mcl-upload-rules {
  background: var(--mcl-paper);
  color: var(--mcl-ink);
  border: 0;
  border-left: 4px solid var(--mcl-sun);
  border-radius: var(--mcl-r-md);
  box-shadow: var(--mcl-shadow);
  max-width: 52rem;
  /* 作例の下の「アップロードできない画像について」から飛んだとき、箱の上端がヘッダーに隠れないよう手前で止める（main.js の scrollto） */
  scroll-margin-top: 32px;
}

/*--------------------------------------------------------------
# 設置場所（トップの見出しをエメラルドの帯にする）
# 検索・リスト・地図（location-finder）は /location/ と共用なので白い面のまま
--------------------------------------------------------------*/
.theme-consumer #location .mcl-loc-band {
  margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5) 2rem;
  padding: 4.5rem 1.25rem 2.25rem;
  text-align: center;
  background: var(--mcl-accent);
  color: var(--mcl-paper);
}

.theme-consumer #location .mcl-loc-band h2 {
  color: var(--mcl-paper);
}

.theme-consumer #location .mcl-loc-band .section-caption {
  color: var(--mcl-paper);
}

.theme-consumer #location .mcl-loc-band .section-caption::before {
  background: var(--mcl-paper);
}

.theme-consumer #location .mcl-loc-band .text-muted {
  color: var(--mcl-paper) !important;
}

/*--------------------------------------------------------------
# 対応機種の要約
--------------------------------------------------------------*/
.theme-consumer .mcl-models {
  padding: 4rem 0;
}

.theme-consumer .mcl-models-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.theme-consumer .mcl-badge {
  font-size: .9rem;
  font-weight: 700;
  color: var(--mcl-teal-deep);
  background: var(--mcl-paper);
  border: 2px solid var(--mcl-teal-pale);
  border-radius: var(--mcl-r-pill);
  padding: .45rem 1.1rem;
}

/*--------------------------------------------------------------
# 自販機の紹介
--------------------------------------------------------------*/
.theme-consumer .mcl-machine {
  padding: 4rem 0;
}

.theme-consumer .mcl-machine-figure img {
  border-radius: var(--mcl-r-lg);
  box-shadow: var(--mcl-shadow);
  background: var(--mcl-paper);
}

.theme-consumer .mcl-machine-points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.theme-consumer .mcl-machine-points li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .85rem;
  color: var(--mcl-ink-soft);
  line-height: 1.7;
}

.theme-consumer .mcl-machine-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: var(--mcl-r-pill);
  background: var(--mcl-teal);
}

.theme-consumer .mcl-machine-points strong {
  display: block;
  color: var(--mcl-ink);
  font-weight: 700;
}

/*--------------------------------------------------------------
# FAQ
--------------------------------------------------------------*/
.theme-consumer .mcl-faq {
  padding: 4rem 0;
}

.theme-consumer .mcl-accordion .accordion-item {
  border: 0;
  border-radius: var(--mcl-r-md) !important;
  margin-bottom: .75rem;
  box-shadow: var(--mcl-shadow);
  overflow: hidden;
}

.theme-consumer .mcl-accordion .accordion-button {
  font-weight: 700;
  color: var(--mcl-ink);
  padding: 1.1rem 1.25rem;
}

.theme-consumer .mcl-accordion .accordion-button:not(.collapsed) {
  background: var(--mcl-teal-pale);
  color: var(--mcl-teal-deep);
  box-shadow: none;
}

.theme-consumer .mcl-accordion .accordion-button:focus {
  box-shadow: 0 0 0 .2rem rgba(36, 196, 168, .35);
}

.theme-consumer .mcl-accordion .accordion-body {
  color: var(--mcl-ink-soft);
  line-height: 1.8;
}

/*==============================================================
# 企業向け（.theme-business）
#
# 一般向けと同じ土台（見出し・ボタン・カード・角丸）を使うが、
# ポップな要素（黄色のバッジ、コーラルのCTA、大きな写真）は使わない。
# 読者が施設の意思決定者であり、判断材料を落ち着いて読める方が
# 目的に合うため。
==============================================================*/
.theme-business {
  --mcl-teal: #3fad9e;
  --mcl-teal-deep: #2f8578;
  --mcl-teal-pale: #eef5f4;
  --mcl-ink: #1d2b2a;
  --mcl-ink-soft: #5b6b69;
  --mcl-paper: #ffffff;
  --mcl-cloud: #f6f8f8;
  --mcl-r-sm: 10px;
  --mcl-r-md: 16px;
  --mcl-r-pill: 999px;
  --mcl-shadow: 0 6px 18px rgba(29, 43, 42, .08);
  --mcl-shadow-lift: 0 10px 26px rgba(29, 43, 42, .13);
}

/* 見出し: 一般向けと同じく装飾線をやめ、左寄せにする。
   ただしサイズは控えめにする */
.theme-business .section-title {
  text-align: left;
  padding-bottom: 0;
  margin-bottom: 1.5rem;
}

.theme-business .section-title h1,
.theme-business .section-title h2 {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--mcl-ink);
  padding: 0;
  margin: 0;
}

.theme-business .section-title h1::before,
.theme-business .section-title h1::after,
.theme-business .section-title h2::before,
.theme-business .section-title h2::after {
  display: none;
}

.theme-business .section-title .section-caption {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mcl-teal-deep);
  background: var(--mcl-teal-pale);
  border-radius: var(--mcl-r-pill);
  padding: .2rem .8rem;
  margin-bottom: .55rem;
}

.theme-business .section-lead {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--mcl-ink-soft);
  max-width: 44rem;
}

.theme-business .section-bg {
  background-color: var(--mcl-cloud);
}

/* ボタン: ピル型と影は共通。色はティールのみ（コーラルは使わない） */
.theme-business .btn-mcl,
.theme-business .btn-get-started {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--mcl-teal);
  color: var(--mcl-paper);
  font-weight: 700;
  padding: .8rem 1.7rem;
  border: 0;
  border-radius: var(--mcl-r-pill);
  box-shadow: var(--mcl-shadow);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.theme-business .btn-mcl:hover,
.theme-business .btn-get-started:hover {
  background: var(--mcl-teal-deep);
  color: var(--mcl-paper);
  transform: translateY(-2px);
  box-shadow: var(--mcl-shadow-lift);
}

.theme-business .btn-mcl-ghost {
  background: transparent;
  color: var(--mcl-ink);
  box-shadow: none;
  border: 2px solid rgba(29, 43, 42, .15);
}

.theme-business .btn-mcl-ghost:hover {
  background: rgba(29, 43, 42, .04);
  color: var(--mcl-ink);
  border-color: rgba(29, 43, 42, .28);
}

/* カード・アイコンボックスの枠線を外し、影で持ち上げる */
.theme-business .icon-box,
.theme-business .partnership-box {
  border: 0;
  border-radius: var(--mcl-r-md);
  background: var(--mcl-paper);
  box-shadow: var(--mcl-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.theme-business a.icon-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--mcl-shadow-lift);
  text-decoration: none;
}

.theme-business .partnership-icon {
  color: var(--mcl-teal);
}

/* 表: 設置条件や費用の表が読みやすいことが重要 */
.theme-business .table > :not(caption) > * > * {
  padding: .85rem .9rem;
}

.theme-business .table th {
  color: var(--mcl-ink);
  font-weight: 700;
  background: var(--mcl-cloud);
  width: 34%;
}

/* 列の見出し（thead）まで 34% にすると、下の列が狭まって「ショッピングセン／ター」と折れる */
.theme-business .table thead th {
  width: auto;
}

.theme-business .table td {
  color: var(--mcl-ink-soft);
}

/* アコーディオン（法人向けFAQ） */
.theme-business .accordion-item {
  border: 0;
  border-radius: var(--mcl-r-md) !important;
  margin-bottom: .7rem;
  box-shadow: var(--mcl-shadow);
  overflow: hidden;
}

.theme-business .accordion-button {
  font-weight: 700;
  color: var(--mcl-ink);
}

.theme-business .accordion-button:not(.collapsed) {
  background: var(--mcl-teal-pale);
  color: var(--mcl-teal-deep);
  box-shadow: none;
}

/* パンくず */
.theme-business .breadcrumb,
.theme-consumer .breadcrumb {
  padding: 1.25rem 0 .25rem;
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .theme-business *,
  .theme-business *::before,
  .theme-business *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* 吹き出し: 見出しが左寄せになったため、Knight の
   絶対配置（top-image-position）だと見出しに重なる。
   通常フローに戻して見出しの下に置く */
.theme-business .top-image-position,
.theme-consumer .top-image-position {
  position: static;
  margin: 0 0 2rem;
}

.theme-business .balloon-top,
.theme-consumer .balloon-top {
  display: inline-block;
  margin: 0;
}

/*--------------------------------------------------------------
# 企業向け: 数字で示すサマリ
--------------------------------------------------------------*/
.theme-business .mcl-stat {
  background: var(--mcl-paper);
  border-radius: var(--mcl-r-md);
  box-shadow: var(--mcl-shadow);
  padding: 1.4rem 1.2rem;
  height: 100%;
  text-align: center;
}

.theme-business .mcl-stat-num {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--mcl-teal-deep);
}

.theme-business .mcl-stat-label {
  display: block;
  font-size: .85rem;
  color: var(--mcl-ink-soft);
  margin-top: .35rem;
}

/* 設置のめやす（ファーストビューの3点） */
.theme-business .mcl-point {
  background: var(--mcl-paper);
  border-radius: var(--mcl-r-md);
  box-shadow: var(--mcl-shadow);
  padding: 1.2rem 1.2rem 1rem;
  height: 100%;
}

.theme-business .mcl-point p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--mcl-ink-soft);
}

.theme-business .mcl-point .mcl-point-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: .4rem;
  color: var(--mcl-teal-deep);
}

/* お問い合わせの前に読んでほしい注意書き。
   ブランドの緑の地に白抜き。薄い緑(--mcl-teal)の地だと白文字のコントラストが
   足りないので、濃い方(--mcl-teal-deep)を使う */
.theme-business .mcl-notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--mcl-teal-deep);
  border-radius: var(--mcl-r-md);
  box-shadow: var(--mcl-shadow);
  padding: 1.4rem 1.6rem;
  color: #fff;
}

.theme-business .mcl-notice > div {
  min-width: 0;
}

.theme-business .mcl-notice-icon {
  flex-shrink: 0;
  font-size: 1.9rem;
  line-height: 1;
  color: #fff;
}

.theme-business .mcl-notice p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.8;
  color: #fff;
}

.theme-business .mcl-notice .mcl-notice-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: .3rem;
}

.theme-business .mcl-merit,
.theme-business .mcl-machine,
.theme-business .mcl-flow,
.theme-business .mcl-docs,
.theme-business .mcl-faq,
.theme-business .mcl-trust,
.theme-business .partnership {
  padding: 3.5rem 0;
}

.theme-business .mcl-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--mcl-r-pill);
  background: var(--mcl-teal);
  color: var(--mcl-paper);
  font-weight: 800;
  margin-bottom: .6rem;
}

.theme-business .mcl-step h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--mcl-ink);
}

.theme-business .mcl-step p {
  color: var(--mcl-ink-soft);
  font-size: .93rem;
}

.theme-business .mcl-machine-figure img {
  border-radius: var(--mcl-r-md);
  box-shadow: var(--mcl-shadow);
  background: var(--mcl-paper);
}

.theme-business .partnership-box h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--mcl-ink);
}

.theme-business .partnership-box p {
  color: var(--mcl-ink-soft);
  font-size: .95rem;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# 設置場所の一覧カード
# 在庫と対応決済は利用者が最も知りたい情報。以前は店舗をタップして
# 詳細を開かないと見えなかったので、一覧に出す
--------------------------------------------------------------*/
.theme-consumer .loc-address {
  /* 住所は2行まで見せる。1行で切ると市区町村が読めない設置場所がある */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.theme-consumer .location-floor {
  font-size: .82rem;
  font-weight: 600;
  color: var(--mcl-teal-deep);
  background: var(--mcl-teal-pale);
  border-radius: var(--mcl-r-sm);
  padding: .12rem .5rem;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-consumer .loc-facts:empty {
  display: none !important;
}

.theme-consumer .loc-stock {
  font-size: .74rem;
  font-weight: 700;
  border-radius: var(--mcl-r-pill);
  padding: .18rem .6rem;
  white-space: nowrap;
}

.theme-consumer .loc-stock-ok {
  color: #1c6b40;
  background: #dcf5e6;
}

.theme-consumer .loc-stock-low {
  color: #8a5b00;
  background: #fff2cf;
}

.theme-consumer .loc-stock-none {
  color: #8a2b2b;
  background: #fde3e3;
}

.theme-consumer .loc-chips {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.theme-consumer .loc-pay-chip {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: .9;
}

/*--------------------------------------------------------------
# 設置場所: リスト⇄地図のセグメント切替
# ボタン1つのトグルだと、今どちらを見ているかが分からなかった
--------------------------------------------------------------*/
.theme-consumer .mcl-seg {
  display: flex;
  flex: 0 0 auto;
  background: var(--mcl-cloud);
  border-radius: var(--mcl-r-pill);
  padding: 3px;
}

.theme-consumer .mcl-seg-btn {
  /* 幅を奪い合うと「リスト」「地図」が縦に折り返す。内容ぶんだけ取る */
  flex: 0 0 auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  border: 0;
  background: transparent;
  color: var(--mcl-ink-soft);
  font-size: .82rem;
  font-weight: 700;
  padding: .4rem .85rem;
  border-radius: var(--mcl-r-pill);
  transition: background-color .15s ease, color .15s ease;
}

.theme-consumer .mcl-seg-btn.is-on {
  background: var(--mcl-paper);
  color: var(--mcl-teal-deep);
  box-shadow: 0 1px 4px rgba(29, 43, 42, .14);
}

/* «絞り込み» は PC では常に開いた状態にする。
   Bootstrap の collapse は .collapse:not(.show) を display:none にするため、
   d-md-block だけでは足りず明示的に上書きする */
@media (min-width: 768px) {
  .theme-consumer .mcl-more-filters {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }
}

/*--------------------------------------------------------------
# 設置場所の個別ページ・一覧ページ
# 98箇所それぞれにURLを持たせ、ローカル検索に当てられるようにした
--------------------------------------------------------------*/
.theme-consumer .mcl-loc-detail,
.theme-consumer .mcl-loc-index {
  padding: 1rem 0 4rem;
}

.theme-consumer .mcl-loc-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--mcl-r-lg);
  box-shadow: var(--mcl-shadow);
}

.theme-consumer .mcl-loc-table th {
  width: 30%;
  color: var(--mcl-ink);
  font-weight: 700;
  background: var(--mcl-cloud);
  white-space: nowrap;
}

.theme-consumer .mcl-loc-pays {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.theme-consumer .mcl-loc-pay {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .88rem;
}

/* 在庫。ページを開いた時点で取りに行くため、初期は読み込み中の文言が出る */
.theme-consumer .mcl-loc-stock {
  background: var(--mcl-cloud);
  border-radius: var(--mcl-r-md);
  padding: 1.25rem;
}

.theme-consumer .mcl-stock-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 22rem;
  overflow-y: auto;
}

.theme-consumer .mcl-stock-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .4rem 0;
  border-bottom: 1px solid rgba(29, 43, 42, .08);
  font-size: .9rem;
}

.theme-consumer .mcl-stock-item:last-child { border-bottom: 0; }

.theme-consumer .mcl-stock-name { color: var(--mcl-ink); }

.theme-consumer .mcl-stock-state {
  font-size: .76rem;
  font-weight: 700;
  border-radius: var(--mcl-r-pill);
  padding: .12rem .55rem;
  white-space: nowrap;
}

.theme-consumer .mcl-stock-item.is-ok .mcl-stock-state { color: #1c6b40; background: #dcf5e6; }
.theme-consumer .mcl-stock-item.is-low .mcl-stock-state { color: #8a5b00; background: #fff2cf; }
.theme-consumer .mcl-stock-item.is-none .mcl-stock-state { color: #7b8785; background: #eceeee; }

/* /order/ の在庫。背景が淡色のセクションに置くので、隣のフォーム・注文内容と
   同じ白いカードにする */
.theme-consumer .mcl-order-stock {
  background: var(--mcl-paper);
  border-radius: var(--mcl-r-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--mcl-shadow);
}

/* 横幅いっぱいに置くので、1列だと35機種が縦に伸びる。
   タブレット以上は段組みにしてスクロールなしで見渡せるようにする */
@media (min-width: 768px) {
  .theme-consumer .mcl-order-stock .mcl-stock-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    max-height: none;
    overflow: visible;
  }
}

@media (min-width: 992px) {
  .theme-consumer .mcl-order-stock .mcl-stock-list { grid-template-columns: repeat(3, 1fr); }
}

/* 都道府県のチップ */
.theme-consumer .mcl-pref-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.theme-consumer .mcl-pref-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--mcl-teal-deep);
  background: var(--mcl-teal-pale);
  border-radius: var(--mcl-r-pill);
  padding: .35rem .9rem;
}

.theme-consumer .mcl-pref-chip:hover {
  background: var(--mcl-action);
  color: var(--mcl-paper);
}

.theme-consumer .mcl-pref-chip span {
  font-size: .78rem;
  opacity: .75;
}

/* 一覧カード */
.theme-consumer .mcl-loc-card {
  display: block;
  height: 100%;
  background: var(--mcl-paper);
  border-radius: var(--mcl-r-md);
  box-shadow: var(--mcl-shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.theme-consumer .mcl-loc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--mcl-shadow-lift);
}

.theme-consumer .mcl-loc-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.theme-consumer .mcl-loc-card-body {
  padding: .9rem 1rem 1.1rem;
}

.theme-consumer .mcl-loc-card-name {
  display: block;
  font-weight: 700;
  color: var(--mcl-ink);
  margin-bottom: .2rem;
}

.theme-consumer .mcl-loc-card-meta,
.theme-consumer .mcl-loc-card-floor {
  display: block;
  font-size: .82rem;
  color: var(--mcl-ink-soft);
}

.theme-consumer .mcl-loc-card-floor {
  color: var(--mcl-teal-deep);
  font-weight: 600;
  margin-top: .2rem;
}

/* 施設休業（location-closure.js が開いた時点で入れる）。休業が無ければ空のまま */
.theme-consumer .mcl-loc-card-closure:empty,
.theme-consumer .mcl-loc-closure:empty { display: none; }

.theme-consumer .mcl-loc-card-closure { display: block; margin-top: .35rem; }

.theme-consumer .mcl-loc-closure { margin-top: 1rem; }

.theme-consumer .mcl-loc-closure-tag {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  border-radius: var(--mcl-r-pill);
  padding: .12rem .6rem;
  color: #8a5b00;
  background: #fff2cf;
}

.theme-consumer .mcl-loc-closure-tag.is-closed { color: #fff; background: #5b6b69; }

/*--------------------------------------------------------------
# ニュース・メディア掲載の一覧
# 従来は JavaScript 描画でHTMLソースに何も無く、JSを実行しない
# クローラには読まれなかった。ビルドで生成してソースに載せる
--------------------------------------------------------------*/
.theme-consumer .mcl-news-index {
  padding: 1rem 0 4rem;
}

.theme-consumer .mcl-news-list,
.theme-consumer .mcl-media-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.theme-consumer .mcl-news-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(29, 43, 42, .09);
}

.theme-consumer .mcl-news-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  color: var(--mcl-ink-soft);
  margin-bottom: .35rem;
}

.theme-consumer .mcl-news-cat {
  font-weight: 700;
  color: var(--mcl-teal-deep);
  background: var(--mcl-teal-pale);
  border-radius: var(--mcl-r-pill);
  padding: .1rem .6rem;
}

.theme-consumer .mcl-news-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mcl-ink);
  margin: 0 0 .25rem;
  /* 見出しの文節の切れ目にはビルドが <wbr> を入れる（build/phrase.js）。2行になるときに「…を／設置」と
     最後の行が短くならないよう、行の長さをそろえる */
  text-wrap: balance;
}

.theme-consumer .mcl-news-body {
  font-size: .9rem;
  line-height: 1.75;
  color: var(--mcl-ink-soft);
  margin: 0;
}

.theme-consumer .mcl-media-item {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(29, 43, 42, .09);
}

.theme-consumer .mcl-media-thumb {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--mcl-r-sm);
  flex-shrink: 0;
  background: var(--mcl-cloud);
}

/*--------------------------------------------------------------
# 決済方法の一覧
# 一般向け・企業向けの両方で使うため、テーマで絞り込まない
--------------------------------------------------------------*/
.mcl-payments {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.mcl-payments li {
  padding: .6rem 0;
  border-bottom: 1px solid rgba(29, 43, 42, .09);
  line-height: 1.7;
}

.mcl-payments li:last-child {
  border-bottom: 0;
}

.mcl-payments strong {
  display: block;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .02em;
  margin-bottom: .1rem;
}

/*--------------------------------------------------------------
# 価格の表示
# 価格は最も多い問い合わせ。文中に埋もれさせない
--------------------------------------------------------------*/
.mcl-price {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  padding: .5rem 1.1rem;
  border-radius: var(--mcl-r-pill);
  background: var(--mcl-cloud);
  font-weight: 700;
}

.mcl-price-amount {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--mcl-teal);
}

.mcl-price-unit {
  font-size: .85rem;
  color: var(--mcl-ink-soft);
  font-weight: 600;
}

/*--------------------------------------------------------------
# 編集機能の一覧
# 「その場で作れる」の中身が伝わらないと自販機との差が出ない。
# 機能名を並べるだけなので、カードで囲って読む単位を作る
--------------------------------------------------------------*/
.theme-consumer .mcl-editor {
  padding: 4rem 0;
}

.theme-consumer .mcl-editor-group {
  background: var(--mcl-cloud);
  border-radius: var(--mcl-r-lg);
  padding: 1.6rem 1.5rem;
}

.theme-consumer .mcl-editor-group h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mcl-ink);
  margin: 0 0 1rem;
  padding-bottom: .7rem;
  border-bottom: 2px solid var(--mcl-teal);
}

.theme-consumer .mcl-editor-group-ai h3 {
  border-bottom-color: var(--mcl-sun);
}

.theme-consumer .mcl-editor-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.theme-consumer .mcl-editor-group li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: .7rem;
  line-height: 1.6;
  color: var(--mcl-ink);
}

.theme-consumer .mcl-editor-group li:last-child {
  margin-bottom: 0;
}

.theme-consumer .mcl-editor-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .5rem;
  height: .5rem;
  border-radius: var(--mcl-r-pill);
  background: var(--mcl-teal);
}

.theme-consumer .mcl-editor-group-ai li::before {
  background: var(--mcl-sun);
}

.theme-consumer .mcl-editor-group li span {
  display: block;
  font-size: .82rem;
  color: var(--mcl-ink-soft);
  line-height: 1.6;
  margin-top: .1rem;
}

/*--------------------------------------------------------------
# アンカーリンクの着地位置
# ヘッダーが sticky（高さ70px）なので、/#editor のような別ページからの
# アンカーは見出しがヘッダーの下に隠れてしまう。JS で offset を持つ
# .scrollto と違い、ブラウザ標準のジャンプには効かないため CSS で補正する
--------------------------------------------------------------*/
html {
  scroll-padding-top: 84px;
}

/*--------------------------------------------------------------
# オンライン受注: ナビのボタン
# 設置場所が近くにない人にとっては、これが唯一の購入手段。
# 通常リンクには埋もれさせない。企業向けの contact-button（ティール）と
# 役割が違うのでコーラルにする
--------------------------------------------------------------*/
.navbar .nav-link.order-button {
  background: var(--mcl-ink);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  margin-left: 12px;
  display: inline-block !important;
  transition: background-color .3s ease;
  text-decoration: none !important;
}

.navbar .nav-link.order-button:hover,
.navbar .nav-link.order-button:focus,
.navbar .nav-link.order-button:active {
  background: #2a3533;
  color: #fff !important;
  text-decoration: none !important;
}

/* 企業向けの導線（設置をご検討の方）は、一般向けでは墨の線で控えめにする。
   style.css 側が !important で塗りを指定しているので、同じ強さで上書きする */
.theme-consumer .navbar .nav-link.contact-button,
.theme-consumer .navbar .nav-link.contact-button:active,
.theme-consumer .navbar .nav-link.contact-button:focus,
.theme-consumer .navbar .nav-link.contact-button:visited {
  background: transparent !important;
  color: var(--mcl-ink) !important;
  box-shadow: inset 0 0 0 1.5px var(--mcl-ink) !important;
}

.theme-consumer .navbar .nav-link.contact-button:hover {
  background: var(--mcl-paper) !important;
  color: var(--mcl-ink) !important;
}

/*--------------------------------------------------------------
# フッター・設置場所のリスト・価格（2026-10 の刷新で一般向けだけ変える）
# style.css は企業向けと共用なので触らず、ここで上書きする
--------------------------------------------------------------*/
/* 地は style.css のまま（オフィスの写真に85%の黒を重ねる）。2026-10 の刷新で墨一色にしたが、
   本番と同じ写真に戻した（2026-10-23 オーナー決定） */
.theme-consumer #footer .footer-top .social-links a {
  background: var(--mcl-action);
  border-color: var(--mcl-action);
}

.theme-consumer #footer .footer-top .social-links a:hover {
  background: transparent;
  border-color: var(--mcl-accent);
}

/* 暗い地では濃いエメラルドの文字が沈む（墨の地で 3.2:1）。明るいエメラルドにする（7.5:1） */
.theme-consumer #footer a {
  color: var(--mcl-accent);
}

.theme-consumer #footer a:hover {
  color: var(--mcl-paper);
}

/* 設置場所を探す: 選択中の店舗（水色をやめてエメラルドにそろえる） */
.theme-consumer .location-item.active {
  background-color: var(--mcl-teal-pale) !important;
  border-left-color: var(--mcl-accent) !important;
}

/* 価格の数字。明るいエメラルドは白地で 2:1 しかなく読みにくいので墨にする */
.theme-consumer .mcl-price-amount {
  color: var(--mcl-ink);
}

/*--------------------------------------------------------------
# オンライン受注: トップに置く誘導ブロック
# 設置場所の地図を見て「近くに無い」と分かった直後に出す
--------------------------------------------------------------*/
.theme-consumer .mcl-online-order {
  padding: 3rem 0 4rem;
}

.theme-consumer .mcl-online-order-inner {
  background: linear-gradient(135deg, var(--mcl-teal-pale) 0%, var(--mcl-cloud) 100%);
  border-radius: var(--mcl-r-lg);
  padding: 2.4rem 2rem;
}

.theme-consumer .mcl-online-order h2 {
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  font-weight: 800;
  color: var(--mcl-ink);
  margin: .6rem 0 1rem;
  line-height: 1.45;
}

.theme-consumer .mcl-online-order p {
  color: var(--mcl-ink-soft);
  line-height: 1.85;
}

.theme-consumer .mcl-online-order-price {
  margin: 1.2rem 0 0;
}

.theme-consumer .mcl-online-order-price strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--mcl-ink);
}

.theme-consumer .mcl-online-order-price span {
  font-size: .9rem;
  color: var(--mcl-ink-soft);
  margin-left: .4rem;
}

/*--------------------------------------------------------------
# 受注ページ: 商品エリア
# 物を売るページなので、まず現物が見えることを優先する。
# 文字だけの仕様書に見えると、買う気になれない
--------------------------------------------------------------*/
.theme-consumer .mcl-order {
  padding: 1rem 0 3.5rem;
}

.theme-consumer .mcl-product {
  background: linear-gradient(135deg, var(--mcl-teal-pale) 0%, var(--mcl-cloud) 100%);
  border-radius: var(--mcl-r-lg);
  padding: 2rem 1.5rem;
}

@media (min-width: 992px) {
  .theme-consumer .mcl-product {
    padding: 3rem 3.5rem;
  }
}

/* ケースを3枚扇状に。1枚だけだと「作例が1つしかない」ように見える */
.theme-consumer .mcl-product-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 1rem 0;
}

/* width/height 属性を持つ画像なので、height: auto が無いと
   属性の 1600px がそのまま高さになり、縦に伸びきる。
   ケースの角の外側は透過なので、下地や box-shadow を付けると矩形の縁が
   見える。影は drop-shadow でケースの形に沿わせる */
.theme-consumer .mcl-product-case {
  display: block;
  height: auto;
  filter: drop-shadow(0 14px 36px rgba(29, 43, 42, .16));
}

.theme-consumer .mcl-product-case-main {
  position: relative;
  z-index: 2;
  width: 44%;
  max-width: 210px;
}

.theme-consumer .mcl-product-case-left,
.theme-consumer .mcl-product-case-right {
  position: absolute;
  z-index: 1;
  width: 34%;
  max-width: 165px;
  opacity: .95;
}

.theme-consumer .mcl-product-case-left {
  left: 4%;
  transform: rotate(-10deg);
}

.theme-consumer .mcl-product-case-right {
  right: 4%;
  transform: rotate(10deg);
}

/* 対応機種などの短い事実。ヒーローのバッジと同じ役割 */
.theme-consumer .mcl-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  margin: 1.2rem 0 0;
}

.theme-consumer .mcl-chips li {
  background: var(--mcl-paper);
  color: var(--mcl-ink);
  font-size: .85rem;
  font-weight: 700;
  border-radius: var(--mcl-r-pill);
  padding: .35rem .95rem;
  box-shadow: 0 2px 8px rgba(29, 43, 42, .08);
}

/* 価格。最も多い問い合わせなので、内訳と合計を分けて出す */
.theme-consumer .mcl-product-price {
  background: var(--mcl-paper);
  border-radius: var(--mcl-r-md);
  padding: 1.2rem 1.4rem .9rem;
  margin: 1.5rem 0 0;
  box-shadow: var(--mcl-shadow);
}

.theme-consumer .mcl-product-price dl {
  margin: 0;
}

.theme-consumer .mcl-product-price dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(29, 43, 42, .08);
}

.theme-consumer .mcl-product-price dt {
  font-weight: 600;
  color: var(--mcl-ink);
  font-size: .95rem;
}

.theme-consumer .mcl-product-price dt span {
  display: block;
  font-size: .78rem;
  font-weight: 400;
  color: var(--mcl-ink-soft);
}

.theme-consumer .mcl-product-price dd {
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
}

.theme-consumer .mcl-product-price-total {
  border-bottom: 0 !important;
  padding-top: .8rem !important;
}

.theme-consumer .mcl-product-price-total dt {
  font-size: 1.05rem;
  font-weight: 700;
}

.theme-consumer .mcl-product-price-total dd {
  font-size: 2.1rem;
  line-height: 1;
  color: var(--mcl-ink);
}

.theme-consumer .mcl-product-price-total dd span {
  font-size: .95rem;
  margin-left: .15rem;
}

.theme-consumer .mcl-product-price-note {
  font-size: .78rem;
  color: var(--mcl-ink-soft);
  margin: .5rem 0 0;
}

.theme-consumer .mcl-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

/*--------------------------------------------------------------
# 受注ページ: 流れ
--------------------------------------------------------------*/
.theme-consumer .mcl-order-flow,
.theme-consumer .mcl-order-form-section,
.theme-consumer .mcl-order-notes {
  padding: 4rem 0;
}

.theme-consumer .mcl-order-step {
  position: relative;
  background: var(--mcl-paper);
  border-radius: var(--mcl-r-md);
  padding: 2rem 1.4rem 1.4rem;
  box-shadow: var(--mcl-shadow);
}

.theme-consumer .mcl-order-step-num {
  position: absolute;
  top: -1rem;
  left: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--mcl-r-pill);
  background: var(--mcl-action);
  color: var(--mcl-paper);
  font-weight: 800;
  font-size: 1.05rem;
}

.theme-consumer .mcl-order-step h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--mcl-ink);
  margin: 0 0 .5rem;
}

.theme-consumer .mcl-order-step p {
  font-size: .9rem;
  line-height: 1.75;
  color: var(--mcl-ink-soft);
  margin: 0;
}

/*--------------------------------------------------------------
# ご注文の流れ（#orderFlowModal）。実際の画面のスクショで1段ずつ見せる
# （src/partials/order-flow-modal.html、assets/js/order-flow-guide.js）
--------------------------------------------------------------*/
.theme-consumer .mcl-flow-guide-open-wrap {
  margin: -.75rem 0 1.5rem;
}

.theme-consumer .mcl-flow-guide-open {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mcl-accent-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.theme-consumer .mcl-flow-guide-open:hover {
  color: var(--mcl-action-hover);
}

.theme-consumer .mcl-flow-guide-open:focus {
  outline: 0;
}

.theme-consumer .mcl-flow-guide-open:focus-visible {
  border-radius: 4px;
  box-shadow: var(--mcl-focus-ring);
}

.theme-consumer .mcl-flow-guide .modal-content {
  border: 0;
  border-radius: var(--mcl-r-lg);
  background: var(--mcl-stone);
  box-shadow: var(--mcl-shadow-lift);
  overflow: hidden;
}

.theme-consumer .mcl-flow-guide .modal-header {
  padding: 1rem 1.25rem .5rem;
  border-bottom: 0;
}

.theme-consumer .mcl-flow-guide .modal-title {
  margin: 0;
  color: var(--mcl-ink);
  font-size: 1.1rem;
  font-weight: 800;
}

/* スマホの画面 / パソコンの画面 */
.theme-consumer .mcl-flow-guide-view {
  display: flex;
  align-self: flex-start;
  gap: .25rem;
  margin: 0 1.25rem .75rem;
  padding: .25rem;
  border-radius: var(--mcl-r-pill);
  background: var(--mcl-cloud);
}

.theme-consumer .mcl-flow-guide-view button {
  padding: .35rem .9rem;
  border: 0;
  border-radius: var(--mcl-r-pill);
  background: transparent;
  color: var(--mcl-ink-soft);
  font-size: .82rem;
  font-weight: 700;
}

.theme-consumer .mcl-flow-guide-view button:hover {
  color: var(--mcl-ink);
}

.theme-consumer .mcl-flow-guide-view button[aria-pressed="true"] {
  background: var(--mcl-paper);
  color: var(--mcl-ink);
  box-shadow: 0 1px 3px rgba(25, 33, 31, .18);
}

.theme-consumer .mcl-flow-guide-view button:focus {
  outline: 0;
}

.theme-consumer .mcl-flow-guide-view button:focus-visible {
  box-shadow: var(--mcl-focus-ring);
}

/* 手順。横に並べ、scroll-snap で1段ずつ止める */
.theme-consumer .mcl-flow-guide-slides {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.theme-consumer .mcl-flow-guide-slides::-webkit-scrollbar {
  display: none;
}

.theme-consumer .mcl-flow-guide-slides:focus {
  outline: 0;
}

.theme-consumer .mcl-flow-guide-slides:focus-visible {
  box-shadow: inset var(--mcl-focus-ring);
}

.theme-consumer .mcl-flow-guide-slide {
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: 0 1.25rem 1.25rem;
  scroll-snap-align: start;
}

.theme-consumer .mcl-flow-guide-shot {
  display: flex;
  justify-content: center;
  margin: 0;
}

.theme-consumer .mcl-flow-guide-shot img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  border-radius: var(--mcl-r-sm);
  background: var(--mcl-paper);
  box-shadow: var(--mcl-shadow);
}

/* ノートパソコンの低い画面でも「次へ」まで見えるよう、見出し・説明・ボタンの分（約420px）を除いた高さに収める */
.theme-consumer .mcl-flow-guide-shot img {
  max-height: clamp(200px, calc(100vh - 420px), 560px);
}

/* 選んでいない方の画面は出さない（loading="lazy" なので読み込みもしない） */
.theme-consumer .mcl-flow-guide[data-view="sp"] .is-pc,
.theme-consumer .mcl-flow-guide[data-view="pc"] .is-sp {
  display: none;
}

.theme-consumer .mcl-flow-guide-text {
  width: 100%;
  max-width: 34rem;
}

.theme-consumer .mcl-flow-guide-where {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .35rem;
  color: var(--mcl-accent-text);
  font-size: .8rem;
  font-weight: 700;
}

.theme-consumer .mcl-flow-guide-where span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--mcl-action);
  color: var(--mcl-paper);
  font-size: .85rem;
  font-weight: 800;
}

.theme-consumer .mcl-flow-guide-text h3 {
  margin: 0 0 .4rem;
  color: var(--mcl-ink);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
}

.theme-consumer .mcl-flow-guide-text h3 + p {
  margin: 0;
  color: var(--mcl-ink-soft);
  font-size: .9rem;
  line-height: 1.75;
}

/* お届けはスクショの代わりにアイコンで示す */
.theme-consumer .mcl-flow-guide-delivery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  min-height: 12rem;
  border-radius: var(--mcl-r-md);
  background: var(--mcl-teal-pale);
  color: var(--mcl-accent-text);
  font-size: 3.5rem;
}

/* 戻る・番号・次へ */
.theme-consumer .mcl-flow-guide-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1.25rem calc(.9rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(25, 33, 31, .08);
  background: var(--mcl-paper);
}

.theme-consumer .mcl-flow-guide-nav .btn-mcl {
  min-width: 6.5rem;
  padding: .6rem 1.2rem;
  white-space: nowrap;
}

/* 1段目では「戻る」を見えなくする（場所は残し、「次へ」を右に保つ） */
.theme-consumer .mcl-flow-guide-nav .mcl-flow-guide-prev:disabled {
  visibility: hidden;
}

.theme-consumer .mcl-flow-guide-count {
  margin: 0;
  white-space: nowrap;
  color: var(--mcl-ink-soft);
  font-size: .9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* スマホは全画面で開く。画像は、見出し・切り替え・説明・ボタンを除いた高さに収める */
@media (max-width: 575.98px) {
  .theme-consumer .mcl-flow-guide .modal-content {
    border-radius: 0;
  }

  .theme-consumer .mcl-flow-guide-slide {
    overflow-y: auto;
  }

  .theme-consumer .mcl-flow-guide-shot img {
    max-height: calc(100svh - 360px);
  }

  /* 最後の段は「ご注文フォームへ進む」が長いので、番号を外して収める */
  .theme-consumer .mcl-flow-guide.is-last .mcl-flow-guide-count {
    display: none;
  }
}

/* 見落とすと「払ったのに届かない」問い合わせになる一文 */
.theme-consumer .mcl-notice {
  background: var(--mcl-paper);
  border-left: 4px solid var(--mcl-sun);
  border-radius: var(--mcl-r-sm);
  padding: 1rem 1.2rem;
  color: var(--mcl-ink);
  line-height: 1.8;
}

/*--------------------------------------------------------------
# 受注ページ: フォームと注文サマリ
--------------------------------------------------------------*/
.theme-consumer .mcl-order-form {
  background: var(--mcl-paper);
  border-radius: var(--mcl-r-lg);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--mcl-shadow);
}

@media (min-width: 992px) {
  .theme-consumer .mcl-order-form {
    padding: 2.4rem 2.2rem;
  }
}

.theme-consumer .mcl-order-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 2rem;
}

.theme-consumer .mcl-order-form fieldset:last-child {
  margin-bottom: 0;
}

.theme-consumer .mcl-order-form legend {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--mcl-ink);
  padding-bottom: .6rem;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--mcl-teal);
}

.theme-consumer .mcl-order-form .form-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--mcl-ink);
  margin-bottom: .35rem;
}

.theme-consumer .mcl-order-form .form-control {
  border: 1px solid rgba(29, 43, 42, .18);
  border-radius: var(--mcl-r-sm);
  padding: .7rem .9rem;
}

.theme-consumer .mcl-order-form .form-control:focus {
  border-color: var(--mcl-teal);
  box-shadow: 0 0 0 3px var(--mcl-teal-pale);
}

.theme-consumer .mcl-order-form .form-text {
  font-size: .78rem;
  color: var(--mcl-ink-soft);
}

.theme-consumer .mcl-order-form .req {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  background: var(--mcl-danger);
  border-radius: var(--mcl-r-pill);
  padding: .1rem .5rem;
  margin-left: .3rem;
  vertical-align: middle;
}

.theme-consumer .mcl-order-payment {
  background: var(--mcl-cloud);
  border: 1px dashed rgba(29, 43, 42, .2);
  border-radius: var(--mcl-r-sm);
  padding: 1.5rem;
  color: var(--mcl-ink-soft);
  font-size: .9rem;
}

/* カードの入力欄（Stripe の Payment Element）を出したあとは、案内用の点線枠をやめる */
.theme-consumer .mcl-order-payment.is-mounted {
  background: transparent;
  border: 0;
  padding: 0;
}

/* 「お支払いへ進む」と、注文を作ったあとの「入力内容を修正する」
   （.mcl-order-step は「ご注文からお届けまで」のカードで使っているので別の名前にする） */
.theme-consumer .mcl-order-next,
.theme-consumer .mcl-order-locked {
  margin: -0.5rem 0 2rem;
}

.theme-consumer .mcl-order-locked {
  background: var(--mcl-teal-pale);
  border-radius: var(--mcl-r-sm);
  padding: .8rem 1rem;
}

/* 住所の入れ忘れの注意（エラーではなく、送信は止めない）。補足文の灰色と区別できる濃い琥珀色 */
.theme-consumer .mcl-order-hint,
.theme-consumer .form-text.mcl-order-hint {
  color: #8a5a00;
}

.theme-consumer .mcl-order-hint-line {
  display: block;
}

/* 注文を作ったあとは入力欄を読み取り専用にする（その内容で注文が作られているため） */
.theme-consumer .mcl-order-form .form-control[readonly] {
  background: var(--mcl-cloud);
  color: var(--mcl-ink-soft);
}

.theme-consumer .mcl-order-form .invalid-feedback {
  font-size: .8rem;
}

/* 処理中のボタン */
.theme-consumer .btn-mcl[aria-busy="true"] {
  opacity: .7;
  cursor: progress;
}

/* 入力中も金額と商品が見えているようにする */
.theme-consumer .mcl-summary {
  background: var(--mcl-paper);
  border-radius: var(--mcl-r-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--mcl-shadow);
}

@media (min-width: 992px) {
  .theme-consumer .mcl-summary {
    position: sticky;
    top: 90px;
  }
}

.theme-consumer .mcl-summary h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mcl-ink);
  padding-bottom: .6rem;
  margin: 0 0 1rem;
  border-bottom: 2px solid var(--mcl-teal);
}

.theme-consumer .mcl-summary-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(29, 43, 42, .08);
}

/* ケースは切らずに全体を見せる。高さを揃え、幅は width/height 属性の
   縦横比から決まる。角の外側は透過なので、下地や角丸は付けない */
.theme-consumer .mcl-summary-item img {
  width: auto;
  height: 88px;
  flex-shrink: 0;
}

.theme-consumer .mcl-summary-name {
  font-weight: 700;
  color: var(--mcl-ink);
  margin: 0 0 .2rem;
}

.theme-consumer .mcl-summary-meta {
  font-size: .8rem;
  line-height: 1.6;
  color: var(--mcl-ink-soft);
  margin: 0;
}

.theme-consumer .mcl-summary-price {
  margin: 1rem 0 0;
}

.theme-consumer .mcl-summary-price > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .4rem 0;
}

.theme-consumer .mcl-summary-price dt {
  font-weight: 500;
  color: var(--mcl-ink-soft);
  font-size: .92rem;
}

.theme-consumer .mcl-summary-price dd {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

.theme-consumer .mcl-summary-total {
  border-top: 1px solid rgba(29, 43, 42, .08);
  margin-top: .3rem;
  padding-top: .8rem !important;
}

.theme-consumer .mcl-summary-total dt {
  font-weight: 700 !important;
  color: var(--mcl-ink) !important;
  font-size: 1rem !important;
}

.theme-consumer .mcl-summary-total dd {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--mcl-ink);
}

/*--------------------------------------------------------------
# 注文完了ページ
# 引き換えコードは打ち間違えるとデザイン画面のクーポン欄で詰まる。
# 読みやすさとコピー導線を最優先にする
--------------------------------------------------------------*/
.theme-consumer .mcl-code-panel {
  text-align: center;
  background: var(--mcl-teal-pale);
  border: 2px dashed var(--mcl-teal);
  border-radius: var(--mcl-r-lg);
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
}

.theme-consumer .mcl-code-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--mcl-teal-deep);
  letter-spacing: .08em;
  margin: 0 0 .5rem;
}

.theme-consumer .mcl-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--mcl-ink);
  margin: 0 0 1rem;
  word-break: break-all;
}

.theme-consumer .mcl-guide ol {
  list-style: none;
  counter-reset: guide;
  padding: 0;
  margin: 0 0 1.5rem;
}

.theme-consumer .mcl-guide li {
  counter-increment: guide;
  position: relative;
  padding-left: 3.1rem;
  padding-bottom: 1.4rem;
}

.theme-consumer .mcl-guide li::before {
  content: counter(guide);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--mcl-r-pill);
  background: var(--mcl-teal);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 手順が続いていることを縦線で示す。最後の1件には引かない */
.theme-consumer .mcl-guide li::after {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 2.1rem;
  bottom: 0;
  width: 2px;
  background: var(--mcl-teal-pale);
}

.theme-consumer .mcl-guide li:last-child::after {
  display: none;
}

.theme-consumer .mcl-guide h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mcl-ink);
  margin: .2rem 0 .35rem;
}

.theme-consumer .mcl-guide p {
  color: var(--mcl-ink-soft);
  line-height: 1.8;
  margin: 0;
}

/* デザイン画面の埋め込み（/design/ と注文完了ページ。PC とタブレットの横向きだけ）。
   元がスマホ向けの画面なので、スマホの枠に入れて幅 375px で出し、横に手順を置く。枠は CSS だけで描く */
.theme-consumer .mcl-embed-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2.5rem 0 .5rem;
}

.theme-consumer .mcl-embed-body {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.theme-consumer .mcl-phone {
  flex: none;
  padding: 12px;
  border-radius: 54px;
  background: #1b1f1e;
  box-shadow: var(--mcl-shadow-lift), inset 0 0 0 2px #3a403e;
}

/* 高さはヘッダーの下に枠ごと収まるように（iPad の横向きの 768px でも出る）。
   上はステータスバー、下はホームバーの分だけ空け、画面の上下が角丸で欠けないようにする */
.theme-consumer .mcl-phone-screen {
  position: relative;
  width: 375px;
  height: clamp(560px, calc(100vh - 170px), 812px);
  padding: 40px 0 22px;
  border-radius: 42px;
  overflow: hidden;
  background: #fff;
}

.theme-consumer .mcl-phone-screen::before,
.theme-consumer .mcl-phone-screen::after {
  content: "";
  position: absolute;
  left: 50%;
  border-radius: var(--mcl-r-pill);
  background: #1b1f1e;
}

/* ダイナミックアイランド */
.theme-consumer .mcl-phone-screen::before {
  top: 11px;
  width: 100px;
  height: 28px;
  margin-left: -50px;
}

/* ホームバー */
.theme-consumer .mcl-phone-screen::after {
  bottom: 8px;
  width: 120px;
  height: 5px;
  margin-left: -60px;
}

.theme-consumer .mcl-phone-screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.theme-consumer .mcl-embed-side {
  flex: 1;
  min-width: 0;
  padding-top: .5rem;
}

.theme-consumer .mcl-embed-side-title {
  font-weight: 700;
  color: var(--mcl-ink);
  margin: 0 0 1rem;
}

.theme-consumer .mcl-phone-steps {
  list-style: none;
  counter-reset: phone-step;
  padding: 0;
  margin: 0;
}

.theme-consumer .mcl-phone-steps li {
  counter-increment: phone-step;
  position: relative;
  padding: 0 0 1.1rem 2.4rem;
  font-size: .9rem;
  line-height: 1.75;
  color: var(--mcl-ink-soft);
}

.theme-consumer .mcl-phone-steps li::before {
  content: counter(phone-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: var(--mcl-r-pill);
  background: var(--mcl-teal);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-consumer .mcl-phone-steps strong {
  display: block;
  font-size: .95rem;
  color: var(--mcl-ink);
  margin-bottom: .15rem;
}

/* /design/ の「ここまでは無料でお試しいただけます」。ここから先は引き換えコードが要る */
.theme-consumer .mcl-phone-steps-free {
  display: block;
  margin-top: .6rem;
  padding: .35rem .75rem;
  border-radius: var(--mcl-r-sm);
  background: var(--mcl-teal-pale);
  color: var(--mcl-teal-deep);
  font-size: .85rem;
  font-weight: 700;
}

.theme-consumer .mcl-embed-buy {
  margin-top: .4rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(29, 43, 42, .12);
  border-radius: var(--mcl-r-md);
  background: var(--mcl-paper);
}

.theme-consumer .mcl-embed-buy p {
  font-size: .9rem;
  margin: 0 0 .6rem;
}

.theme-consumer .mcl-embed-buy p:last-child {
  margin: .6rem 0 0;
}

/* 注文完了ページの、枠の横の引き換えコード。上の大きなコードと同じ見た目を小さくしたもの */
.theme-consumer .mcl-embed-code {
  text-align: center;
  background: var(--mcl-teal-pale);
  border: 2px dashed var(--mcl-teal);
  border-radius: var(--mcl-r-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.theme-consumer .mcl-embed-code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--mcl-ink);
  margin: 0 0 .6rem;
  word-break: break-all;
}

/* 完了ページの「うまくいかないときは」。詰まった人が読む場所なので
   本文と同じ行間で読みやすくする */
.theme-consumer .mcl-help-list {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.theme-consumer .mcl-help-list li {
  color: var(--mcl-ink-soft);
  line-height: 1.85;
  margin-bottom: .6rem;
}

/*--------------------------------------------------------------
# お試し（/design/）: 開く前の説明と「お試し中」の帯
# 埋め込みの画面は他社サイトなので、説明は枠の中（始めるまで）と、枠の上の帯（常に）で出す
--------------------------------------------------------------*/
.theme-consumer .mcl-trial-col {
  flex: none;
}

.theme-consumer .mcl-trial-band {
  width: 100%;
  margin: 0 0 .7rem;
  padding: .45rem .9rem;
  border-radius: var(--mcl-r-pill);
  background: var(--mcl-sun);
  color: var(--mcl-ink);
  font-size: .85rem;
  font-weight: 700;
  text-align: center;
}

.theme-consumer .mcl-trial-gate {
  position: absolute;
  inset: 40px 0 22px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--mcl-paper);
  overflow-y: auto;
}

/* 収まるときは上下の中央に置く。背の低い画面ではみ出すときは、上から読んで枠の中をスクロールすればボタンに届く
   （justify-content: center だと、はみ出した分だけ見出しが上に切れ、スクロールしても戻れない） */
.theme-consumer .mcl-trial-gate > :first-child {
  margin-top: auto;
}

.theme-consumer .mcl-trial-gate > :last-child {
  margin-bottom: auto;
}

.theme-consumer .mcl-trial-gate[hidden] {
  display: none;
}

.theme-consumer .mcl-trial-gate-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mcl-ink);
}

/* 説明の中身（partials/trial-notice.html）。モーダルと枠の中で同じ見た目にする。
   「支払う」から先はご注文になるので、その段だけ「残りわずか」と同じ琥珀色の枠で目立たせる */
.theme-consumer .mcl-trial-notice {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  color: var(--mcl-ink-soft);
  font-size: .92rem;
  line-height: 1.75;
}

.theme-consumer .mcl-trial-notice p {
  margin: 0;
}

.theme-consumer .mcl-trial-lead {
  color: var(--mcl-ink);
}

.theme-consumer .mcl-trial-point {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.theme-consumer .mcl-trial-point > .bi {
  flex: none;
  color: var(--mcl-accent-text);
  font-size: 1.05rem;
  line-height: 1.6;
}

.theme-consumer .mcl-trial-notice .mcl-trial-point-title {
  margin-bottom: .15rem;
  color: var(--mcl-ink);
  font-weight: 700;
}

.theme-consumer .mcl-trial-point.is-order {
  padding: .8rem .9rem;
  border-left: 4px solid var(--mcl-sun);
  border-radius: var(--mcl-r-sm);
  background: #fff2cf;
  color: var(--mcl-ink);
}

.theme-consumer .mcl-trial-point.is-order > .bi {
  color: #8a5b00;
}

/*--------------------------------------------------------------
# 注文ページ（/order/view/）
# 状態の流れは .mcl-guide の縦線と番号を使い、済みの段は塗り、まだの段は白抜きにする
--------------------------------------------------------------*/
.theme-consumer .mcl-view-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2.2rem 0 .8rem;
}

.theme-consumer .mcl-view-progress ol {
  margin-bottom: .5rem;
}

.theme-consumer .mcl-view-progress li.is-waiting::before,
.theme-consumer .mcl-view-progress li.is-current::before {
  background: var(--mcl-paper);
  color: var(--mcl-ink-soft);
  box-shadow: inset 0 0 0 2px var(--mcl-teal-pale);
}

.theme-consumer .mcl-view-progress li.is-current::before {
  color: var(--mcl-teal-deep);
  box-shadow: inset 0 0 0 2px var(--mcl-teal);
}

.theme-consumer .mcl-view-progress li.is-waiting h3,
.theme-consumer .mcl-view-progress li.is-waiting p {
  color: var(--mcl-ink-soft);
}

.theme-consumer .mcl-view-at {
  font-weight: 700;
  color: var(--mcl-ink) !important;
}

.theme-consumer .mcl-view-design {
  margin: 0;
  text-align: center;
}

.theme-consumer .mcl-view-design img {
  display: block;
  max-width: min(100%, 320px);
  height: auto;
  margin: 0 auto .6rem;
  border-radius: var(--mcl-r-md);
  background: var(--mcl-stone);
}

.theme-consumer .mcl-view-design figcaption {
  color: var(--mcl-ink-soft);
}

.theme-consumer .mcl-view-address {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .5rem 1.2rem;
  margin: 0 0 .8rem;
  padding: 1rem 1.2rem;
  background: var(--mcl-paper);
  border-radius: var(--mcl-r-sm);
  box-shadow: var(--mcl-shadow);
}

.theme-consumer .mcl-view-address dt {
  color: var(--mcl-ink-soft);
  font-weight: 400;
}

.theme-consumer .mcl-view-address dd {
  margin: 0;
  color: var(--mcl-ink);
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .theme-consumer .mcl-view-address {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .theme-consumer .mcl-view-address dd {
    margin-bottom: .6rem;
  }
}

/*--------------------------------------------------------------
# 強調チップ
# 競合が3〜5営業日である以上、当日発送は数字で殴れる唯一の場所。
# 他のチップと同じ見た目では埋もれるため coral で塗る。
--------------------------------------------------------------*/
.theme-consumer .mcl-chips .mcl-chip-strong {
  background: var(--mcl-sun);
  border-color: var(--mcl-sun);
  color: var(--mcl-ink);
  font-weight: 700;
}

/*--------------------------------------------------------------
# オンライン注文の自販機の状態（order-machine-status.js）
# 先頭の枠（hero）は価格のカードより控えめにする（白い半透明・影なし）。
# 点の色: 待機中=緑、印刷中=エメラルドが脈打つ、故障中・一時停止中=赤。
# 注文フォームの上と完了ページの注意は .mcl-notice。停止中は左の線を赤にする
--------------------------------------------------------------*/
.theme-consumer .mcl-machine-status {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(25, 33, 31, .08);
  border-radius: var(--mcl-r-md);
  padding: .8rem 1rem .6rem;
  margin: 1.2rem 0 0;
}

.theme-consumer .mcl-machine-status-title {
  margin: 0;
  font-size: .95rem;
  color: var(--mcl-ink);
}

.theme-consumer .mcl-machine-status-title strong { font-weight: 700; }
.theme-consumer .mcl-machine-status[data-kind="broken"] .mcl-machine-status-title strong,
.theme-consumer .mcl-machine-status[data-kind="paused"] .mcl-machine-status-title strong { color: var(--mcl-danger); }

.theme-consumer .mcl-machine-status-dot {
  display: inline-block;
  vertical-align: .05em;
  width: .6rem;
  height: .6rem;
  margin-right: .45rem;
  border-radius: 50%;
  background: #7b8785;
}

.theme-consumer .mcl-machine-status[data-kind="idle"] .mcl-machine-status-dot { background: #2f9e5b; }
.theme-consumer .mcl-machine-status[data-kind="printing"] .mcl-machine-status-dot {
  background: var(--mcl-accent);
  animation: mcl-machine-pulse 1.6s ease-in-out infinite;
}
.theme-consumer .mcl-machine-status[data-kind="broken"] .mcl-machine-status-dot,
.theme-consumer .mcl-machine-status[data-kind="paused"] .mcl-machine-status-dot { background: var(--mcl-danger); }

@keyframes mcl-machine-pulse { 50% { box-shadow: 0 0 0 .3rem rgba(36, 196, 168, .25); } }

@media (prefers-reduced-motion: reduce) {
  .theme-consumer .mcl-machine-status[data-kind="printing"] .mcl-machine-status-dot { animation: none; }
}

.theme-consumer .mcl-machine-status-text {
  margin: .25rem 0 0;
  font-size: .85rem;
  line-height: 1.7;
  color: var(--mcl-ink-soft);
}

/* 在庫の「残りわずか」と同じ琥珀色。当日発送のチップの黄とは分ける */
.theme-consumer .mcl-machine-status-busy {
  margin: .5rem 0 0;
  padding: .45rem .7rem;
  border-radius: var(--mcl-r-sm);
  background: #fff2cf;
  color: #8a5b00;
  font-size: .85rem;
  line-height: 1.7;
}

.theme-consumer .mcl-machine-status-time {
  margin: .3rem 0 0;
  text-align: right;
  font-size: .75rem;
  color: var(--mcl-ink-soft);
}

.theme-consumer .mcl-machine-notice[data-kind="broken"],
.theme-consumer .mcl-machine-notice[data-kind="paused"] { border-left-color: var(--mcl-danger); }

/* 停止中と印刷待ちの注意が両方出るときの間 */
.theme-consumer .mcl-machine-notice > div > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem; }

/* /design/ は停止中、埋め込みのデザイン画面を隠す（.mcl-embed は d-lg-block の !important で出しているので、ここも !important） */
.theme-consumer [data-ms-disable-designer][data-stopped] .mcl-embed { display: none !important; }

/*--------------------------------------------------------------
# 決済ブランド
# Stripe で有効な手段だけを並べる。自販機の決済（QR・交通系IC）とは別物。
--------------------------------------------------------------*/
.theme-consumer .mcl-pay-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: .75rem 0 0;
  padding: 0;
  list-style: none;
}

.theme-consumer .mcl-pay-brands li {
  padding: 4px 10px;
  border: 1px solid rgba(29, 43, 42, .14);
  border-radius: var(--mcl-r-sm);
  background: var(--mcl-paper);
  font-size: .75rem;
  font-weight: 600;
  color: var(--mcl-ink-soft);
  letter-spacing: .01em;
  white-space: nowrap;
}

/*--------------------------------------------------------------
# 受注ページの FAQ
--------------------------------------------------------------*/
.theme-consumer .mcl-order-faq .accordion {
  margin-bottom: 1rem;
}

/*--------------------------------------------------------------
# デザイン体験ページ
--------------------------------------------------------------*/
.theme-consumer .mcl-design .mcl-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--mcl-paper);
  border-radius: var(--mcl-r-md);
  padding: 1.5rem;
  box-shadow: var(--mcl-shadow);
}

/* 2枚を横に並べたとき、説明の行数が違っても価格とボタンの高さをそろえる */
.theme-consumer .mcl-design .mcl-card-price {
  margin-top: auto;
}

.theme-consumer .mcl-design .mcl-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--mcl-ink);
  margin-bottom: .75rem;
}

/* 価格の横に置く強調チップ。競合が3〜5営業日で出せない数字なので、
   価格と並べて初めて比較の材料になる */
.theme-consumer .mcl-chip-inline {
  display: inline-block;
  margin-left: .5rem;
  padding: 3px 10px;
  border-radius: var(--mcl-r-pill);
  background: var(--mcl-sun);
  color: var(--mcl-ink);
  font-size: .78rem;
  font-weight: 700;
  vertical-align: middle;
  white-space: nowrap;
}

/*--------------------------------------------------------------
# 受注ページのモバイル固定CTA
# 競合の Shopify カートバーに相当。1画面目を過ぎると注文への
# 復帰導線が無くなるため、価格ごと連れて行く。
--------------------------------------------------------------*/
.theme-consumer .mcl-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 996;
  padding: .5rem 1rem calc(.5rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 -4px 16px rgba(29, 43, 42, .08);
}

.theme-consumer .mcl-sticky-cta .btn-mcl {
  display: block;
  text-align: center;
  width: 100%;
}

/*--------------------------------------------------------------
# ヒーローに重ねるヘッダー（トップのみ）
#
# ヘッダーはスクロールするまで fixed-top が付かない実装なので、
# ヒーローが先にあるページでは初期表示にナビが存在しなかった。
# 1画面スクロールするまでメニューが無いのは、初訪問者を素通りさせる。
#
# 2026-10 の刷新でヒーローが明るい壁になったので、濃いロゴ・墨文字のまま、
# 壁が透けて見える明るい地を敷く（暗い動画用の白ロゴ・白文字はやめた）。
# 白ロゴは header.html に2枚目として残っているが、どのテーマでも使わない。
# 設置をご検討の方（theme-business）で隠れていなかったため、白地の上に見えない
# 白ロゴが横に並び、「オリジナルスマホケース自動販売機」がナビ側へ押し出されていた。
--------------------------------------------------------------*/
.mcl-logo-light {
  display: none;
}

.theme-consumer.has-hero #header:not(.fixed-top) {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: none;
  box-shadow: none;
}

/* 地とぼかしは疑似要素に置く。#header 自身に backdrop-filter を付けると、
   #header が position: fixed の子孫の基準になり、スマホのメニュー（#navbar-mobile は
   fixed で画面全体を覆う）の高さがヘッダーの50pxに縮んで、メニューが開かなかった */
.theme-consumer.has-hero #header:not(.fixed-top)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(245, 244, 240, .78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* main.js はヘッダーを fixed-top にするとき、ヘッダーの抜けた分として本文（main）に
   .scrolled-offset（90px）を足す。ヒーローに重ねたヘッダーは元から流れの外にあるので、
   足すとヒーローを過ぎた瞬間に本文が 90px 跳ねる（2026-10 以前から起きていた） */
.theme-consumer.has-hero .scrolled-offset {
  margin-top: 0;
}

/*--------------------------------------------------------------
# FAQ の回答（LABO BACKYARD 由来）
# 回答は Summernote で書かれるため、どんなタグが来るか事前に決められない。
# 中身にクラスを期待せず、コンテナ側で p / ul / ol / img を整える
--------------------------------------------------------------*/
.theme-consumer .mcl-faq-answer > *:first-child {
  margin-top: 0;
}

.theme-consumer .mcl-faq-answer > *:last-child {
  margin-bottom: 0;
}

.theme-consumer .mcl-faq-answer p {
  line-height: 1.9;
  margin-bottom: .8rem;
}

.theme-consumer .mcl-faq-answer ul,
.theme-consumer .mcl-faq-answer ol {
  padding-left: 1.3rem;
  margin-bottom: .8rem;
}

.theme-consumer .mcl-faq-answer li {
  line-height: 1.85;
  margin-bottom: .35rem;
}

/* Summernote から貼られた画像がカラム幅を超えないようにする */
.theme-consumer .mcl-faq-answer img {
  max-width: 100%;
  height: auto;
  border-radius: var(--mcl-r-sm);
}

.theme-consumer .mcl-faq-answer table {
  width: 100%;
  margin-bottom: .8rem;
}
