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

:root {
  --bg: #fff6f3;
  --paper: #fffdfa;
  --ink: #2f3033;
  --muted: #6e6a66;
  --soft: #96908b;
  --pink: #ff6f9c;
  --pink-strong: #ff5f91;
  --pink-soft: #ffe8ef;
  --coral: #ffc1b6;
  --blue: #88b9ff;
  --blue-soft: #eef6ff;
  --purple: #b78aff;
  --purple-soft: #f8f0ff;
  --line: #f2ddd7;
  --shadow: 0 10px 30px rgba(92, 72, 62, 0.08);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
}

body.single-preset-page {
  display: flex;
  flex-direction: column;
}

body.single-preset-page main {
  flex: 1 0 auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

svg {
  display: block;
}

.site-header {
  position: relative;
  z-index: 20;
}

.header-inner {
  width: min(100%, 1216px);
  height: 82px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  color: var(--pink);
  text-decoration: none;
}

.logo-img {
  width: 154px;
  height: 42px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}

.header-nav a {
  color: #353538;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0;
}

.header-nav a:hover {
  color: var(--pink-strong);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  height: 42px;
  border-radius: 999px;
  background: var(--pink-strong);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(255, 95, 145, 0.24);
}

.lang-toggle {
  min-width: 48px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffc0d2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--pink-strong);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 95, 145, 0.12);
}

.lang-toggle:hover {
  background: #fff6f9;
}

.hero-section {
  position: relative;
  min-height: 690px;
  margin-top: -82px;
  overflow: hidden;
  border-bottom: 1px solid rgba(237, 231, 225, 0.95);
}

.hero-section::after {
  content: "";
  position: absolute;
  left: -122px;
  bottom: -112px;
  width: 470px;
  height: 220px;
  border-radius: 58% 42% 0 0;
  background: #dcecff;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: min(100%, 1216px);
  min-height: 690px;
  margin: 0 auto;
  padding: 146px 40px 52px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: 480px;
}

.hero-brand-title {
  color: var(--pink-strong);
  font-size: 72px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-tagline {
  margin-top: 18px;
  color: #696461;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lead {
  margin-top: 25px;
  color: #28292c;
  font-size: 42px;
  font-weight: 850;
  line-height: 1.28;
  letter-spacing: 0;
}

.hero-sub {
  margin-top: 16px;
  color: #74706c;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.85;
  letter-spacing: 0;
}

.hero-steps {
  display: flex;
  align-items: flex-start;
  gap: 21px;
  margin-top: 22px;
}

.hero-step {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 86px;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 2px solid #ffcddd;
  border-radius: 50%;
  background: rgba(255, 231, 238, 0.9);
  color: var(--pink);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.8);
}

.step-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-icon svg path:first-child:last-child,
.step-icon svg path:first-child:nth-last-child(1) {
  fill: currentColor;
  stroke: none;
}

.step-num {
  color: #1f2023;
  font-size: 17px;
  font-weight: 850;
  line-height: 1;
}

.step-label {
  color: #1f2023;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.step-arrow {
  margin-top: 28px;
  color: #f4c7cf;
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
}

.hero-visual {
  position: absolute;
  z-index: 2;
  right: -88px;
  top: 70px;
  width: 710px;
  height: 620px;
  cursor: pointer;
  pointer-events: auto;
}

.hero-img {
  position: absolute;
  right: 0;
  top: 0;
  width: 690px;
  max-width: none;
  height: auto;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-reaction-bubble {
  position: absolute;
  z-index: 4;
  right: 700px;
  top: 520px;
  width: max-content;
  max-width: 220px;
  padding: 12px 16px;
  border: 1.5px solid #ffd2de;
  border-radius: 18px 18px 6px 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #4a4442;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
  box-shadow: 0 12px 30px rgba(92, 72, 62, 0.13);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.hero-reaction-bubble::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 17px;
  width: 14px;
  height: 14px;
  border-top: 1.5px solid #ffd2de;
  border-right: 1.5px solid #ffd2de;
  background: rgba(255, 255, 255, 0.94);
  transform: rotate(45deg);
}

.hero-reaction-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

html[lang="en"] .hero-lead {
  max-width: 560px;
  font-size: 38px;
}

html[lang="en"] .hero-sub {
  max-width: 560px;
}

@media (min-width: 1216px) {
  .hero-visual {
    right: calc((1216px - 100vw) / 2);
  }
}

.content-section {
  width: min(100%, 1216px);
  margin: 0 auto;
  padding: 27px 40px 0;
}

.compact-section {
  padding-top: 26px;
}

.section-heading-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: #363538;
  font-size: 26px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-title::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--pink);
}

.blue-dot::before { background: var(--blue); }
.purple-dot::before { background: var(--purple); }
.coral-dot::before { background: #ffb5c1; }

.section-hint {
  color: #817c78;
  font-size: 14px;
  font-weight: 500;
}

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

.hug-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 29px;
}

.gacha-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.single-preset-section {
  display: grid;
  justify-items: center;
  row-gap: 14px;
  padding-top: clamp(52px, 8vh, 78px);
  padding-bottom: 42px;
}

.single-preset-section .section-title {
  justify-self: center;
  margin-bottom: 4px;
}

.single-preset-grid {
  width: min(100%, 420px);
  grid-template-columns: minmax(0, 420px);
  margin: 0 auto;
}

.single-preset-help {
  width: min(100%, 520px);
  color: #6f6965;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;
  text-align: center;
}

.single-preset-link {
  color: var(--pink-strong);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.single-preset-link:hover {
  text-decoration: underline;
}

.preset-btn {
  min-width: 0;
  min-height: 96px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  box-shadow: 0 8px 26px rgba(92, 72, 62, 0.05);
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
  transition: transform 0.14s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.preset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(92, 72, 62, 0.1);
}

.preset-btn:active {
  transform: translateY(0) scale(0.98);
}

.preset-btn[data-category="hug"] {
  border-color: #ffabbf;
}

.preset-btn[data-category="skinship"] {
  border-color: #9cc8ff;
}

.preset-btn[data-category="gacha"] {
  min-height: 92px;
  grid-template-columns: 1fr;
  justify-items: start;
  padding: 13px 16px;
  border-color: #d8b8ff;
  background: rgba(255, 250, 255, 0.88);
  text-align: left;
}

.btn-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink);
  flex: 0 0 auto;
}

.preset-btn[data-category="skinship"] .btn-icon {
  background: var(--blue-soft);
  color: #6ca7ff;
}

.preset-btn[data-category="gacha"] .btn-icon {
  display: none;
}

.btn-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-icon svg path:first-child:last-child,
.btn-icon svg path:first-child:nth-last-child(1) {
  fill: currentColor;
  stroke: none;
}

.btn-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.btn-name {
  display: block;
  color: #343336;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: 0;
}

.btn-desc {
  display: block;
  color: #696461;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.55;
  letter-spacing: 0;
}

.preset-btn[data-category="gacha"] .btn-name {
  font-size: 16px;
}

.preset-btn[data-category="gacha"] .btn-desc {
  display: block;
  font-size: 13px;
  line-height: 1.45;
}

.preset-btn.copied {
  border-color: var(--pink-strong);
  background: #fff6f9;
}

.preset-btn.copied .btn-name::after {
  content: attr(data-copied-label);
  color: var(--pink-strong);
  font-size: 11px;
  font-weight: 750;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sample-card {
  height: 238px;
  padding: 18px 19px 20px;
  border: 1px solid #eadfd8;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.sample-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--pink-strong);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.sample-model {
  color: #8f8985;
  font-size: 13px;
  font-weight: 600;
}

.sample-text {
  margin-top: 14px;
  color: #4b4947;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.78;
  white-space: pre-line;
  max-height: 170px;
  overflow: hidden;
}

.cta-card {
  min-height: 212px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 20px 58px 20px 60px;
  border: 1.5px solid var(--pink-strong);
  border-radius: 18px;
  background: linear-gradient(110deg, #fff8f7 0%, #fff0f6 55%, #fbf3ff 100%);
}

.cta-art {
  position: relative;
  min-height: 180px;
  display: grid;
  place-items: center;
}

.cta-mascot {
  width: 258px;
  height: 180px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.cta-body {
  text-align: left;
}

.cta-body h2 {
  color: var(--pink-strong);
  font-size: 28px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0;
}

.cta-body p {
  margin-top: 15px;
  color: #706b67;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.85;
}

.cta-body code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  height: 56px;
  margin-top: 15px;
  border-radius: 8px;
  background: linear-gradient(180deg, #3a3a3a 0%, #222 100%);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.cta-body .cta-sub {
  margin-top: 10px;
  color: #8a8581;
  font-size: 13px;
}

footer {
  padding: 35px 20px 44px;
  color: #8b8581;
  text-align: center;
  font-size: 16px;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 18px);
  padding: 12px 22px;
  border-radius: 999px;
  background: #2f3033;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(47, 48, 51, 0.18);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .header-inner {
    height: 68px;
    padding: 0 20px;
    gap: 8px;
  }

  .logo-img {
    width: 126px;
    height: 35px;
  }

  .header-nav {
    display: none;
  }

  .header-cta {
    min-width: 116px;
    height: 38px;
    margin-left: auto;
    font-size: 12px;
  }

  .lang-toggle {
    min-width: 38px;
    height: 34px;
    padding: 0 9px;
    font-size: 11px;
  }

  .hero-section {
    min-height: clamp(552px, 134vw, 580px);
    margin-top: -68px;
  }

  .hero-section::after {
    left: -72px;
    bottom: -66px;
    width: 230px;
    height: 112px;
  }

  .hero-inner {
    min-height: clamp(552px, 134vw, 580px);
    padding: 111px 20px 0;
  }

  .hero-copy {
    width: 218px;
  }

  .hero-brand-title {
    font-size: 49px;
  }

  .hero-tagline {
    margin-top: 12px;
    font-size: 16px;
    white-space: nowrap;
  }

  .hero-lead {
    margin-top: 16px;
    font-size: 27px;
    white-space: nowrap;
  }

  .hero-sub {
    width: calc(100vw - 24px);
    margin-top: 11px;
    font-size: clamp(8.4px, 2.1vw, 9px);
    line-height: 1.45;
    white-space: nowrap;
  }

  .hero-sub br {
    display: none;
  }

  .hero-steps {
    width: 218px;
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 14px;
  }

  .hero-step {
    width: 44px;
    min-width: 0;
    gap: 4px;
  }

  .step-icon {
    width: 38px;
    height: 38px;
    border-width: 1.3px;
  }

  .step-icon svg {
    width: 18px;
    height: 18px;
  }

  .step-num {
    font-size: 11px;
  }

  .step-label {
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .step-arrow {
    margin-top: 14px;
    font-size: 16px;
  }

  .hero-visual {
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }

  .hero-img {
    top: auto;
    right: 0;
    bottom: 0;
    width: clamp(226px, 57vw, 246px);
  }

  .hero-reaction-bubble {
    left: clamp(20px, 6vw, 28px);
    right: auto;
    top: auto;
    bottom: 102px;
    max-width: 150px;
    padding: 8px 10px;
    border-radius: 14px 14px 5px 14px;
    font-size: 11px;
    line-height: 1.35;
    box-shadow: 0 10px 24px rgba(92, 72, 62, 0.12);
  }

  .hero-reaction-bubble::after {
    right: -5px;
    bottom: 12px;
    width: 10px;
    height: 10px;
  }

  html[lang="en"] .hero-copy {
    width: 245px;
  }

  html[lang="en"] .hero-lead {
    max-width: 230px;
    font-size: 22px;
    line-height: 1.18;
    white-space: normal;
  }

  html[lang="en"] .hero-sub {
    width: calc(100vw - 24px);
    font-size: clamp(8px, 2.1vw, 9px);
  }

  html[lang="en"] .hero-reaction-bubble {
    max-width: 158px;
    font-size: 10.5px;
  }

  .content-section {
    padding: 18px 20px 0;
  }

  .single-preset-section {
    row-gap: 12px;
    padding: 34px 20px 32px;
  }

  .single-preset-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .single-preset-help {
    font-size: 13px;
    line-height: 1.65;
    text-align: left;
  }

  .section-heading-row {
    display: block;
  }

  .section-title {
    gap: 8px;
    margin-bottom: 13px;
    font-size: 22px;
  }

  .section-title::before {
    width: 10px;
    height: 10px;
  }

  .section-hint {
    margin: -4px 0 12px 18px;
    font-size: 12px;
    line-height: 1.6;
  }

  .button-grid {
    gap: 12px;
  }

  .hug-grid,
  .gacha-grid {
    grid-template-columns: 1fr;
  }

  .hug-grid {
    margin-bottom: 20px;
  }

  .preset-btn {
    min-height: 82px;
    grid-template-columns: 44px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-align: left;
    border-radius: 12px;
  }

  .btn-icon {
    width: 38px;
    height: 38px;
  }

  .btn-icon svg {
    width: 23px;
    height: 23px;
  }

  .btn-copy {
    justify-items: start;
    gap: 3px;
  }

  .btn-name {
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .btn-desc {
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .preset-btn[data-category="gacha"] {
    min-height: 60px;
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 12px 14px;
    text-align: left;
  }

  .preset-btn[data-category="gacha"] .btn-name {
    font-size: 15px;
  }

  .sample-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sample-card {
    height: auto;
    min-height: 0;
    padding: 16px 16px 18px;
    border-radius: 12px;
  }

  .sample-label {
    font-size: 14px;
  }

  .sample-model {
    font-size: 12px;
  }

  .sample-text {
    margin-top: 11px;
    font-size: 13px;
    line-height: 1.75;
    max-height: none;
    overflow: visible;
  }

  .cta-card {
    min-height: 232px;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 22px;
    border-radius: 13px;
  }

  .cta-art {
    min-height: 126px;
  }

  .cta-mascot {
    width: 124px;
    height: 87px;
  }

  .cta-body h2 {
    font-size: 19px;
  }

  .cta-body p {
    margin-top: 9px;
    font-size: 11px;
    line-height: 1.75;
  }

  .cta-body code {
    min-width: 145px;
    height: 42px;
    margin-top: 10px;
    font-size: 16px;
  }

  .cta-body .cta-sub {
    margin-top: 8px;
    font-size: 10px;
  }

  footer {
    padding: 31px 20px 35px;
    font-size: 14px;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .hero-visual {
    right: -190px;
  }

  .hero-reaction-bubble {
    right: 700px;
    top: 540px;
  }
}
