/* ============================================================
   starford-lp01
   Plain, office-site style: flat colors, thin borders, small radii,
   radio-list answers. Distinct from the orange pill style of the
   Avance / Tomotuna LPs.
   ============================================================ */

:root {
  --navy: #1f3a5f; /* brand / headings */
  --navy-dark: #172c49;
  --navy-pale: #eaf0f6; /* hero / soft panels */
  --green: #1e9e62; /* CTA / selected */
  --green-dark: #167a4b;
  --green-pale: #edf8f2;
  --marker: #fff08a; /* yellow marker line */

  --ink: #222;
  --ink-soft: #555;
  --ink-mute: #888;

  --line: #cfd6df;
  --line-soft: #e4e8ee;
  --bg: #f2f4f7;
  --danger: #d33c3c;
  --danger-pale: #fdf0f0;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
form,
fieldset,
label,
header,
footer,
section,
button,
input,
select {
  margin: 0;
  padding: 0;
  border: 0;
}
ul,
ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}
a {
  color: var(--navy);
}
a:hover {
  opacity: 0.8;
}

body {
  font-family:
    "Zen Kaku Gothic New",
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Meiryo",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

/* ===== Wrapper ===== */
.wrapper {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-top: 4px solid var(--navy);
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  color: var(--navy);
  text-decoration: none;
}
.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.header-badge {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  padding: 3px 10px;
  border-radius: 3px;
}

/* ===== Hero (First View) ===== */
.hero {
  padding: 22px 18px 24px;
  text-align: center;
  /* faint diagonal stripes, a common Japanese LP background */
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.5) 0 6px, transparent 6px 12px),
    var(--navy-pale);
}
/* speech bubble (吹き出し) */
.hero-kicker {
  margin-bottom: 14px;
}
.hero-kicker span {
  position: relative;
  display: inline-block;
  padding: 6px 16px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  border-radius: 20px;
}
.hero-kicker span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  margin-left: -7px;
  border: 7px solid transparent;
  border-top-color: var(--navy);
  border-bottom: 0;
}
.hero-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.45;
  color: var(--navy-dark);
  margin-bottom: 10px;
}
.hero-title .marker {
  background: linear-gradient(transparent 62%, var(--marker) 62%);
  color: var(--danger);
  font-size: 1.12em;
}
.hero-lead {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
/* round badges (丸バッジ) */
.hero-points {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-points li {
  width: 86px;
  height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--navy);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line);
  color: var(--navy);
  line-height: 1.2;
}
.hero-points small {
  font-size: 12px;
  font-weight: 700;
}
.hero-points b {
  font-size: 22px;
  font-weight: 900;
  color: var(--danger);
}

/* visually-hidden utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Form block ===== */
.main {
  margin: 20px 14px 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.form-title {
  padding: 8px 12px 10px;
  background: var(--navy);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  border-radius: 3px 3px 0 0;
}
.form-title small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--marker);
}
.questions-page {
  padding: 16px 16px 24px;
}

.heading-show-question {
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
  margin-bottom: 14px;
}

.heading-show-complete {
  display: none;
  text-align: center;
  margin-bottom: 16px;
}
.heading-show-complete h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 4px;
}
.heading-show-complete .heading-note {
  font-size: 12px;
  color: var(--ink-mute);
}
.main.step-complete .heading-show-question {
  display: none;
}
.main.step-complete .heading-show-complete {
  display: block;
}

/* ===== Progress ===== */
.progress {
  margin-bottom: 20px;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 12px;
}
.progress-label {
  color: var(--ink-mute);
}
.progress-label b {
  font-size: 16px;
  color: var(--navy);
}
.progress-hint {
  font-weight: 700;
  color: var(--green-dark);
}
.list-tab {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}
.list-tab .tab span {
  display: block;
  padding: 5px 0;
  font-size: 11px;
  text-align: center;
  color: var(--ink-mute);
  background: var(--line-soft);
}
.list-tab .tab.done span {
  background: #c9e8d8;
  color: var(--green-dark);
}
.list-tab .tab.active span {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

/* ===== Question pages ===== */
.question-page {
  display: none;
}
.question-page.show {
  display: block;
}
.question-page.hide {
  display: none;
}

.question-page h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: var(--navy-dark);
  margin-bottom: 4px;
}
.q-num {
  color: var(--green);
  margin-right: 4px;
}
.question-page .question-sub {
  font-size: 12px;
  text-align: center;
  color: var(--ink-mute);
  margin-bottom: 16px;
}

/* ===== Answers (radio list) ===== */
.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.question-page .choose-answer {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.question-page .choose-answer label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px;
  cursor: pointer;
}
.choice-dot {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #aab4c0;
  background: #fff;
}
.choice-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--green);
  transform: scale(0);
  transition: transform 0.15s ease;
}
.choice-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.question-page .choose-answer.selected {
  border-color: var(--green);
  background: var(--green-pale);
}
.question-page .choose-answer.selected .choice-dot {
  border-color: var(--green);
}
.question-page .choose-answer.selected .choice-dot::after {
  transform: scale(1);
}
@media (hover: hover) and (pointer: fine) {
  .question-page .choose-answer:hover {
    border-color: var(--navy);
    background: #f7f9fb;
  }
}
/* visually-hidden radio — keeps keyboard nav & screen reader support */
.question-page input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.question-page .choose-answer:has(input:focus-visible) {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* ===== Back button ===== */
.question-nav {
  margin-top: 18px;
  text-align: center;
}
.btn-back {
  padding: 6px 4px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: underline;
}
.btn-back::before {
  content: "< ";
}
.btn-back:hover {
  color: var(--navy);
}

/* ===== Form fields (contact step) ===== */
.question-complete .form-group {
  margin-bottom: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.question-complete .form-group > label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.question-complete .form-group > label > span:not(.check-text) {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 5px;
  background: var(--danger);
  color: #fff;
  border-radius: 2px;
  white-space: nowrap;
}
.question-complete .form-group input[type="text"],
.question-complete .form-group input[type="email"],
.question-complete .form-group input[type="tel"],
.question-complete .form-group select {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background-color: #fff; /* not shorthand: keeps the select arrow image */
  font-family: inherit;
  font-size: 16px; /* 16px prevents iOS zoom */
  color: var(--ink);
}
.question-complete .form-group input:focus,
.question-complete .form-group select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(31, 58, 95, 0.15);
}
.question-complete .form-group input::placeholder {
  color: #aaa;
}
.question-complete .form-group input.field-invalid,
.question-complete .form-group select.field-invalid {
  border-color: var(--danger);
  background-color: var(--danger-pale);
}
.input-att {
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* Telephone */
.tel-parts {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tel-parts select,
.tel-parts input {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.tel-parts select {
  max-width: 88px;
}
.tel-dash {
  color: var(--ink-mute);
}

/* Select */
.select-fw,
.tel-parts select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23555' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
  padding-right: 30px !important;
}

/* Checkbox */
.form-check {
  margin-top: 4px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 4px;
}
.form-check .check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--green);
  cursor: pointer;
}
.form-check .check-text {
  flex: 1;
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.form-check .check-text a {
  white-space: nowrap;
  color: var(--navy);
  font-weight: 700;
}
.form-check.field-invalid {
  background: var(--danger-pale);
  border-color: var(--danger);
}
.form-check.field-invalid .check-label {
  color: var(--danger);
}

/* Error message */
.error-msg {
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
  line-height: 1.4;
}
.agree-error {
  margin-top: -10px; /* sit right under the agreement box (form-group margin is 18px) */
}
.agree-error:empty {
  display: none;
}

/* ===== Submit button ===== */
.btn-send {
  width: 100%;
  min-height: 60px;
  margin: 22px 0 8px;
  border-radius: 6px;
  background: var(--green);
  box-shadow: 0 3px 0 var(--green-dark);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease;
}
.btn-send:hover {
  opacity: 0.92;
}
.btn-send:active {
  transform: translateY(3px);
  box-shadow: none;
}
.btn-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.cta-lead {
  margin: 22px 0 -14px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
}
.send-note {
  font-size: 12px;
  text-align: center;
  color: var(--ink-soft);
}

/* ===== Footer ===== */
footer {
  margin-top: auto;
  padding: 24px 0 20px;
  text-align: center;
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
}
footer ul {
  margin-bottom: 10px;
}
footer li {
  display: inline-block;
  margin: 0 2px;
}
footer li a {
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
}
footer p {
  font-size: 11px;
  line-height: 1.6;
  padding: 0 16px;
  margin-top: 4px;
}
footer .cp {
  margin-top: 12px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   Responsive
   ============================================================ */
@media screen and (max-width: 380px) {
  .site-header {
    padding: 10px 12px;
  }
  .brand-name {
    font-size: 14px;
    letter-spacing: 0.02em;
  }
  .header-badge {
    font-size: 11px;
    padding: 3px 8px;
  }
  .hero {
    padding: 22px 14px 20px;
  }
  .hero-title {
    font-size: 24px;
  }
  .hero-points li {
    width: 78px;
    height: 78px;
  }
  .hero-points b {
    font-size: 19px;
  }
  .main {
    margin: 16px 10px 24px;
  }
  .questions-page {
    padding: 14px 12px 20px;
  }
  .question-page h3 {
    font-size: 16px;
  }
  .list-tab .tab span {
    font-size: 10px;
  }
  .btn-send {
    font-size: 16px;
  }
}

/* ============================================================
   Sub-pages (about / terms-use / thank-you)
   ============================================================ */
.page {
  margin: 20px 14px 28px;
  padding: 20px 16px 28px;
  background: #fff;
}
.page-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 28px 0 14px;
  padding: 0 0 6px 10px;
  border-left: 4px solid var(--navy);
  border-bottom: 1px solid var(--line-soft);
}
.page-title:first-child {
  margin-top: 0;
}

/* info table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}
.info-table th,
.info-table td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}
.info-table th[colspan] {
  background: var(--navy-pale);
  color: var(--navy-dark);
  font-weight: 700;
  text-align: center;
}
.info-table td.label {
  width: 32%;
  white-space: nowrap;
  font-weight: 700;
  background: var(--bg);
}
.info-table small {
  color: var(--ink-mute);
}

/* terms */
.terms h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 20px 0 6px;
}
.terms .page-title + h3 {
  margin-top: 4px;
}
.terms p {
  font-size: 13px;
  line-height: 1.85;
}
.terms p + p {
  margin-top: 8px;
}
.terms ul,
.terms ol {
  margin: 8px 0 0;
  padding-left: 1.6em;
  font-size: 13px;
  line-height: 1.85;
}
.terms ul {
  list-style: disc;
}
.terms ol {
  list-style: decimal;
}
.terms .terms-contact {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border-left: 4px solid var(--navy);
  font-weight: 700;
}
.terms .terms-note {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-mute);
}

/* thank-you */
.ty {
  text-align: center;
}
.ty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green);
}
.ty-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--navy-dark);
  margin-bottom: 6px;
}
.ty-lead {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.ty-alert {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--danger);
  background: linear-gradient(transparent 62%, var(--marker) 62%);
  margin-bottom: 8px;
}
.ty-sub {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.ty-card {
  border: 2px solid var(--navy);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto 8px;
}
.ty-card-head {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: 10px;
}
.ty-tel {
  font-size: 28px;
  font-weight: 900;
  color: var(--navy-dark);
  letter-spacing: 0.03em;
  margin: 14px 0 4px;
}
.ty-hours {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 6px;
}
.ty-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-mute);
  padding: 0 12px 14px;
}
.ty-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 10px;
}
.ty-divider::before,
.ty-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
.ty-divider span {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.ty-flow {
  background: var(--navy-pale);
  color: var(--navy-dark);
  border-radius: 4px;
  padding: 12px;
  font-weight: 700;
}
.ty-thanks {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-mute);
}
