:root {
  --bg: #fff7ec;
  --paper: rgba(255, 252, 247, 0.88);
  --paper-strong: #fffdf8;
  --line: rgba(54, 45, 32, 0.12);
  --ink: #2f261f;
  --muted: #716453;
  --coral: #ff8c6b;
  --coral-deep: #ff6b45;
  --mint: #7ad3c3;
  --mint-deep: #48bba6;
  --butter: #ffd980;
  --berry: #f5b4c1;
  --sky: #a4d8ff;
  --shadow: 0 22px 60px rgba(89, 53, 24, 0.14);
  --font-body:
    "Pretendard Variable",
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    Roboto,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    "Malgun Gothic",
    sans-serif;
  --font-display:
    "Jua",
    "Pretendard Variable",
    Pretendard,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;
  --font-accent:
    "Gaegu",
    "Pretendard Variable",
    Pretendard,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[lang="ja"] {
  --font-body: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  --font-display: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  --font-accent: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 184, 137, 0.6), transparent 30%),
    radial-gradient(circle at top right, rgba(122, 211, 195, 0.45), transparent 28%),
    linear-gradient(180deg, #fff6e7 0%, #fffdf9 48%, #fff4eb 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.background-orb {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.45;
  pointer-events: none;
}

.orb-a {
  width: 18rem;
  height: 18rem;
  top: 8rem;
  right: -4rem;
  background: rgba(255, 140, 107, 0.42);
}

.orb-b {
  width: 14rem;
  height: 14rem;
  bottom: 8rem;
  left: -3rem;
  background: rgba(122, 211, 195, 0.38);
}

.orb-c {
  width: 11rem;
  height: 11rem;
  top: 28rem;
  left: 18%;
  background: rgba(255, 217, 128, 0.36);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 28px;
  padding: 32px;
  align-items: center;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  display: grid;
  gap: 0;
  min-width: 0;
  animation: rise-in 0.8s ease both;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.brand-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.brand-mark {
  width: 74px;
  height: 74px;
  border-radius: 26px;
  box-shadow: 0 16px 30px rgba(255, 140, 107, 0.24);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-kicker {
  margin: 0;
  color: var(--coral-deep);
  font-family: var(--font-accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

.brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.brand-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.brand-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(47, 38, 31, 0.08);
  color: var(--ink);
  font-family: var(--font-accent);
  font-size: 0.9rem;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(47, 38, 31, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.lang-button {
  min-width: 46px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.lang-button.active {
  background: linear-gradient(135deg, rgba(255, 140, 107, 0.94), rgba(255, 217, 128, 0.94));
  color: #402518;
  box-shadow: 0 10px 18px rgba(255, 140, 107, 0.18);
}

.hero-copy h1 {
  margin: 10px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero-copy h1 .hero-line {
  display: block;
}

.hero-copy h1 .hero-base {
  color: var(--ink) !important;
}

.hero-copy h1 .hero-highlight {
  color: var(--coral-deep) !important;
}

html[lang="ko"] .hero-copy h1 .hero-line {
  white-space: nowrap;
}

html[lang="en"] .hero-copy h1,
html[lang="ja"] .hero-copy h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

html[lang="en"] .hero-copy h1 .hero-line,
html[lang="ja"] .hero-copy h1 .hero-line {
  white-space: normal;
}

@media (min-width: 681px) {
  .hero-copy h1 .hero-line {
    text-wrap: balance;
  }
}

.hero-text,
.mini-caption,
.block-body,
.result-summary {
  line-height: 1.7;
}

.hero-text {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.eyebrow {
  margin: 0;
  color: var(--coral-deep);
  font-family: var(--font-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.result-badges span {
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(47, 38, 31, 0.08);
  font-family: var(--font-accent);
  font-size: 0.95rem;
}

.hero-note {
  min-width: 0;
  animation: float-in 0.9s ease 0.15s both;
}

.note-card {
  position: relative;
  min-width: 0;
  padding: 26px;
  border-radius: 26px;
  background:
    linear-gradient(160deg, rgba(255, 217, 128, 0.82), rgba(255, 140, 107, 0.82));
  color: #3a281c;
}

.note-card::after {
  content: "";
  position: absolute;
  inset: auto 20px 18px auto;
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.9) 0 12px, transparent 13px),
    radial-gradient(circle at 56px 18px, rgba(255, 255, 255, 0.9) 0 12px, transparent 13px),
    radial-gradient(circle at 38px 52px, rgba(255, 255, 255, 0.95) 0 20px, transparent 21px);
  opacity: 0.55;
}

.note-label {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.hero-teaser-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 12px 24px rgba(255, 140, 107, 0.12);
}

.hero-teaser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-teaser-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--coral-deep);
  font-family: var(--font-accent);
  font-size: 0.9rem;
  border: 1px solid rgba(255, 140, 107, 0.18);
}

.hero-teaser-kicker {
  margin: 0;
  color: rgba(58, 40, 28, 0.72);
  font-size: 0.92rem;
}

.hero-teaser-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2rem);
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.hero-teaser-copy {
  margin: 0;
  color: rgba(58, 40, 28, 0.84);
  font-size: 0.98rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.hero-teaser-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-teaser-point {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px 12px 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(47, 38, 31, 0.08);
}

.hero-teaser-point-label {
  margin: 0;
  color: var(--coral-deep);
  font-family: var(--font-accent);
  font-size: 0.82rem;
}

.hero-teaser-point-value {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.mini-caption {
  margin: 16px 8px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.form-panel,
.result-panel {
  padding: 28px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
}

.result-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.field-stack {
  display: grid;
  gap: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 10px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.field-label {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  color: var(--muted);
}

.keyword-count {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(122, 211, 195, 0.16);
  color: #155649;
  font-family: var(--font-accent);
  font-size: 0.78rem;
}

.keyword-count.full {
  background: rgba(255, 217, 128, 0.28);
  color: #7e5a16;
}

.field input,
.field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(47, 38, 31, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(47, 38, 31, 0.55) 50%),
    linear-gradient(135deg, rgba(47, 38, 31, 0.55) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 2px),
    calc(100% - 16px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus {
  border-color: rgba(255, 107, 69, 0.5);
  box-shadow: 0 0 0 5px rgba(255, 140, 107, 0.14);
  transform: translateY(-1px);
}

.field small {
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-helper {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.76), rgba(255, 246, 231, 0.92));
  border: 1px solid rgba(47, 38, 31, 0.08);
}

.helper-label {
  margin: 0;
  color: var(--coral-deep);
  font-family: var(--font-accent);
  font-size: 0.95rem;
}

.helper-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.1;
}

.helper-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.94rem;
}

.pet-toggle {
  display: flex;
  gap: 10px;
}

.pet-option,
.keyword-chip,
.ghost-button,
.cta-button {
  border: 0;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.pet-option {
  flex: 1;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(47, 38, 31, 0.08);
}

.pet-option.active {
  background: linear-gradient(135deg, rgba(255, 140, 107, 0.94), rgba(255, 217, 128, 0.94));
  color: #402518;
  box-shadow: 0 14px 24px rgba(255, 140, 107, 0.26);
}

.keyword-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-chip {
  padding: 11px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(47, 38, 31, 0.08);
}

.keyword-chip.selected {
  background: rgba(122, 211, 195, 0.2);
  color: #155649;
  box-shadow:
    inset 0 0 0 1px rgba(72, 187, 166, 0.48),
    0 10px 18px rgba(72, 187, 166, 0.12);
}

.ghost-button {
  padding: 11px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(47, 38, 31, 0.08);
}

.ghost-button.warm {
  background: linear-gradient(135deg, rgba(255, 217, 128, 0.45), rgba(255, 140, 107, 0.22));
}

.cta-button {
  justify-self: start;
  padding: 15px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fff9f5;
  box-shadow: 0 16px 24px rgba(255, 107, 69, 0.26);
}

.cta-button.ready {
  background: linear-gradient(135deg, #ff9f6f, #ff744f 58%, #ffcf72);
  box-shadow:
    0 18px 28px rgba(255, 107, 69, 0.28),
    0 0 0 6px rgba(255, 140, 107, 0.14);
  animation: cta-pulse 2.4s ease-in-out infinite;
}

.cta-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.pet-option:hover,
.keyword-chip:hover,
.ghost-button:hover,
.cta-button:hover {
  transform: translateY(-2px);
}

.cta-button:disabled:hover {
  transform: none;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.status-note {
  margin: 0;
  max-width: 26rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.result-panel {
  position: relative;
  overflow: hidden;
}

.result-panel::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(164, 216, 255, 0.4), transparent 70%);
  pointer-events: none;
}

.result-placeholder {
  min-height: 420px;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.62)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.55),
      rgba(255, 255, 255, 0.55) 12px,
      rgba(255, 246, 231, 0.55) 12px,
      rgba(255, 246, 231, 0.55) 24px
    );
  border-radius: 24px;
  border: 1px dashed rgba(47, 38, 31, 0.1);
}

.placeholder-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
}

.result-content {
  animation: rise-in 0.45s ease both;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.result-hero h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
}

.result-hero p {
  margin: 0;
  color: var(--muted);
}

.fortune-stamp {
  width: 108px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(122, 211, 195, 0.32), rgba(164, 216, 255, 0.36));
  font-family: var(--font-display);
  font-size: 1rem;
  text-align: center;
  color: #155649;
  box-shadow: inset 0 0 0 1px rgba(72, 187, 166, 0.2);
}

.snapshot-card {
  margin-top: 24px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.82), rgba(122, 211, 195, 0.16));
  border: 1px solid rgba(47, 38, 31, 0.08);
}

.snapshot-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.snapshot-header strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.snapshot-body {
  margin: 0;
  color: var(--muted);
}

.snapshot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.snapshot-tags span {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(47, 38, 31, 0.08);
  font-family: var(--font-accent);
  font-size: 0.92rem;
}

.type-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.type-card {
  min-width: 0;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(255, 217, 128, 0.24), rgba(255, 140, 107, 0.2));
  border: 1px solid rgba(47, 38, 31, 0.08);
}

.type-card.soft {
  background: linear-gradient(155deg, rgba(122, 211, 195, 0.16), rgba(164, 216, 255, 0.18));
}

.type-card h4 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.15;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.result-block {
  min-width: 0;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(47, 38, 31, 0.08);
}

.result-block.highlight {
  background: linear-gradient(160deg, rgba(255, 217, 128, 0.42), rgba(245, 180, 193, 0.36));
}

.seo-stack {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.seo-accordion {
  margin-top: 24px;
}

.seo-accordion > summary {
  list-style: none;
}

.seo-accordion > summary::-webkit-details-marker {
  display: none;
}

.seo-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px 16px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.seo-accordion-summary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(89, 53, 24, 0.12);
}

.seo-accordion-copy {
  min-width: 0;
}

.seo-accordion-copy h2 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.seo-accordion-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 217, 128, 0.42), rgba(255, 140, 107, 0.2)),
    rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(47, 38, 31, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  position: relative;
}

.seo-accordion-icon::before,
.seo-accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.seo-accordion-icon::before {
  transform: translate(-72%, -50%) rotate(42deg);
}

.seo-accordion-icon::after {
  transform: translate(-28%, -50%) rotate(-42deg);
}

.seo-accordion[open] .seo-accordion-icon::before {
  transform: translate(-72%, -50%) rotate(-42deg);
}

.seo-accordion[open] .seo-accordion-icon::after {
  transform: translate(-28%, -50%) rotate(42deg);
}

.seo-panel {
  padding: 28px;
}

.seo-intro-panel {
  background:
    radial-gradient(circle at top right, rgba(255, 217, 128, 0.24), transparent 30%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(255, 246, 231, 0.92));
}

.seo-heading {
  margin-bottom: 18px;
}

.seo-lead,
.seo-card-body,
.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.seo-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.seo-chip-list span {
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(47, 38, 31, 0.08);
  font-family: var(--font-accent);
  font-size: 0.94rem;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.seo-card {
  background: linear-gradient(155deg, rgba(255, 217, 128, 0.2), rgba(255, 255, 255, 0.9));
}

.seo-card-soft {
  background: linear-gradient(155deg, rgba(122, 211, 195, 0.16), rgba(164, 216, 255, 0.12));
}

.seo-card-title,
.faq-item h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  line-height: 1.3;
}

.seo-card-title {
  font-size: 1.45rem;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(47, 38, 31, 0.08);
}

.faq-item h3 {
  font-size: 1.16rem;
}

.block-label {
  margin: 0 0 10px;
  font-family: var(--font-accent);
  color: var(--coral-deep);
  font-size: 1rem;
}

.block-body {
  margin: 0;
}

.hidden {
  display: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(2deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow:
      0 18px 28px rgba(255, 107, 69, 0.28),
      0 0 0 0 rgba(255, 140, 107, 0.18);
  }

  50% {
    box-shadow:
      0 22px 32px rgba(255, 107, 69, 0.32),
      0 0 0 10px rgba(255, 140, 107, 0);
  }
}

@media (max-width: 960px) {
  .hero,
  .workspace,
  .seo-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px 22px;
  }

  .hero-teaser-points {
    grid-template-columns: 1fr;
  }

  .page {
    padding-inline: 16px;
  }
}

@media (max-width: 1180px) {
  html[lang="en"] .hero,
  html[lang="ja"] .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  html[lang="en"] .hero-teaser-points,
  html[lang="ja"] .hero-teaser-points {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 961px) {
  .result-panel {
    position: sticky;
    top: 24px;
  }
}

@media (max-width: 680px) {
  .page {
    padding-top: 18px;
    padding-bottom: 28px;
    padding-inline: 14px;
  }

  .brand-lockup {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px 14px;
    margin-bottom: 14px;
  }

  .brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 22px;
  }

  .brand-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .brand-name {
    font-size: clamp(1.6rem, 8vw, 2.05rem);
  }

  .brand-subtitle {
    font-size: 0.84rem;
  }

  .brand-chip {
    margin-left: 0;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .brand-tools {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
    gap: 8px;
  }

  .hero-copy h1 {
    margin: 8px 0 16px;
    font-size: clamp(2.1rem, 11vw, 3.2rem);
  }

  .hero-teaser-card {
    gap: 12px;
    padding: 15px;
    border-radius: 18px;
  }

  .hero-teaser-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-teaser-title {
    font-size: 1.45rem;
  }

  .hero-teaser-copy {
    font-size: 0.92rem;
  }

  .hero-teaser-point {
    padding: 11px 12px;
    border-radius: 16px;
  }

  .hero-note {
    margin-top: 4px;
  }

  .note-card {
    padding: 20px;
    border-radius: 22px;
  }

  .note-label {
    margin-bottom: 10px;
    font-size: 1.05rem;
  }

  .form-panel,
  .result-panel,
  .seo-panel,
  .hero {
    border-radius: 24px;
    padding: 22px 18px;
  }

  .field-grid,
  .type-strip,
  .result-grid,
  .result-hero,
  .seo-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .snapshot-header,
  .form-footer {
    align-items: start;
    flex-direction: column;
  }

  .form-footer {
    position: sticky;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 4;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 252, 247, 0.94);
    border: 1px solid rgba(47, 38, 31, 0.08);
    box-shadow: 0 18px 28px rgba(89, 53, 24, 0.12);
    backdrop-filter: blur(18px);
  }

  .result-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .result-actions .ghost-button.warm {
    grid-column: 1 / -1;
  }

  .fortune-stamp {
    width: 100%;
    aspect-ratio: auto;
    min-height: 72px;
  }

  .cta-button,
  .ghost-button {
    width: 100%;
    justify-self: stretch;
  }

  .result-placeholder {
    min-height: 280px;
    padding: 24px 18px;
  }

  .result-hero h3 {
    font-size: clamp(1.6rem, 8.2vw, 2.15rem);
  }

  .result-badges {
    gap: 8px;
    margin-bottom: 12px;
  }

  .result-badges span,
  .hero-tags span,
  .seo-chip-list span,
  .snapshot-tags span {
    padding: 7px 12px;
    font-size: 0.84rem;
  }

  .snapshot-card,
  .type-card,
  .result-block,
  .faq-item {
    padding: 18px;
  }

  .snapshot-header {
    gap: 10px;
  }

  .snapshot-header strong,
  .type-card h4,
  .seo-card-title {
    font-size: 1.25rem;
  }

  .seo-accordion-summary {
    align-items: flex-start;
    gap: 14px;
    padding: 20px 18px;
  }

  .seo-accordion-copy h2 {
    font-size: 1.2rem;
  }

  .seo-accordion-icon {
    width: 38px;
    height: 38px;
  }

  .hero-text,
  .mini-caption,
  .block-body,
  .result-summary,
  .seo-lead,
  .seo-card-body,
  .faq-item p {
    font-size: 0.95rem;
    line-height: 1.72;
  }

  .seo-grid,
  .seo-stack {
    gap: 18px;
  }

  .faq-list {
    gap: 12px;
  }

  .status-note {
    max-width: none;
  }

  .pet-toggle {
    flex-direction: column;
  }

  .language-switcher {
    width: 100%;
    justify-content: space-between;
  }

  .lang-button {
    flex: 1;
    min-width: 0;
  }
}
