/* Base layout */
.eahf-form-app {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111827;
  line-height: 1.65;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  background: transparent;
}

.eahf-form-app *,
.eahf-form-app *::before,
.eahf-form-app *::after {
  box-sizing: border-box;
}

.eahf-form-app h2,
.eahf-form-app h3,
.eahf-form-app h4 {
  color: #0f172a;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.75rem;
}

.eahf-form-app p {
  margin: 0 0 1rem;
}

.eahf-form-app ul,
.eahf-form-app ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

@media (min-width: 768px) {
  .eahf-form-app {
    padding: 2rem 1.5rem 3rem;
  }
}

.eahf-noscript {
  background: #fef3c7;
  border: 1px solid #facc15;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  color: #854d0e;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Stepper */
.eahf-stepper {
  margin-bottom: 1.5rem;
}

.eahf-stepper__list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  counter-reset: eahf-step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eahf-stepper__list li {
  counter-increment: eahf-step;
  position: relative;
  flex: 1 1 160px;
  padding: 0.75rem 0.9rem 0.75rem 3rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: inset 0 0 0 1px #bfdbfe;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.eahf-stepper__list li::before {
  content: counter(eahf-step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e3a8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.15);
}

.eahf-stepper__list li.is-current {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.eahf-stepper__list li.is-current::before {
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.35);
}

@media (max-width: 640px) {
  .eahf-stepper__list li {
    flex: 1 1 100%;
  }
}

/* Alert */
.eahf-alert {
  margin-bottom: 1.5rem;
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.eahf-alert:empty {
  display: none;
}

.eahf-alert:not(:empty) {
  display: block;
}

.eahf-alert.is-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.eahf-alert.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.eahf-alert:not(.is-info):not(.is-error) {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

/* Panels */
.eahf-step-panels {
  display: grid;
  gap: 1.5rem;
}

.eahf-step-panel[hidden] {
  display: none !important;
}

.eahf-panel-root {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .eahf-panel-root {
    padding: 2rem 2.25rem;
    gap: 1.5rem;
  }
}

.eahf-panel-root h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.eahf-step1-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.eahf-service-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.eahf-service-tabs > * {
  width: 100%;
}

@media (min-width: 768px) {
  .eahf-service-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.eahf-service-tab {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.eahf-service-tab:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.18);
}

.eahf-service-tab.is-active,
.eahf-service-tab[aria-selected="true"],
.eahf-service-tab[aria-pressed="true"] {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.eahf-service-tab:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

.eahf-service-tab[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.eahf-service-groups {
  display: grid;
  gap: 1.5rem;
}

.eahf-service-group {
  display: grid;
  gap: 0.75rem;
}

.eahf-service-group[hidden] {
  display: none !important;
}

.eahf-service-group > h3 {
  margin: 0 0 0.35rem;
}

.eahf-service-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

.eahf-service-options {
  border-top: 1px dashed #d1d5db;
  padding-top: 0.75rem;
  display: grid;
  gap: 0.75rem;
}

.eahf-service-options[hidden] {
  display: none !important;
}

.eahf-service-options__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.eahf-service-options__list {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .eahf-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Service & option cards */
.eahf-service-card,
.eahf-option-card {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  background: #f9fafb;
  display: grid;
  gap: 0.55rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.eahf-service-card:hover,
.eahf-option-card:hover {
  background: #ffffff;
  border-color: #c7d2fe;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
}

.eahf-option-card.is-active {
  border-color: #93c5fd;
  background: #f8fbff;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.18);
}

.eahf-option-card:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.eahf-service-name,
.eahf-option-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.eahf-option-card .eahf-option-name {
  margin: 0;
}

.eahf-service-meta,
.eahf-option-meta {
  font-size: 0.9rem;
  color: #4b5563;
}

.eahf-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.eahf-option-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
}

.eahf-option-toggle input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #2563eb;
  flex-shrink: 0;
}

.eahf-option-toggle input[type="checkbox"]:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.eahf-option-toggle label {
  cursor: pointer;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}

.eahf-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #1f2937;
  flex-wrap: nowrap;
}

.eahf-option-card .eahf-qty-control {
  margin-left: auto;
  flex: 0 0 auto;
}

.eahf-option-card .eahf-option-qty-control.is-disabled {
  opacity: 0.75;
}

@media (max-width: 640px) {
  .eahf-option-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .eahf-option-card .eahf-option-qty-control {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
}

.eahf-qty-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4b5563;
  margin-right: 0.35rem;
}

.eahf-option-card .eahf-qty-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.eahf-qty-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #1f2937;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.eahf-qty-btn:hover {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
}

.eahf-qty-btn:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.eahf-qty-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  background: #f3f4f6;
  color: #9ca3af;
  border-color: #e5e7eb;
}

.eahf-qty-control input[type="number"] {
  width: 4.5rem;
  min-width: 4rem;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  padding: 0.45rem 0.65rem;
  background: #fff;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.eahf-qty-control input[type="number"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.eahf-qty-control.is-disabled input[type="number"] {
  background: #f3f4f6;
  color: #9ca3af;
}

.eahf-standalone-options {
  display: grid;
  gap: 0.75rem;
}

.eahf-standalone-options > h3 {
  margin: 0;
  font-size: 1.05rem;
}

.eahf-service-desc,
.eahf-option-desc {
  font-size: 0.9rem;
  color: #374151;
  background: #f8fafc;
  border-left: 4px solid #dbeafe;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
}

/* Inputs */
.eahf-form-app input[type="text"],
.eahf-form-app input[type="email"],
.eahf-form-app input[type="tel"],
.eahf-form-app input[type="number"],
.eahf-form-app input[type="password"],
.eahf-form-app select,
.eahf-form-app textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.eahf-form-app input[type="text"]:focus,
.eahf-form-app input[type="email"]:focus,
.eahf-form-app input[type="tel"]:focus,
.eahf-form-app input[type="number"]:focus,
.eahf-form-app input[type="password"]:focus,
.eahf-form-app select:focus,
.eahf-form-app textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.eahf-form-app textarea {
  min-height: 140px;
  resize: vertical;
}

.eahf-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* STEP2顧客情報コンテナ（レスポンシブグリッド） */
.eahf-step2-customer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

/* 分割数が複数のフィールドは小画面では横幅いっぱいに配置する */
@media (max-width: 767px) {
  .eahf-step2-customer-grid .eahf-field[data-split]:not([data-split="1"]) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .eahf-step2-customer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.eahf-field label {
  font-weight: 600;
  color: #1f2937;
}

.eahf-field-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.eahf-field-group input,
.eahf-field-group select,
.eahf-field-group textarea {
  flex: 1 1 220px;
  min-width: min(220px, 100%);
}

.eahf-field[data-split] .eahf-field-group {
  display: grid;
  gap: 0.6rem;
}

.eahf-field[data-split="2"] .eahf-field-group {
  grid-template-columns: repeat(2, minmax(90px, 1fr));
}

.eahf-field[data-split="3"] .eahf-field-group {
  grid-template-columns: repeat(3, minmax(72px, 1fr));
}

.eahf-field[data-split="4"] .eahf-field-group {
  grid-template-columns: repeat(4, minmax(64px, 1fr));
}

@media (max-width: 480px) {
  .eahf-field[data-split="4"] .eahf-field-group {
    grid-template-columns: repeat(2, minmax(72px, 1fr));
  }
}

.eahf-field[data-split] .eahf-field-group input,
.eahf-field[data-split] .eahf-field-group select,
.eahf-field[data-split] .eahf-field-group textarea {
  flex: initial;
  min-width: 0;
}

.eahf-field[data-split] .eahf-field-group input {
  text-align: center;
}

.eahf-field.has-error label,
.eahf-field.has-error p {
  color: #b91c1c;
}

.eahf-field.has-error input,
.eahf-field.has-error textarea,
.eahf-field.has-error select {
  border-color: #f87171;
  background: #fef2f2;
}

.eahf-field-error {
  margin: -0.25rem 0 0;
  font-size: 0.9rem;
  color: #b91c1c;
}

/* Coupon & totals */
.eahf-coupon-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 0.9rem;
  border: 1px dashed #cbd5f5;
  background: #f5f7ff;
}

.eahf-coupon-wrap label {
  font-weight: 600;
  color: #1f2937;
}

.eahf-totals-box {
  display: grid;
  gap: 0.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.eahf-totals-box .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #374151;
  font-size: 0.95rem;
}

.eahf-totals-box .row strong {
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
}

.eahf-totals-box .row.total {
  font-size: 1.05rem;
}

/* 割引サマリー */
.eahf-discount-summary {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.eahf-discount-summary h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #111827;
}

.eahf-discount-summary__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.eahf-discount-summary__item {
  padding: 0.75rem 0;
  border-top: 1px solid #e5e7eb;
}

.eahf-discount-summary__item:first-child {
  border-top: none;
}

.eahf-discount-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.eahf-discount-summary__label {
  font-weight: 600;
  color: #1f2937;
  flex: 1;
}

.eahf-discount-summary__amount {
  font-weight: 600;
  color: #b91c1c;
  white-space: nowrap;
}

.eahf-discount-summary__item.is-coupon .eahf-discount-summary__amount {
  color: #c2410c;
}

.eahf-discount-summary__detail {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.5;
}

.eahf-discount-summary__empty {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.eahf-discount-summary[data-has-items="true"] .eahf-discount-summary__empty {
  display: none;
}

/* Notes */
.eahf-note {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Buttons */
.eahf-btn-primary,
.eahf-step-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  /* 二重行ボタンでも高さを揃えるため最小高さを共通化 */
  min-height: 2.8rem;
  box-sizing: border-box;
  border-radius: 999px;
  border: none;
  background-color: #2563eb;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.eahf-btn-primary--compact {
  padding: 0.45rem 1.15rem;
  font-size: 0.9rem;
  line-height: 1.25;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.eahf-btn-primary:hover:not(:disabled),
.eahf-step-next:hover:not(:disabled) {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}

.eahf-btn-primary:focus-visible,
.eahf-step-next:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.4);
  outline-offset: 2px;
}

.eahf-btn-primary:disabled,
.eahf-btn-primary[disabled],
.eahf-step-next:disabled,
.eahf-step-next[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.eahf-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: calc(0.7rem - 1px) 1.6rem;
  min-height: 2.8rem;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #ffffff;
  color: #1d4ed8;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 767px) {
  .eahf-btn-primary,
  .eahf-step-next {
    /* モバイルでテキスト高さの約2倍になるように余白と行の高さを調整 */
    padding: 0.6rem 1.6rem;
    min-height: 2.6rem;
    line-height: 1.25;
  }

  .eahf-btn-secondary {
    padding: calc(0.6rem - 1px) 1.6rem;
    min-height: 2.6rem;
    line-height: 1.25;
  }

  .eahf-btn-primary--compact {
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
  }
}

.eahf-btn-secondary:hover:not(:disabled) {
  background: #eff6ff;
  border-color: #93c5fd;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.18);
}

.eahf-btn-secondary:focus-visible {
  outline: 3px solid rgba(147, 197, 253, 0.6);
  outline-offset: 2px;
}

.eahf-btn-secondary:disabled,
.eahf-btn-secondary[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.eahf-step-footer {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
  justify-content: space-between;
  align-items: stretch;
  margin-top: 0.5rem;
}

.eahf-step-footer > * {
  flex: 1 1 0;
  min-width: 0;
}

/* Step 2 payment */
.eahf-payment-wrap {
  border-top: 1px solid #e5e7eb;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.eahf-payment-wrap > p {
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.eahf-payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.eahf-payment-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 0.85rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.eahf-payment-option:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.18);
}

.eahf-payment-option input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: #2563eb;
}

.eahf-payment-option input[type="radio"]:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: 3px;
}

.eahf-payment-option input[type="radio"]:checked + span {
  font-weight: 700;
  color: #1d4ed8;
}

/* Step 3 schedule */
.eahf-week-controls {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.eahf-week-controls button {
  appearance: none;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.eahf-week-controls button:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.eahf-week-controls button:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.8);
  outline-offset: 2px;
}

.eahf-grid-wrap {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

.eahf-slot-toggle {
  display: flex;
  justify-content: flex-start;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.eahf-slot-toggle--bottom {
  border-bottom: 0;
  border-top: 1px solid #e5e7eb;
}

.eahf-slot-toggle__btn {
  appearance: none;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.eahf-slot-toggle__btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.eahf-slot-toggle__btn:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.8);
  outline-offset: 2px;
}

.eahf-slot-toggle__btn.is-active {
  background: #bfdbfe;
  border-color: #60a5fa;
  color: #1d4ed8;
}

.eahf-slot-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 0;
  table-layout: fixed;
}

.eahf-slot-grid th,
.eahf-slot-grid td {
  border: 1px solid #e5e7eb;
  padding: 0.6rem;
  text-align: center;
  font-size: 0.95rem;
}

.eahf-slot-grid thead th {
  background: #f8fafc;
  font-weight: 700;
  color: #1f2937;
}

.eahf-slot-grid thead th.is-holiday {
  color: #b91c1c;
  background: #fef2f2;
}

.eahf-slot-grid td.is-open {
  cursor: pointer;
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.eahf-slot-grid td.is-open:hover {
  background: #d1fae5;
}

.eahf-slot-grid td.is-selected {
  background: #bfdbfe;
  color: #1d4ed8;
}

.eahf-slot-grid td.is-after-hours::after {
  content: attr(data-after-hours-label);
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.7rem;
  font-weight: 700;
}

.eahf-slot-grid td.is-closed {
  background: #f9fafb;
  color: #9ca3af;
}

.eahf-slot-grid td.is-closed.is-blocked {
  color: #b91c1c;
  font-weight: 700;
}

@media (max-width: 767px) {
  .eahf-grid-wrap {
    border-radius: 0.75rem;
  }

  .eahf-slot-grid th,
  .eahf-slot-grid td {
    padding: 0.45rem;
    font-size: 0.85rem;
  }

  .eahf-slot-grid td.is-open {
    font-weight: 600;
  }
}

.eahf-selected-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #f9fafb;
  padding: 1rem 1.25rem;
}

.eahf-selected-wrap h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.eahf-selected-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.eahf-selected-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #1f2937;
}

.eahf-selected-list button {
  appearance: none;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.eahf-selected-list button:hover {
  background: #fecaca;
  border-color: #f87171;
}

.eahf-selected-list button:focus-visible {
  outline: 2px solid rgba(248, 113, 113, 0.65);
  outline-offset: 2px;
}

.eahf-modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
}

.eahf-modal {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(30, 64, 175, 0.45);
  max-width: 420px;
  width: 100%;
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.eahf-modal__message {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 600;
  color: #1f2937;
}

.eahf-modal__note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4b5563;
}

.eahf-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.eahf-terms-wrap {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.eahf-terms-content {
  border: 1px solid #d1d5db;
  border-radius: 0.85rem;
  padding: 1rem;
  background: #fff;
  max-height: 240px;
  overflow-y: auto;
  color: #1f2937;
}

.eahf-terms-wrap label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #1f2937;
}

.eahf-terms-wrap input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #2563eb;
}

/* Step 4 summary */
.eahf-summary-block {
  display: grid;
  gap: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.eahf-summary-block--customer {
  gap: 1.5rem;
}

.eahf-customer-summary {
  margin: 0;
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.eahf-customer-summary__row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #f9fafb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.eahf-customer-summary__row dt {
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.eahf-customer-summary__row dd {
  margin: 0;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.6;
  word-break: break-word;
}

.eahf-service-summary {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .eahf-service-summary {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.eahf-service-summary__item {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.95rem;
  background: #f9fafb;
}

.eahf-service-summary__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.eahf-service-summary__name {
  flex: 1 1 auto;
  font-weight: 700;
  color: #111827;
}

.eahf-service-summary__qty {
  font-weight: 600;
  color: #2563eb;
}

.eahf-service-summary__amount {
  font-weight: 700;
  color: #111827;
  margin-left: auto;
}

.eahf-service-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.9rem;
  color: #374151;
}

.eahf-service-summary__duration {
  font-weight: 500;
}

.eahf-option-summary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.eahf-option-summary__item {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #ffffff;
}

.eahf-option-summary__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.eahf-option-summary__name {
  font-weight: 600;
  color: #1f2937;
  flex: 1 1 auto;
}

.eahf-option-summary__qty {
  font-weight: 600;
  color: #2563eb;
}

.eahf-option-summary__amount {
  font-weight: 700;
  color: #111827;
}

.eahf-option-summary__meta {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.eahf-service-summary__global {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}

.eahf-service-summary__subheading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #1f2937;
  font-weight: 700;
}

.eahf-option-summary--global .eahf-option-summary__item {
  background: #f3f4f6;
}

.eahf-duration-total {
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: 0.9rem;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  font-weight: 700;
  color: #1d4ed8;
  text-align: center;
}

.eahf-summary-block h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.eahf-summary-block ul,
.eahf-summary-block ol {
  margin: 0;
  padding-left: 1.35rem;
  color: #1f2937;
  line-height: 1.6;
}

.eahf-summary-block li + li {
  margin-top: 0.25rem;
}

.eahf-range-wrap {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 0.9rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: #1e3a8a;
}

/* 希望日時ごとの概算表示 */
.eahf-wish-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.eahf-wish-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #f9fafb;
}

.eahf-wish-slot {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 180px;
}

.eahf-wish-rank {
  font-weight: 700;
  color: #1d4ed8;
  font-size: 0.95rem;
}

.eahf-wish-datetime {
  font-weight: 600;
  color: #111827;
}

.eahf-wish-detail {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 220px;
}

.eahf-wish-amount {
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.eahf-wish-amount span {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.95rem;
}

.eahf-wish-factors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  color: #374151;
  font-size: 0.9rem;
}

.eahf-wish-factor {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #eef2ff;
  line-height: 1.4;
}

.eahf-wish-factor.is-base {
  background: #e0f2fe;
  color: #075985;
}

.eahf-wish-factor.is-minus {
  background: #fef2f2;
  color: #b91c1c;
}

.eahf-wish-factor.is-plus {
  background: #ecfdf5;
  color: #047857;
}

.eahf-wish-factor.is-after-hours {
  background: #fef3c7;
  color: #92400e;
}

@media (max-width: 640px) {
  .eahf-wish-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .eahf-wish-slot,
  .eahf-wish-detail {
    width: 100%;
    min-width: 0;
  }

  .eahf-wish-amount {
    font-size: 1.05rem;
  }
}

/* Step 5 */
.eahf-complete-message {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0c4a6e;
  box-shadow: 0 15px 30px rgba(12, 74, 110, 0.2);
}

.eahf-complete-message h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.eahf-complete-summary {
  margin-top: 1.5rem;
  text-align: center;
  display: inline-block;
  padding: 1.25rem 1.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.eahf-complete-summary h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

/* Utility */
.eahf-panel-root a {
  color: #2563eb;
  text-decoration: underline;
}

.eahf-panel-root a:hover {
  color: #1d4ed8;
}

@media (max-width: 599px) {
  .eahf-service-card,
  .eahf-option-card {
    padding: 0.9rem 1rem;
  }

  .eahf-step-footer {
    justify-content: center;
    gap: 0.5rem;
  }

  .eahf-step-footer > * {
    flex: 1 1 0;
  }
}

/* モバイルでのボタンタップ領域と視覚バランスを最適化 */
@media (max-width: 600px) {
  .eahf-week-controls button {
    padding: 0.4rem 0.85rem;
    line-height: 1.25;
    border-radius: 0.75rem;
    box-shadow: none;
  }

  .eahf-selected-list button {
    padding: 0.4rem 0.85rem;
    line-height: 1.25;
    border-radius: 0.7rem;
    box-shadow: none;
  }
}

/* Base layout */
.eahf-form-app {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111827;
  line-height: 1.65;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  background: transparent;
}

.eahf-form-app *,
.eahf-form-app *::before,
.eahf-form-app *::after {
  box-sizing: border-box;
}

.eahf-form-app h2,
.eahf-form-app h3,
.eahf-form-app h4 {
  color: #0f172a;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.75rem;
}

.eahf-form-app p {
  margin: 0 0 1rem;
}

.eahf-form-app ul,
.eahf-form-app ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

@media (min-width: 768px) {
  .eahf-form-app {
    padding: 2rem 1.5rem 3rem;
  }
}

.eahf-noscript {
  background: #fef3c7;
  border: 1px solid #facc15;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  color: #854d0e;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Stepper */
.eahf-stepper {
  margin-bottom: 1.5rem;
}

.eahf-stepper__list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  counter-reset: eahf-step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eahf-stepper__list li {
  counter-increment: eahf-step;
  position: relative;
  flex: 1 1 160px;
  padding: 0.75rem 0.9rem 0.75rem 3rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: inset 0 0 0 1px #bfdbfe;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.eahf-stepper__list li::before {
  content: counter(eahf-step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e3a8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.15);
}

.eahf-stepper__list li.is-current {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.eahf-stepper__list li.is-current::before {
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.35);
}

@media (max-width: 640px) {
  .eahf-stepper__list li {
    flex: 1 1 100%;
  }
}

/* Alert */
.eahf-alert {
  margin-bottom: 1.5rem;
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.eahf-alert:empty {
  display: none;
}

.eahf-alert:not(:empty) {
  display: block;
}

.eahf-alert.is-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.eahf-alert.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.eahf-alert:not(.is-info):not(.is-error) {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

/* Panels */
.eahf-step-panels {
  display: grid;
  gap: 1.5rem;
}

.eahf-step-panel[hidden] {
  display: none !important;
}

.eahf-panel-root {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .eahf-panel-root {
    padding: 2rem 2.25rem;
    gap: 1.5rem;
  }
}

.eahf-panel-root h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.eahf-step1-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Legacy / asset-driven Step 1 shell */
#eahf-step1 {
  display: grid;
  gap: 1.5rem;
}

#eahf-step1 h3,
#eahf-step1 h4 {
  margin: 0;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.4;
}

#eahf-step1 p {
  margin: 0;
}

#eahf-step1 [hidden] {
  display: none !important;
}

#eahf-step1 :is(.eahf-tablist, .eahf-tabs, .eahf-step1-tabs, .eahf-category-tabs, [role="tablist"]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#eahf-step1 :is(.eahf-tablist, .eahf-tabs, .eahf-step1-tabs, .eahf-category-tabs, [role="tablist"]) > * {
  list-style: none;
}

@media (min-width: 768px) {
  #eahf-step1 :is(.eahf-tablist, .eahf-tabs, .eahf-step1-tabs, .eahf-category-tabs, [role="tablist"]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

#eahf-step1 .eahf-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#eahf-step1 .eahf-tab:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.18);
}

#eahf-step1 .eahf-tab.is-active,
#eahf-step1 .eahf-tab[aria-selected="true"] {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

#eahf-step1 .eahf-tab:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

#eahf-step1 .eahf-tab[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

#eahf-step1 :is(.eahf-cat-block, .eahf-opt-block) {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  #eahf-step1 .eahf-cat-block {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

#eahf-step1 .eahf-cat-block + .eahf-cat-block {
  margin-top: 0.5rem;
}

/* Service cards (inline + legacy) */
.eahf-service-card,
#eahf-step1 .eahf-card.eahf-svc {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  background: #f9fafb;
  display: grid;
  gap: 0.55rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.eahf-service-card:hover,
#eahf-step1 .eahf-card.eahf-svc:hover {
  background: #ffffff;
  border-color: #c7d2fe;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
}

/* Option rows/cards */
.eahf-option-card,
#eahf-step1 .eahf-opt {
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  display: grid;
  gap: 0.6rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.eahf-option-card:hover,
#eahf-step1 .eahf-opt:hover {
  background: #ffffff;
  border-color: #c7d2fe;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.14);
}

.eahf-service-name,
.eahf-option-name,
#eahf-step1 .eahf-svc-name,
#eahf-step1 .eahf-opt-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.eahf-service-meta,
.eahf-option-meta,
#eahf-step1 .eahf-svc-unit,
#eahf-step1 .eahf-opt-meta,
#eahf-step1 .eahf-opt-price {
  font-size: 0.9rem;
  color: #4b5563;
}

.eahf-qty-control,
#eahf-step1 .eahf-svc-qty,
#eahf-step1 .eahf-opt-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #1f2937;
}

#eahf-step1 .eahf-svc-qty {
  justify-content: space-between;
  width: 100%;
}

.eahf-qty-control input[type="number"],
#eahf-step1 .eahf-qty,
#eahf-step1 .eahf-opt-qty-input {
  width: 5.5rem;
  min-width: 4.5rem;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  padding: 0.45rem 0.65rem;
  background: #fff;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.eahf-qty-control input[type="number"]:focus,
#eahf-step1 .eahf-qty:focus,
#eahf-step1 .eahf-opt-qty-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

#eahf-step1 .eahf-opt-qty-input[disabled] {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

#eahf-step1 .qty-inc,
#eahf-step1 .qty-dec,
#eahf-step1 .opt-inc,
#eahf-step1 .opt-dec {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #ffffff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#eahf-step1 .qty-inc:hover,
#eahf-step1 .qty-dec:hover,
#eahf-step1 .opt-inc:hover,
#eahf-step1 .opt-dec:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.18);
  transform: translateY(-1px);
}

#eahf-step1 .qty-inc:focus-visible,
#eahf-step1 .qty-dec:focus-visible,
#eahf-step1 .opt-inc:focus-visible,
#eahf-step1 .opt-dec:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

#eahf-step1 .qty-inc[disabled],
#eahf-step1 .qty-dec[disabled],
#eahf-step1 .opt-inc[disabled],
#eahf-step1 .opt-dec[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

#eahf-step1 .eahf-opt {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

#eahf-step1 .eahf-opt + .eahf-opt {
  margin-top: 0.75rem;
}

#eahf-step1 .eahf-opt > *:nth-child(2) {
  display: grid;
  gap: 0.25rem;
}

#eahf-step1 .eahf-opt-check {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #2563eb;
  cursor: pointer;
}

#eahf-step1 .eahf-opt-check:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

#eahf-opt-wrapper {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #f8fafc;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

#eahf-opt-wrapper > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#eahf-opt-wrapper > summary::-webkit-details-marker {
  display: none;
}

#eahf-opt-wrapper > summary::marker {
  display: none;
}

#eahf-opt-wrapper[open] > summary {
  color: #1d4ed8;
}

#eahf-opt-wrapper :is(.eahf-opt-list, .eahf-opt-block, .eahf-opt-group) {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.75rem;
}

/* Inputs */
.eahf-form-app input[type="text"],
.eahf-form-app input[type="email"],
.eahf-form-app input[type="tel"],
.eahf-form-app input[type="number"],
.eahf-form-app input[type="password"],
.eahf-form-app select,
.eahf-form-app textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.eahf-form-app input[type="text"]:focus,
.eahf-form-app input[type="email"]:focus,
.eahf-form-app input[type="tel"]:focus,
.eahf-form-app input[type="number"]:focus,
.eahf-form-app input[type="password"]:focus,
.eahf-form-app select:focus,
.eahf-form-app textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.eahf-form-app textarea {
  min-height: 140px;
  resize: vertical;
}

.eahf-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.eahf-field label {
  font-weight: 600;
  color: #1f2937;
}

.eahf-field-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.eahf-field-group input,
.eahf-field-group select,
.eahf-field-group textarea {
  flex: 1 1 220px;
  min-width: min(220px, 100%);
}

.eahf-field.has-error label,
.eahf-field.has-error p {
  color: #b91c1c;
}

.eahf-field.has-error input,
.eahf-field.has-error textarea,
.eahf-field.has-error select {
  border-color: #f87171;
  background: #fef2f2;
}

.eahf-field-error {
  margin: -0.25rem 0 0;
  font-size: 0.9rem;
  color: #b91c1c;
}

/* Coupon & totals */
.eahf-coupon-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 0.9rem;
  border: 1px dashed #cbd5f5;
  background: #f5f7ff;
}

.eahf-coupon-wrap label {
  font-weight: 600;
  color: #1f2937;
}

#eahf-step1 .eahf-coupon-wrap {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  #eahf-step1 .eahf-coupon-wrap {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  #eahf-step1 .eahf-coupon-wrap label {
    margin: 0;
  }
}

#eahf-step1 #eahf-coupon-code {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#eahf-step1 #eahf-coupon-code:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

#eahf-step1 #eahf-coupon-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.35rem;
  border-radius: 999px;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.2);
}

#eahf-step1 #eahf-coupon-apply:hover:not([disabled]) {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
}

#eahf-step1 #eahf-coupon-apply:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

#eahf-step1 #eahf-coupon-apply[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

#eahf-step1 #eahf-coupon-msg {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1d4ed8;
}

#eahf-step1 #eahf-coupon-msg.is-success,
#eahf-step1 #eahf-coupon-msg[data-state="success"] {
  color: #047857;
}

#eahf-step1 #eahf-coupon-msg.is-error,
#eahf-step1 #eahf-coupon-msg[data-state="error"] {
  color: #b91c1c;
}

#eahf-step1 #eahf-applied-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #1f2937;
}

#eahf-step1 #eahf-applied-list li {
  position: relative;
  padding-left: 1.1rem;
}

#eahf-step1 #eahf-applied-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: #2563eb;
  font-size: 1.1rem;
  line-height: 1;
}

#eahf-duration-note {
  margin: 0;
  padding: 0.6rem 0.85rem;
  border-radius: 0.85rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
  font-size: 0.9rem;
}

#eahf-duration-note.is-error {
  background: #fee2e2;
  color: #b91c1c;
}

#eahf-step1 :is(#eahf-subtotal, #eahf-discount, #eahf-coupon, #eahf-tax, #eahf-total) {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  text-align: right;
}

#eahf-step1 #eahf-total {
  font-size: 1.15rem;
  color: #1d4ed8;
}

#eahf-step1-fallback {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.eahf-totals-box {
  display: grid;
  gap: 0.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.eahf-totals-box .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #374151;
  font-size: 0.95rem;
}

.eahf-totals-box .row strong {
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
}

.eahf-totals-box .row.total {
  font-size: 1.05rem;
}

/* Step 2 payment */
.eahf-payment-wrap {
  border-top: 1px solid #e5e7eb;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.eahf-payment-wrap > p {
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.eahf-payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.eahf-payment-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 0.85rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.eahf-payment-option:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.18);
}

.eahf-payment-option input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: #2563eb;
}

.eahf-payment-option input[type="radio"]:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: 3px;
}

.eahf-payment-option input[type="radio"]:checked + span {
  font-weight: 700;
  color: #1d4ed8;
}

/* Step 3 schedule */
.eahf-week-controls {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.eahf-week-controls button {
  appearance: none;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.eahf-week-controls button:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.eahf-week-controls button:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.8);
  outline-offset: 2px;
}

.eahf-grid-wrap {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
  padding: 0.75rem;
}

.eahf-grid-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

/* モバイル専用の3日スライドナビゲーション */
.eahf-slot-view-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.eahf-slot-view-nav__btn {
  appearance: none;
  flex: 1 1 auto;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #f1f5f9;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.eahf-slot-view-nav__btn:hover:not(:disabled) {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.eahf-slot-view-nav__btn:focus-visible {
  outline: 2px solid rgba(148, 163, 184, 0.8);
  outline-offset: 2px;
}

.eahf-slot-view-nav__btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 640px) {
  .eahf-slot-view-nav {
    display: flex;
  }
}

.eahf-slot-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.eahf-slot-range__btn {
  appearance: none;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #f1f5f9;
  color: #1f2937;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.eahf-slot-range__btn:hover:not(:disabled) {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.eahf-slot-range__btn:disabled,
.eahf-slot-range__btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.eahf-week-range {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
  white-space: nowrap;
}

.eahf-slot-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 0;
  table-layout: fixed;
}

.eahf-slot-grid th,
.eahf-slot-grid td {
  border: 1px solid #e5e7eb;
  padding: 0.6rem;
  text-align: center;
  font-size: 0.95rem;
}

.eahf-slot-grid thead th {
  background: #f8fafc;
  font-weight: 700;
  color: #1f2937;
}

.eahf-slot-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  white-space: nowrap;
}

/* 夜間枠がある日付ヘッダー用の強調とバッジ、アクセシビリティ対応 */
.eahf-slot-grid thead th[data-has-after-hours="true"]:not(.is-holiday) {
  background: #fff7ed;
  border-color: #fbbf24;
}

.eahf-slot-head--after-hours[data-late-surcharge="true"] .eahf-slot-weekday:not(.is-holiday) {
  color: #92400e;
}

.eahf-slot-head__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.1rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.7rem;
  font-weight: 700;
}

.eahf-slot-head__badge-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.eahf-slot-head__badge-text {
  line-height: 1;
}

.eahf-slot-head--interactive {
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.eahf-slot-head--interactive:hover {
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.55) inset;
}

.eahf-slot-head--interactive[data-late-visible="true"] .eahf-slot-head__badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.eahf-slot-head--interactive[data-late-acknowledged="true"][data-late-visible="false"] .eahf-slot-head__badge {
  background: #fef9c3;
  color: #b45309;
}

.eahf-slot-head--interactive:focus,
.eahf-slot-head--interactive:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.eahf-slot-head--interactive:focus:not(:focus-visible) {
  outline: none;
}

.eahf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  /* 小画面では日付と曜日を横並びにして高さを圧縮する */
  .eahf-slot-head {
    flex-direction: row;
    gap: 0.2rem;
  }

  .eahf-slot-grid thead th .eahf-slot-weekday {
    display: inline-flex;
    align-items: baseline;
    gap: 0.15rem;
  }

  .eahf-slot-grid thead th .eahf-slot-weekday br {
    display: none;
  }
}

.eahf-slot-grid thead th.is-holiday {
  color: #b91c1c;
  background: #fef2f2;
}

.eahf-slot-date {
  font-size: 1rem;
}

.eahf-slot-weekday {
  font-size: 0.85rem;
  color: #4b5563;
  white-space: pre-line;
}

.eahf-slot-weekday.is-holiday {
  color: #b91c1c;
}

.eahf-slot-grid td.is-open {
  cursor: pointer;
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.eahf-slot-grid td.is-open:hover {
  background: #d1fae5;
}

.eahf-slot-grid td.is-selected {
  background: #bfdbfe;
  color: #1d4ed8;
}

.eahf-slot-grid td.is-after-hours::after {
  content: attr(data-after-hours-label);
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.7rem;
  font-weight: 700;
}

.eahf-slot-grid td.is-closed {
  background: #f9fafb;
  color: #9ca3af;
}

.eahf-selected-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #f9fafb;
  padding: 1rem 1.25rem;
}

.eahf-selected-wrap h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.eahf-selected-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.eahf-selected-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #1f2937;
}

.eahf-selected-list button {
  appearance: none;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.eahf-selected-list button:hover {
  background: #fecaca;
  border-color: #f87171;
}

.eahf-selected-list button:focus-visible {
  outline: 2px solid rgba(248, 113, 113, 0.65);
  outline-offset: 2px;
}

.eahf-terms-wrap {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.eahf-terms-content {
  border: 1px solid #d1d5db;
  border-radius: 0.85rem;
  padding: 1rem;
  background: #fff;
  max-height: 240px;
  overflow-y: auto;
  color: #1f2937;
}

.eahf-terms-wrap label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #1f2937;
}

.eahf-terms-wrap input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #2563eb;
}

/* Step 4 summary */
.eahf-summary-block {
  display: grid;
  gap: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.eahf-summary-block h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.eahf-summary-block ul,
.eahf-summary-block ol {
  margin: 0;
  padding-left: 1.35rem;
  color: #1f2937;
  line-height: 1.6;
}

.eahf-summary-block li + li {
  margin-top: 0.25rem;
}

.eahf-range-wrap {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 0.9rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: #1e3a8a;
}

/* Step 5 */
.eahf-complete-message {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0c4a6e;
  box-shadow: 0 15px 30px rgba(12, 74, 110, 0.2);
}

.eahf-complete-message h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.eahf-complete-summary {
  margin-top: 1.5rem;
  text-align: center;
  display: inline-block;
  padding: 1.25rem 1.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.eahf-complete-summary h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

/* Utility */
.eahf-panel-root a {
  color: #2563eb;
  text-decoration: underline;
}

.eahf-panel-root a:hover {
  color: #1d4ed8;
}

@media (max-width: 599px) {
  .eahf-service-card,
  .eahf-option-card {
    padding: 0.9rem 1rem;
  }

  .eahf-step-footer {
    justify-content: center;
    gap: 0.5rem;
  }

  .eahf-step-footer > * {
    flex: 1 1 0;
  }
}
