:root {
  --color-yellow: #f9bb00;
  --color-yellow-rgb: 249, 187, 0;
  --color-black: #3e3a39;
  --color-white: #ffffff;
  --color-white-rgb: 255, 255, 255;
  --color-middle-yellow: #fcdf86;
  --color-light-yellow: #fef2cb;
  --color-highlight-yellow: #fff8e5;
  --color-dark-gray: #9d9d9d;
  --color-gray: #ccced0;
  --color-middle-gray: #eaeaea;
  --color-light-gray: #f7f7f7;
  --color-light-gray2: #474747;
  --color-orange: #ff8200;
  --color-navy: #073763;
  --color-light-blue: #a3d3ff;
  --color-light-blue2: #8dc8ff;
  --color-highlight-blue: #eaf0f9;
  --color-red: #ff2c2c;
  --theme: var(--color-yellow);
  --theme-dark: var(--color-orange);
  --ink: var(--color-black);
  --muted: var(--color-light-gray2);
  --line: var(--color-middle-yellow);
  --paper: var(--color-highlight-yellow);
  --white: var(--color-white);
  --shadow: 0 24px 70px rgba(64, 45, 0, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.hirescore-page {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  background: url("../img/base_background.webp") center center / cover no-repeat fixed;
}

.mplus-font {
  font-family: "m plus 1p", sans-serif;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
}

.app-shell:not(:has(#start-screen.is-active)) {
  background:
    radial-gradient(circle at top left, rgba(var(--color-yellow-rgb), 0.28), transparent 36rem),
    linear-gradient(145deg, var(--color-highlight-yellow) 0%, var(--color-white) 46%, var(--color-light-yellow) 100%);
}

.app-shell:has(#question-screen.is-active),
.app-shell:has(#form-screen.is-active),
.app-shell:has(#result-screen.is-active) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  background: transparent;
}

.screen {
  display: none;
  width: min(980px, 100%);
}

#question-screen {
  width: min(100%, 500px);
}

#form-screen {
  width: min(100%, 500px);
}

#result-screen {
  width: min(100%, 500px);
}

#question-screen.is-active,
#form-screen.is-active,
#result-screen.is-active {
  --screen-padding: clamp(20px, 3vw, 30px);
  min-height: calc(100vh - 105px);
  padding: var(--screen-padding);
  background: var(--color-light-yellow);
}

#result-screen.is-active {
  padding: 0;
  background: var(--color-white);
}

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

.app-shell:has(#start-screen.is-active) {
  align-items: stretch;
  padding: 0;
}

#start-screen {
  width: 100%;
}

.start-page {
  display: flex;
  flex-direction: column;
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--color-light-yellow);
}

.start-visual {
  position: relative;
  display: grid;
  place-items: start center;
  padding: clamp(20px, 8vw, 40px) 20px 60px;
  background: var(--color-white) url("../img/top_background.png") bottom center / 100% auto no-repeat;
}

.start-logo {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  height: auto;
}

.service-logo {
  position: relative;
  z-index: 1;
  width: min(100%, 200px);
  height: auto;
  margin-top: 10px;
}

.start-content {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 18px clamp(26px, 7vw, 54px) clamp(60px, 12vw, 96px);
}

.start-catch {
  position: relative;
  display: grid;
  min-height: 116px;
  place-items: center;
  margin-bottom: 26px;
  text-align: center;
}

.start-catch p {
  margin: 0;
  font-size: clamp(17px, 4.8vw, 20px);
  font-weight: 700;
  line-height: 1.6;
}

.start-catch span {
  color: var(--theme-dark);
}

.start-character {
  position: absolute;
  z-index: -1;
  width: clamp(42px, 12vw, 56px);
  height: auto;
}

.start-character-maru {
  left: -14px;
  bottom: 5px;
}

.start-character-goto {
  right: -12px;
  bottom: 1px;
  width: clamp(44px, 13vw, 58px);
}

.start-button span {
  position: relative;
  z-index: 1;
}

.start-button-accent,
.start-button-arrow {
  position: absolute;
  z-index: 1;
  height: auto;
  pointer-events: none;
}

.start-button-accent {
  top: -18px;
  left: -18px;
  width: 28px;
}

.start-button-arrow {
  top: 50%;
  right: 20px;
  width: 25px;
  transform: translateY(-50%);
}

.start-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.start-footer,
.app-footer {
  padding: 24px 18px 28px;
  color: var(--color-white);
  text-align: center;
  background: var(--color-black);
}

.start-footer p,
.app-footer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  font-family: montserrat, sans-serif;
}

.start-footer p + p,
.app-footer p + p {
  margin-top: 4px;
}

.start-footer a,
.app-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.start-footer a:hover,
.app-footer a:hover {
  text-decoration: none;
}

.start-footer span,
.app-footer span {
  display: inline-block;
  margin: 0 10px;
  opacity: 0.75;
}

.hero,
.card {
  overflow: hidden;
  border: 1px solid rgba(var(--color-yellow-rgb), 0.25);
  border-radius: 32px;
  background: rgba(var(--color-white-rgb), 0.92);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  padding: clamp(34px, 8vw, 78px);
  text-align: center;
}

.hero::before,
.hero::after {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: var(--theme);
  content: "";
  opacity: 0.14;
}

.hero::before {
  top: -90px;
  left: -70px;
}

.hero::after {
  right: -100px;
  bottom: -120px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--color-navy);
  font-weight: 700;
  background: rgba(var(--color-yellow-rgb), 0.22);
}

.hirescore-page h1,
.hirescore-page h2,
.hirescore-page p {
  margin-top: 0;
}

.hirescore-title {
  margin-bottom: 18px;
  font-size: clamp(36px, 8vw, 72px);
  line-height: 1.08;
}

.lead {
  max-width: 670px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: clamp(16px, 2.8vw, 20px);
  line-height: 1.85;
}

.primary-button,
.secondary-button,
.option-button,
.hubspot-form .hs-button,
.hubspot-form input[type="submit"] {
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.primary-button,
.hubspot-form .hs-button,
.hubspot-form input[type="submit"] {
  position: relative;
  display: block;
  width: clamp(90%, 90vw, 320px);
  min-height: 58px;
  margin: 0 auto;
  padding: 0 56px 0 28px;
  border-radius: 999px;
  color: var(--color-navy);
  font-size: clamp(18px, 6vw, 22px);
  font-weight: 700;
  background: var(--color-yellow);
  box-shadow: 0 6px 0 var(--color-navy);
}

.primary-button {
  margin-bottom: 28px;
}

.primary-button:hover,
.option-button:hover,
.secondary-button:hover,
.hubspot-form .hs-button:hover,
.hubspot-form input[type="submit"]:hover {
  opacity: .9;
}

.primary-button:active,
.option-button:active,
.secondary-button:active,
.hubspot-form .hs-button:active,
.hubspot-form input[type="submit"]:active {
  transform: translateY(6px);
  box-shadow: none;
}

.card {
  padding: clamp(20px, 4vw, 40px);
}

#question-screen .card,
#form-screen .card {
  border: 0;
  border-radius: 20px;
  padding: clamp(26px, 7vw, 34px) clamp(22px, 7vw, 30px);
  background: var(--color-white);
  box-shadow: none;
}

#form-screen .form-card {
  padding: 0;
  text-align: center;
  background: transparent;
}

.form-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.form-main-logo {
  display: block;
  width: 112px;
  height: auto;
}

.form-service-logo {
  display: block;
  width: 112px;
  height: auto;
}

.form-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin: 0 auto 24px;
  padding: 13px 24px;
  border-radius: 8px;
  color: var(--color-navy);
  font-size: clamp(19px, 5.2vw, 24px);
  font-weight: 800;
  line-height: 1.25;
  background: var(--color-white);
}

.form-title::before,
.form-title::after {
  position: absolute;
  bottom: -10px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 7px 0;
  border-color: var(--color-white) transparent transparent;
  content: "";
}

.form-title::before {
  left: 36%;
}

.form-title::after {
  right: 34%;
}

.form-characters {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 22px;
  margin-bottom: 24px;
}

.form-character {
  display: block;
  height: auto;
}

.form-character-maru {
  width: 66px;
}

.form-character-goto {
  width: 62px;
}

.form-lead {
  margin: 0 0 28px;
  color: var(--color-black);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.72;
  text-align: left;
}

.form-lead p {
  margin: 0;
}

.form-lead p + p {
  margin-top: 8px;
  font-size: 11px;
}

.hubspot-form {
  text-align: left;
}

.hubspot-form iframe {
  width: 100%;
}

.hubspot-form form,
.hubspot-form .hs-form {
  display: grid;
  gap: 14px;
  margin: 0;
}

.hubspot-form fieldset {
  max-width: none !important;
}

.hubspot-form .hs-form-field {
  position: relative;
  margin: 0 !important;
}

.hubspot-form .form-columns-1:nth-last-of-type(-n + 12) {
  display: none;
}

.hubspot-form .form-columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hubspot-form .form-columns-2 .hs-form-field {
  width: 100% !important;
}

.hubspot-form .hs-form-field:not(.legal-consent-container):not(.hs-fieldtype-booleancheckbox) > label {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin: 0 0 -1px;
  padding: 2px 8px;
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  background: var(--color-yellow);
}

.hubspot-form .hs-form-field:not(.legal-consent-container):not(.hs-fieldtype-booleancheckbox) > label .hs-form-required {
  display: none;
}

.hubspot-form .hs-form-field:not(.legal-consent-container):not(.hs-fieldtype-booleancheckbox) > label span:first-child {
  font-size: 0;
}

.hubspot-form .hs-form-field:not(.legal-consent-container):not(.hs-fieldtype-booleancheckbox) > label span:first-child::before {
  font-size: 10px;
  content: "必須";
}

.hubspot-form .hs-form-field:not(.legal-consent-container):not(:has(.hs-form-required)):not(.hs-fieldtype-booleancheckbox) > label {
  background: var(--color-gray);
}

.hubspot-form .hs-form-field:not(.legal-consent-container):not(:has(.hs-form-required)):not(.hs-fieldtype-booleancheckbox) > label span:first-child::before {
  content: "任意";
}

.hubspot-form .input {
  margin: 0 !important;
}

.hubspot-form input[type="text"],
.hubspot-form input[type="email"],
.hubspot-form input[type="tel"],
.hubspot-form input[type="number"],
.hubspot-form select,
.hubspot-form textarea {
  width: 100% !important;
  min-height: 48px;
  padding: 12px 16px !important;
  border: 2px solid var(--color-yellow) !important;
  border-radius: 0 !important;
  color: var(--color-black);
  font-family: inherit;
  font-size: 16px;
  background: var(--color-white);
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none; /* Safari/Chrome用 */
  -moz-appearance: none;    /* Firefox用 */
}

.hubspot-form input::placeholder,
.hubspot-form textarea::placeholder {
  color: var(--color-dark-gray);
  opacity: 1;
}

.hubspot-form .hs-error-msgs {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.hubspot-form .hs-error-msgs label {
  padding: 0;
  color: var(--color-red);
  font-size: 11px;
  font-weight: 700;
  background: transparent;
}

.hubspot-form .legal-consent-container,
.hubspot-form .hs-richtext {
  color: var(--color-black);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
}

.hubspot-form .legal-consent-container {
  margin-top: 2px;
  padding: 14px;
  border: 1px solid var(--color-middle-yellow);
  background: rgba(var(--color-white-rgb), 0.7);
}

.hubspot-form .legal-consent-container p,
.hubspot-form .hs-richtext p {
  margin: 0;
}

.hubspot-form .legal-consent-container p + p,
.hubspot-form .hs-richtext p + p {
  margin-top: 8px;
}

.hubspot-form .legal-consent-container a,
.hubspot-form .hs-richtext a {
  color: var(--color-navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hubspot-form .legal-consent-container ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.hubspot-form .legal-consent-container li {
  margin: 0;
}

.hubspot-form .legal-consent-container label,
.hubspot-form .hs-fieldtype-booleancheckbox > label {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  margin: 0;
  padding: 0;
  color: var(--color-black);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  background: transparent;
}

.hubspot-form .hs-fieldtype-booleancheckbox .inputs-list {
  padding: 0;
  margin: 0;
}

.hubspot-form .hs-fieldtype-booleancheckbox .inputs-list li span {
  font-size: 14px;
}

.hs-field-desc a {
  font-size: 14px;
  color: var(--color-orange)
}

.hubspot-form .legal-consent-container input[type="checkbox"],
.hubspot-form .hs-fieldtype-booleancheckbox input[type="checkbox"] {
  width: 20px !important;
  height: 20px;
  margin-right: 5px;
  transform: translateY(4px);
  accent-color: var(--color-orange);
}

.hubspot-form .hs-submit {
  margin-top: 20px;
  margin-bottom: 40px;
}

.hubspot-form .actions {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  padding: 0 !important;
  margin: 0 auto !important;
}

.hubspot-form .actions::before {
  position: absolute;
  top: -18px;
  left: max(0px, calc(50% - 178px));
  width: 28px;
  height: 28px;
  background: url("../img/btn_accent.png") center / contain no-repeat;
  content: "";
}

.hubspot-form .hs-button,
.hubspot-form input[type="submit"] {
  appearance: none;
  width: clamp(90%, 90vw, 320px) !important;
  height: auto;
  margin: 0 auto !important;
  padding: 0 56px 0 28px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--color-navy) !important;
  font-family: inherit;
  font-size: clamp(18px, 6vw, 22px) !important;
  font-weight: 700 !important;
  line-height: 58px !important;
  text-align: center;
  white-space: nowrap;
  background: var(--color-yellow) !important;
  box-shadow: 0 6px 0 var(--color-navy) !important;
}

.hubspot-form .hs-button:active,
.hubspot-form input[type="submit"]:active {
  box-shadow: none !important;
}

.hubspot-form .actions::after {
  position: absolute;
  top: 50%;
  right: max(20px, calc(50% - 140px));
  width: 25px;
  height: 19px;
  background: url("../img/btn_allow.png") center / contain no-repeat;
  pointer-events: none;
  content: "";
  transform: translateY(-50%);
}

.hs-field-desc a:hover {
  text-decoration: none;
}

.form-status {
  margin: 14px 0 0;
  color: var(--color-light-gray2);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

.form-status:empty {
  display: none;
}

.progress-area {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  align-items: center;
  margin-bottom: 18px;
}

.progress-meta {
  display: contents;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--color-middle-gray);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--color-yellow);
  transition: width 0.28s ease;
}

#question-count {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  color: var(--color-white);
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  background: var(--color-orange);
}

#progress-percent {
  display: none;
}

.question-category {
  display: none;
}

.question-title {
  margin-bottom: 18px;
  color: var(--color-black);
  font-size: clamp(20px, 5vw, 24px);
  font-weight: 700;
  line-height: 1.38;
}

.options {
  display: grid;
  gap: 14px;
}

.option-button {
  position: relative;
  display: block;
  width: 100%;
  min-height: 80px;
  padding: 13px 16px;
  border: 2px solid var(--color-yellow);
  border-radius: 10px;
  color: var(--ink);
  text-align: left;
  background: var(--white);
  box-shadow: none;
}

.option-button.is-selected {
  border-color: var(--theme);
  background: var(--color-highlight-yellow);
}

.option-button::after {
  position: absolute;
  right: -17px;
  top: -18px;
  width: 46px;
  height: 46px;
  content: "";
  pointer-events: none;
}

.option-button:nth-child(1)::after {
  background: url("../img/maru_energetic.png") center / contain no-repeat;
  right: -24px;
  width: 50px;
}

.option-button:nth-child(2)::after {
  background: url("../img/goto_smile.png") center / contain no-repeat;
}

.option-button:nth-child(3)::after {
  background: url("../img/maru_basic.png") center / contain no-repeat;
}

.option-button:nth-child(4)::after {
  background: url("../img/goto_thinking.png") center / contain no-repeat;
}

.option-button:nth-child(5)::after {
  background: url("../img/maru_flustered.png") center / contain no-repeat;
}

.option-label {
  display: block;
  margin-bottom: 5px;
  color: var(--color-navy);
  font-size: clamp(16px, 4.6vw, 20px);
  font-weight: 700;
  line-height: 1.25;
}

.score-pill {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  color: var(--color-black);
  font-size: 18px;
  font-weight: 700;
  background: var(--theme);
}

.option-text {
  display: block;
  color: var(--color-black);
  font-size: clamp(11px, 2.85vw, 13px);
  font-weight: 500;
  line-height: 1.55;
}

.question-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  color: var(--color-black);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.back-link:hover {
  text-decoration: none;
}

.back-link::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.back-link:disabled {
  visibility: hidden;
  pointer-events: none;
}

.result-layout {
  display: block;
}

.result-content {
  padding: var(--screen-padding) var(--screen-padding) calc(var(--screen-padding) * 2);
  background: var(--color-light-yellow);
}

#result-screen .card {
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.result-hero {
  position: relative;
  z-index: 1;
  margin: calc(var(--screen-padding) * -1) calc(var(--screen-padding) * -1) 0;
  padding: var(--screen-padding);
  background: var(--color-white) url("../img/top_background.png") bottom center / 100% auto no-repeat;
}

.result-rank-image {
  display: block;
  width: min(100%, 440px);
  height: auto;
  margin: 0 auto;
}

.result-score {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  padding: 20px 0 30px;
  text-align: center;
  background: transparent;
}

.deviation-label {
  margin-bottom: 0;
  color: var(--color-navy);
  font-size: clamp(24px, 7vw, 34px);
  font-weight: 700;
  line-height: 1;
}

.deviation-value {
  margin-bottom: 0;
  color: var(--color-orange);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(58px, 18vw, 86px);
  font-weight: 700;
  line-height: 1;
}

.rank-badge {
  display: none;
}

.result-comment {
  position: relative;
  margin-top: 22px;
  --result-comment-character: url("../img/maru_basic.png");
  --result-comment-heading-min-width: 66px;
  --result-comment-heading-offset: 62px;
}

.result-comment-summary {
  margin-top: 30px;
}

.result-comment-advice {
  --result-comment-character: url("../img/goto_basic.png");
  --result-comment-heading-offset: 74px;
}

.result-comment-heading {
  position: absolute;
  top: 5px;
  left: var(--result-comment-heading-offset);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  box-sizing: border-box;
  margin: 0;
  padding: 6px 18px 7px;
  border-radius: 6px;
  color: var(--color-yellow);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  background: var(--color-white);
}

.result-comment-heading::before {
  position: absolute;
  top: 50%;
  left: calc(var(--result-comment-heading-offset) * -1);
  width: 50px;
  height: 50px;
  background: var(--result-comment-character) center / contain no-repeat;
  content: "";
  transform: translateY(-50%);
}

.result-comment-heading::after {
  position: absolute;
  top: 13px;
  left: -12px;
  z-index: 1;
  width: 12px;
  height: 10px;
  background: var(--color-white);
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
  content: "";
}

.result-comment-content {
  padding-top: 62px;
}

.rank-description {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  color: var(--color-black);
  font-size: clamp(14px, 4vw, 16px);
  font-weight: 500;
  line-height: 1.85;
  text-align: left;
  white-space: pre-line;
}

.rank-description em {
  font-style: normal;
  color: var(--color-orange);
  font-weight: 700;
}

.chart-panel {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.chart-title {
  display: none;
}

.radar-chart {
  display: block;
  width: min(100%, 500px);
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.feedback-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feedback-card {
  overflow: hidden;
  border: 2px solid var(--color-yellow);
  border-radius: 10px;
  background: var(--color-yellow);
}

.feedback-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 9px 15px 9px 18px;
  color: var(--color-black);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  background: var(--color-yellow);
}

.feedback-card summary::-webkit-details-marker {
  display: none;
}

.feedback-card summary::after {
  display: flex;
  justify-content: center;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: var(--color-yellow);
  font-weight: 700;
  line-height: 1;
  background: var(--color-white);
  content: "+";
}

.feedback-card[open] summary::after {
  content: "−";
}

.feedback-title {
  display: block;
}

.feedback-icon {
  display: block;
  width: 92px;
  height: auto;
  object-fit: contain;
}

.feedback-thumbnail {
  flex: 0 0 100px;
  padding-top: 2px;
}

.feedback-body {
  padding: 22px 18px 20px;
  border-top: 0;
  background: var(--color-white);
}

.feedback-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.feedback-heading h3 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--color-navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.feedback-card p {
  margin-bottom: 0;
  color: var(--color-black);
  font-size: 14px;
  line-height: 1.55;
}

.next-action {
  margin-top: 32px;
}

.next-action h2 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 0 auto 12px;
  padding: 8px 58px;
  color: var(--color-navy);
  font-size: clamp(18px, 4.8vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.next-action h2::before,
.next-action h2::after {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  content: "";
  transform: translateY(-50%);
}

.next-action h2::before {
  left: 0;
  background-image: url("../img/maru_thinking.png");
}

.next-action h2::after {
  right: 0;
  background-image: url("../img/goto_thinking.png");
}

.next-action-arrow {
  display: inline-block;
  width: 30px;
  height: 18px;
  background: url("../img/btn_allow_yellow.png") center / contain no-repeat;
}

.next-action-card {
  padding: 20px 18px 18px;
  border-radius: 10px;
  background: var(--color-white);
}

.next-action-card p {
  margin: 0 0 12px;
  color: var(--color-black);
  font-size: 15px;
  line-height: 1.75;
}

.next-action-card p:last-child {
  margin-bottom: 0;
}

.next-action-card em {
  color: var(--color-orange);
  font-weight: 700;
  font-style: normal;
}

.cta-section {
  padding: 0;
  color: var(--color-black);
  background: var(--color-white);
}

.cta-inner {
  padding: 30px;
}

.cta-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.cta-character {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.cta-character-maru {
  width: 50px;
}

.cta-character-goto {
  width: 56px;
}

.cta-heading-text {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.cta-service-logo {
  display: block;
  width: 190px;
  height: auto;
}

.cta-heading h2 {
  margin: 0;
  color: var(--color-yellow);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.cta-copy {
  margin: 0 auto;
}

.cta-copy p {
  margin: 0 0 20px;
  color: var(--color-black);
  font-size: 15px;
  line-height: 1.75;
}

.cta-copy p:last-child {
  margin-bottom: 0;
}

.cta-copy strong {
  color: var(--color-black);
  font-weight: 700;
  background: linear-gradient(transparent 70%,var(--color-yellow) 0%);
}

.cta-buttons {
  display: grid;
  gap: 16px;
  margin: 40px auto;
  padding: 0 20px;
}

.cta-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 54px 12px 26px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--color-navy);
  transition: 0.28s ease;
}

.cta-button span {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 26px;
  height: 18px;
  background: url("../img/btn_allow_yellow.png") center / contain no-repeat;
  content: "";
  transform: translateY(-50%);
}

.cta-button:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--color-navy);
}

.cta-button-primary {
  color: var(--color-navy);
  background: var(--color-yellow);
}

.cta-button-primary span {
  filter: brightness(0) invert(1);
}

.cta-button-secondary {
  color: var(--color-white);
  background: var(--color-navy);
  box-shadow: 0 6px 0 var(--color-yellow);
}

.cta-main-logo-button {
  display: block;
  padding: 0;
  margin: 0 auto;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cta-main-logo {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin: 0 auto;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.app-footer {
  display: none;
  width: min(100%, 500px);
}

.app-shell:has(#question-screen.is-active) .app-footer,
.app-shell:has(#form-screen.is-active) .app-footer,
.app-shell:has(#result-screen.is-active) .app-footer {
  display: block;
}

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

@media (max-width: 860px) {
  .app-shell {
    align-items: start;
  }

  .result-layout {
    grid-template-columns: 1fr;
  }

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

  .cta-heading {
    gap: 8px;
  }

  .cta-character-maru {
    width: 42px;
  }

  .cta-character-goto {
    width: 48px;
  }

  .cta-service-logo {
    width: 165px;
  }

  .cta-heading h2 {
    font-size: 20px;
  }

  .cta-buttons {
    padding: 0 24px;
  }

  .cta-button {
    min-height: 54px;
    padding-right: 48px;
    padding-left: 20px;
    font-size: 19px;
  }

  .cta-main-logo {
    width: min(100%, 280px);
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding: 14px;
  }

  .app-shell:has(#start-screen.is-active) {
    padding: 0;
  }

  .hero,
  .card:not(#question-screen .card) {
    border-radius: 24px;
  }

  .hero {
    padding: 34px 20px;
  }

  .primary-button {
    width: 100%;
  }

  .option-button {
    min-height: 80px;
    border-radius: 10px;
  }

  .question-actions {
    position: static;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }

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