/* =====================================================================
   フラットセブン お客様画面
   整備工場の道具・伝票・路面標示をモチーフにした、太く力強いデザイン。
   動きは「操作に応える」ものだけ(選ぶ・開く・確定する)。
   ===================================================================== */

@font-face {
  font-family: "Barlow Condensed";
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}

:root {
  --signal: #D0122B;       /* フラットセブンの赤 */
  --signal-deep: #A20D21;
  --signal-tint: #FBE8EA;
  --asphalt: #23272B;      /* 文字・ヘッダー */
  --steel: #5E666D;        /* 補足の文字 */
  --concrete: #ECEEF0;     /* 背景 */
  --sheet: #FFFFFF;
  --rule: #CDD2D6;
  --rule-soft: #E2E5E8;
  --lane: #F4C20D;         /* 路面標示の黄色(進行表示だけに使う) */
  --ok: #1E7B3C;

  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
  --num: "Barlow Condensed", "Arial Narrow", var(--jp);

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--asphalt);
  font-family: var(--jp);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--signal-deep); }

:focus-visible {
  outline: 3px solid var(--lane);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   ヘッダー・フッター
--------------------------------------------------------------------- */
.fs-header {
  background: var(--asphalt);
  border-bottom: 4px solid var(--signal);
}

.fs-header-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fs-brand-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #fff;
  line-height: 1.2;
}

.fs-brand-sub {
  font-size: 11px;
  color: #B9C0C6;
  letter-spacing: .04em;
}

.fs-brand-main {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .06em;
}

.fs-header-tel {
  color: #fff;
  text-decoration: none;
  font-family: var(--num);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fs-header-tel svg { width: 16px; height: 16px; }

.fs-main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 16px 40px;
}

.fs-footer {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--steel);
  font-size: 12px;
  border-top: 1px solid var(--rule);
}

.fs-footer-logout-form { margin: 0; }

.fs-footer-logout {
  background: none;
  border: 0;
  padding: 6px 0;
  color: var(--steel);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------------------------------------------------------------------
   基本の面・見出し・文章
--------------------------------------------------------------------- */
.fs-card {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 24px 20px;
}

.fs-title {
  margin: 0 0 6px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .02em;
}

.fs-lead {
  margin: 0 0 20px;
  color: var(--steel);
  font-size: 14px;
}

.fs-sub-head {
  margin: 28px 0 10px;
  font-size: 16px;
  font-weight: 600;
}

.fs-hint {
  color: var(--steel);
  font-size: 13px;
  margin: 10px 0;
}

.fs-sub {
  margin: 12px 0 0;
  font-size: 14px;
}

.fs-error,
.fs-info {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  animation: fs-shake .45s var(--ease-out);
}

.fs-error {
  background: var(--signal-tint);
  color: var(--signal-deep);
  border: 1px solid #F1B9C0;
}

.fs-info {
  background: #E6F3EA;
  color: var(--ok);
  border: 1px solid #B9DCC4;
  animation: none;
}

@keyframes fs-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.fs-memo-text { white-space: pre-wrap; }

/* ---------------------------------------------------------------------
   ボタン
--------------------------------------------------------------------- */
.fs-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 2px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s var(--ease-out), background-color .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}

.fs-btn:active { transform: translateY(2px); }

.fs-btn-primary {
  background: var(--signal);
  color: #fff;
  box-shadow: 0 3px 0 var(--signal-deep);
}

.fs-btn-primary:hover { background: #DD1A33; }
.fs-btn-primary:active { box-shadow: 0 1px 0 var(--signal-deep); }

.fs-btn-ghost {
  background: var(--sheet);
  color: var(--asphalt);
  border-color: var(--asphalt);
}

.fs-btn-ghost:hover { background: #F4F5F6; }

.fs-btn-danger {
  background: var(--sheet);
  color: var(--signal-deep);
  border-color: var(--signal);
}

.fs-btn-line {
  background: #06C755;
  color: #fff;
}

.fs-btn-small {
  display: inline-flex;
  width: auto;
  min-height: 40px;
  padding: 6px 14px;
  font-size: 14px;
  margin-top: 0;
}

/* 送信中の表示(customer.js が付ける) */
.fs-btn.is-loading {
  color: transparent;
  pointer-events: none;
}

.fs-btn.is-loading::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  animation: fs-spin .7s linear infinite;
}

.fs-btn-ghost.is-loading::after {
  border-color: rgba(35, 39, 43, .25);
  border-top-color: var(--asphalt);
}

@keyframes fs-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------
   入力欄(下線が左から赤く伸びる)
--------------------------------------------------------------------- */
.fs-field { margin: 0 0 18px; }

.fs-field > label,
.fs-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.fs-field-note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--steel);
  font-weight: 400;
}

.fs-input-wrap { position: relative; }

.fs-field input[type="text"],
.fs-field input[type="email"],
.fs-field input[type="tel"],
.fs-field input[type="password"],
.fs-field select,
.fs-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  background-color: #FAFBFB;
  background-image: linear-gradient(var(--signal), var(--signal));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 3px;
  color: var(--asphalt);
  font: inherit;
  font-size: 16px;   /* iPhone で拡大されない大きさ */
  transition: background-size .35s var(--ease-out), border-color .2s, background-color .2s;
  -webkit-appearance: none;
  appearance: none;
}

.fs-field textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.6;
}

.fs-field select {
  background-image:
    linear-gradient(var(--signal), var(--signal)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2323272B' stroke-width='2'/%3E%3C/svg%3E");
  background-position: 0 100%, right 14px center;
  background-size: 0 3px, 12px 8px;
  padding-right: 40px;
}

.fs-field input:focus,
.fs-field select:focus,
.fs-field textarea:focus {
  outline: none;
  border-color: var(--asphalt);
  background-color: #fff;
  background-size: 100% 3px;
}

.fs-field select:focus { background-size: 100% 3px, 12px 8px; }

.fs-field input:user-invalid {
  border-color: var(--signal);
}

.fs-pass-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 44px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--steel);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.fs-input-wrap input[type="password"],
.fs-input-wrap input.is-pass { padding-right: 64px; }

/* 確認コード: 6つの枠(customer.js が作る。元の入力欄は送信用に残す) */
.fs-otp {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 6px;
}

.fs-otp-box {
  height: 58px;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  background: #FAFBFB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--num);
  font-weight: 500;
  font-size: 30px;
  transition: border-color .15s, transform .2s var(--ease-spring), background-color .15s;
}

.fs-otp-box.is-filled {
  border-color: var(--asphalt);
  background: #fff;
  animation: fs-pop .25s var(--ease-spring);
}

.fs-otp-box.is-current {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-tint);
}

.fs-otp-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.fs-otp.is-ready .fs-otp-box { cursor: text; }

@keyframes fs-pop {
  0% { transform: scale(.82); }
  100% { transform: scale(1); }
}

/* ---------------------------------------------------------------------
   予約の進み具合(路面を車が進む)
--------------------------------------------------------------------- */
.fs-lane {
  margin: 0 0 22px;
}

.fs-lane-road {
  position: relative;
  height: 40px;
  border-radius: 6px;
  background: var(--asphalt);
  overflow: hidden;
}

/* 中央の破線 */
.fs-lane-road::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background: repeating-linear-gradient(90deg, var(--lane) 0 14px, transparent 14px 26px);
  opacity: .9;
}

/* 走り終えた区間 */
.fs-lane-done {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(var(--lane-pos, 0) * 1%);
  background: rgba(208, 18, 43, .55);
  transition: width .9s var(--ease-out);
}

.fs-lane-car {
  position: absolute;
  top: 50%;
  left: calc(var(--lane-pos, 0) * 1%);
  width: 46px;
  height: 22px;
  margin: -11px 0 0 -23px;
  transition: left .9s var(--ease-out);
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35));
}

.fs-lane-car svg { display: block; width: 100%; height: 100%; }

.fs-lane.is-moving .fs-lane-car { animation: fs-bounce .18s linear 5; }

@keyframes fs-bounce {
  50% { transform: translateY(-1.5px); }
}

.fs-lane-stops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--steel);
  text-align: center;
}

.fs-lane-stops li { position: relative; }
.fs-lane-stops li.is-done { color: var(--asphalt); }

.fs-lane-stops li.is-current {
  color: var(--signal-deep);
  font-weight: 600;
}

.fs-step-title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 600;
}

.fs-step-kicker {
  margin: 0;
  font-size: 13px;
  color: var(--steel);
}

.fs-step-head { margin-bottom: 18px; }

/* ---------------------------------------------------------------------
   ① 日付(カレンダー)
--------------------------------------------------------------------- */
.fs-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
}

.fs-cal-month {
  font-family: var(--num);
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  letter-spacing: .01em;
  animation: fs-month-in .4s var(--ease-out);
}

.fs-cal-month small {
  font-family: var(--jp);
  font-size: 14px;
  font-weight: 500;
  margin-left: 2px;
}

@keyframes fs-month-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.fs-cal-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1.5px solid var(--asphalt);
  color: var(--asphalt);
  text-decoration: none;
  transition: transform .12s, background .15s;
}

.fs-cal-arrow:hover { background: #F4F5F6; }
.fs-cal-arrow:active { transform: scale(.94); }
.fs-cal-arrow svg { width: 14px; height: 14px; }

.fs-cal-arrow.is-disabled {
  border-color: var(--rule);
  color: var(--rule);
  pointer-events: none;
}

.fs-cal-head,
.fs-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.fs-cal-head {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--steel);
  text-align: center;
}

.fs-cal-head span:first-child { color: var(--signal-deep); }

.fs-cal-cell {
  position: relative;
  aspect-ratio: 1 / 1.08;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--num);
  font-weight: 600;
  font-size: 21px;
  line-height: 1;
  text-decoration: none;
  color: var(--asphalt);
}

.fs-cal-cell small {
  font-family: var(--jp);
  font-size: 10px;
  font-weight: 500;
  margin-top: 3px;
}

a.fs-cal-cell {
  background: #fff;
  border: 1.5px solid var(--rule);
  transition: transform .15s var(--ease-out), border-color .15s, background-color .15s, color .15s;
}

a.fs-cal-cell:hover {
  border-color: var(--asphalt);
  transform: translateY(-2px);
}

a.fs-cal-cell.is-today::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
}

a.fs-cal-cell.is-picked {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
  animation: fs-pick .32s var(--ease-spring);
}

a.fs-cal-cell.is-picked::after { background: #fff; }

@keyframes fs-pick {
  0% { transform: scale(.86); }
  100% { transform: scale(1); }
}

.fs-cal-cell.is-off {
  color: #A9B0B6;
}

/* 定休日は工場の「立入禁止」柄 */
.fs-cal-cell.is-closed {
  color: #8C949A;
  background: repeating-linear-gradient(135deg, #F1F2F3 0 6px, #E4E7E9 6px 12px);
}

.fs-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--steel);
}

.fs-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }

.fs-cal-legend i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--rule);
  background: #fff;
}

.fs-cal-legend i.is-closed {
  border: 0;
  background: repeating-linear-gradient(135deg, #F1F2F3 0 3px, #D9DDE0 3px 6px);
}

/* ---------------------------------------------------------------------
   ② 時間
--------------------------------------------------------------------- */
.fs-day-label {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--asphalt);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
}

.fs-day-label b {
  font-family: var(--num);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.fs-slot-group-title {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--steel);
}

.fs-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.fs-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--num);
  font-weight: 500;
  font-size: 25px;
  line-height: 1;
}

.fs-slot small {
  margin-top: 5px;
  font-family: var(--jp);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.fs-slot-open {
  background: #fff;
  border: 1.5px solid var(--rule);
  color: var(--asphalt);
  transition: transform .15s var(--ease-out), border-color .15s, background-color .15s, color .15s;
}

.fs-slot-open:hover {
  border-color: var(--asphalt);
  transform: translateY(-2px);
}

.fs-slot-open small { color: var(--signal-deep); }

.fs-slot-selected,
.fs-slot-open.is-picked {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}

.fs-slot-selected small,
.fs-slot-open.is-picked small { color: #fff; }

.fs-slot-open.is-picked { animation: fs-pick .32s var(--ease-spring); }

.fs-slot-disabled {
  color: #A3AAB0;
  background: repeating-linear-gradient(135deg, #F3F4F5 0 6px, #EAEDEF 6px 12px);
}

.fs-slot-disabled b {
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

/* ---------------------------------------------------------------------
   ③ 内容(作業を選ぶ → メモ欄が開く)
--------------------------------------------------------------------- */
.fs-group-title {
  margin: 22px 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.fs-group-title:first-of-type { margin-top: 0; }

.fs-choice-list {
  display: grid;
  gap: 8px;
}

.fs-choice {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 26px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 14px;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, transform .15s var(--ease-out);
}

.fs-choice:hover { border-color: var(--asphalt); }

.fs-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fs-choice-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--concrete);
  color: var(--asphalt);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s, color .2s;
}

.fs-choice-icon svg { width: 24px; height: 24px; }

.fs-choice-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.fs-choice-desc {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--steel);
}

/* チェックの丸(選ぶと線が描かれる) */
.fs-choice-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s, border-color .2s;
}

.fs-choice-check svg {
  width: 14px;
  height: 14px;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset .3s var(--ease-out) .05s;
}

.fs-choice:has(input:checked) {
  border-color: var(--signal);
  background: #FFF8F8;
}

.fs-choice:has(input:checked) .fs-choice-icon {
  background: var(--signal);
  color: #fff;
}

.fs-choice:has(input:checked) .fs-choice-check {
  background: var(--signal);
  border-color: var(--signal);
}

.fs-choice:has(input:checked) .fs-choice-check svg { stroke-dashoffset: 0; }

.fs-choice:has(input:focus-visible) {
  outline: 3px solid var(--lane);
  outline-offset: 2px;
}

.fs-choice:active { transform: scale(.99); }

.fs-choice.is-disabled {
  cursor: not-allowed;
  color: #9AA1A7;
  background: repeating-linear-gradient(135deg, #F7F8F8 0 8px, #EFF1F2 8px 16px);
}

.fs-choice.is-disabled:hover { border-color: var(--rule); }
.fs-choice.is-disabled .fs-choice-icon { background: #E3E6E8; color: #9AA1A7; }

.fs-choice-full {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 4px;
  background: #DDE1E4;
  color: var(--steel);
  font-size: 11px;
  font-weight: 500;
  vertical-align: 2px;
}

/* 車両の選択(小さめの行) */
.fs-choice-sm {
  grid-template-columns: 1fr 26px;
  min-height: 52px;
}

/* 開閉する領域(高さをなめらかに変える) */
/* JavaScript が無い時は開いたまま表示する */
.fs-reveal {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .4s var(--ease-out), opacity .3s;
}

.fs-reveal > .fs-reveal-inner { overflow: hidden; min-height: 0; }

.js .fs-reveal:not(.is-open) {
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
}

.fs-memo-panel {
  margin-top: 12px;
  padding: 14px;
  border-radius: 10px;
  background: var(--concrete);
}

.fs-memo-panel .fs-field { margin: 0; }

.fs-memo-count {
  display: block;
  margin-top: 4px;
  text-align: right;
  font-family: var(--num);
  font-weight: 600;
  font-size: 14px;
  color: var(--steel);
}

.fs-memo-count.is-near { color: var(--signal-deep); }

/* 代車のスイッチ */
.fs-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.fs-switch-text b { display: block; font-size: 16px; font-weight: 600; }
.fs-switch-text span { font-size: 12px; color: var(--steel); }

.fs-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fs-switch-track {
  flex: none;
  position: relative;
  width: 54px;
  height: 32px;
  border-radius: 16px;
  background: #C3C9CE;
  transition: background-color .25s;
}

.fs-switch-track::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  transition: transform .3s var(--ease-spring);
}

.fs-switch:has(input:checked) { border-color: var(--asphalt); }
.fs-switch:has(input:checked) .fs-switch-track { background: var(--signal); }
.fs-switch:has(input:checked) .fs-switch-track::after { transform: translateX(22px); }
.fs-switch:has(input:focus-visible) { outline: 3px solid var(--lane); outline-offset: 2px; }

.fs-trolley-type { padding-top: 10px; }

/* ---------------------------------------------------------------------
   ④ 確認(作業伝票)・完了(受付の印)
--------------------------------------------------------------------- */
.fs-ticket-slot {
  position: relative;
  padding-top: 10px;
  overflow: hidden;
}

/* 伝票が出てくる口 */
.fs-ticket-slot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 10px;
  border-radius: 6px;
  background: var(--asphalt);
  z-index: 2;
}

.fs-ticket {
  position: relative;
  margin: 0 10px;
  padding: 18px 18px 22px;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 0;
  animation: fs-print .8s var(--ease-out) both;
}

/* 下の切り取り線 */
.fs-ticket::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -8px;
  height: 8px;
  background: radial-gradient(circle at 6px 0, transparent 5px, #fff 5.5px) 0 0 / 12px 8px repeat-x;
}

@keyframes fs-print {
  from { transform: translateY(-104%); }
  to { transform: none; }
}

.fs-ticket-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--asphalt);
}

.fs-ticket-date {
  font-family: var(--num);
  font-weight: 500;
  font-size: 40px;
  line-height: .95;
}

.fs-ticket-date small {
  font-family: var(--jp);
  font-size: 15px;
  font-weight: 500;
}

.fs-ticket-time {
  font-family: var(--num);
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
}

.fs-ticket-time small {
  font-family: var(--jp);
  font-size: 12px;
  font-weight: 500;
  margin-left: 2px;
}

.fs-confirm-table {
  width: 100%;
  border-collapse: collapse;
}

.fs-confirm-table th {
  width: 30%;
  padding: 11px 8px 11px 0;
  border-bottom: 1px dashed var(--rule);
  color: var(--steel);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  vertical-align: top;
}

.fs-confirm-table td {
  padding: 11px 0;
  border-bottom: 1px dashed var(--rule);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.fs-confirm-table tr:last-child th,
.fs-confirm-table tr:last-child td { border-bottom: 0; }

.fs-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--asphalt);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.fs-badge-red { background: var(--signal); }

/* 完了の印 */
.fs-stamp-wrap { position: relative; }

.fs-stamp {
  position: absolute;
  right: 18px;
  top: 96px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 4px solid var(--signal);
  color: var(--signal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  line-height: 1.1;
  transform: rotate(-14deg);
  background: rgba(255, 255, 255, .6);
  animation: fs-stamp .55s var(--ease-out) .5s both;
  z-index: 3;
}

.fs-stamp b { font-size: 24px; letter-spacing: .1em; }
.fs-stamp span { font-family: var(--num); font-size: 15px; font-weight: 500; }

@keyframes fs-stamp {
  0% { opacity: 0; transform: rotate(-14deg) scale(2.3); }
  60% { opacity: 1; transform: rotate(-14deg) scale(.92); }
  100% { opacity: 1; transform: rotate(-14deg) scale(1); }
}

.fs-done-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 600;
}

/* ---------------------------------------------------------------------
   Top
--------------------------------------------------------------------- */
.fs-hello {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 500;
}

.fs-hello b { font-size: 19px; font-weight: 600; }

.fs-next {
  position: relative;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}

.fs-next-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--asphalt);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.fs-next-body { padding: 16px 16px 18px; }

.fs-next-when {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.fs-next-empty {
  padding: 20px 16px 18px;
}

.fs-next-empty p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.fs-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.fs-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 112px;
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid var(--rule);
  color: var(--asphalt);
  text-decoration: none;
  transition: transform .15s var(--ease-out), border-color .15s;
}

.fs-menu-btn:hover { border-color: var(--asphalt); transform: translateY(-2px); }
.fs-menu-btn:active { transform: translateY(1px); }

.fs-menu-btn svg { width: 30px; height: 30px; }

.fs-menu-btn b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.fs-menu-btn span {
  display: block;
  font-size: 12px;
  color: var(--steel);
  line-height: 1.4;
}

.fs-menu-btn.is-primary {
  grid-column: 1 / -1;
  min-height: 0;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
  box-shadow: 0 3px 0 var(--signal-deep);
}

.fs-menu-btn.is-primary span { color: #FFD9DD; }
.fs-menu-btn.is-primary:hover { background: #DD1A33; }

/* ---------------------------------------------------------------------
   予約履歴・車両・店舗情報
--------------------------------------------------------------------- */
.fs-history-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.fs-history-list li {
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
  overflow-wrap: anywhere;
}

.fs-history-when {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.fs-history-when b {
  font-family: var(--num);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
}

.fs-history-meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--steel);
}

.fs-history-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.fs-history-actions form { margin: 0; }

.fs-history-note {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--steel);
}

.fs-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--concrete);
  color: var(--asphalt);
  font-size: 12px;
  font-weight: 600;
}

.fs-tag-red { background: var(--signal-tint); color: var(--signal-deep); }
.fs-tag-gray { background: #E1E4E7; color: var(--steel); }

.fs-car-card {
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #fff;
}

.fs-car-model {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

/* ナンバープレート風の表示 */
.fs-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 2px 10px;
  border: 2px solid var(--ok);
  border-radius: 4px;
  background: #fff;
  color: var(--ok);
  font-family: var(--num);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: .06em;
  line-height: 1.1;
}

.fs-car-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 10px 0 0;
  font-size: 13px;
}

.fs-car-detail dt { color: var(--steel); font-weight: 500; }
.fs-car-detail dd { margin: 0; }

.fs-shop-info-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
}

.fs-shop-info-row b { color: var(--steel); font-size: 13px; }

.fs-shop-mascot {
  display: block;
  width: 120px;
  margin: 18px auto 0;
}

/* ---------------------------------------------------------------------
   小さな画面・動きを減らす設定
--------------------------------------------------------------------- */
@media (max-width: 360px) {
  .fs-card { padding: 20px 14px; }
  .fs-cal-cell { font-size: 18px; }
  .fs-slot { font-size: 22px; }
}

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


/* 文字を細く(2026-10-30):太字の指定がない <b> <strong> も少しだけ太くする */
b, strong { font-weight: 600; }

/* 確認コード画面が横にずれる問題の修正(2026-10-30)
   入力欄(見えない本体)が .fs-field input の幅100%で画面の外まで広がっていたため、
   1px の大きさで6つの枠の左上に重ね、画面の外にはみ出さないようにする。 */
.fs-field { position: relative; }
.fs-field input.fs-otp-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 16px; /* iPhone で入力時に画面が拡大されないように */
  pointer-events: none;
}

/* どの画面でも横にスライドしないように固定する */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

/* 試運転用の確認コード表示 */
.fs-trial-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0 0 16px;
  padding: 12px;
  border: 2px dashed var(--lane);
  border-radius: 8px;
  background: #FFF9E0;
  text-align: center;
}
.fs-trial-code span { font-size: 12px; color: var(--steel); }
.fs-trial-code b { font-family: var(--num); font-weight: 500; font-size: 34px; letter-spacing: .2em; line-height: 1.1; }
.fs-trial-code small { font-size: 11px; color: var(--steel); }

/* =====================================================================
   赤を強調(2026-11)。配置・大きさは変えず、色だけを変える。
   ===================================================================== */
:root {
  --signal: #E60012;       /* より鮮やかな赤 */
  --signal-deep: #B5000E;
  --signal-tint: #FDE3E5;
}
.fs-header { background: var(--signal); border-bottom-color: var(--signal-deep); }
.fs-brand-sub { color: #FFE0E3; }
.fs-next-bar { background: var(--signal); }
.fs-day-label { background: var(--signal); }
/* カードの上に赤い線(内側に描くので大きさは変わらない) */
.fs-card { box-shadow: inset 0 4px 0 var(--signal); }
.fs-menu-btn svg { color: var(--signal); }
.fs-menu-btn:hover { border-color: var(--signal); }
.fs-menu-btn.is-primary svg { color: #fff; }
.fs-ticket-head { border-bottom-color: var(--signal); }
.fs-title { color: var(--asphalt); }

/* お店で確認(新規登録の QR) */
.fs-reg-qr { width: 240px; max-width: 80%; margin: 8px auto 4px; background: #fff; }
.fs-reg-qr svg { display: block; width: 100%; height: auto; }
.fs-reg-no { text-align: center; font-size: 14px; color: var(--steel); margin: 0 0 12px; }
.fs-reg-no b { font-family: var(--num); font-size: 30px; color: var(--asphalt); letter-spacing: .1em; margin-left: 6px; }

/* スマホ: 拡大されないように・端に余白が出ないように(2026-11) */
html { background: var(--concrete); -webkit-text-size-adjust: 100%; touch-action: manipulation; }
html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
body { overscroll-behavior: none; }
img, svg, video, canvas { max-width: 100%; }
/* iPhone は 16px より小さい入力欄を触ると画面を拡大するので、入力欄は 16px 以上にする */
input, select, textarea { font-size: max(16px, 1em); }
/* 上下の端まで背景をつなげる(上はヘッダーの赤、iPhone のホームバーの所まで) */
.fs-header { padding-top: env(safe-area-inset-top); }
.fs-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
