:root {
  --forest: #1c3d2a;
  --forest-mid: #2a5c3f;
  --forest-light: #3e8c5f;
  --lime: #c8e86a;
  --cream: #fafaf5;
  --text: #1a1a1a;
  --text-mid: #444;
  --chip-border: #c8ddd0;
  --chip-selected: #2a5c3f;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --touch-min: 56px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100dvh;
  min-height: 100vh;
  padding: max(12px, env(safe-area-inset-top)) 20px calc(24px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 480px;
  margin: 0 auto;
}
/* トップバー：ロゴ（index 同型・FOREST黒 / BIKEアクセント）＋ホームに戻る */
.res-home-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.res-home-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}
.res-home-logo-svg {
  display: block;
  height: 1.85rem;
  width: auto;
  max-width: min(56vw, 200px);
}
.res-home-logo:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
  border-radius: 10px;
}
.res-home-logo:active {
  transform: scale(0.96);
  transition: transform 0.1s;
}
.res-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--forest);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 2px solid var(--chip-border);
  background: #fff;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.res-home-link:hover {
  border-color: var(--forest-light);
  background: rgba(42, 92, 63, 0.05);
}
.res-home-link:active {
  transform: scale(0.97);
}
.res-home-link:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}
.res-home-link-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--forest-mid);
}
.res-header {
  padding-bottom: 8px;
}
.res-step-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--forest-light);
  text-transform: uppercase;
}
.res-brand {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--forest-mid);
  margin-top: 4px;
}
.res-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0 24px;
}
.res-heading {
  font-size: clamp(1.45rem, 5vw, 1.75rem);
  font-weight: 900;
  line-height: 1.35;
  color: var(--forest);
  margin-bottom: 12px;
}
.res-lead {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 28px;
}
.res-chip-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.res-chip {
  appearance: none;
  border: 2px solid var(--chip-border);
  border-radius: 16px;
  background: #fff;
  padding: 18px 20px;
  min-height: var(--touch-min);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.res-chip:active {
  transform: scale(0.98);
}
.res-chip:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}
.res-chip.is-selected {
  border-color: var(--chip-selected);
  background: linear-gradient(180deg, #f4faf6 0%, #e8f5ec 100%);
  box-shadow: 0 4px 20px rgba(42, 92, 63, 0.18);
}
.res-chip-title {
  font-size: clamp(1.05rem, 3.5vw, 1.2rem);
  font-weight: 800;
  color: var(--forest);
}
.res-chip-sub {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  line-height: 1.45;
}
.res-note {
  font-size: 0.78rem;
  line-height: 1.65;
  color: #666;
  margin-top: 20px;
  padding: 12px 14px;
  background: rgba(28, 61, 42, 0.06);
  border-radius: 12px;
}
.res-footer {
  padding-top: 8px;
}
.res-btn-next {
  width: 100%;
  min-height: calc(var(--touch-min) + 4px);
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  background: var(--forest);
  color: #fff;
  box-shadow: 0 6px 24px rgba(28, 61, 42, 0.35);
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
}
.res-btn-next:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}
.res-btn-next:not(:disabled):active {
  transform: scale(0.98);
}
.res-btn-next:not(:disabled):focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
.res-hint {
  font-size: 0.76rem;
  color: #888;
  text-align: center;
  margin-top: 10px;
}
.res-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--chip-border);
  color: var(--forest-mid);
  margin-bottom: 16px;
}
.res-btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--touch-min);
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  background: #fff;
  color: var(--forest);
  border: 2px solid var(--forest-mid);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.res-btn-back:active {
  transform: scale(0.98);
}
.res-btn-back:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
.res-footer-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.res-main--form {
  justify-content: flex-start;
  padding-top: 8px;
}
.res-panel[hidden] {
  display: none !important;
}
.res-section-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--forest-mid);
  margin-bottom: 10px;
  margin-top: 8px;
}
.res-section-label:first-child {
  margin-top: 0;
}
.res-field {
  margin-bottom: 16px;
}
.res-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--forest-mid);
  margin-bottom: 6px;
}
.res-input {
  width: 100%;
  min-height: calc(var(--touch-min) - 8px);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid var(--chip-border);
  border-radius: 12px;
  background: #fff;
}
.res-input:focus {
  outline: none;
  border-color: var(--forest-light);
  box-shadow: 0 0 0 3px rgba(62, 140, 95, 0.2);
}
.res-guardian {
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(28, 61, 42, 0.06);
  border: 1px solid var(--chip-border);
}
.res-guardian[hidden] {
  display: none !important;
}
.res-check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.res-check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--chip-border);
  background: #fff;
}
.res-check-label input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--forest-mid);
}
.res-summary {
  font-size: 0.88rem;
  line-height: 1.7;
  background: #fff;
  border: 1px solid var(--chip-border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 12px;
}
.res-summary dt {
  font-weight: 700;
  color: var(--forest-mid);
  margin-top: 10px;
}
.res-summary dt:first-child {
  margin-top: 0;
}
.res-summary dd {
  margin: 4px 0 0 0;
  color: var(--text);
}
