
:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --surface2: #f9fcff;
  --text: #243044;
  --muted: #768397;
  --line: #e7edf4;
  --line-strong: #d8e2ec;
  --brand: #18b6ad;
  --brand-dark: #0f9f98;
  --brand-soft: #e9fbf8;
  --blue: #18b6ad;
  --blue-dark: #0f9f98;
  --blue-soft: #e9fbf8;
  --green: #18b6ad;
  --green-soft: #e9fbf8;
  --red: #ef4444;
  --red-soft: #fff1f2;
  --yellow: #f59e0b;
  --shadow: 0 18px 50px rgba(28, 79, 120, .08);
  --shadow-soft: 0 8px 28px rgba(28, 79, 120, .07);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 4% 0%, rgba(24,182,173,.10), transparent 30%),
    linear-gradient(180deg, #f8fcff 0%, #f4f8fc 100%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.reserve-header,
.lp-header {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lp-header nav { display: flex; gap: 18px; color: var(--muted); font-weight: 800; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-dark); }
.brand strong { display: block; font-size: 20px; letter-spacing: -.04em; line-height: 1; color: var(--brand-dark); }
.brand small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.brand-icon, .brand-image, .brand-image-small {
  width: 40px !important; height: 40px !important; min-width: 40px !important; max-width: 40px !important; max-height: 40px !important;
  border-radius: 14px !important; overflow: hidden !important; display: inline-flex !important; align-items: center !important; justify-content: center !important;
  background: linear-gradient(135deg, #46d6cd, var(--brand)) !important;
  box-shadow: 0 12px 26px rgba(24,182,173,.18) !important;
  position: relative;
}
.brand-image img, .brand-image-small img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
.brand-icon-check { position:absolute; width:14px; height:8px; border-left:3px solid #fff; border-bottom:3px solid #fff; transform:rotate(-45deg); }

.reserve-shell, .lp-main { width: min(1100px, calc(100% - 28px)); margin: 0 auto; padding: 18px 0 56px; }
.clinic-hero, .lp-hero {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: stretch; margin: 8px 0 14px;
}
.clinic-hero > div:first-child, .lp-hero > div:first-child,
.clinic-card, .lp-visual {
  background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
}
.clinic-hero > div:first-child, .lp-hero > div:first-child { padding: 22px; }
.eyebrow { margin: 0 0 8px; color: var(--brand-dark); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.clinic-hero h1, .lp-hero h1 { margin: 0; font-size: clamp(24px, 3.3vw, 38px); letter-spacing: -.055em; line-height: 1.12; color: var(--text); }
.clinic-desc { margin: 12px 0 0; max-width: 720px; color: var(--muted); line-height: 1.8; font-size: 14px; }
.clinic-address-line { font-weight: 700; color: #657184; }
.clinic-card, .lp-visual { width: 205px; padding: 20px; justify-content: center; display: flex; flex-direction: column; }
.clinic-card p { margin: 12px 0 4px; color: var(--muted); font-size: 13px; }
.clinic-card strong { font-size: 20px; letter-spacing: -.04em; }
.mini-brand-image { width: 76px !important; height: 76px !important; border-radius: 20px !important; overflow:hidden!important; background:#fff; box-shadow: 0 14px 28px rgba(24,182,173,.16); }
.mini-brand-image img { width:100%!important; height:100%!important; object-fit:cover!important; display:block!important; }

.note-box, .alert, .notice-box {
  border-radius: var(--radius-md); border: 1px solid var(--line); background: #fff; box-shadow: none;
}
.note-box { padding: 14px 16px; color: #31515c; line-height: 1.8; margin-top: 14px; background: #f3fbfa; border-color: #d9f1ef; }
.alert { padding: 16px 18px; margin: 16px 0; }
.alert strong { display:block; margin-bottom:8px; }
.alert ul { margin:0; padding-left:20px; line-height:1.7; }
.alert-error { color:#991b1b; background: var(--red-soft); border-color: rgba(239,68,68,.25); }
.alert-success { color:#047857; background: var(--green-soft); border-color: rgba(24,182,173,.20); }

.reserve-steps {
  background: rgba(255,255,255,.92); border:1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  padding: 18px 18px 14px; margin: 14px 0; display:grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative;
}
.reserve-steps::before { content:""; position:absolute; left: 44px; right:44px; top: 33px; height:2px; background: #e7edf4; }
.reserve-step { position:relative; z-index:1; display:grid; justify-items:center; gap:8px; color:var(--muted); font-size:12px; font-weight:800; white-space:nowrap; }
.reserve-step span { width:22px; height:22px; border-radius:999px; display:grid; place-items:center; background:#fff; border:1px solid var(--line-strong); color:#9aa6b5; font-size:11px; }
.reserve-step.is-active { color: var(--brand-dark); }
.reserve-step.is-active span { color:#fff; border-color: var(--brand); background: var(--brand); box-shadow: 0 8px 18px rgba(24,182,173,.25); }

.reserve-form { display: grid; gap: 14px; }
.form-card, .submit-card, .complete-card, .pricing-card {
  background: rgba(255,255,255,.95); border:1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-soft);
}
.section-title { display:flex; gap:12px; align-items:flex-start; margin-bottom:18px; }
.section-title > span { width:28px; height:28px; border-radius:999px; display:grid; place-items:center; color:#fff; background:var(--brand); font-weight:900; font-size:13px; box-shadow:0 8px 18px rgba(24,182,173,.20); }
.section-title h2 { margin:0; font-size:20px; letter-spacing:-.04em; }
.section-title p { margin:5px 0 0; color:var(--muted); font-size:13px; line-height:1.7; }
.service-grid, .lp-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:12px; }
.service-option { position:relative; display:block; min-height:116px; padding:18px; border-radius:16px; background:#fff; border:1px solid var(--line); cursor:pointer; transition:.16s ease; }
.service-option input { position:absolute; opacity:0; pointer-events:none; }
.service-option:hover, .service-option.is-selected, .service-option:has(input:checked) { border-color: var(--brand); background:#fbfffe; box-shadow: 0 10px 24px rgba(24,182,173,.10); transform: translateY(-1px); }
.service-option.is-selected::after, .service-option:has(input:checked)::after { content:"✓"; position:absolute; right:12px; top:12px; width:24px; height:24px; border-radius:999px; display:grid; place-items:center; background:var(--brand); color:#fff; font-weight:900; }
.service-option strong { display:block; font-size:16px; letter-spacing:-.03em; }
.service-option small { display:inline-flex; margin-top:14px; color:#506070; background:#f6f9fc; padding:5px 9px; border-radius:999px; font-size:12px; font-weight:900; }
.service-option p, .form-card p { color:var(--muted); line-height:1.7; }
.field { display:grid; gap:8px; margin-bottom:16px; }
.field:last-child { margin-bottom:0; }
.field label { font-size:14px; font-weight:900; color:#344052; }
.field label em { display:inline-flex; margin-left:6px; padding:2px 7px; border-radius:999px; background:var(--brand-soft); color:var(--brand-dark); font-style:normal; font-size:11px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="date"], .field input[type="time"], .field input[type="number"], .field select, .field textarea, input[type="search"], input[type="date"], input[type="time"], input[type="number"] {
  width:100%; min-height:46px; border-radius:12px; border:1px solid var(--line); background:#fff; color:var(--text); padding:12px 14px; outline:none; transition:.16s ease;
}
.field textarea, textarea { resize:vertical; line-height:1.7; }
.field input:focus, .field select:focus, .field textarea:focus, input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow:0 0 0 4px rgba(24,182,173,.10); }
.field small { color: var(--muted); font-size:12px; line-height:1.6; }
input[type="file"] { padding:13px; background:#fff; border:1px dashed var(--line-strong); border-radius:12px; }
.two-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:14px; }
.slot-area { margin-top:12px; }
.slot-grid { display:grid; grid-template-columns: repeat(5, 1fr); gap:10px; }
.slot-option { display:block; cursor:pointer; }
.slot-option input { position:absolute; opacity:0; pointer-events:none; }
.slot-option span { min-height:48px; border-radius:12px; background:#fff; border:1px solid var(--line); font-weight:900; display:flex; flex-direction:column; align-items:center; justify-content:center; transition:.16s ease; }
.slot-option span small { font-size:10px; color:inherit; opacity:.7; }
.slot-option:hover span, .slot-option.is-selected span, .slot-option input:checked + span { background:var(--brand); color:#fff; border-color:var(--brand); box-shadow:0 10px 22px rgba(24,182,173,.22); }
.empty-slots { padding:18px; border-radius:16px; color:var(--muted); background:var(--surface2); border:1px dashed var(--line-strong); }
.choice-list { display:grid; gap:10px; }
.choice-list.inline { display:flex; flex-wrap:wrap; }
.choice-item { display:inline-flex; align-items:center; gap:9px; padding:11px 13px; border:1px solid var(--line); border-radius:12px; background:#fff; cursor:pointer; color:var(--text); font-weight:800; }
.choice-item input { accent-color:var(--brand); }
.question-list { display:grid; gap:2px; }
.access-card { display:grid; gap:14px; }
.access-address { margin:0; color:var(--text); font-weight:800; line-height:1.8; }
.map-embed-wrap { width:100%; overflow:hidden; border-radius:18px; border:1px solid var(--line); background:#fff; margin:12px 0; box-shadow:0 10px 28px rgba(15,23,42,.06); }
.map-embed-wrap iframe { width:100%; height:260px; border:0; display:block; }
.submit-card { display:flex; align-items:center; justify-content:space-between; gap:18px; position:sticky; bottom:16px; z-index:5; }
.submit-card strong { display:block; font-size:17px; }
.submit-card p { margin:5px 0 0; color:var(--muted); font-size:13px; }
.primary-btn, .secondary-btn { min-height:46px; padding:0 20px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; border:0; font-weight:900; cursor:pointer; transition:.16s ease; white-space:nowrap; }
.primary-btn { color:#fff; background:linear-gradient(180deg, #21c7bd, var(--brand)); box-shadow:0 12px 26px rgba(24,182,173,.22); }
.primary-btn:hover, .secondary-btn:hover { transform:translateY(-1px); }
.primary-btn:disabled { opacity:.45; cursor:not-allowed; transform:none; }
.secondary-btn { color:#344052; background:#fff; border:1px solid var(--line-strong); }
.site-footer { padding:32px 16px 48px; text-align:center; color:var(--muted); font-size:13px; }
.site-footer p { margin:0; }
.complete-shell { width:min(760px, calc(100% - 28px)); margin:0 auto; padding:30px 0 56px; }
.complete-card { text-align:center; }
.success-icon { width:76px; height:76px; margin:0 auto 18px; border-radius:24px; background:linear-gradient(180deg, #e9fffb, #d8fbf5); display:flex; align-items:center; justify-content:center; box-shadow:0 18px 36px rgba(24,182,173,.14); }
.success-icon span { width:32px; height:18px; border-left:7px solid var(--brand); border-bottom:7px solid var(--brand); transform:rotate(-45deg); margin-top:-6px; }
.complete-card h1 { margin:0; font-size:clamp(30px, 5vw, 44px); letter-spacing:-.06em; }
.complete-lead { margin:14px auto 24px; max-width:540px; color:var(--muted); line-height:1.8; }
.summary-box, .answer-box, .notice-box { text-align:left; border:1px solid var(--line); background:var(--surface2); border-radius:18px; padding:18px; margin:16px 0; }
.summary-box dl { margin:0; display:grid; gap:12px; }
.summary-box dl > div { display:grid; grid-template-columns:130px 1fr; gap:12px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.summary-box dl > div:last-child { padding-bottom:0; border-bottom:0; }
.summary-box dt { color:var(--muted); font-size:13px; }
.summary-box dd { margin:0; font-weight:800; }
.answer-box h2, .notice-box strong { margin:0 0 12px; font-size:16px; }
.answer-row { padding:12px 0; border-bottom:1px solid var(--line); }
.answer-row:last-child { border-bottom:0; padding-bottom:0; }
.answer-row strong { display:block; font-size:13px; color:var(--muted); margin-bottom:5px; }
.answer-row p, .notice-box p, .answer-box p { margin:0 0 12px; line-height:1.8; }
.danger-submit-btn, .danger-link-btn { width:100%; min-height:48px; padding:0 20px; border-radius:12px; border:0; background:var(--red); color:#fff; font-weight:900; cursor:pointer; box-shadow:0 12px 26px rgba(239,68,68,.18); display:inline-flex; align-items:center; justify-content:center; margin:10px 0; }
.wait-big-card { padding:26px; border-radius:22px; background:linear-gradient(180deg, rgba(24,182,173,.10), rgba(24,182,173,.04)); border:1px solid var(--line); margin:18px 0; text-align:center; }
.wait-big-card span { color:var(--muted); font-weight:900; font-size:13px; }
.wait-big-card strong { display:block; font-size:54px; letter-spacing:-.08em; margin:8px 0; }
.wait-big-card p { margin:0; color:var(--text); font-weight:900; }
.lp-actions { display:flex; gap:12px; margin-top:24px; }
.lp-visual { text-align:center; align-items:center; }
.lp-visual img { width:96px!important; height:96px!important; object-fit:contain!important; border-radius:24px!important; }
.lp-section { margin:52px 0; }
.lp-section h2 { font-size:32px; letter-spacing:-.05em; }
.pricing-card h3 { font-size:32px; margin:0 0 10px; }

@media (max-width: 820px) {
  .reserve-header, .lp-header, .reserve-shell, .lp-main, .complete-shell { width:min(100% - 22px, 1100px); }
  .clinic-hero, .lp-hero { grid-template-columns:1fr; }
  .clinic-card, .lp-visual { width:100%; }
  .reserve-steps { grid-template-columns: repeat(6, minmax(54px, 1fr)); overflow-x:auto; }
  .service-grid, .lp-grid, .two-grid { grid-template-columns:1fr; }
  .slot-grid { grid-template-columns:repeat(3,1fr); }
  .submit-card { align-items:stretch; flex-direction:column; bottom:10px; }
  .primary-btn, .secondary-btn { width:100%; }
  .lp-header nav { display:none; }
  .lp-actions { flex-direction:column; }
  .summary-box dl > div { grid-template-columns:1fr; gap:4px; }
}
@media (max-width: 430px) {
  .form-card, .submit-card, .complete-card { padding:17px; border-radius:20px; }
  .slot-grid { grid-template-columns:repeat(2,1fr); }
  .clinic-hero h1, .lp-hero h1 { font-size:30px; }
}
/* assets/css/app.css の一番下に追記 */

.brand-text-only {
    font-size: 22px;
    font-weight: 950;
    color: #13a89e;
    letter-spacing: -0.05em;
}

.reserve-menu-dot {
    width: 38px;
    height: 38px;
    border: 0;
    background: #fff;
    color: #0f172a;
    border-radius: 12px;
    border: 1px solid var(--line);
    font-size: 18px;
}

.slim-clinic-hero {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 14px;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.clinic-hero-main {
    display: flex;
    gap: 18px;
    align-items: center;
    min-width: 0;
}

.clinic-icon-box {
    width: 96px;
    height: 96px;
    flex: 0 0 auto;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(19,181,170,.14), rgba(19,181,170,.07));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.clinic-icon-box img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    border-radius: 18px;
}

.slim-clinic-hero h1 {
    font-size: 24px;
    letter-spacing: -0.04em;
    margin: 0;
}

.slim-clinic-hero .clinic-desc {
    margin-top: 6px;
    font-size: 13px;
}

.map-mini-btn {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: #fff;
    color: #111827;
    font-weight: 900;
    white-space: nowrap;
}

.notice-strip {
    background: rgba(255,255,255,.92);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-soft);
}

.notice-strip strong {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.notice-strip p {
    margin: 0;
    color: #334155;
    line-height: 1.7;
    font-size: 13px;
}

.reserve-stepbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 12px 0 16px;
    background: rgba(246,249,255,.94);
}

.step-dot {
    position: relative;
    display: grid;
    gap: 7px;
    justify-items: center;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.step-dot::before {
    content: "";
    position: absolute;
    top: 13px;
    left: calc(-50% + 18px);
    width: calc(100% - 18px);
    height: 2px;
    background: #e5edf6;
    z-index: -1;
}

.step-dot:first-child::before {
    display: none;
}

.step-dot span {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #edf2f7;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 950;
}

.step-dot small {
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.step-dot.active span,
.step-dot.done span {
    background: #13b5aa;
    color: #fff;
}

.step-dot.active small,
.step-dot.done small {
    color: #0f766e;
}

.step-dot.done::before,
.step-dot.active::before {
    background: #13b5aa;
}

.reserve-wizard-form {
    display: block;
}

.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: block;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 22px;
}

.confirm-card {
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px;
}

.confirm-card dl {
    margin: 0;
    display: grid;
    gap: 0;
}

.confirm-card div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.confirm-card div:last-child {
    border-bottom: 0;
}

.confirm-card dt {
    color: var(--muted);
    font-size: 13px;
}

.confirm-card dd {
    margin: 0;
    color: var(--text);
    font-weight: 850;
}

.service-option,
.slot-option span,
.choice-item,
.field input,
.field select,
.field textarea,
.form-card,
.notice-box,
.summary-box {
    box-shadow: none;
}

.service-option.is-selected,
.slot-option.is-selected span,
.slot-option input:checked + span {
    border-color: #13b5aa;
    background: rgba(19,181,170,.08);
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(19,181,170,.12);
}

.slot-option:hover span,
.slot-option.is-selected span,
.slot-option input:checked + span {
    background: #13b5aa;
    color: #fff;
    border-color: #13b5aa;
}

@media (max-width: 760px) {
    .slim-clinic-hero {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .clinic-hero-main {
        align-items: flex-start;
    }

    .clinic-icon-box {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    .clinic-icon-box img {
        width: 54px;
        height: 54px;
    }

    .reserve-stepbar {
        overflow-x: auto;
        grid-template-columns: repeat(6, minmax(92px, 1fr));
        padding-bottom: 12px;
    }

    .step-dot small {
        font-size: 10px;
    }

    .wizard-actions {
        flex-direction: row;
    }

    .wizard-actions .primary-btn,
    .wizard-actions .secondary-btn {
        width: 100%;
    }

    .confirm-card div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
/* assets/css/app.css の一番下に追記 */

.reserve-file-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.reserve-photo-picker {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 86px;
    padding: 16px;
    border-radius: 20px;
    border: 1px dashed rgba(19, 181, 170, .42);
    background: linear-gradient(180deg, rgba(19,181,170,.08), rgba(255,255,255,.92));
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.reserve-photo-picker:hover {
    transform: translateY(-1px);
    border-color: #13b5aa;
    background: linear-gradient(180deg, rgba(19,181,170,.12), rgba(255,255,255,.96));
}

.reserve-photo-picker-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #13b5aa;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    flex: 0 0 auto;
    box-shadow: 0 10px 24px rgba(19,181,170,.24);
}

.reserve-photo-picker strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.reserve-photo-picker small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    line-height: 1.55;
}

.reserve-photo-preview {
    display: none;
    margin-top: 12px;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.reserve-photo-preview.active {
    display: flex;
}

.photo-preview-info {
    width: 100%;
    color: #0f766e;
    font-weight: 850;
    font-size: 13px;
}

.photo-preview-item {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f8fbff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 以前の素のinput[type=file]装飾を上書き */
.field input.reserve-file-hidden {
    padding: 0;
    border: 0;
    background: transparent;
}
