:root {
  --bg: #F6F7F5;
  --bg-alt: #FFFFFF;
  --bg-soft: #EEF7F7;
  --bg-deep: #1F3C45;
  --ink: #101828;
  --ink-soft: #5E7480;
  --ink-mute: #7A8D96;
  --line: rgba(31, 60, 69, 0.14);
  --line-soft: rgba(31, 60, 69, 0.08);
  --accent: #E97A3D;
  --accent-dark: #D7662A;
  --accent-soft: #1F3C45;
  --accent-light: #EEF7F7;
  --amber: #E97A3D;
  --amber-soft: #FFCFB2;
  --amber-bg: #FFF4EE;
  --ppl-on: #E97A3D;
  --ppl-off: #5E7480;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

body {
  font-family: "Noto Sans JP", -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  padding: 0 0 70px;
}

.serif {
  font-family: "Noto Sans JP", sans-serif
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 22px
}

header {
  padding: 30px 0 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt)
}

h1 .accent {
  font-size: 24px;
}

.sub {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 10px
}

/* progress */
.prog {
  display: flex;
  gap: 7px;
  margin: 24px 0 30px
}

.prog .seg {
  flex: 1;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden
}

.prog .seg .fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .4s ease
}

.prog .seg.done .fill,
.prog .seg.active .fill {
  width: 100%
}

.prog .seg.active .fill {
  background: var(--accent-soft)
}

.step {
  display: none;
  animation: fade .45s ease
}

.step.active {
  display: block
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

  to {
    opacity: 1;
    transform: none
  }
}



.qhint {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 16px
}

label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 18px 0 7px;
  letter-spacing: 0.03em
}

textarea,
input[type=text],
select {
  width: 100%;
  padding: 14px 15px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border .2s;
}

textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.8
}

textarea:focus,
input:focus,
select:focus {
  outline: none;
  border-color: var(--accent-soft)
}

textarea::placeholder {
  color: var(--ink-mute);
  line-height: 1.8
}

.angles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px
}

.angle {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 13px;
  border-radius: 20px
}

.opts {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 4px
}

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  cursor: pointer;
  transition: all .16s;
}

.opt:hover {
  border-color: var(--accent-soft);
  background: #fff
}

.opt.on {
  border-color: var(--accent);
  background: var(--accent-light)
}

.opt .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
  transition: all .16s
}

.opt.on .dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--accent-light)
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px
}

.chip {
  padding: 9px 15px;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  cursor: pointer;
  transition: all .16s;
  user-select: none;
  color: var(--ink-soft);
}

.chip:hover {
  border-color: var(--accent-soft)
}

.chip.on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent)
}

.chip .x {
  opacity: .7;
  margin-left: 6px;
  font-weight: 700
}

.row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.row>div {
  flex: 1;
  min-width: 150px
}

.vol {
  display: flex;
  align-items: center;
  gap: 8px
}

.vol input {
  width: 100%
}

.vol select {
  width: auto;
  flex: 1
}

.vol-x {
  font-size: 13.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  flex-shrink: 0
}

.fieldhint {
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-top: 6px
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  gap: 14px
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all .22s;
}

.btn:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink)
}

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

.btn.back {
  background: none;
  color: var(--ink-soft);
  border-color: transparent;
  padding-left: 4px
}

.btn.back:hover {
  color: var(--ink);
  background: none
}

.btn.wide {
  width: 100%;
  justify-content: center;
  padding: 17px
}

.preset-note {
  font-size: 14px;
  color: var(--accent);
  margin-top: 10px;
  display: none
}

.preset-note.show {
  display: block
}

/* spinner / loading */
.loading {
  text-align: center;
  padding: 50px 0;
  display: none
}

.loading.show {
  display: block
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 18px
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.loadmsg {
  font-size: 13.5px;
  color: var(--ink-soft)
}

/* results */
.result {
  display: none
}

.result.show {
  display: block;
  animation: fade .5s ease
}

.hero {
  background: var(--bg-deep);
  color: #EAE6DE;
  padding: 34px 26px;
  text-align: center;
  margin-bottom: 16px
}

.hero .lbl {
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--amber-soft);
  text-transform: uppercase;
  margin-bottom: 14px
}

.hero .hours {
  font-family: "Oswald", sans-serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 1.0
}

.hero .hours small {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  margin-left: 5px
}

.hero .days {
  font-size: 18px;
  font-weight: 500;
  margin-top: 16px;
  color: #EAE6DE
}

.hero .days b {
  color: var(--amber-soft);
  font-size: 24px;
  font-weight: 700
}

.hero .days .dnote {
  font-size: 14px;
  color: #7E9398;
  margin-left: 4px
}

.hero .basis {
  font-size: 14px;
  color: #9DB1B5;
  margin-top: 16px;
  line-height: 1.7
}

.hero .ppl-sub {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .10)
}

.people {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 auto 10px;
  max-width: 300px
}

.ppl {
  width: 60px;
  height: 64px
}

.hero .eq-sub {
  font-size: 18px;
  color: #B9C8CB
}

.hero .eq-sub b {
  color: var(--amber-soft);
  font-weight: 700;
  font-size: 24px;
}

.hero .unit {
  font-size: 14px;
  color: #6E8489;
  margin-top: 16px;
  display: block;
}

/* Card positioning for result */
.result .card {
  position: relative;
  overflow: hidden;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 24px;
  margin-bottom: 32px
}

.card .ck {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  color: var(--accent);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: none;
  margin-bottom: 18px;
}

.tool-name {
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(24px, 3.4vw, 28px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.tool-one {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 2;
  margin-bottom: 30px;
}

.flow {
  counter-reset: flow-step;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 24px;
}

.flow .node {
  position: relative;
  display: block;
  min-height: 88px;
  padding: 20px 24px 24px 56px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid rgba(31, 60, 69, 0.08);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}

.flow .node::before {
  counter-increment: flow-step;
  content: "0" counter(flow-step);
  position: absolute;
  left: 18px;
  top: 20px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--bg-deep);
  border-radius: 50%;
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.flow .arr {
  display: none;
}

.kv {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.kv .k {
  min-width: 0;
  color: var(--bg-deep);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.kv .v {
  color: var(--ink-soft);
  line-height: 1.9;
}

.firststep {
  position: relative;
  margin-top: 80px;
  padding: 18px 20px 18px 54px;
  color: var(--ink);
  background: var(--amber-bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-size: 16px;
  line-height: 1.9;
}

.firststep::before {
  content: "!";
  position: absolute;
  left: 20px;
  top: 24px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.firststep b {
  color: var(--accent);
}

.datanote {
  font-size: 14px;
  color: var(--ink-mute);
  text-align: center;
  margin-bottom: 48px
}

.cta {
  position: relative;
  overflow: hidden;
  min-height: 315px;
  padding: 48px 24px 56px 24px;
  display: grid;
  justify-items: center;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(31, 60, 69, 0.06);
}

.cta::before {
  content: "";
  position: absolute;
  left: 54px;
  bottom: 0;
  width: 170px;
  height: 180px;
  background: url("../images/diagnosis-cta.png") left bottom / contain no-repeat;
  pointer-events: none;
}

.cta::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.cta .h {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.6;
  margin: 0 0 12px;
}

.cta .p {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  margin: 0 0 32px;
}

.cta .btn {
  width: min(450px, 100%);
  min-height: 118px;
  padding: 0 40px;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-size: clamp(24px, 3vw, 24px);
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: none;
}

.cta .btn::after {
  content: "→";
  margin-left: 42px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.privacy {
  font-size: 11.5px;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 24px;
  line-height: 1.7
}

.restart {
  display: block;
  margin: 32px auto 56px;
  font-size: 14px;
  color: var(--ink-soft);
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit
}

.err {
  background: #fbeaea;
  border: 1px solid #e3bcbc;
  color: #8a3b3b;
  padding: 16px;
  font-size: 13.5px;
  margin-top: 20px
}

/* LP tone */

body {
  color: var(--bg-deep);
  background: var(--bg);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0;
  padding-bottom: 80px;
}

.wrap {
  width: min(100% - 48px, 940px);
  max-width: 940px;
  padding: 0;
}

header {
  position: relative;
  overflow: hidden;
  padding: 0 0 32px;
  border-bottom: 0;
  background: var(--bg);
}



header .wrap {
  position: relative;
  z-index: 1;
}

.diag-brand-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--bg-deep);
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 176px;
  height: auto;
  display: block;
}

.brand span {
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}

.diag-back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--bg-deep);
  border: 1px solid rgba(31, 60, 69, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.diag-back-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  padding: 7px 14px 8px;
  color: #fff;
  background: var(--bg-deep);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: none;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin-top: 24px;
  color: var(--ink);
  font-size: clamp(40px, 5vw, 32px);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: 0;
  text-align: center;
}


.sub {
  margin-top: 16px;
  color: var(--ink);
  font-size: 16px;
  line-height: 2;
  text-align: center;
}

.prog {
  gap: 8px;
  margin: 34px 0 30px;
}

.prog .seg {
  height: 5px;
  background: rgba(31, 60, 69, 0.12);
  border-radius: 999px;
}

.prog .seg .fill,
.prog .seg.active .fill {
  background: var(--accent);
}

.step {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(31, 60, 69, 0.08);
}

.stepnum {
  color: var(--accent);
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 32px;
  text-align: center;
}

.q {
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 16px;
}

.qhint,
label,
.fieldhint,
.vol-x,
.loadmsg,
.tool-one,
.kv .v,
.privacy {
  color: var(--ink-soft);
}

label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

textarea,
input[type=text],
select {
  min-height: 54px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233, 122, 61, 0.14);
}

.angle {
  color: var(--bg-deep);
  background: var(--bg-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.opt,
.chip {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  border-radius: 8px;
}

.opt:hover,
.chip:hover {
  border-color: var(--accent);
  background: #fff;
}

.opt.on {
  border-color: var(--bg-deep);
  background: var(--bg-soft);
}

.opt.on .dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
}

.chip.on {
  color: #fff;
  background: var(--bg-deep);
  border-color: var(--bg-deep);
}

.preset-note {
  color: var(--accent);
}

.btn {
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 34px;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(233, 122, 61, 0.24);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.btn:hover:not(:disabled) {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}

.btn.back {
  color: var(--ink-soft);
  box-shadow: none;
}

.btn.back:hover {
  color: var(--accent);
  transform: none;
}

.spinner {
  border-color: rgba(31, 60, 69, 0.14);
  border-top-color: var(--accent);
}

.hero {
  padding: 42px 32px;
  color: #fff;
  background: var(--bg-deep);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(31, 60, 69, 0.12);
}

.hero .lbl {
  color: var(--accent);
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.hero .hours {
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 68px;
  letter-spacing: 0.02em;
}

.hero .hours small,
.hero .days b,
.hero .eq-sub b {
  color: #fff;
}

.hero .days,
.hero .eq-sub {
  color: rgba(255, 255, 255, 0.9);
}

.hero .basis,
.hero .days .dnote,
.hero .unit {
  color: rgba(255, 255, 255, 0.58);
}

.card {
  padding: 24px 24px 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(31, 60, 69, 0.06);
}




.firststep {
  background: var(--amber-bg);
  border-left-color: var(--accent);
  border-radius: 0 8px 8px 0;
}

.firststep b {
  color: var(--accent);
}




.privacy {
  max-width: 720px;
  margin: 24px auto 0;
  font-size: 12px;
}

.err {
  color: #9a3a25;
  background: #fff4ee;
  border-color: rgba(233, 122, 61, 0.28);
  border-radius: 8px;
}

@media (max-width: 767px) {
  .flow {
    grid-template-columns: 1fr;
  }

  .kv {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .wrap {
    width: min(100% - 32px, 760px);
  }

  header {
    padding-bottom: 38px;
  }

  header::before {
    width: 340px;
    right: -150px;
  }

  header::after {
    width: 340px;
    left: -250px;
    bottom: -600px;
  }

  .diag-brand-row {
    min-height: 68px;
    margin-bottom: 38px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 146px;
  }

  .brand span {
    font-size: 13px;
  }

  .diag-back-link {
    display: none;
  }

  .eyebrow {
    font-size: 13px;
  }

  h1 {
    font-size: 31px;
    line-height: 1.45;
  }

  .sub {
    font-size: 15.5px;
    line-height: 1.85;
  }

  .prog {
    margin: 26px 0 22px;
  }

  .step {
    padding: 26px 18px;
  }

  .q {
    font-size: 21px;
  }

  .nav {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .dnote {
    display: block;
  }

  .nav>span {
    display: none;
  }

  .btn,
  .btn.back {
    width: 100%;
    padding: 0 24px;
  }

  .row {
    display: block;
  }

  .row>div+div {
    margin-top: 14px;
  }

  .hero,
  .card {
    padding: 28px 18px;
  }

  .cta {
    min-height: 0;
    padding: 44px 18px 130px;
  }

  .cta::before {
    left: 20px;
    width: 140px;
    height: 150px;
  }

  .cta .btn {
    min-height: 82px;
    padding: 0 24px;
    font-size: 18px;
  }

  .cta .btn::after {
    margin-left: 24px;
    font-size: 24px;
  }

  .hero .hours {
    font-size: 56px;
  }

  .hero .days {
    font-size: 16px;
  }

  .kv {
    display: block;
  }

  .kv .k {
    display: block;
    margin-bottom: 3px;
  }
}