/* UI/UX実績ページ：予約導線の比較 */
.reservation-comparison { margin: 40px 0 0; text-align: left; }
.reservation-flow + .reservation-flow { margin-top: 32px; padding-top: 32px; border-top: 1px solid #e3e7e3; }
.reservation-flow__title { margin: 0 0 18px; color: #21594c; font-size: 18px; font-weight: 700; line-height: 1.6; }
.reservation-flow__steps { display: flex; gap: 17px; list-style: none; padding: 0; margin: 0; }
.reservation-flow__steps li { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; min-height: 104px; padding: 10px 3px; box-sizing: border-box; border: 1px solid #d4d9d5; background: #fff; text-align: center; color: #333; font-size: 12px; font-weight: 700; line-height: 1.9; }
.reservation-flow__steps li:not(:last-child)::after { content: ''; position: absolute; left: calc(100% + 5px); top: 50%; transform: translateY(-50%); border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 7px solid #cbd1cc; }
.reservation-flow__steps .reservation-flow__changed { background: #edf5ed; border-color: #b9d0bd; color: #21594c; }
.reservation-flow__steps .reservation-flow__complete { color: #d85171; }
.reservation-comparison__note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 12px; color: #646e65; line-height: 1.7; }
.reservation-comparison__note span { width: 14px; height: 14px; background: #edf5ed; border: 1px solid #b9d0bd; }
@media (max-width: 640px) {
  .reservation-flow__steps { flex-direction: column; gap: 18px; }
  .reservation-flow__steps li { flex: auto; min-height: 60px; padding: 12px; font-size: 14px; }
  .reservation-flow__steps li br { display: none; }
  .reservation-flow__steps li:not(:last-child)::after { left: 50%; top: calc(100% + 6px); transform: translateX(-50%); border-top: 7px solid #cbd1cc; border-bottom: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; }
}

/* UI/UXの改善：画面比較と改善ポイント */
.uiux-improvements { text-align: left; }
.uiux-overview { margin-bottom: 28px; padding: 24px 0; text-align: left; }
.uiux-overview h3 { margin: 0 0 20px; color: #21594c; font-size: 20px; font-weight: 700; line-height: 1.7; }
.uiux-overview .reservation-flow__title { margin: 0 0 18px; font-size: 16px; line-height: 1.6; }
.uiux-overview__list { margin: 0; padding: 0; list-style: none; counter-reset: uiux-proposal; font-size: 16px; line-height: 1.9; }
.uiux-overview__list > li { counter-increment: uiux-proposal; }
.uiux-overview__list li + li { margin-top: 20px; }
.uiux-overview__list li::marker { font-weight: 700; }
.uiux-overview__list h4 { display: block; margin: 0 0 8px; padding-bottom: 3px; border-bottom: 1px solid #467950; font-size: 18px; font-weight: 700; }
.uiux-overview__list h4::before { content: counter(uiux-proposal) ". "; }
.uiux-overview__list p { margin: 0; font-size: 14px; }
.selection-preview { width: 100%; max-width: 440px; margin-top: 24px; padding: 20px; box-sizing: border-box; background: #fff; }
.selection-preview__example + .selection-preview__example { margin-top: 16px; }
.uiux-overview__list .selection-preview__label { margin-bottom: 6px; color: #444; font-size: 14px; }
.selection-preview__box { padding: 14px 16px; border: 1px solid #cdbfbe; border-radius: 5px; }
.selection-preview__row { display: flex; align-items: center; gap: 14px; color: #4b8057; font-size: 14px; line-height: 1.7; letter-spacing: .04em; }
.selection-preview__row + .selection-preview__row { margin-top: 3px; }
.uiux-overview .selection-preview__row > img { display: block; flex: 0 0 20px; width: 20px; height: 20px; max-width: 20px; object-fit: contain; }
.selection-preview__change { flex-shrink: 0; margin-left: 6px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 480px) {
  .selection-preview { padding: 14px 10px; }
  .selection-preview__box { padding: 12px 10px; }
  .selection-preview__row { gap: 8px; font-size: 11px; letter-spacing: 0; }
  .selection-preview__change { margin-left: 0; }
}
.uiux-overview .reservation-step-preview { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 500px; margin: 24px 0 0; padding: 12px; box-sizing: border-box; background: #fff; list-style: none; }
.uiux-overview .reservation-step-preview > li { display: flex; align-items: center; justify-content: center; min-width: 0; height: 72px; margin: 0; padding: 0 12px 0 4px; box-sizing: border-box; background: #d7d7d7; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.4; text-align: center; clip-path: polygon(0 0, 83% 0, 100% 50%, 83% 100%, 0 100%); }
.uiux-overview .reservation-step-preview > li[aria-current="step"] { background: #3f6848; }
@media (max-width: 640px) {
  .uiux-overview .reservation-step-preview { gap: 4px; }
  .uiux-overview .reservation-step-preview > li { height: 56px; padding-right: 9px; font-size: clamp(10px, 2.8vw, 14px); }
}
.uiux-improvement-card { margin-top: 40px; padding: 28px; background: #fff; border: 1px solid #e0e5e0; border-radius: 8px; }
.uiux-improvement-card__title { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: #21594c; font-size: 19px; font-weight: 700; line-height: 1.6; }
.uiux-improvement-card__title span { font-size: 14px; font-weight: 400; color: #647e6c; }
.uiux-improvement-card__comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.uiux-improvement-card__comparison figure { margin: 0; min-width: 0; }
.uiux-improvement-card__comparison figcaption { margin-bottom: 12px; color: #575250; font-size: 14px; font-weight: 700; }
.uiux-improvement-card__placeholder { display: grid; place-items: center; min-height: 220px; padding: 20px; box-sizing: border-box; background: #f8f7f5; border: 1px dashed #d4d9d5; color: #777; font-size: 13px; line-height: 1.8; text-align: center; }
.uiux-improvement-card__placeholder--after { background: #f2f7f2; border-color: #b9d0bd; }
.uiux-improvement-card__comparison img { display: block; width: 100%; height: auto; }
.uiux-improvement-card__details { margin: 24px 0 0; font-size: 14px; line-height: 1.9; }
.uiux-improvement-card__details > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 14px 0; }
.uiux-improvement-card__details > div + div { border-top: 1px solid #e9ece7; }
.uiux-improvement-card__details dt { color: #21594c; font-weight: 700; }
.uiux-improvement-card__details dd { margin: 0; overflow-wrap: anywhere; }
.uiux-improvement-card__draft { color: #777; }
@media (max-width: 640px) {
  .uiux-improvement-card { padding: 20px 16px; margin-top: 28px; }
  .uiux-improvement-card__title { font-size: 17px; }
  .uiux-improvement-card__comparison { grid-template-columns: 1fr; gap: 24px; }
  .uiux-improvement-card__placeholder { min-height: 180px; }
  .uiux-improvement-card__details > div { grid-template-columns: 1fr; gap: 6px; }
}

.uiux-improvement-card__rate { margin: 0 4px; color: #d85171; font-size: 21px; }
.uiux-improvement-card__list { list-style: disc; padding-left: 1.3em; margin: 0; }
.uiux-improvement-card__list li + li { margin-top: 6px; }
.uiux-improvement-card__proposal { margin: 24px 0 28px; padding: 20px; background: #f2f7f2; border-radius: 4px; font-size: 14px; line-height: 1.9; }
.uiux-improvement-card__proposal h4 { margin: 0 0 12px; color: #21594c; font-size: 16px; font-weight: 700; line-height: 1.7; }
.uiux-improvement-card__proposal p { margin: 0 0 12px; }

/* お部屋選択の操作できる比較画面 */
.room-before-stack { max-width: 330px; margin: 0 auto; }
.room-before-stack img { display: block; width: 100%; }
.room-screen { max-width: 330px; margin: 0 auto; padding: 18px 12px; border: 1px solid #e5e5e5; background: #fff; color: #333; font-size: 12px; line-height: 1.6; letter-spacing: 0; }
.room-screen .stay-header { margin-bottom: 34px; }
.room-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; margin: 0 -4px 18px; }
.room-progress span { display: grid; place-items: center; height: 48px; padding-right: 6px; font-size: 10px; color: #fff; background: #d7d7d7; clip-path: polygon(0 0,83% 0,100% 50%,83% 100%,0 100%); }
.room-progress span[aria-current] { background: #3f6848; }
.room-screen .stay-title { margin-bottom: 28px; }
.room-lead { margin: 0 0 16px; text-align: center; font-weight: 700; font-size: 14px; }
.room-condition-label { margin: 0 6px 4px; font-size: 10px; }
.room-conditions { margin: 0 6px 24px; padding: 9px; border: 1px solid #cdbfbe; border-radius: 4px; color: #4b8057; font-size: 10px; }
.room-conditions > div { display: flex; align-items: center; gap: 6px; }
.uiux-improvement-card__comparison .room-conditions img { width: 14px; height: 14px; object-fit: contain; }
.room-conditions span { margin-left: auto; text-decoration: underline; }
.room-option-card { padding: 22px 12px; border: 1px solid #ddd; border-radius: 6px; }
.room-photo { width: 100%; aspect-ratio: 1.84; border-radius: 6px; background-image: url('../../images/uiux-improvement-the-vege-lodge/image-solo-green-room.jpg'); background-size: cover; background-position: center; }
.room-screen .room-name { margin: 14px 0; font-size: 16px; font-weight: 700; line-height: 1.5; }
.room-features { margin: 0 0 22px; color: #888; font-size: 11px; }
.room-prompt { margin: 0 0 8px; color: #4b8057; font-weight: 700; }
.room-radios { display: flex; justify-content: space-evenly; margin: 0 0 10px; padding: 10px 4px; border: 1px solid #ddd; border-radius: 5px; }
.room-radios legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.room-radios label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 11px; }
.room-radios input { appearance: auto; width: 17px; height: 17px; margin: 0; accent-color: #4b8057; }
.room-radios input:focus-visible { outline: 2px solid #4b8057; outline-offset: 3px; }
.room-booking-label { width: fit-content; margin: 24px auto 14px; padding: 10px 16px; border: 1px solid #4b8057; border-radius: 2px; color: #4b8057; font-weight: 700; }
.room-details summary { width: fit-content; margin: 0 auto; padding: 10px 18px; background: #e8e8e8; cursor: pointer; font-weight: 700; font-size: 11px; }
.room-details p { margin-top: 12px; font-size: 11px; }

/* 改善前のお部屋一覧は冒頭3件のみ再現 */
.room-before-card { margin-top: 24px; padding: 20px 14px; border: 1px solid #ddd; border-radius: 6px; }
.room-before-card__top { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; align-items: start; }
.room-photo--thumbnail { aspect-ratio: 1; }
.room-screen .room-before-card h4 { margin: 0 0 7px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.room-before-card p { margin: 0; color: #888; font-size: 10px; line-height: 1.7; }
.room-before-select { display: block; width: fit-content; margin: 18px auto 0; cursor: pointer; }
.room-before-select input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.room-before-select span { display: block; padding: 9px 20px; border: 1px solid #4b8057; border-radius: 2px; color: #4b8057; font-weight: 700; }
.room-before-select input:checked + span { background: #4b8057; color: #fff; }
.room-before-select input:focus-visible + span { outline: 2px solid #4b8057; outline-offset: 3px; }
.room-before-continuation { margin: 18px 0 0; text-align: center; color: #888; font-size: 10px; }

/* 宿泊プランの比較と並べ替え・検索モーダル */
.plan-tools { display: flex; gap: 14px; margin: 18px 0; }
.plan-tools button { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; padding: 11px 4px; border: 1px solid #cdbfbe; border-radius: 2px; background: #fff; color: #111; font-size: 13px; cursor: pointer; }
.plan-tools button:first-child { border-color: #4b8057; background: #edf5ed; }
.uiux-improvement-card__comparison .plan-tools button > img { display: block; flex: 0 0 16px; width: 16px; height: 18px; max-width: 16px; object-fit: contain; }
.plan-count { margin: 14px 0 4px; text-align: center; font-size: 10px; color: #888; }
.plan-pages { display: flex; justify-content: center; gap: 12px; margin: 8px 0 20px; }
.plan-pages button { padding: 4px 8px; color: #888; cursor: pointer; font-size: 11px; }
.plan-pages button[aria-current] { color: #4b8057; font-weight: 700; text-decoration: underline; }
.plan-card { margin-bottom: 18px; padding: 14px; border: 1px solid #ddd; border-radius: 5px; }
.plan-screen .plan-card h4 { margin: 8px 0 5px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.plan-card p { margin: 4px 0; font-size: 10px; color: #777; }
.plan-card strong { font-size: 17px; }
.plan-card strong small { font-size: 9px; }
.plan-card .plan-child { color: #333; }
.plan-photo-placeholder { display: grid; place-items: center; position: relative; aspect-ratio: 1.85; background: #eef0eb; color: #7d887b; }
.plan-photo-placeholder > span { position: absolute; top: 0; left: 0; padding: 3px 7px; background: #98a526; color: #fff; font-size: 10px; }
.uiux-improvement-card__comparison .plan-photo-placeholder > img { display: block; width: 100%; height: 100%; aspect-ratio: 1.85; object-fit: cover; }
.plan-select { display: block; width: fit-content; margin: 12px auto 0; cursor: pointer; }
.plan-select input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.plan-select span { display: block; border: 1px solid #4b8057; border-radius: 2px; padding: 7px 18px; color: #4b8057; font-weight: 700; font-size: 11px; }
.plan-select input:checked + span { background: #4b8057; color: #fff; }
.plan-select input:focus-visible + span { outline: 2px solid #4b8057; outline-offset: 3px; }
.plan-dialog { position: fixed; inset: 0; margin: auto; width: min(375px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box; padding: 46px 12px 40px; border: 0; border-radius: 5px; background: #fff; color: #111; font-family: 'Noto Sans JP', sans-serif; }
.plan-dialog::backdrop { background: rgb(0 0 0 / 35%); }
.plan-dialog h2 { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.plan-dialog-close { position: absolute; top: 6px; right: 12px; padding: 4px; font-size: 24px; cursor: pointer; }
.plan-sort-choice { display: flex; align-items: center; gap: 16px; padding: 18px 16px; border-bottom: 1px solid #ddd; font-size: 16px; font-weight: 700; cursor: pointer; }
.plan-sort-choice:last-child { border: 0; }
.plan-dialog input { appearance: auto; width: 19px; height: 19px; margin: 0; accent-color: #4b8057; flex-shrink: 0; }
.plan-filter-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.plan-filter-grid label { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #cdbfbe; border-radius: 2px; cursor: pointer; font-size: 14px; }
#plan-filter-apply { display: block; margin: 46px auto 0; padding: 16px 30px; border-radius: 3px; background: #4b8057; color: #fff; font-weight: 700; cursor: pointer; }
.plan-dialog button:focus-visible, .plan-tools button:focus-visible, .plan-pages button:focus-visible { outline: 2px solid #4b8057; outline-offset: 3px; }

/* お客様情報入力：HTMLによる改善前後の比較 */
.customer-screen { padding: 20px 12px 28px; }
.customer-screen .stay-header { margin-bottom: 36px; }
.customer-screen .stay-title { font-size: 19px; margin-bottom: 38px; }
.customer-screen .room-progress { margin-bottom: 18px; }
.customer-screen .room-lead { margin-bottom: 24px; font-size: 13px; }
.customer-field { display: block; min-width: 0; margin: 0 0 22px; padding: 0; border: 0; font-size: 12px; font-weight: 700; }
.customer-field legend { margin-bottom: 7px; }
.customer-required { margin-left: 2px; color: #e85078; }
.customer-form input:not([type=radio]):not([type=checkbox]), .customer-form select, .customer-form textarea { display: block; width: 100%; min-width: 0; height: 40px; padding: 9px; border: 1px solid #ddd; border-radius: 2px; background: #fff; color: #444; font: inherit; font-size: 12px; font-weight: 400; }
.customer-form input + input { margin-top: 6px; }
.customer-form input::placeholder, .customer-form textarea::placeholder { color: #bbb; opacity: 1; }
.customer-form select { appearance: none; padding-right: 32px; background-image: url('../../images/uiux-improvement-the-vege-lodge/icon-down%20arrow.png'); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px auto; }
.customer-postal { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.customer-postal > input, .customer-postal > select { flex: 1; }
.customer-address-button { flex: 1.15; padding: 10px 5px; border-radius: 2px; background: #939510; color: #fff; font-size: 11px; font-weight: 400; cursor: pointer; }
.customer-address-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 6px; margin-bottom: 7px; }
.customer-address-grid label, .customer-small-label { display: block; font-size: 9px; font-weight: 400; }
.customer-counter-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 11px; }
.customer-counter-row > div { display: flex; align-items: center; gap: 12px; font-weight: 400; }
.customer-counter-row button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f6f6f6; color: #333; font-size: 21px; cursor: pointer; }
.customer-counter-row button img { display: block; width: 14px; height: auto; }
.customer-counter-row button:disabled { cursor: default; }
.customer-counter-row button:disabled img { opacity: .35; }
.customer-counter-row output { min-width: 12px; text-align: center; font-size: 14px; }
.customer-choice { display: flex; align-items: flex-start; gap: 7px; margin-top: 6px; padding: 10px; border: 1px solid #ddd; border-radius: 2px; font-size: 11px; font-weight: 400; cursor: pointer; }
.customer-choice input { appearance: auto; flex: 0 0 13px; width: 13px; height: 13px; margin-top: 3px; accent-color: #467950; }
.customer-form .customer-notes textarea { height: 116px; margin-top: 7px; resize: vertical; }
.customer-next { display: block; margin: 24px auto 0; padding: 12px 22px; border-radius: 2px; background: #467950; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.customer-form :focus-visible { outline: 2px solid #467950; outline-offset: 2px; }
.customer-form [aria-invalid=true] { border-color: #d85171 !important; }
.customer-error { margin-top: 4px; color: #b7294d; font-size: 10px; font-weight: 400; }
.customer-feedback { margin-bottom: 18px; padding: 10px; border: 1px solid #b9d0bd; color: #21594c; font-size: 11px; }
.customer-feedback.has-errors { border-color: #d85171; color: #b7294d; }
.customer-address-status { font-size: 10px; font-weight: 400; margin: 4px 0; }

/* エラー状態の改善前後：通常フォームの直下 */
.customer-error-comparison { margin-top: 36px; }
.customer-error-general { margin: 0 0 22px; color: #e85078; font-size: 12px; font-weight: 700; }
.customer-error-summary { margin: 0 0 28px; color: #e85078; font-size: 12px; font-weight: 700; }
.customer-error-summary p { display: flex; align-items: center; gap: 5px; margin: 0 0 4px; }
.customer-error-summary ul { padding-left: 1.2em; list-style: disc; }
.customer-error-symbol { display: inline-grid; place-items: center; flex: 0 0 16px; width: 16px; height: 16px; margin-right: 4px; border-radius: 50%; background: #e85078; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.customer-error-inline { display: flex; align-items: center; margin: 0 0 6px; color: #e85078; font-size: 10px; font-weight: 400; }
.customer-error-demo .customer-field:last-child { margin-bottom: 0; }
.customer-error-demo span.customer-address-button { text-align: center; cursor: default; }
