:root {
  --bg: #fff7fb;
  --panel: rgba(255, 255, 255, .88);
  --card: rgba(255, 255, 255, .76);
  --text: #503449;
  --muted: #8c687e;
  --pink: #ff74ad;
  --pink-dark: #d94f91;
  --pink-soft: #ffe5f1;
  --mint: #88d9c0;
  --yellow: #ffd36e;
  --line: rgba(217, 79, 145, .2);
  --shadow: 0 18px 46px rgba(174, 72, 128, .16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 6%, rgba(255, 116, 173, .22) 0 16%, transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(136, 217, 192, .24) 0 14%, transparent 26%),
    linear-gradient(135deg, #fff8fc, #f9f1ff 48%, #fff8e7);
}

body.calculator-only main {
  width: min(980px, calc(100% - 20px));
  margin: 0 auto;
  padding: 14px 0 28px;
}

body.calculator-only .quote-panel {
  margin-top: 0;
}

body.calculator-only .quote-panel .section-head h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 8vw, 44px);
  line-height: 1.08;
}

img {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.hero,
main,
footer {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
  padding: 46px 0 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 7px 0 rgba(255, 190, 220, .4);
}

h2 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 21px;
  letter-spacing: 0;
}

.subtitle,
.section-note,
.table-note {
  color: var(--muted);
  line-height: 1.75;
}

.subtitle {
  max-width: 620px;
  font-size: 18px;
}

.hero-actions,
.hero-points,
.hero-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-scope {
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 10px 24px rgba(174, 72, 128, .1);
}

.hero-scope span {
  color: var(--muted);
  font-weight: 900;
}

.hero-scope strong {
  color: var(--pink-dark);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(174, 72, 128, .12);
  font-weight: 900;
  text-decoration: none;
}

.btn.primary {
  border: 0;
  background: linear-gradient(135deg, var(--pink), #a98cff);
  color: #fff;
}

.hero-points span,
.card-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: #9c3b77;
  font-size: 13px;
  font-weight: 900;
}

.poster-card,
.panel,
.quick-nav {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.poster-card {
  padding: 12px;
  border-radius: 24px;
  transform: rotate(1deg);
}

.poster-card img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

main {
  display: grid;
  gap: 18px;
  padding-bottom: 34px;
}

.quick-nav {
  position: sticky;
  top: 12px;
  z-index: 650;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 20px;
}

.quick-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.quick-nav a:hover {
  background: var(--pink-soft);
}

.panel {
  padding: 24px;
  border-radius: 24px;
  overflow: hidden;
}

.section-head {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.section-note {
  margin: -4px 0 0;
}

.package-grid,
.member-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.package-card,
.contact-grid article,
.member-card,
.quote-result,
.accordion-list details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.package-card {
  position: relative;
  min-height: 190px;
  padding: 20px;
  overflow: hidden;
}

.package-card::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -42px;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  background: rgba(255, 211, 110, .38);
}

.price-main,
.contact-grid strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--pink-dark);
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.08;
  word-break: break-word;
}

.package-card p,
.contact-grid p,
.member-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.quote-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 18px;
}

.quote-panel .section-head {
  grid-column: 1 / -1;
}

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

.quote-form-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(217, 79, 145, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .46);
}

.quote-form-section h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.quote-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.mode-field,
.package-field,
.game-field {
  grid-column: 1 / -1;
}

.field-group,
.addon-box,
.addon-options {
  display: grid;
  gap: 8px;
}

.field-group label,
.addon-options label,
.addon-box legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.field-group small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.field-group input,
.field-group select,
.addon-options select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}

.time-button-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.time-chip {
  min-height: 46px;
  padding: 0 8px;
  border: 1px solid rgba(217, 79, 145, .2);
  border-radius: 14px;
  background: #fff;
  color: var(--pink-dark);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(174, 72, 128, .08);
}

.time-chip:active {
  transform: translateY(1px);
}

.field-group input[readonly] {
  background: rgba(246, 238, 246, .88);
  color: var(--muted);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 79, 145, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .64);
  color: var(--text);
  font-weight: 850;
}

.check-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--pink-dark);
  flex: 0 0 auto;
}

.addon-box {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 229, 241, .34);
}

.addon-box legend {
  padding: 0 8px;
}

.addon-options {
  grid-column: 1 / -1;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
}

.addon-hint {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed rgba(217, 79, 145, .24);
  border-radius: 14px;
  background: rgba(255, 255, 255, .64);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.nomination-grid {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
}

.quote-result {
  align-self: start;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 229, 241, .72));
}

.quote-result > span {
  color: var(--muted);
  font-weight: 900;
}

.quote-result > strong {
  display: block;
  margin: 6px 0 14px;
  color: var(--pink-dark);
  font-size: clamp(38px, 8vw, 58px);
  line-height: 1;
}

.quote-breakdown {
  display: grid;
  gap: 8px;
}

.quote-breakdown > div:not(.quote-addon-lines) {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(217, 79, 145, .22);
  color: var(--muted);
}

.quote-breakdown strong {
  color: var(--text);
  white-space: nowrap;
}

.quote-addon-lines {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.quote-warning {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(217, 79, 145, .22);
  border-radius: 14px;
  background: rgba(255, 255, 255, .76);
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.55;
}

.quote-copy-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink-dark), #d979dc);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(174, 72, 128, .18);
}

.quote-export-text {
  width: 100%;
  min-height: 180px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  color: var(--text);
  line-height: 1.55;
  resize: vertical;
}

.quote-result p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.accordion-list {
  display: grid;
  gap: 10px;
}

.accordion-list details {
  padding: 0;
}

.accordion-list summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--text);
  font-weight: 900;
}

.accordion-list ul {
  margin: 0;
  padding: 0 20px 18px 38px;
  color: var(--muted);
  line-height: 1.75;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .66);
}

.extra-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.extra-table th,
.extra-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(217, 79, 145, .14);
  text-align: left;
  line-height: 1.5;
}

.extra-table th {
  background: rgba(255, 229, 241, .7);
  color: #8d3a70;
  font-size: 13px;
}

.extra-table td:first-child,
.extra-table td:nth-child(2) {
  font-weight: 900;
}

.table-note {
  margin: 12px 0 0;
}

.member-grid {
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.member-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 194px;
  padding: 14px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.member-card:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 79, 145, .45);
  box-shadow: 0 16px 34px rgba(174, 72, 128, .16);
}

.member-card img {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(174, 72, 128, .14);
}

.member-card h3 {
  margin: 0;
  font-size: 22px;
}

.member-price-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 211, 110, .5);
  color: #8b4c12;
  font-size: 13px;
  font-weight: 950;
}

.member-card-body {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.member-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 9px 0;
}

.tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: #9c3b77;
  font-size: 13px;
  font-weight: 900;
}

.member-game-line {
  display: -webkit-box;
  min-height: 3.2em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

audio {
  width: 100%;
  margin-top: 4px;
}

.member-click-tip {
  display: inline-block;
  margin-top: 2px !important;
  color: #b94883 !important;
  font-size: 13px;
  font-weight: 900;
}

.contact-grid article {
  padding: 18px;
}

.contact-grid span {
  color: var(--muted);
  font-weight: 900;
}

footer {
  padding: 10px 0 34px;
  color: var(--muted);
  text-align: center;
}

footer a {
  color: var(--pink-dark);
  font-weight: 900;
  text-decoration: none;
}

.lang-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 999;
  padding: 10px 15px;
  border: 1px solid rgba(217, 79, 145, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #72405f;
  box-shadow: 0 10px 24px rgba(174, 72, 128, .16);
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.anniversary-badge {
  position: fixed;
  top: 52%;
  z-index: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translateY(-50%);
  padding: 15px 9px;
  border: 1px solid rgba(217, 79, 145, .26);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 14px 32px rgba(174, 72, 128, .16);
  color: #72405f;
  font-weight: 900;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  user-select: none;
}

.anniversary-badge strong {
  color: var(--pink-dark);
  font-size: 25px;
  line-height: 1;
  writing-mode: horizontal-tb;
}

.anniversary-left {
  left: 12px;
}

.anniversary-right {
  right: 12px;
}

.member-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.member-modal.is-open {
  display: block;
}

.member-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(55, 30, 50, .42);
  backdrop-filter: blur(8px);
}

.member-modal-panel {
  position: relative;
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 52px);
  overflow: auto;
  margin: 26px auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 80px rgba(55, 30, 50, .26);
  scrollbar-gutter: stable;
}

.member-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--pink-soft);
  color: #9b3b72;
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
}

.member-modal-head {
  display: grid;
  grid-template-columns: 144px 1fr;
  gap: 16px;
  align-items: start;
  padding-right: 42px;
}

.member-modal-head img {
  width: 144px;
  height: 144px;
  object-fit: cover;
  border: 5px solid #fff;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(174, 72, 128, .18);
}

.member-modal-head p,
.member-modal-info p,
.review-item {
  color: var(--muted);
  line-height: 1.7;
}

.member-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.member-detail-grid article,
.member-modal-info,
.review-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 229, 241, .56);
  padding: 14px;
}

.member-detail-grid span {
  display: block;
  color: var(--muted);
  font-weight: 900;
}

.member-detail-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--pink-dark);
  font-size: 23px;
}

.member-reviews {
  margin-top: 16px;
}

.review-item {
  margin: 10px 0;
}

.btn:focus-visible,
.quick-nav a:focus-visible,
.member-card:focus-visible,
.member-modal-close:focus-visible,
.lang-toggle:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(217, 79, 145, .32);
  outline-offset: 3px;
}

@media (max-width: 1280px) {
  .anniversary-badge {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

  .poster-card {
    transform: none;
  }

  .quote-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: 170px;
  }

  .hero,
  main,
  footer {
    width: min(100% - 20px, 1080px);
  }

  .panel {
    padding: 18px;
    border-radius: 20px;
  }

  .quick-nav {
    position: static;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .package-grid,
  .member-grid,
  .contact-grid,
  .quote-form,
  .quote-section-grid,
  .addon-box,
  .member-detail-grid {
    grid-template-columns: 1fr;
  }

  .quote-form-section {
    padding: 12px;
    border-radius: 16px;
  }

  .field-group input,
  .field-group select,
  .addon-options select,
  .quote-copy-btn,
  .time-chip {
    min-height: 48px;
    font-size: 16px;
  }

  .time-button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .package-card {
    min-height: auto;
    padding: 18px;
  }

  .mode-field,
  .package-field,
  .game-field {
    grid-column: 1;
  }

  .quote-result {
    position: sticky;
    bottom: 10px;
    z-index: 20;
    padding: 14px;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(174, 72, 128, .22);
  }

  .quote-result > strong {
    font-size: clamp(34px, 12vw, 48px);
    margin-bottom: 10px;
  }

  .quote-breakdown {
    max-height: 36vh;
    overflow: auto;
    padding-right: 2px;
  }

  .quote-breakdown > div:not(.quote-addon-lines) {
    align-items: flex-start;
    gap: 8px;
  }

  .quote-breakdown strong {
    white-space: normal;
    text-align: right;
  }

  .member-card {
    grid-template-columns: 92px 1fr;
    gap: 12px;
    min-height: auto;
    padding: 14px;
  }

  .member-card img {
    width: 92px;
    height: 92px;
    border-radius: 18px;
  }

  .member-card h3 {
    font-size: 21px;
  }

  .member-modal-panel {
    padding: 18px;
  }

  .member-modal-head {
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding-right: 36px;
  }

  .member-modal-head img {
    width: 88px;
    height: 88px;
    border-radius: 18px;
  }

  h2 {
    font-size: 24px;
  }
}
