/*
 * 買取相談ページ（/buyback/）の本文とフォーム
 *
 * 構成はお問い合わせ・特商法のページと同じ「灰色の地に白いカード」。
 * 幅は .page-contact-us / .page-law と同じ 940px。
 * 余白・色・文字の刻みはテーマの実値に合わせている：
 *   文字 #2f3237 / 見出し #1c1e21 / 補足 #5d626a / 濃紺 #063e60 / 必須 #7a2f2f
 *   カード 40px 44px（スマホ 24px 18px）/ 本文 15px（スマホ 14px）/ 入力欄 16px（iOS の拡大防止）
 *
 * テーマの #main-content-wrap p, li, label{font-size:...} は (1,1,1) の強さなので、
 * こちらは #main-content-wrap .moto-bb ... から書く（読み込みはテーマより後）。
 * テーマの a:focus{outline:none} を打ち消し、キーボード操作の枠は必ず見えるようにする。
 */

.moto-bb-page {
  box-sizing: border-box;
  max-width: 940px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

#main-content-wrap .moto-bb {
  color: #2f3237;
  font-size: 15px;
  line-height: 1.9;
}

#main-content-wrap .moto-bb *,
#main-content-wrap .moto-bb *::before,
#main-content-wrap .moto-bb *::after {
  box-sizing: border-box;
}

#main-content-wrap .moto-bb [hidden] {
  display: none !important;
}

#main-content-wrap .moto-bb .moto-bb-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- カードと見出し ---------- */
#main-content-wrap .moto-bb-card {
  margin: 0 0 24px;
  padding: 40px 44px;
  background: #fff;
}

#main-content-wrap .moto-bb h2 {
  margin: 0 0 24px;
  padding: 0 0 14px;
  border-bottom: 2px solid #2f3237;
  color: #1c1e21;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: .04em;
}

#main-content-wrap .moto-bb h3 {
  margin: 0 0 6px;
  color: #1c1e21;
  font-size: 17px;
  font-weight: bold;
  line-height: 1.6;
}

#main-content-wrap .moto-bb p,
#main-content-wrap .moto-bb li,
#main-content-wrap .moto-bb dt,
#main-content-wrap .moto-bb dd {
  color: #2f3237;
  font-size: 15px;
  line-height: 1.9;
}

#main-content-wrap .moto-bb p {
  margin: 0 0 1em;
}

#main-content-wrap .moto-bb p:last-child {
  margin-bottom: 0;
}

#main-content-wrap .moto-bb a:not(.moto-bb-button) {
  color: #063e60;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#main-content-wrap .moto-bb a:not(.moto-bb-button):hover {
  text-decoration: none;
}

#main-content-wrap .moto-bb a:focus-visible,
#main-content-wrap .moto-bb button:focus-visible,
#main-content-wrap .moto-bb input:focus-visible,
#main-content-wrap .moto-bb select:focus-visible,
#main-content-wrap .moto-bb textarea:focus-visible,
#main-content-wrap .moto-bb [tabindex="-1"]:focus-visible {
  outline: 3px solid #063e60;
  outline-offset: 2px;
}

#main-content-wrap .moto-bb figure {
  margin: 0;
}

#main-content-wrap .moto-bb figure img {
  display: block;
  width: 100%;
  height: auto;
}

#main-content-wrap .moto-bb .moto-bb-eyebrow {
  margin: 0 0 10px;
  color: #5d626a;
  font-family: "Sabon Next LT Pro", "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: .24em;
  line-height: 1.4;
}

#main-content-wrap .moto-bb .moto-bb-lead {
  color: #1c1e21;
  font-size: 17px;
  line-height: 1.8;
}

#main-content-wrap .moto-bb .moto-bb-note {
  color: #5d626a;
  font-size: 13px;
  line-height: 1.8;
}

#main-content-wrap .moto-bb .moto-bb-actions {
  margin: 24px 0 12px;
}

/* ---------- ボタン ---------- */
#main-content-wrap .moto-bb .moto-bb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 12px 36px;
  border: 2px solid #063e60;
  border-radius: 26px;
  background: #063e60;
  box-shadow: none;
  color: #fff !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: normal;
  line-height: 1.4;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none !important;
  text-transform: none;
  cursor: pointer;
  transition: opacity .2s, background-color .2s, color .2s;
}

#main-content-wrap .moto-bb .moto-bb-button:hover {
  opacity: .88;
}

#main-content-wrap .moto-bb .moto-bb-button--outline {
  background: #fff;
  color: #063e60 !important;
}

#main-content-wrap .moto-bb .moto-bb-button--outline:hover {
  opacity: 1;
  background: #eef3f6;
}

#main-content-wrap .moto-bb .moto-bb-button--submit {
  min-width: 320px;
  min-height: 56px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: .04em;
}

#main-content-wrap .moto-bb .moto-bb-button[disabled],
#main-content-wrap .moto-bb .moto-bb-button[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
}

/* ---------- ファーストビュー ---------- */
#main-content-wrap .moto-bb-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px;
  align-items: center;
}

#main-content-wrap .moto-bb-hero__media img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- 写真と文の2段 ---------- */
#main-content-wrap .moto-bb-split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px;
  align-items: start;
}

#main-content-wrap .moto-bb-split--reverse .moto-bb-split__media {
  order: -1;
}

#main-content-wrap .moto-bb-split--reverse {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

#main-content-wrap .moto-bb-split__media img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- 流れ ---------- */
#main-content-wrap .moto-bb .moto-bb-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

#main-content-wrap .moto-bb .moto-bb-flow__step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
}

#main-content-wrap .moto-bb .moto-bb-flow__no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #063e60;
  border-radius: 50%;
  color: #063e60;
  font-family: "Sabon Next LT Pro", "Times New Roman", serif;
  font-size: 20px;
  line-height: 1;
}

#main-content-wrap .moto-bb .moto-bb-flow p {
  margin: 0;
}

/* ---------- お送りいただきたい写真 ---------- */
#main-content-wrap .moto-bb .moto-bb-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: moto-bb-shot;
}

#main-content-wrap .moto-bb .moto-bb-shots li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  background: #f6f6f6;
  line-height: 1.6;
  counter-increment: moto-bb-shot;
}

#main-content-wrap .moto-bb .moto-bb-shots li::before {
  content: counter(moto-bb-shot, decimal-leading-zero);
  flex: none;
  color: #063e60;
  font-family: "Sabon Next LT Pro", "Times New Roman", serif;
  font-size: 18px;
  line-height: 1;
}

/* ---------- よくあるご質問 ---------- */
#main-content-wrap .moto-bb .moto-bb-faq {
  margin: 0;
}

#main-content-wrap .moto-bb .moto-bb-faq__row {
  padding: 18px 0;
  border-bottom: 1px solid #e4e4e4;
}

#main-content-wrap .moto-bb .moto-bb-faq__row:first-child {
  padding-top: 0;
}

#main-content-wrap .moto-bb .moto-bb-faq dt {
  display: flex;
  gap: 8px;
  margin: 0 0 6px;
  color: #1c1e21;
  font-weight: bold;
}

#main-content-wrap .moto-bb .moto-bb-faq dd {
  display: flex;
  gap: 8px;
  margin: 0;
}

#main-content-wrap .moto-bb .moto-bb-faq__mark {
  flex: none;
  width: 1.4em;
  color: #063e60;
  font-family: "Sabon Next LT Pro", "Times New Roman", serif;
  font-weight: normal;
}

#main-content-wrap .moto-bb .moto-bb-faq dd .moto-bb-faq__mark {
  color: #5d626a;
}

/* ================================================================
   フォーム
   ================================================================ */
#main-content-wrap .moto-bb-form-section:focus {
  outline: none;
}

#main-content-wrap .moto-bb .moto-bb-fallback {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-left: 3px solid #7a2f2f;
  background: #fdf6f6;
  font-size: 14px;
}

#main-content-wrap .moto-bb .moto-bb-form {
  margin: 28px 0 0;
}

#main-content-wrap .moto-bb fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
}

#main-content-wrap .moto-bb legend {
  padding: 0;
  background: transparent !important;
}

/* 入力のまとまり（お客様の情報・所在地・その他） */
#main-content-wrap .moto-bb .moto-bb-group {
  margin: 0 0 36px;
}

#main-content-wrap .moto-bb .moto-bb-group__title,
#main-content-wrap .moto-bb .moto-bb-item__title {
  /* legend の下余白が効かないブラウザがあるので float で通常の箱にする */
  float: left;
  width: 100%;
  margin: 0 0 18px;
  padding: 0 0 0 12px;
  border-left: 4px solid #2f3237;
  color: #1c1e21;
  font-size: 17px;
  font-weight: bold;
  line-height: 1.5;
}

#main-content-wrap .moto-bb .moto-bb-group__title + *,
#main-content-wrap .moto-bb .moto-bb-item__title + * {
  clear: both;
}

#main-content-wrap .moto-bb .moto-bb-field {
  margin: 0 0 22px;
}

#main-content-wrap .moto-bb .moto-bb-field:last-child {
  margin-bottom: 0;
}

#main-content-wrap .moto-bb .moto-bb-row {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 20px;
}

#main-content-wrap .moto-bb .moto-bb-row > .moto-bb-field {
  margin-bottom: 0;
}

#main-content-wrap .moto-bb .moto-bb-label,
#main-content-wrap .moto-bb label.moto-bb-label {
  display: block;
  float: none;
  width: auto;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  color: #2f3237;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.6;
  letter-spacing: .02em;
}

#main-content-wrap .moto-bb .moto-bb-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: normal;
  line-height: 1.6;
  letter-spacing: .06em;
  vertical-align: 1px;
}

#main-content-wrap .moto-bb .moto-bb-badge--req {
  background: #7a2f2f;
  color: #fff;
}

#main-content-wrap .moto-bb .moto-bb-badge--opt {
  background: #dcdcdc;
  color: #2f3237;
}

#main-content-wrap .moto-bb .moto-bb-hint {
  margin: 6px 0 0;
  color: #5d626a;
  font-size: 13px;
  line-height: 1.7;
}

#main-content-wrap .moto-bb .moto-bb-hint--group {
  margin: -8px 0 16px;
}

#main-content-wrap .moto-bb .moto-bb-error {
  margin: 6px 0 0;
  color: #b02a2a;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.7;
}

#main-content-wrap .moto-bb .moto-bb-error::before {
  content: "！ ";
}

/* 入力欄（決済・アカウント画面と同じ箱の形。枠は白地で 3:1 以上の #8f949b） */
#main-content-wrap .moto-bb .moto-bb-input,
#main-content-wrap .moto-bb .moto-bb-select,
#main-content-wrap .moto-bb .moto-bb-textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #8f949b;
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
  color: #2f3237;
  font-family: inherit;
  font-size: 15px;
  line-height: normal;
  -webkit-appearance: none;
  appearance: none;
}

#main-content-wrap .moto-bb .moto-bb-select {
  padding-right: 36px;
  background: #fff 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='%232f3237' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
}

#main-content-wrap .moto-bb .moto-bb-textarea {
  height: auto;
  min-height: 120px;
  padding: 10px 12px;
  line-height: 1.7;
  resize: vertical;
}

#main-content-wrap .moto-bb .moto-bb-input:focus,
#main-content-wrap .moto-bb .moto-bb-select:focus,
#main-content-wrap .moto-bb .moto-bb-textarea:focus {
  border-color: #063e60;
  outline: 2px solid #063e60;
  outline-offset: 0;
}

#main-content-wrap .moto-bb [aria-invalid="true"] {
  border-color: #b02a2a !important;
  border-width: 2px !important;
}

#main-content-wrap .moto-bb .moto-bb-input--short {
  max-width: 320px;
}

#main-content-wrap .moto-bb .moto-bb-suffix {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#main-content-wrap .moto-bb .moto-bb-input--qty {
  width: 88px;
  text-align: right;
}

/* 家具の種類（大きめの選択肢。選んだものは色だけでなく ✓ でも示す） */
#main-content-wrap .moto-bb .moto-bb-radios__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#main-content-wrap .moto-bb .moto-bb-radio {
  position: relative;
  display: block;
}

#main-content-wrap .moto-bb .moto-bb-radio input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

#main-content-wrap .moto-bb .moto-bb-radio label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #8f949b;
  border-radius: 2px;
  background: #fff;
  color: #2f3237;
  font-size: 15px;
  font-weight: normal;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}

#main-content-wrap .moto-bb .moto-bb-radio input:checked + label {
  border-color: #063e60;
  background: #063e60;
  color: #fff;
}

#main-content-wrap .moto-bb .moto-bb-radio input:checked + label::before {
  content: "✓";
  margin-right: 6px;
}

#main-content-wrap .moto-bb .moto-bb-radio input:focus-visible + label {
  outline: 3px solid #063e60;
  outline-offset: 2px;
}

#main-content-wrap .moto-bb .moto-bb-radios.is-invalid .moto-bb-radio label {
  border-color: #b02a2a;
  border-width: 2px;
}

/* サイズ（幅・奥行・高さ） */
#main-content-wrap .moto-bb .moto-bb-size__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 160px));
  gap: 12px;
}

#main-content-wrap .moto-bb .moto-bb-size__cell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

#main-content-wrap .moto-bb .moto-bb-size__cell label,
#main-content-wrap .moto-bb .moto-bb-size__cell > span,
#main-content-wrap .moto-bb .moto-bb-suffix > span {
  margin: 0;
  color: #2f3237;
  font-size: 14px;
  font-weight: normal;
}

#main-content-wrap .moto-bb .moto-bb-size__cell .moto-bb-input {
  text-align: right;
}

/* 同意 */
#main-content-wrap .moto-bb .moto-bb-consent__text {
  margin: 0 0 12px;
  font-size: 14px;
}

#main-content-wrap .moto-bb .moto-bb-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

#main-content-wrap .moto-bb .moto-bb-check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #063e60;
}

#main-content-wrap .moto-bb .moto-bb-check label {
  margin: 0;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

/* 入力しない欄（ボット対策）。画面にも読み上げにも出さない */
#main-content-wrap .moto-bb .moto-bb-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 家具ごとの欄 ---------- */
#main-content-wrap .moto-bb .moto-bb-item {
  position: relative;
  margin: 0 0 20px;
  padding: 26px 26px 24px;
  border: 1px solid #cfcfcf;
}

/* 見出しは横幅いっぱいの float にして、右上の「削除」ボタンの分だけ右を空ける。
   その下の欄はすべて回り込みを解除する（見出しの直後は削除ボタンなので + * では効かない）。 */
#main-content-wrap .moto-bb .moto-bb-items.has-many .moto-bb-item__title {
  padding-right: 150px;
}

#main-content-wrap .moto-bb .moto-bb-item > .moto-bb-field {
  clear: both;
}

#main-content-wrap .moto-bb .moto-bb-item__remove {
  position: absolute;
  top: 22px;
  right: 22px;
  min-height: 36px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #8f949b;
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
  color: #2f3237;
  font-family: inherit;
  font-size: 13px;
  font-weight: normal;
  line-height: 1;
  cursor: pointer;
}

#main-content-wrap .moto-bb .moto-bb-item__remove:hover {
  background: #f2f2f2;
}

#main-content-wrap .moto-bb .moto-bb-items:not(.has-many) .moto-bb-item__remove {
  display: none;
}

#main-content-wrap .moto-bb .moto-bb-add {
  margin: 0 0 40px;
}

#main-content-wrap .moto-bb .moto-bb-add .moto-bb-button {
  width: 100%;
  border-radius: 4px;
}

/* ---------- 写真 ---------- */
#main-content-wrap .moto-bb .moto-bb-photos {
  padding: 18px 20px 20px;
  background: #f7f7f7;
}

#main-content-wrap .moto-bb .moto-bb-photos__recommend {
  display: inline-block;
  margin-left: 8px;
  color: #063e60;
  font-size: 12px;
  font-weight: normal;
}

#main-content-wrap .moto-bb .moto-bb-drop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 12px 0 0;
  padding: 18px;
  border: 2px dashed #8f949b;
  border-radius: 4px;
  background: #fff;
}

#main-content-wrap .moto-bb .moto-bb-drop.is-dragover {
  border-color: #063e60;
  background: #eef3f6;
}

#main-content-wrap .moto-bb .moto-bb-file {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  opacity: 0;
}

#main-content-wrap .moto-bb .moto-bb-file:focus-visible + label {
  outline: 3px solid #063e60;
  outline-offset: 3px;
}

#main-content-wrap .moto-bb .moto-bb-file[disabled] + label {
  opacity: .5;
  cursor: not-allowed;
}

#main-content-wrap .moto-bb .moto-bb-drop__button {
  margin: 0;
  padding-left: 28px;
  padding-right: 28px;
  font-weight: bold;
}

#main-content-wrap .moto-bb .moto-bb-drop__or {
  color: #5d626a;
  font-size: 13px;
}

#main-content-wrap .moto-bb .moto-bb-photos__count {
  margin: 10px 0 0;
  font-size: 13px;
}

#main-content-wrap .moto-bb .moto-bb-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

#main-content-wrap .moto-bb .moto-bb-thumbs:empty {
  display: none;
}

#main-content-wrap .moto-bb .moto-bb-thumb {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid #cfcfcf;
  background: #fff;
}

#main-content-wrap .moto-bb .moto-bb-thumb__img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ebebeb;
}

#main-content-wrap .moto-bb .moto-bb-thumb__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#main-content-wrap .moto-bb .moto-bb-thumb__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  background: #063e60;
  transition: width .2s;
}

#main-content-wrap .moto-bb .moto-bb-thumb__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

#main-content-wrap .moto-bb .moto-bb-thumb__state {
  margin: 0;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.5;
}

#main-content-wrap .moto-bb .moto-bb-thumb__state::before {
  display: inline-block;
  margin-right: 4px;
}

#main-content-wrap .moto-bb .moto-bb-thumb.is-busy .moto-bb-thumb__state::before {
  content: "…";
}

#main-content-wrap .moto-bb .moto-bb-thumb.is-done .moto-bb-thumb__state {
  color: #1d6b3a;
}

#main-content-wrap .moto-bb .moto-bb-thumb.is-done .moto-bb-thumb__state::before {
  content: "✓";
}

#main-content-wrap .moto-bb .moto-bb-thumb.is-error {
  border-color: #b02a2a;
}

#main-content-wrap .moto-bb .moto-bb-thumb.is-error .moto-bb-thumb__state {
  color: #b02a2a;
}

#main-content-wrap .moto-bb .moto-bb-thumb.is-error .moto-bb-thumb__state::before {
  content: "！";
}

#main-content-wrap .moto-bb .moto-bb-thumb__msg {
  margin: 0;
  color: #b02a2a;
  font-size: 12px;
  line-height: 1.6;
  word-break: break-all;
}

#main-content-wrap .moto-bb .moto-bb-thumb__actions {
  display: flex;
  gap: 6px;
}

#main-content-wrap .moto-bb .moto-bb-thumb__actions button {
  flex: 1;
  min-height: 36px;
  margin: 0;
  padding: 0 6px;
  border: 1px solid #8f949b;
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
  color: #2f3237;
  font-family: inherit;
  font-size: 12px;
  font-weight: normal;
  line-height: 1.2;
  cursor: pointer;
}

#main-content-wrap .moto-bb .moto-bb-thumb__actions button:hover {
  background: #f2f2f2;
}

#main-content-wrap .moto-bb .moto-bb-photos__messages:empty {
  display: none;
}

#main-content-wrap .moto-bb .moto-bb-photos__messages {
  margin: 12px 0 0;
}

#main-content-wrap .moto-bb .moto-bb-photos__messages p {
  margin: 0 0 4px;
  color: #b02a2a;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.7;
}

/* ---------- 入力エラーのまとめ・送信・完了 ---------- */
#main-content-wrap .moto-bb .moto-bb-errors {
  margin: 0 0 28px;
  padding: 16px 20px;
  border-left: 3px solid #7a2f2f;
  background: #fdf6f6;
}

#main-content-wrap .moto-bb .moto-bb-errors:focus {
  outline: 3px solid #7a2f2f;
  outline-offset: 2px;
}

#main-content-wrap .moto-bb .moto-bb-errors__title {
  margin: 0 0 6px;
  color: #7a2f2f;
  font-weight: bold;
}

#main-content-wrap .moto-bb .moto-bb-errors ul {
  margin: 0;
  padding-left: 1.2em;
}

#main-content-wrap .moto-bb .moto-bb-errors li {
  margin: 0;
  font-size: 14px;
}

#main-content-wrap .moto-bb .moto-bb-errors a {
  color: #7a2f2f !important;
}

#main-content-wrap .moto-bb .moto-bb-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 8px 0 0;
  text-align: center;
}

#main-content-wrap .moto-bb .moto-bb-status {
  min-height: 1.9em;
  margin: 0;
  font-size: 14px;
}

#main-content-wrap .moto-bb .moto-bb-status.is-error {
  color: #b02a2a;
  font-weight: bold;
}

#main-content-wrap .moto-bb .moto-bb-complete {
  margin: 28px 0 0;
  padding: 28px 28px 24px;
  border-left: 3px solid #063e60;
  background: #f7f7f7;
}

#main-content-wrap .moto-bb .moto-bb-complete:focus {
  outline: none;
}

#main-content-wrap .moto-bb .moto-bb-complete__title {
  margin: 0 0 8px;
  font-size: 20px;
}

#main-content-wrap .moto-bb .moto-bb-complete__receipt strong {
  font-size: 20px;
  letter-spacing: .06em;
}

#main-content-wrap .moto-bb .moto-bb-complete__mail {
  color: #5d626a;
  font-size: 14px;
}

/* ================================================================
   スマホ（テーマの $break-sm = 769px と同じ境目）
   ================================================================ */
@media screen and (max-width: 769px) {
  .moto-bb-page {
    margin-bottom: 48px;
    padding: 0 15px;
  }

  #main-content-wrap .moto-bb-card {
    margin-bottom: 16px;
    padding: 24px 18px;
  }

  #main-content-wrap .moto-bb h2 {
    margin-bottom: 18px;
    padding-bottom: 10px;
    font-size: 18px;
  }

  #main-content-wrap .moto-bb h3,
  #main-content-wrap .moto-bb .moto-bb-group__title,
  #main-content-wrap .moto-bb .moto-bb-item__title {
    font-size: 15px;
  }

  #main-content-wrap .moto-bb p,
  #main-content-wrap .moto-bb li,
  #main-content-wrap .moto-bb dt,
  #main-content-wrap .moto-bb dd {
    font-size: 14px;
  }

  #main-content-wrap .moto-bb .moto-bb-lead {
    font-size: 16px;
  }

  #main-content-wrap .moto-bb-hero,
  #main-content-wrap .moto-bb-split,
  #main-content-wrap .moto-bb-split--reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  #main-content-wrap .moto-bb-hero__media img {
    aspect-ratio: 4 / 3;
  }

  #main-content-wrap .moto-bb-split__media img {
    aspect-ratio: 16 / 9;
  }

  /* スマホは読み順どおり（文 → 写真）に戻す */
  #main-content-wrap .moto-bb-split--reverse .moto-bb-split__media {
    order: 0;
  }

  #main-content-wrap .moto-bb .moto-bb-button {
    display: flex;
    width: 100%;
    padding: 12px 20px;
  }

  #main-content-wrap .moto-bb .moto-bb-button--submit {
    min-width: 0;
  }

  #main-content-wrap .moto-bb .moto-bb-flow,
  #main-content-wrap .moto-bb .moto-bb-shots {
    grid-template-columns: minmax(0, 1fr);
  }

  #main-content-wrap .moto-bb .moto-bb-flow {
    gap: 20px;
  }

  #main-content-wrap .moto-bb .moto-bb-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  /* iOS は 16px 未満の入力欄にフォーカスすると画面を拡大する */
  #main-content-wrap .moto-bb .moto-bb-input,
  #main-content-wrap .moto-bb .moto-bb-select,
  #main-content-wrap .moto-bb .moto-bb-textarea,
  #main-content-wrap .moto-bb .moto-bb-radio label {
    font-size: 16px;
  }

  #main-content-wrap .moto-bb .moto-bb-input--short {
    max-width: none;
  }

  #main-content-wrap .moto-bb .moto-bb-radios__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #main-content-wrap .moto-bb .moto-bb-size__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  #main-content-wrap .moto-bb .moto-bb-size__cell {
    grid-template-columns: 3em minmax(0, 1fr) auto;
  }

  #main-content-wrap .moto-bb .moto-bb-item {
    padding: 20px 14px 18px;
  }

  #main-content-wrap .moto-bb .moto-bb-item__remove {
    top: 16px;
    right: 12px;
  }

  #main-content-wrap .moto-bb .moto-bb-photos {
    padding: 14px 12px 16px;
  }

  #main-content-wrap .moto-bb .moto-bb-drop {
    padding: 14px;
  }

  /* スマホにドラッグはないので案内も出さない */
  #main-content-wrap .moto-bb .moto-bb-drop__or {
    display: none;
  }

  #main-content-wrap .moto-bb .moto-bb-drop__button {
    width: 100%;
  }

  #main-content-wrap .moto-bb .moto-bb-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #main-content-wrap .moto-bb .moto-bb-complete {
    padding: 22px 18px 18px;
  }
}

/* ドラッグできない端末（タッチのみ）では「ドラッグ」の案内を出さない */
@media (hover: none) {
  #main-content-wrap .moto-bb .moto-bb-drop__or {
    display: none;
  }
}
