:root {
  --ink: #2a2724;
  --muted: #716a63;
  --line: #e8dfd6;
  --paper: #fffaf4;
  --white: #ffffff;
  --teal: #2daaa0;
  --teal-dark: #14766f;
  --coral: #f07167;
  --yellow: #f7bd45;
  --blue: #5387e6;
  --shadow: 0 22px 70px rgba(42, 39, 36, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, #f2eadf 0, #f2eadf calc((100vw - 430px) / 2), transparent calc((100vw - 430px) / 2), transparent calc(100vw - ((100vw - 430px) / 2)), #f2eadf calc(100vw - ((100vw - 430px) / 2))),
    var(--paper);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.75;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(42, 39, 36, 0.06), 0 24px 80px rgba(42, 39, 36, 0.14);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 12px 16px;
  background: rgba(255, 250, 244, 0.88);
  border-bottom: 1px solid rgba(232, 223, 214, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}

.header-nav a {
  color: var(--ink);
  text-decoration: none;
}

.nav-cta,
.primary-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--coral);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(240, 113, 103, 0.24);
}

.nav-cta {
  min-height: 40px;
  padding: 0 14px;
}

.primary-button {
  width: 100%;
  padding: 0 26px;
  font-size: 17px;
}

.primary-button.dark {
  width: min(100%, 520px);
  background: var(--ink);
  box-shadow: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay,
.hero-inner {
  grid-area: 1 / 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(0deg, rgba(255, 250, 244, 0.97) 0%, rgba(255, 250, 244, 0.9) 45%, rgba(255, 250, 244, 0.08) 100%);
}

.hero-inner {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  width: 100%;
  padding: 38px 22px 54px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 13vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 9vw, 40px);
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 30px;
  color: #4a443f;
  font-size: 17px;
}

.hero-actions {
  display: grid;
  gap: 18px;
}

.text-link {
  color: var(--ink);
  font-weight: 900;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}

.section {
  padding: 68px 20px;
}

.section-inner {
  width: 100%;
  margin: 0 auto;
}

.section-copy p:not(.section-label) {
  color: var(--muted);
  font-size: 17px;
}

.feature-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(42, 39, 36, 0.08);
}

.feature-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 78px;
  padding: 16px;
  background: #f8f1e9;
  border-radius: 8px;
}

.feature-number {
  color: var(--coral);
  font-size: 24px;
  font-weight: 900;
}

.feature-item p {
  margin: 0;
  font-weight: 700;
}

.flow-section {
  background: var(--white);
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.question-preview {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.question-chip {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: #4a443f;
  font-weight: 900;
}

.center-title {
  text-align: center;
}

.wave-divider {
  margin: 0 0 34px;
  color: #5d5954;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
  white-space: nowrap;
}

.result-section {
  background: var(--white);
}

.share-card {
  --result-accent: #6d0810;
  --result-bg: #e694bf;
  display: grid;
  gap: 18px;
  padding: 14px;
  border: 2px solid var(--result-accent);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.94)),
    var(--result-bg);
  box-shadow: 0 18px 44px rgba(42, 39, 36, 0.14);
}

.share-card-image {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: var(--result-bg);
  box-shadow: 0 12px 26px rgba(42, 39, 36, 0.12);
  aspect-ratio: 745 / 1040;
  object-fit: cover;
}

.share-card-copy {
  padding: 6px 6px 10px;
}

.share-card h3 {
  font-size: 32px;
  line-height: 1.25;
}

.share-card p,
.share-note {
  color: var(--muted);
  font-weight: 700;
}

.share-card .result-type {
  background: var(--result-accent);
}

.share-note {
  margin: 22px 0 0;
  color: var(--ink);
  text-align: center;
  font-size: 18px;
}

.diagnosis-result .share-note {
  position: relative;
  z-index: 2;
  margin: 22px 0 18px;
  color: #111;
  font-size: clamp(17px, 5vw, 21px);
  font-weight: 900;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: normal;
}

.axis-list {
  display: grid;
  gap: 22px;
  margin-top: 32px;
}

.axis-row {
  display: grid;
  grid-template-columns: 76px 1fr 76px;
  gap: 12px;
  align-items: center;
}

.axis-row > span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid #b8b2ab;
  border-radius: 50%;
  background: #f4f1ed;
  font-size: 18px;
  font-weight: 900;
}

.axis-bar {
  position: relative;
  height: 24px;
  border: 1px solid #b8b2ab;
  background: #efede9;
}

.axis-bar::before,
.axis-bar::after {
  position: absolute;
  top: 50%;
  width: 17px;
  height: 17px;
  border: solid #b8b2ab;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.axis-bar::before {
  left: -8px;
  border-width: 0 0 1px 1px;
  background: #efede9;
}

.axis-bar::after {
  right: -8px;
  border-width: 1px 1px 0 0;
  background: #efede9;
}

.axis-bar span {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.dog-group-grid {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.dog-group-grid article {
  position: relative;
  min-height: 92px;
  padding: 16px 42px 16px 18px;
  border: 1px solid #7aa07d;
  border-radius: 8px;
  background: var(--white);
}

.dog-group-grid article::after {
  position: absolute;
  top: 50%;
  right: 18px;
  color: #2d7044;
  font-size: 28px;
  font-weight: 900;
  content: "›";
  transform: translateY(-50%);
}

.dog-group-grid span {
  display: inline-block;
  margin-right: 6px;
  color: #2d7044;
  font-weight: 900;
}

.dog-group-grid strong {
  color: #2d7044;
}

.dog-group-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.next-section {
  background: var(--white);
}

.next-image {
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: 8px;
  aspect-ratio: 1 / 0.72;
}

.next-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-lead {
  margin: 36px 0 18px;
  color: #5d5954;
  text-align: center;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.45;
}

.follow-panel {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f1e9;
}

.follow-panel p {
  margin: 0;
  color: var(--teal-dark);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--teal-dark);
  border-radius: 50%;
  color: var(--white);
  background: var(--teal-dark);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.consult-button {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 18px 22px;
  border-radius: 999px;
  color: var(--white);
  background: #000;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.site-footer {
  padding: 34px 20px;
  color: var(--muted);
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 18px;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 39, 36, 0.56);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(430px, 100%);
  max-height: min(760px, calc(100svh - 36px));
  overflow: auto;
  padding: clamp(22px, 4vw, 38px);
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-size: 24px;
  line-height: 1;
}

.progress {
  height: 8px;
  margin: 10px 48px 18px 0;
  overflow: hidden;
  background: #f0e8df;
  border-radius: 999px;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--teal);
  transition: width 0.25s ease;
}

.modal-step {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.modal.is-result {
  padding: 0;
}

.modal.is-result .modal-panel {
  width: min(390px, 100vw);
  max-width: 390px;
  max-height: 100svh;
  padding: 0;
  overflow-x: hidden;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.modal.is-result .modal-close,
.modal.is-result .progress,
.modal.is-result .modal-step {
  display: none;
}

.modal.is-result #diagnosis-view {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  overflow-x: hidden;
}

.diagnosis-title {
  margin-bottom: 12px;
  padding-right: 28px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.28;
}

.diagnosis-lead {
  margin-bottom: 24px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 900;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

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

.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.choice-button,
.segment-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf9;
  font-weight: 800;
  text-align: left;
}

.choice-button {
  min-height: 96px;
  padding: 18px;
}

.choice-button span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 13px;
}

.choice-button.is-selected,
.segment-button.is-selected {
  border-color: var(--teal);
  background: #e9f7f5;
  box-shadow: inset 0 0 0 2px rgba(45, 170, 160, 0.25);
}

.primary-button:disabled,
.choice-button:disabled,
.segment-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.segment-button {
  min-height: 46px;
  padding: 0 12px;
  text-align: center;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.secondary-button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-weight: 900;
}

.diagnosis-result {
  --result-accent: var(--teal);
  --result-bg: #e9f7f5;
  display: grid;
  width: 100%;
  max-width: 390px;
  gap: 8px;
  padding: 14px 18px 22px;
  border: 0;
  border-radius: 0;
  background: var(--result-bg);
  box-shadow: none;
  box-sizing: border-box;
  overflow-x: hidden;
  text-align: center;
}

.result-screen,
.result-card,
.result-inner {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.result-screen {
  background: var(--result-bg);
}

.result-screen * {
  box-sizing: border-box;
}

.result-kicker {
  margin: 0;
  color: var(--result-accent);
  font-size: clamp(17px, 5vw, 22px);
  font-weight: 900;
  text-align: left;
}

.result-main-title {
  margin: 0;
  padding: 0;
  color: var(--result-accent);
  font-size: clamp(24px, 6.9vw, 32px);
  line-height: 1.25;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: normal;
}

.result-group-pill {
  display: grid;
  place-items: center;
  width: min(100%, 322px);
  min-height: 50px;
  margin: 10px auto 0;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--result-accent);
  font-size: clamp(28px, 8.2vw, 39px);
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.result-group-heading {
  display: grid;
  justify-items: center;
  width: 100%;
}

.result-emblem-badge,
.score-rank-emblem,
.ranking-emblem-wrap {
  display: grid;
  place-items: center;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.result-emblem-badge {
  width: 74px;
  aspect-ratio: 1 / 1;
  box-shadow: 0 5px 0 rgba(42, 39, 36, 0.12);
}

.result-emblem-badge img,
.score-rank-emblem img,
.ranking-emblem {
  display: block;
  width: auto;
  max-width: 90px;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.emblem-image {
  display: block;
  width: auto;
  max-width: 90px;
  height: auto;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.emblem-8 {
  transform: scale(1.16);
  transform-origin: center;
}

.result-group-name {
  margin: 0;
  color: var(--result-accent);
  max-width: 100%;
  font-size: clamp(50px, 15vw, 70px);
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: normal;
}

.result-card-image-wrap {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
}

.result-dog-image-wrap,
.result-dog-portrait {
  display: block;
  width: 100%;
  max-width: 370px;
  margin: 4px auto 6px;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  clip-path: none;
  mask-image: none;
}

.diagnosis-card-image {
  width: 100%;
  aspect-ratio: 745 / 1040;
  object-fit: cover;
}

.result-dog-image {
  display: block;
  width: 100%;
  max-width: 358px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  clip-path: none;
  mask-image: none;
  transform: none;
}

.result-summary {
  width: calc(100% - 44px);
  max-width: 330px;
  margin: 2px auto 0;
  padding: 16px 15px 20px;
  background: #fff;
  border-radius: 0;
  text-align: center;
}

.result-catch,
.result-catchcopy {
  margin: 0 0 4px;
  color: var(--result-accent);
  font-size: clamp(18px, 5.2vw, 24px);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: normal;
}

.result-type-name {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  color: var(--result-accent);
  font-size: clamp(32px, 8.6vw, 40px);
  font-weight: 900;
  line-height: 1.26;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: normal;
  overflow: visible;
}

.result-type {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--result-accent, var(--teal));
  font-size: 13px;
  font-weight: 900;
}

.diagnosis-result h3 {
  margin-bottom: 10px;
  color: var(--result-accent);
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1.16;
}

.diagnosis-result .result-type-name {
  font-size: clamp(32px, 8.6vw, 40px);
  line-height: 1.26;
}

.diagnosis-result p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.diagnosis-result .result-summary > p:last-child {
  margin: 0;
  color: var(--result-accent);
  font-size: clamp(13px, 3.8vw, 15px);
  font-weight: 900;
  line-height: 1.48;
}

.diagnosis-result .result-kicker,
.diagnosis-result .result-main-title,
.diagnosis-result .result-group-name,
.diagnosis-result .result-catch,
.diagnosis-result .result-catchcopy,
.diagnosis-result .result-type-name {
  color: var(--result-accent);
}

.result-scroll-to-ranking {
  display: inline-grid;
  gap: 1px;
  justify-items: center;
  min-height: 42px;
  margin: 12px auto 0;
  padding: 6px 16px 5px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  color: var(--result-accent);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: normal;
  cursor: pointer;
}

.result-scroll-to-ranking span {
  display: block;
}

.result-detail {
  display: grid;
  width: calc(100% - 36px);
  max-width: 354px;
  gap: 14px;
  margin-top: 0;
  margin-inline: auto;
  padding: 18px 12px 16px;
  border-radius: 0;
  background: #fff;
  box-sizing: border-box;
  overflow-x: hidden;
}

.result-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 390px;
  min-height: 72px;
  margin: 0 auto;
  background: #eef6f0;
  color: var(--result-accent);
  text-align: center;
}

.result-logo::before {
  position: absolute;
  top: -34px;
  left: 50%;
  width: 154px;
  height: 68px;
  border-radius: 154px 154px 0 0;
  background: #eef6f0;
  content: "";
  transform: translateX(-50%);
}

.result-logo-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 70px;
  height: auto;
  margin: -8px auto 0;
  object-fit: contain;
  border-radius: 50%;
}

.result-detail h3 {
  margin: 0;
  color: #17613f;
  font-size: clamp(25px, 7vw, 32px);
  line-height: 1.22;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

.result-ranking-title {
  font-size: clamp(25px, 7.2vw, 34px);
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

.result-dog-list-title {
  margin-top: 8px;
  font-size: clamp(24px, 6.8vw, 31px);
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

.answer-warning {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.score-list {
  display: grid;
  gap: 8px;
}

.score-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px 8px;
  align-items: center;
  min-height: 64px;
  padding: 7px 10px 8px 6px;
  border: 1.5px solid var(--result-accent, var(--line));
  border-radius: 8px;
  background: #fffdf9;
}

.score-rank-emblem,
.ranking-emblem-wrap {
  grid-row: 1 / span 2;
  width: 54px;
  min-width: 54px;
  height: auto;
  min-height: 58px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  aspect-ratio: auto;
}

.score-rank-emblem .emblem-image,
.ranking-emblem-wrap .ranking-emblem {
  display: block;
  width: 54px;
  max-width: 54px;
  height: auto;
  max-height: none;
  object-fit: contain;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.score-row-head {
  display: grid;
  grid-column: 2;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 5px;
  align-items: center;
  margin-bottom: 4px;
  font-size: 10.5px;
  line-height: 1.2;
}

.score-row-head span,
.score-row-head em {
  color: var(--result-accent, var(--teal-dark));
  font-style: normal;
  font-weight: 900;
}

.score-row-head strong {
  min-width: 0;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  font-size: 10.5px;
  letter-spacing: 0;
}

.score-meter {
  grid-column: 2;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0e8df;
}

.score-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--result-accent, var(--teal));
}

.result-mini-groups {
  display: grid;
  gap: 8px;
}

.result-mini-groups div {
  padding: 11px 14px;
  border: 1px solid #7aa07d;
  border-radius: 8px;
  color: #2d7044;
  background: #fffdf9;
  font-weight: 900;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: normal;
}

.status-message {
  min-height: 24px;
  margin-top: 14px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.modal.is-result .status-message {
  width: calc(100% - 36px);
  max-width: 354px;
  margin: 12px auto 0;
  text-align: center;
}

.modal.is-result .modal-actions {
  width: calc(100% - 36px);
  max-width: 354px;
  margin: 18px auto 22px;
  box-sizing: border-box;
}

/* webdesign.jpg tone */
:root {
  --design-bg: #fff8f1;
  --design-cream: #fffaf4;
  --design-peach: #f4dfc8;
  --design-coral: #ee746b;
  --design-coral-dark: #d85e55;
  --design-brown: #8a7463;
  --design-blue: #39b9ee;
  --design-green: #12613d;
}

body {
  background:
    linear-gradient(90deg, #ead6c2 0, #ead6c2 calc((100vw - 390px) / 2), transparent calc((100vw - 390px) / 2), transparent calc(100vw - ((100vw - 390px) / 2)), #ead6c2 calc(100vw - ((100vw - 390px) / 2))),
    var(--design-bg);
  overflow-x: hidden;
}

.page-shell {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--design-bg);
  box-shadow: 0 0 0 1px rgba(138, 116, 99, 0.1), 0 20px 70px rgba(90, 61, 39, 0.18);
}

main {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  overflow: hidden;
}

img,
button,
.page-shell main .primary-button,
.consult-button {
  max-width: 100%;
  box-sizing: border-box;
}

.site-header {
  min-height: 54px;
  padding: 9px 12px;
  background: rgba(255, 248, 241, 0.94);
  border-bottom: 0;
}

.brand {
  flex: 0 0 auto;
  gap: 0;
  color: var(--design-coral);
  font-size: 11px;
}

.brand span:last-child {
  display: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  background: var(--design-coral);
  border-radius: 50%;
  font-size: 11px;
}

.header-nav {
  min-width: 0;
  gap: 8px;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}

.header-nav a {
  color: var(--design-coral);
}

.nav-cta {
  display: none;
}

.section {
  position: relative;
  padding: 44px 24px;
}

.section::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 86px;
  height: 24px;
  background: inherit;
  border-radius: 0 0 999px 999px;
  content: "";
  transform: translateX(-50%);
}

.section-label {
  margin-bottom: 12px;
  color: var(--design-coral);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

h1,
h2 {
  color: #111;
  text-align: center;
}

h1 {
  margin-bottom: 22px;
  font-size: 32px;
  line-height: 1.22;
}

h2 {
  font-size: 25px;
  line-height: 1.34;
}

.hero {
  min-height: auto;
  background: var(--design-bg);
}

.hero-inner {
  display: block;
  padding: 20px 20px 38px;
}

.eyebrow {
  margin-bottom: 8px;
  color: #111;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.hero-emblem-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 2px auto 18px;
}

.hero-emblem-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 42%;
  box-shadow: 0 4px 0 rgba(138, 116, 99, 0.12);
}

.hero-copy,
.section-copy p:not(.section-label),
.section-intro {
  color: #3d332b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.85;
  text-align: center;
}

.hero-copy {
  margin: 0 auto 22px;
}

.page-shell main .primary-button {
  position: relative;
  min-height: 56px;
  border-radius: 999px;
  background: var(--design-coral);
  box-shadow: 0 8px 0 rgba(205, 91, 82, 0.2), 0 14px 24px rgba(238, 116, 107, 0.24);
  font-size: 18px;
}

.page-shell main .primary-button::after,
.consult-button::after {
  position: absolute;
  right: 17px;
  bottom: -8px;
  width: 30px;
  height: 26px;
  background:
    radial-gradient(circle at 50% 74%, #fff 0 26%, transparent 27%),
    radial-gradient(circle at 19% 40%, #fff 0 13%, transparent 14%),
    radial-gradient(circle at 39% 22%, #fff 0 13%, transparent 14%),
    radial-gradient(circle at 62% 22%, #fff 0 13%, transparent 14%),
    radial-gradient(circle at 82% 40%, #fff 0 13%, transparent 14%);
  content: "";
  transform: rotate(-12deg);
}

.about-section,
.group-section,
.information-section {
  background: var(--design-peach);
}

.flow-section,
.next-section {
  background: var(--design-bg);
}

.about-visual {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 24px 0 26px;
}

.about-visual span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--design-coral);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 4px 0 rgba(138, 116, 99, 0.18);
}

.about-visual span:nth-child(2),
.about-visual span:nth-child(8) {
  background: #2b9fc4;
}

.about-visual span:nth-child(4),
.about-visual span:nth-child(6) {
  background: #9c7728;
}

.about-visual span:nth-child(5),
.about-visual span:nth-child(10) {
  background: #6d3aa0;
}

.about-visual span:nth-child(7),
.about-visual span:nth-child(9) {
  background: #17613f;
}

.flow-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.flow-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 106px;
  padding: 14px;
  border: 2px solid #f1ddd0;
  border-radius: 8px;
  background: #fff;
  transform: rotate(-1deg);
}

.flow-item:nth-child(2) {
  transform: rotate(1deg);
}

.flow-item span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 66px;
  border: 2px solid #f1a8a8;
  color: var(--design-coral);
  font-size: 24px;
  font-weight: 900;
}

.flow-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.flow-item p,
.info-panel p {
  margin: 0;
  color: #453a32;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}

.dog-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 22px auto 28px;
}

.dog-card-grid img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 0 rgba(138, 116, 99, 0.14);
}

.project-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
}

.next-image {
  margin: 0;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  transform: rotate(-2deg);
}

.profile-label {
  margin-bottom: 4px;
  color: var(--design-coral);
  font-weight: 900;
}

.follow-panel {
  margin-top: 28px;
  padding: 0;
  border: 0;
  background: transparent;
}

.follow-panel p {
  color: var(--design-coral);
  font-size: 16px;
}

.social-link {
  width: 42px;
  height: 42px;
  border: 0;
  box-shadow: 0 3px 0 rgba(138, 116, 99, 0.2);
}

.social-link:first-child {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.social-link:last-child {
  background: #1877f2;
}

.information-section h2 {
  font-size: 24px;
}

.info-visual {
  overflow: hidden;
  margin: 20px 0;
  border-radius: 8px;
  aspect-ratio: 1 / 0.68;
}

.info-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.78);
}

.info-panel h3 {
  margin-bottom: 10px;
  padding: 6px 10px;
  background: #fff;
  font-size: 19px;
  text-align: center;
}

.contact-section {
  padding: 30px 24px 34px;
  background: var(--design-brown);
}

.contact-section h2 {
  color: #fff;
  font-size: 17px;
}

.consult-button {
  position: relative;
  min-height: 54px;
  background: var(--design-blue);
  border-radius: 999px;
  box-shadow: 0 7px 0 rgba(49, 148, 190, 0.28);
  font-size: 18px;
}

.site-footer {
  padding: 18px 20px;
  background: var(--design-brown);
  color: rgba(255, 255, 255, 0.82);
}

.modal-panel {
  background: var(--design-bg);
}

.diagnosis-title {
  color: #111;
  font-size: clamp(30px, 9vw, 44px);
  text-align: center;
}

.diagnosis-lead {
  color: #111;
  font-weight: 900;
  text-align: center;
}

.choice-button,
.segment-button,
.field input {
  border: 2px solid #8c7a68;
  border-radius: 12px;
  background: #fff;
}

.choice-button {
  min-height: 92px;
  font-size: 17px;
}

.choice-button span {
  color: #111;
}

.choice-button.is-selected,
.segment-button.is-selected {
  border-color: #31b5aa;
  background: #e2f5f2;
}

.modal.is-question {
  padding: 8px;
}

.modal.is-question .modal-panel {
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  max-height: calc(100svh - 16px);
  max-height: calc(100dvh - 16px);
  padding: 12px 14px 14px;
  overflow: hidden;
}

.modal.is-question .modal-close {
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  font-size: 20px;
}

.modal.is-question .progress {
  flex: 0 0 auto;
  height: 6px;
  margin: 8px 42px 8px 0;
}

.modal.is-question .modal-step {
  flex: 0 0 auto;
  margin: 0 0 5px;
  font-size: 12px;
  line-height: 1.2;
}

.modal.is-question #diagnosis-view {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.modal.is-question .diagnosis-title {
  margin: 0 0 6px;
  padding: 0;
  font-size: clamp(21px, 5.9vw, 25px);
  line-height: 1.24;
  text-align: center;
  word-break: normal;
  overflow-wrap: normal;
}

.modal.is-question .diagnosis-lead {
  margin: 0 0 9px;
  font-size: 12px;
  line-height: 1.45;
}

.modal.is-question .choice-grid {
  gap: 8px;
  margin-top: 0;
}

.modal.is-question .choice-button {
  min-height: 58px;
  padding: 8px 12px 9px;
  font-size: 15px;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: normal;
}

.modal.is-question .choice-button span {
  margin-bottom: 3px;
  font-size: 10px;
  line-height: 1.1;
}

.modal.is-question .answer-warning {
  min-height: 16px;
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.35;
}

.modal.is-question .modal-actions {
  gap: 10px;
  margin-top: 8px;
}

.modal.is-question .primary-button,
.modal.is-question .secondary-button {
  min-height: 42px;
  padding: 0 16px;
  font-size: 15px;
}

.modal.is-profile {
  padding: 8px;
}

.modal.is-profile .modal-panel {
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  max-height: calc(100svh - 16px);
  max-height: calc(100dvh - 16px);
  padding: 14px 16px 16px;
  overflow: hidden;
}

.modal.is-profile .modal-close {
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  font-size: 20px;
}

.modal.is-profile .progress {
  flex: 0 0 auto;
  height: 6px;
  margin: 8px 42px 8px 0;
}

.modal.is-profile .modal-step {
  flex: 0 0 auto;
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.2;
}

.modal.is-profile #diagnosis-view {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.modal.is-profile .diagnosis-title {
  margin: 0 0 6px;
  padding: 0;
  font-size: clamp(23px, 6.2vw, 28px);
  line-height: 1.22;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

.modal.is-profile .diagnosis-lead {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
}

.modal.is-profile .form-grid {
  gap: 9px;
}

.modal.is-profile .field label {
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.2;
}

.modal.is-profile .field input {
  min-height: 40px;
  padding: 0 12px;
  font-size: 16px;
}

.modal.is-profile .segmented {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.modal.is-profile .segment-button {
  min-height: 40px;
  padding: 0 8px;
  font-size: 14px;
  text-align: center;
}

.modal.is-profile .modal-actions {
  gap: 10px;
  margin-top: 10px;
}

.modal.is-profile .primary-button,
.modal.is-profile .secondary-button {
  min-height: 42px;
  padding: 0 16px;
  font-size: 15px;
}

@media (max-height: 620px) {
  .modal.is-profile .modal-panel {
    padding: 10px 14px 12px;
  }

  .modal.is-profile .progress {
    margin-bottom: 5px;
  }

  .modal.is-profile .diagnosis-title {
    margin-bottom: 4px;
    font-size: clamp(21px, 5.8vw, 25px);
    line-height: 1.18;
  }

  .modal.is-profile .diagnosis-lead {
    margin-bottom: 7px;
  }

  .modal.is-profile .form-grid {
    gap: 7px;
  }

  .modal.is-profile .field input,
  .modal.is-profile .segment-button,
  .modal.is-profile .primary-button,
  .modal.is-profile .secondary-button {
    min-height: 38px;
  }

  .modal.is-profile .modal-actions {
    margin-top: 8px;
  }
}

@media (max-width: 820px) {
  .header-nav a {
    display: inline;
  }
}

@media (max-width: 560px) {
  body {
    background: #f7efe6;
    overflow-x: hidden;
  }

  .page-shell {
    width: 100%;
    max-width: 390px;
    overflow: hidden;
    box-shadow: none;
  }

  .site-header {
    min-height: 54px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-cta {
    padding: 0 14px;
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions button {
    width: 100%;
  }

  .modal.is-question .modal-actions {
    flex-direction: row;
  }

  .modal.is-question .modal-actions button {
    width: auto;
    flex: 1 1 0;
  }

  .modal.is-profile .segmented {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .modal.is-profile .modal-actions {
    flex-direction: row;
  }

  .modal.is-profile .modal-actions button {
    width: auto;
    flex: 1 1 0;
  }
}

/* Step 1/8 profile input must fit in a phone modal without scrolling. */
.modal.is-profile {
  align-items: center;
  padding: 12px;
}

.modal.is-profile .modal-panel {
  width: min(390px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 16px 20px 18px;
  overflow: hidden;
}

.modal.is-profile .modal-close {
  display: none;
}

.modal.is-profile .progress {
  height: 6px;
  margin: 0 0 8px;
}

.modal.is-profile .modal-step {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
}

.modal.is-profile #diagnosis-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.modal.is-profile .intro-title {
  margin: 0 0 10px;
  padding: 0;
  font-size: clamp(28px, 7.8vw, 34px);
  line-height: 1.16;
  letter-spacing: 0.02em;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

.modal.is-profile .intro-description {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.modal.is-profile .intro-form {
  display: grid;
  gap: 12px;
}

.modal.is-profile .intro-field label {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.2;
}

.modal.is-profile .intro-field input {
  height: 46px;
  min-height: 46px;
  padding: 8px 14px;
  font-size: 16px;
  line-height: 1.2;
}

.modal.is-profile .gender-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.modal.is-profile .gender-option {
  min-height: 44px;
  padding: 8px 6px;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.modal.is-profile .intro-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  margin-top: 14px;
}

.modal.is-profile .intro-actions button {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  font-size: 18px;
  line-height: 1.2;
}

@media (max-height: 620px) {
  .modal.is-profile {
    padding: 8px;
  }

  .modal.is-profile .modal-panel {
    width: min(390px, calc(100vw - 16px));
    max-height: calc(100vh - 16px);
    max-height: calc(100svh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 10px 16px 12px;
  }

  .modal.is-profile .progress {
    margin-bottom: 5px;
  }

  .modal.is-profile .modal-step {
    margin-bottom: 5px;
  }

  .modal.is-profile .intro-title {
    margin-bottom: 6px;
    font-size: clamp(24px, 7vw, 29px);
    line-height: 1.14;
  }

  .modal.is-profile .intro-description {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.35;
  }

  .modal.is-profile .intro-form {
    gap: 8px;
  }

  .modal.is-profile .intro-field label {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .modal.is-profile .intro-field input {
    height: 40px;
    min-height: 40px;
  }

  .modal.is-profile .gender-option {
    min-height: 40px;
    font-size: 14px;
  }

  .modal.is-profile .intro-actions {
    margin-top: 10px;
  }

  .modal.is-profile .intro-actions button {
    min-height: 42px;
    font-size: 16px;
  }
}

/* Image-based LP body */
html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: #f7efe6;
}

.lp-wrapper,
.lp-wrapper main {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff8f1;
}

.lp-wrapper {
  min-height: auto;
  box-shadow: 0 0 0 1px rgba(80, 80, 80, 0.1);
}

.first-view-section {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  padding: 30px 15px 34px;
  overflow: hidden;
  background: #fff8f1;
  color: #090807;
  text-align: center;
}

.first-view-header {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
}

.first-view-logo {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: transparent;
  text-decoration: none;
}

.first-view-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.first-view-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 2px;
  min-width: 0;
}

.first-view-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 0 4px 1px;
  border-radius: 999px;
  color: #fff;
  background: var(--design-coral);
  font-size: 7.7px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.first-view-kicker {
  margin: 0 0 12px;
  color: #0b0a09;
  font-size: clamp(13px, 3.75vw, 14.6px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: nowrap;
}

.first-view-title {
  margin: 0 0 21px;
  color: #050505;
  font-size: clamp(30px, 8.1vw, 32px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
}

.first-view-emblems {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px 12px;
  width: 100%;
  max-width: 322px;
  margin: 0 auto 24px;
}

.first-view-emblems img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.first-view-copy {
  margin: 0 auto 24px;
  color: #0a0908;
  font-size: clamp(14.5px, 4vw, 15.5px);
  font-weight: 900;
  line-height: 1.7;
  letter-spacing: 0;
  text-align: center;
}

.first-view-cta {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 316px);
  min-height: 57px;
  margin: 0 auto;
  padding: 0 58px 2px 28px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--design-coral);
  box-shadow: 0 8px 12px rgba(126, 95, 76, 0.28);
  font-size: clamp(26px, 8vw, 31px);
  font-weight: 900;
  line-height: 1;
}

.cta-paw-image {
  position: absolute;
  right: 0;
  bottom: -24px;
  display: block;
  width: 58px;
  height: auto;
  transform: rotate(-18deg);
}

.about-section {
  position: relative;
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  overflow: hidden;
  background: #f4dfc8;
}

.about-section img {
  display: block;
  width: 100%;
  height: auto;
}

.about-start-hotspot {
  position: absolute;
  left: 9%;
  bottom: 4.4%;
  z-index: 10;
  width: 82%;
  height: 8.8%;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.howto-section {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  padding: 0 0 54px;
  overflow: hidden;
  background: #fff8f1;
  color: #080706;
  text-align: center;
}

.howto-tab {
  display: inline-grid;
  place-items: center;
  min-width: 132px;
  min-height: 38px;
  margin: 0 auto 26px;
  padding: 8px 18px 5px;
  border-radius: 0 0 999px 999px;
  background: #f5e0cc;
  color: var(--design-coral);
  font-family: "Avenir Next Condensed", "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 31px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transform: scaleX(0.9);
  transform-origin: center bottom;
}

.howto-section h2 {
  margin: 0 0 26px;
  color: #060504;
  font-size: clamp(39px, 11.8vw, 46px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0;
}

.howto-steps {
  display: grid;
  gap: 15px;
  width: calc(100% - 44px);
  max-width: 342px;
  margin: 0 auto;
}

.howto-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 118px;
  padding: 16px 20px 15px 16px;
  overflow: visible;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(126, 95, 76, 0.12);
}

.step-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 76px;
  color: var(--design-coral);
  background: transparent;
}

.step-badge svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.step-badge path {
  fill: #fff;
  stroke: var(--design-coral);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.step-badge span {
  position: relative;
  z-index: 1;
  display: block;
  transform: translateY(-2px);
  font-family: Impact, "Arial Narrow", "Noto Sans JP", sans-serif;
  font-size: 33px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.step-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  text-align: left;
}

.step-copy h3 {
  margin: 0 0 8px;
  color: #111;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: 0;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
}

.step-copy h3::after {
  display: block;
  width: 112px;
  max-width: 100%;
  margin-top: 7px;
  border-top: 2px dotted #c95f4d;
  content: "";
}

.step-copy p {
  margin: 0;
  color: #222;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.72;
  word-break: keep-all;
  overflow-wrap: normal;
}

.lp-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
}

.lp-section img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.ten-fg-section {
  position: relative;
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  overflow: hidden;
  line-height: 0;
}

.ten-fg-section img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.ten-fg-start-hotspot {
  position: absolute;
  z-index: 10;
  left: 14%;
  bottom: 4%;
  width: 78%;
  height: 6.3%;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  appearance: none;
  cursor: pointer;
}

.project-section {
  position: relative;
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  overflow: hidden;
  background: #fffaf6;
  color: #0a0908;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.project-heading {
  padding: 26px 20px 32px;
  background:
    radial-gradient(ellipse 46% 66px at 50% 0, #fffaf6 99%, transparent 100%),
    linear-gradient(#f7e2cc 0 52px, #fffaf6 52px);
  text-align: center;
}

.project-tab,
.project-name-ja,
.project-heading h2 {
  margin: 0;
}

.project-tab {
  color: var(--design-coral);
  font-size: clamp(25px, 7.7vw, 30px);
  font-weight: 900;
  line-height: 1;
}

.project-name-ja {
  margin-top: 28px;
  font-size: clamp(15px, 4.6vw, 18px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.project-heading h2 {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  color: #050505;
  line-height: 1;
  white-space: nowrap;
}

.project-heading h2 strong {
  font-size: clamp(40px, 12.6vw, 49px);
  font-weight: 900;
}

.project-heading h2 span {
  font-size: clamp(20px, 6.1vw, 24px);
  font-weight: 700;
}

.project-content {
  padding: 0 20px 38px;
}

.project-concept,
.project-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.project-profile {
  margin-top: 28px;
}

.project-copy,
.project-copy p,
.project-copy h3 {
  min-width: 0;
}

.project-label {
  display: inline-block;
  margin: 0 0 13px;
  padding: 0 18px 2px 2px;
  color: var(--design-coral);
  background: linear-gradient(transparent 66%, #f4dfc8 66%);
  font-size: clamp(15px, 4.5vw, 17.5px);
  font-weight: 900;
  line-height: 1.08;
}

.project-concept-message {
  margin: 0 0 14px;
  font-size: clamp(15px, 4.5vw, 17.5px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.project-body-copy {
  margin: 0;
  font-size: clamp(7.2px, 2.15vw, 8.4px);
  font-weight: 500;
  line-height: 1.82;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

.project-photo {
  width: 100%;
  background-image: url("assets/web/High quality/project.png");
  background-repeat: no-repeat;
  background-color: #eee;
}

.project-photo-concept {
  aspect-ratio: 395 / 518;
  border-radius: 20px;
  background-size: 236.46% auto;
  background-position: 93.88% 31.96%;
}

.project-photo-profile {
  aspect-ratio: 376 / 489;
  border-radius: 18px;
  background-size: 248.4% auto;
  background-position: 8.78% 69.6%;
}

.project-follow {
  margin-top: 28px;
  text-align: center;
}

.project-follow h3 {
  margin: 0;
  color: var(--design-coral);
  font-size: clamp(20px, 6.15vw, 24px);
  font-weight: 700;
  line-height: 1.2;
}

.project-social-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 22px 0 20px;
}

.project-social-link {
  display: block;
  width: clamp(44px, 13.3vw, 52px);
  aspect-ratio: 1;
}

.project-social-link svg {
  display: block;
  width: 100%;
  height: 100%;
}

.project-follow p {
  margin: 0;
  font-size: clamp(11.5px, 3.45vw, 13.5px);
  font-weight: 700;
  line-height: 1.75;
}

@media (max-width: 350px) {
  .project-heading {
    padding-inline: 14px;
  }

  .project-content {
    padding-inline: 14px;
  }

  .project-concept,
  .project-profile {
    gap: 14px;
  }
}

.information-section {
  position: relative;
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  overflow: hidden;
  line-height: 0;
}

.information-section img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.information-contact-hotspot {
  position: absolute;
  z-index: 10;
  left: 10.8%;
  top: 91.2%;
  width: 79.5%;
  height: 5.4%;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.hotspot {
  position: absolute;
  z-index: 10;
  display: block;
  padding: 0;
  border: 0;
  background: rgba(255, 0, 0, 0);
  appearance: none;
  cursor: pointer;
}

.hotspot.debug {
  background: rgba(255, 0, 0, 0.25);
}

.image-cta {
  border-radius: 999px;
}

.nav-about {
  left: 20.5%;
  top: 0.6%;
  width: 8.5%;
  height: 1.3%;
}

.nav-how {
  left: 30.4%;
  top: 0.6%;
  width: 14.6%;
  height: 1.3%;
}

.nav-groups {
  left: 46.4%;
  top: 0.6%;
  width: 24%;
  height: 1.3%;
}

.nav-project {
  left: 71.9%;
  top: 0.6%;
  width: 10.6%;
  height: 1.3%;
}

.nav-info {
  left: 83.5%;
  top: 0.6%;
  width: 14%;
  height: 1.3%;
}

.first-cta {
  left: 6.5%;
  top: 8.8%;
  width: 87.5%;
  height: 1.8%;
}

.about-cta {
  left: 14.8%;
  top: 12.3%;
  width: 76.2%;
  height: 1.75%;
}

/* Result modal containment */
.modal.is-result .result-screen {
  width: 100%;
  max-width: 390px;
  overflow-x: hidden;
}

.modal.is-result .result-main-title {
  margin: 0;
  padding-right: 0;
  color: var(--result-accent);
  font-size: clamp(24px, 6.9vw, 32px);
  line-height: 1.25;
}

.modal.is-result .result-group-pill {
  width: min(100%, 322px);
  max-width: 322px;
  margin-inline: auto;
}

.modal.is-result .result-group-name {
  font-size: clamp(50px, 15vw, 70px);
  text-align: center;
}

.modal.is-result .result-catchcopy {
  font-size: clamp(18px, 5.2vw, 24px);
}

.modal.is-result .result-dog-image-wrap {
  width: 100%;
  max-width: 370px;
  margin: 4px auto 6px;
  overflow: visible;
}

.modal.is-result .result-dog-image {
  width: 100%;
  max-width: 358px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.modal.is-result .result-type-name {
  font-size: clamp(32px, 8.6vw, 40px);
  line-height: 1.26;
  overflow: visible;
}

.modal.is-result .result-summary {
  max-width: 330px;
}

.modal.is-result .result-detail {
  max-width: 354px;
}

.modal.is-result .score-row,
.modal.is-result .result-mini-groups div {
  max-width: 100%;
}

.modal.is-result .ranking-emblem-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  min-width: 54px;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.modal.is-result .ranking-emblem {
  display: block;
  width: 54px;
  max-width: 54px;
  height: auto;
  padding: 0 !important;
  object-fit: contain;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.modal.is-result .ranking-emblem-8 {
  transform: scale(1.16);
  transform-origin: center;
}
