:root {
  --primary: #6CBF47;
  --soft: #EDF8E8;
  --bg: #f5f2ea;
  --card: #fff;
  --text: #263044;
  --muted: #667085;
  --border: #e4dfd2;
  --ok: #16a34a;
  --few: #f59e0b;
  --ng: #d6dbe4
}
* {
  box-sizing: border-box
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f4ed, #ebe6dc);
  min-height: 100vh
}
button, input, textarea {
  font: inherit
}
button {
  cursor: pointer
}
b {
  font-weight: 600
}
.app {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: auto;
  background: var(--bg);
  box-shadow: 0 0 40px #0002
}
.header {
  height: 82px;
  background: linear-gradient(135deg, #7DCC59 0%, #6CBF47 55%, #5BA53B 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header button {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}
.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.header-logo {
  width: 76px;
  height: auto;
  margin-bottom: 4px;
}
.header-center h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: .03em;
}
main {
  padding: 16px 14px 28px
}
.screen {
  display: none;
  animation: fade .24s ease
}
.screen.active {
  display: block
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px)
  }
  to {
    opacity: 1;
    transform: none
  }
}
.step {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 2px 0 12px
}
.step span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #9aa3b2;
  padding: 7px 3px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border)
}
.step .on {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary)
}
.step .done {
  background: #EDF8E8;
  color: var(--primary);
  border-color: #D5ECC8;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 14px 34px rgba(56, 44, 22, .08)
}
.en {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase
}
h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600
}
.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px
}
.choices {
  display: grid;
  gap: 12px;
  margin-top: 18px
}
.choice {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  display: grid;
  gap: 4px;
  padding: 16px;
  text-align: left;
  color: var(--text)
}
.choice:hover {
  border-color: var(--primary);
  background: var(--soft)
}
.choice b {
  font-size: 17px
}
.choice small {
  color: var(--muted)
}
.choice.selected {
  border-color: var(--primary);
  background: var(--soft);
}
.pill {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  margin: 6px 0 8px
}
.month {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0
}
.month button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary);
  font-size: 26px
}
.month button:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px
}
.legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px
}
.ok {
  color: var(--ok)
}
.few {
  color: var(--few)
}
.ng {
  color: var(--ng)
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden
}
.calendar > div:not(.days) {
  padding: 7px 2px;
  background: #f0ece2;
  text-align: center;
  font-weight: 700;
  font-size: 12px
}
.days {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(7, 1fr)
}
.day {
  min-height: 56px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-left: 0;
  border-bottom: 0;
  background: #fff;
  padding: 5px 3px;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  color: var(--text)
}
.day:nth-child(7n) {
  border-right: 0
}
.day-empty {
  background: #faf8f2;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-left: 0;
  border-bottom: 0
}
.day-num {
  display: block;
  font-weight: 900;
  font-size: 13px
}
.day-status {
  font-size: 16px;
  font-weight: 900;
  border-radius: 999px;
  padding: 1px 4px;
  display: inline-block;
  margin-top: 3px
}
.day-ok .day-status {
  color: var(--ok)
}
.day-few .day-status {
  color: var(--few)
}
.day-ng {
  background: #f3f4f6;
  color: #9aa3b2
}
.day-ng .day-status {
  color: #9aa3b2
}
.day-past {
  background: #f3f4f6;
  color: #b0b6c0;
  cursor: not-allowed;
}
.day-past .day-status {
  color: #b0b6c0;
}
.day-past:disabled {
  opacity: 1;
}
.day-selected {
  outline: 3px solid rgba(108, 191, 71, .35);
  z-index: 2
}
.biz {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
  text-align: center
}
.detail {
  display: none;
  margin-top: 16px;
  animation: slide .28s ease
}
.detail.open {
  display: block
}
@keyframes slide {
  from {
    opacity: 0;
    transform: translateY(12px)
  }
  to {
    opacity: 1;
    transform: none
  }
}
.box {
  background: #faf8f2;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  margin-top: 12px
}
.box h3 {
  margin: 0 0 10px;
  font-size: 17px
}
.times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px
}
.slot {
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 13px;
  background: #fff;
  font-weight: 900;
  color: var(--text)
}
.slot-selected {
  border-color: var(--primary);
  background: #EDF8E8;
  outline: 3px solid rgba(108, 191, 71, .18);
}
label:not(.option-item) {
  display: block;
  font-weight: 700;
  margin: 14px 0 6px;
}
label:not(.option-item) span {
  font-size: 12px;
  color: var(--muted);
}
input, textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 13px;
  padding: 12px 13px;
  background: #fff
}
textarea {
  min-height: 110px;
  resize: vertical
}
.primary, .secondary {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  margin-top: 16px
}
.primary {
  background: linear-gradient(135deg, #7DCC59, #6CBF47, #5BA53B);
  color: #fff;
  box-shadow: 0 10px 24px rgba(108, 191, 71, .28);
  transition: .2s;
}
.primary:hover {
  transform: translateY(-2px);
}
.primary:active {
  transform: translateY(1px);
}
.secondary {
  background: #ece7dc;
  color: #3b3324
}
.confirm {
  margin: 18px 0;
}
.confirm > div {
  padding: 14px 0;
  border-bottom: 2px solid #e7dfcf;
}
.confirm > div:first-child {
  padding-bottom: 18px;
}
.confirm dt {
  font-weight: 700;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}
.confirm dd {
  margin: 0;
  text-align: left;
  font-weight: 500;
}
.note {
  background: #fff8e8;
  border: 1px solid #f1ddb2;
  border-radius: 14px;
  padding: 11px 12px;
  font-size: 13px;
  color: #67470e
}
.process {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center
}
.dot-orbit-loader {
  width: 72px;
  height: 72px;
  position: relative;
  margin: 30px auto 6px
}
.dot-orbit-loader span {
  --angle: calc(var(--i)*45deg);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E7EEDC;
  transform: rotate(var(--angle)) translate(28px) rotate(calc(-1*var(--angle)));
  animation: orbitLight 1.4s linear infinite;
  animation-delay: calc((7 - var(--i)) * -0.175s)
}
@keyframes orbitLight {
  0% {
    background: #6CBF47;
    opacity: 1
  }
  18% {
    background: #8FCC6C;
    opacity: .75
  }
  36% {
    background: #C9E4B9;
    opacity: 1
  }
  100% {
    background: #EEF5E9;
    opacity: 1
  }
}
.done-card {
  text-align: center
}
.check {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 900;
  margin: 10px auto 18px;
  animation: pop .34s ease
}
@keyframes pop {
  from {
    transform: scale(.5);
    opacity: 0
  }
  to {
    transform: scale(1);
    opacity: 1
  }
}
.summary {
  margin: 18px 0 6px;
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--border)
}
.summary b, .summary span {
  display: block
}
.summary span {
  margin-top: 6px;
  color: var(--primary);
  font-weight: 700
}
.talk {
  min-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  background: #D9EFCF;
  border-radius: 22px;
  overflow: hidden
}
.talkHead {
  background: #fff;
  padding: 14px 16px
}
.talkHead b {
  display: block
}
.talkHead span {
  font-size: 12px;
  color: var(--muted)
}
.talkBody {
  flex: 1;
  padding: 22px 14px
}
.bubble {
  max-width: 82%;
  background: #fff;
  border-radius: 18px 18px 18px 4px;
  padding: 14px;
  font-size: 14px;
  box-shadow: 0 5px 16px #0001
}
.bubble p {
  margin: 0 0 10px
}
.bubble p:last-child {
  margin-bottom: 0
}
.restart {
  margin: 14px;
  width: calc(100% - 28px)
}
.option-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin: 12px 0 0;
  border: 2px solid #e6e6e6;
  border-radius: 14px;
  cursor: pointer;
  transition:
    border-color .2s ease, background-color .2s ease, transform .15s ease;
  background: #fff;
}
.option-item:hover {
  border-color: #9acba6;
  background: #f8fffa;
}
.option-box {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.option-box h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.option-lead {
  color: #777;
  margin-bottom: 10px;
  font-size: 14px;
}
.option-check {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--primary);
}
.option-item b {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}
.option-item small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.option-info {
  flex: 1;
}
.option-item:has(.option-check:checked) {
  border-color: var(--primary);
  background: var(--soft);
}
.option-item:active {
  transform: scale(.98);
}
.option-summary {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.option-info-bar {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}
.price-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-row, .price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price-row {
  color: var(--text);
  font-size: 15px;
}
.price-total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 2px dotted var(--border);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}
.price-row span:first-child, .price-total span:first-child {
  flex: 1;
  font-weight: 500;
}
.price-row span:last-child, .price-total span:last-child {
  margin-left: 16px;
  white-space: nowrap;
  font-weight: 700;
}
.price-total span:last-child {
  color: var(--text);
}
.form-note {
  margin: 8px 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}
.indent {
  display: inline-block;
  margin-left: 1em;
}
.notice-title {
  color: #B94141;
  font-size: 18px;
  font-weight: 500;
}
.confirm-note ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
}
.confirm-note li {
  margin-bottom: 4px;
  line-height: 1.6;
}
.confirm-note li:last-child {
  margin-bottom: 0;
}
.error-message {
  display: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #e6a5a5;
  border-radius: 12px;
  background: #fff1f1;
  color: #9f2f2f;
  font-size: 14px;
  line-height: 1.6;
}
.error-message.show {
  display: block;
}
button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(108, 191, 71, .35);
  outline-offset: 2px;
}
#timeTitle {
  scroll-margin-top: 100px;
}
.staff-guide {
  margin-top: 18px;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
}
.staff-guide-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}
.staff-guide p {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}
.staff-guide small {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.done-staff {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
}
.done-staff #doneStaff {
  display: inline;
  color: inherit;
  font-weight: inherit;
  margin-top: 0;
}
.staff-change-note {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

/* ===== キャンセルポリシー同意 ===== */
.policy-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0 !important;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #faf8f2;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600 !important;
}

.policy-consent input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--primary);
}

.policy-consent span {
  color: var(--text) !important;
  font-size: 13px !important;
}

.policy-consent:has(input:checked) {
  border-color: var(--primary);
  background: var(--soft);
}

.policy-error {
  display: none;
  margin: 8px 4px 0;
  color: #9f2f2f;
  font-size: 12px;
  line-height: 1.5;
}

.policy-error.show {
  display: block;
}

.primary:disabled {
  cursor: not-allowed;
  opacity: .45;
  box-shadow: none;
  transform: none;
}
.today-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}