:root {
  --pink: #e23d7a;
  --pink-hover: #c92d68;
  --pink-soft: #fff1f6;
  --pink-line: #f7c6d8;
  --ink: #2a2328;
  --muted: #6d646a;
  --line: #ece4e8;
  --bg: #faf6f7;
  --card: #ffffff;
  --ok: #1b7a52;
  --ok-soft: #e8f6ee;
  --warn: #b45309;
  --shadow: 0 16px 40px rgba(42, 35, 40, 0.08);
  --radius: 16px;
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

a {
  color: var(--pink);
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand svg {
  width: 36px;
  height: 36px;
}

.brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.header-note {
  font-size: 12px;
  color: var(--muted);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.hero.is-hidden {
  display: none;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: 0.04em;
}

.hero p {
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px 10px 42px;
  font-size: 13px;
  color: var(--muted);
}

.steps li::before {
  content: attr(data-num);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f0eaed;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps li.is-current {
  border-color: var(--pink);
  color: var(--ink);
  background: var(--pink-soft);
}

.steps li.is-current::before,
.steps li.is-done::before {
  background: var(--pink);
  color: #fff;
}

.steps li.is-done {
  color: var(--ink);
}

.panel {
  display: none;
}

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

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card__body {
  padding: 24px;
}

.panel[data-panel="2"] .field {
  margin-bottom: 16px;
}

.card h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.card .lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.field {
  margin-bottom: 20px;
}

.field label,
.legend {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.req {
  color: var(--pink);
  font-size: 12px;
  margin-left: 6px;
  font-weight: 500;
}

.hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  border: 1px solid #ddd3d8;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--pink-line);
  border-color: var(--pink);
}

.field.is-error input,
.field.is-error select,
.field.is-error textarea {
  border-color: #d11f4f;
}

.error {
  display: none;
  color: #d11f4f;
  font-size: 12px;
  margin-top: 6px;
}

.field.is-error .error {
  display: block;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.plan,
.choice {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.plan:hover,
.choice:hover {
  border-color: var(--pink-line);
}

.plan.is-selected,
.choice.is-selected {
  border-color: var(--pink);
  background: var(--pink-soft);
  box-shadow: 0 0 0 3px rgba(226, 61, 122, 0.12);
}

.plan input,
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  background: var(--pink);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
}

.plan__tag {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 10px;
}

.plan dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  font-size: 12px;
}

.plan dt {
  color: var(--muted);
}

.plan dd {
  margin: 0;
  text-align: right;
}

.plan__price {
  margin-top: 10px;
  font-size: 13px;
}

.plan__price b {
  font-size: 18px;
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.term {
  text-align: center;
  padding: 12px 8px;
}

.term.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.term small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.estimate {
  position: sticky;
  top: 20px;
}

.estimate h2 {
  font-size: 16px;
}

.estimate-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.estimate-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}

.estimate-list span {
  color: var(--muted);
}

.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0 4px;
}

.total b {
  font-size: 28px;
  color: var(--pink);
  letter-spacing: 0.02em;
}

.total small {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--pink);
  color: #fff;
}

.btn--primary:hover:not(:disabled) {
  background: var(--pink-hover);
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:hover:not(:disabled) {
  border-color: var(--pink);
  color: var(--pink);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.choice p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
}

.check input {
  margin-top: 4px;
}

.confirm {
  padding: 8px 0;
}

.confirm + .confirm {
  border-top: 1px solid var(--line);
}

.confirm__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.confirm__head h3 {
  margin: 0;
  font-size: 14px;
}

.linkish {
  background: none;
  border: 0;
  color: var(--pink);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}

.kv {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 14px;
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  margin: 0;
  word-break: break-all;
}

.complete {
  text-align: center;
  padding: 48px 24px;
}

.complete__mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  display: grid;
  place-items: center;
  font-size: 36px;
}

.complete h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.receipt {
  display: inline-block;
  margin: 18px 0;
  background: var(--pink-soft);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
}

.receipt b {
  font-size: 18px;
  letter-spacing: 0.08em;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(42, 35, 40, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 40;
}

.modal.is-open {
  display: flex;
}

.modal__box {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  display: none;
  z-index: 50;
  max-width: 360px;
}

.toast.is-show {
  display: block;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  display: none;
  place-items: center;
  z-index: 60;
  font-weight: 700;
}

.overlay.is-show {
  display: grid;
}

.sheet-wrap {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 794px;
  height: auto;
}

.sheet {
  width: 794px;
  min-height: 1123px;
  background: #fff;
  color: #222;
  padding: 48px 56px;
  font-family: var(--font);
}

.sheet h1 {
  margin: 0;
  font-size: 28px;
  color: #e23d7a;
}

.sheet table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.sheet th,
.sheet td {
  border: 1px solid #eadfe4;
  padding: 10px 12px;
  text-align: left;
}

.sheet th {
  width: 32%;
  background: #fff4f8;
}

.demo-banner {
  background: #fff7e8;
  color: #8a5400;
  font-size: 12px;
  text-align: center;
  padding: 8px;
}

.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 24px;
}

@media (max-width: 900px) {
  .layout,
  .row,
  .plan-grid,
  .term-grid,
  .kv {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 4px;
  }

  .steps li {
    padding: 8px 4px 8px 4px;
    font-size: 10px;
    text-align: center;
    border-radius: 12px;
  }

  .steps li::before {
    position: static;
    transform: none;
    margin: 0 auto 4px;
  }

  .estimate {
    position: static;
  }
}
