:root {
  --night: #172044;
  --night-2: #221a4a;
  --violet: #6e5aa8;
  --lavender: #d8c8ff;
  --coral: #f5a0a0;
  --gold: #f2cf74;
  --ivory: #fff8e8;
  --paper: #fff3d6;
  --ink: #3b2b42;
  --muted: #74657b;
  --line: rgba(88, 61, 110, 0.18);
  --shadow: 0 18px 50px rgba(16, 18, 49, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  line-height: 1.8;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(circle at 20% 0%, rgba(242, 207, 116, 0.18), transparent 28rem),
    radial-gradient(circle at 80% 8%, rgba(216, 200, 255, 0.22), transparent 24rem),
    linear-gradient(180deg, #111936 0%, #2b2157 38%, #f8edd3 78%, #fff8e8 100%);
  background-size: 38px 38px, 38px 38px, auto, auto, auto;
}

main {
  overflow: hidden;
  background: #111936;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 18%, rgba(242, 207, 116, 0.16), transparent 18rem),
    radial-gradient(circle at 88% 40%, rgba(245, 160, 160, 0.13), transparent 19rem),
    radial-gradient(circle at 40% 80%, rgba(216, 200, 255, 0.16), transparent 20rem);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 8;
  background:
    linear-gradient(90deg, rgba(255, 248, 232, 0.08), transparent 12%, transparent 88%, rgba(23, 32, 68, 0.18)),
    radial-gradient(ellipse at 50% 0%, rgba(255, 248, 232, 0.12), transparent 38rem),
    radial-gradient(ellipse at 50% 100%, rgba(23, 32, 68, 0.16), transparent 34rem);
  pointer-events: none;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--ivory);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem clamp(1rem, 3vw, 2.4rem);
  color: var(--ivory);
  background:
    linear-gradient(90deg, rgba(242, 207, 116, 0.1), transparent 35%, rgba(216, 200, 255, 0.08)),
    rgba(17, 25, 54, 0.62);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255, 248, 232, 0.2);
  box-shadow: 0 1.2rem 4rem rgba(8, 12, 34, 0.18);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.brand-sigil {
  color: var(--gold);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
}

.header-nav a {
  text-decoration: none;
  opacity: 0.88;
}

.header-cta {
  padding: 0.42rem 0.75rem;
  border: 1px solid rgba(242, 207, 116, 0.46);
  border-radius: 999px;
  color: #2b2146;
  background: linear-gradient(135deg, #fff2b8, var(--gold));
  box-shadow: 0 0.75rem 1.8rem rgba(242, 207, 116, 0.2);
  font-weight: 900;
  opacity: 1 !important;
}

.section-panel {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 3.5rem 1.15rem;
}

.section-panel::before {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border: 1px solid rgba(242, 207, 116, 0.22);
  border-radius: inherit;
  pointer-events: none;
}

.hero {
  min-height: 100svh;
  width: 100%;
  margin: 0;
  color: var(--ivory);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0;
  padding-left: clamp(1.25rem, 6vw, 7rem);
  padding-right: clamp(1.25rem, 6vw, 7rem);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.02);
  transform: translate3d(0, 0, 0) scale(1.14);
  transform-origin: center;
  transition: transform 90ms linear;
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(17, 25, 54, 0.03) 0%, rgba(17, 25, 54, 0.14) 44%, rgba(17, 25, 54, 0.9) 100%),
    linear-gradient(90deg, rgba(17, 25, 54, 0.64) 0%, rgba(17, 25, 54, 0.24) 46%, rgba(17, 25, 54, 0.06) 100%),
    radial-gradient(circle at 50% 62%, rgba(255, 248, 232, 0.12), transparent 28rem);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  z-index: 2;
  height: 32svh;
  background:
    linear-gradient(180deg, transparent, rgba(17, 25, 54, 0.78) 68%, #111936);
  pointer-events: none;
}

.sky-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 14%, rgba(242, 207, 116, 0.32), transparent 0.32rem),
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.62), transparent 0.12rem),
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.52), transparent 0.11rem),
    radial-gradient(circle at 63% 9%, rgba(255, 255, 255, 0.42), transparent 0.1rem);
  opacity: 0.8;
  pointer-events: none;
}

.star-field span {
  position: absolute;
  z-index: 1;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 1.1rem rgba(242, 207, 116, 0.88);
  opacity: 0.72;
}

.star-field span:nth-child(1) { left: 13%; top: 16%; }
.star-field span:nth-child(2) { left: 72%; top: 11%; width: 0.25rem; height: 0.25rem; }
.star-field span:nth-child(3) { left: 88%; top: 31%; width: 0.28rem; height: 0.28rem; }
.star-field span:nth-child(4) { left: 31%; top: 34%; width: 0.22rem; height: 0.22rem; }
.star-field span:nth-child(5) { left: 55%; top: 21%; width: 0.3rem; height: 0.3rem; }

.town-silhouette {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
  display: none;
}

.castle,
.tower,
.guild-house {
  position: absolute;
  bottom: 0;
  display: block;
  background: linear-gradient(180deg, #463671, #2e244e);
  box-shadow: 0 -1rem 4rem rgba(242, 207, 116, 0.16);
}

.castle {
  left: 6%;
  width: 7rem;
  height: 8rem;
  border-radius: 2rem 2rem 0 0;
  opacity: 0.46;
}

.tower {
  right: 8%;
  width: 4rem;
  height: 11rem;
  border-radius: 2rem 2rem 0 0;
  opacity: 0.55;
}

.guild-house {
  left: 50%;
  transform: translateX(-50%);
  width: min(82%, 29rem);
  height: 12rem;
  border-radius: 2.2rem 2.2rem 0 0;
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(242, 207, 116, 0.75) 16% 25%, transparent 25% 40%, rgba(242, 207, 116, 0.7) 40% 51%, transparent 51% 72%, rgba(242, 207, 116, 0.7) 72% 82%, transparent 82%),
    linear-gradient(180deg, #54407a, #30244e);
}

.guild-house::before {
  content: "RPG GUILD";
  position: absolute;
  left: 50%;
  top: -1.1rem;
  transform: translateX(-50%);
  padding: 0.25rem 0.9rem;
  border: 1px solid rgba(242, 207, 116, 0.72);
  border-radius: 999px;
  color: #fff6d5;
  background: rgba(28, 23, 56, 0.86);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(100%, 52rem);
  padding: 9rem 0 9rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.title-line {
  display: block;
  white-space: nowrap;
}

.registration-panel > h2 {
  max-width: min(100%, 48rem);
  font-size: clamp(1.9rem, 5.6vw, 3.9rem);
}

.members-panel > h2 {
  max-width: min(100%, 42rem);
}

@media (max-width: 430px) {
  .title-line {
    white-space: normal;
  }
}

.hero-badge {
  display: inline-flex;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(242, 207, 116, 0.45);
  border-radius: 999px;
  color: #fff3c4;
  background: rgba(17, 25, 54, 0.42);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.45rem, 12vw, 5.8rem);
  line-height: 1.16;
  letter-spacing: 0.02em;
  text-shadow: 0 0.55rem 2.5rem rgba(0, 0, 0, 0.44), 0 0 2rem rgba(242, 207, 116, 0.1);
}

h2 {
  margin-bottom: 1.15rem;
  font-size: clamp(1.6rem, 8vw, 2.5rem);
  line-height: 1.25;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.hero-lead {
  max-width: 30rem;
  color: rgba(255, 248, 232, 0.92);
  font-size: clamp(1.04rem, 2vw, 1.22rem);
  text-shadow: 0 0.2rem 1rem rgba(17, 25, 54, 0.52);
}

.hero-actions {
  margin-top: 2.4rem;
}

.guild-signboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  max-width: 27rem;
  margin: 1.7rem 0;
}

.guild-signboard span {
  position: relative;
  padding: 0.8rem 1rem 0.8rem 2.2rem;
  border: 1px solid rgba(255, 248, 232, 0.28);
  border-radius: 1.2rem;
  color: rgba(255, 248, 232, 0.92);
  background: linear-gradient(135deg, rgba(17, 25, 54, 0.54), rgba(255, 248, 232, 0.08));
  backdrop-filter: blur(14px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 248, 232, 0.22);
}

.guild-signboard span::before {
  content: "✦";
  position: absolute;
  left: 0.75rem;
  color: var(--gold);
}

.guide-bubble {
  display: grid;
  grid-template-columns: clamp(4.8rem, 9vw, 5.8rem) 1fr;
  gap: 1rem;
  align-items: stretch;
  margin: 1.35rem 0;
  padding: 0.7rem 1.05rem 0.7rem 0.7rem;
  border: 1px solid rgba(255, 248, 232, 0.32);
  border-radius: 0.95rem 1.7rem 1.7rem 0.95rem;
  background:
    linear-gradient(135deg, rgba(17, 25, 54, 0.54), rgba(255, 248, 232, 0.12)),
    radial-gradient(circle at 0% 50%, rgba(242, 207, 116, 0.22), transparent 9rem);
  box-shadow:
    0 1.4rem 4rem rgba(8, 12, 34, 0.32),
    inset 0 1px 0 rgba(255, 248, 232, 0.2);
  backdrop-filter: blur(13px);
}

.guide-bubble p {
  margin: 0;
  align-self: center;
}

.guide-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(4.8rem, 9vw, 5.8rem);
  min-height: clamp(5.3rem, 10vw, 6.4rem);
  height: 100%;
  border-radius: 0.75rem 1.15rem 1.15rem 0.75rem;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 800;
  color: transparent;
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.88), rgba(211, 184, 125, 0.72)),
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.65), transparent 55%);
  box-shadow:
    0 0.75rem 1.7rem rgba(8, 12, 34, 0.28),
    inset 0 0 0 1px rgba(255, 248, 232, 0.62),
    inset 0 0 0 3px rgba(242, 207, 116, 0.22);
}

.guide-avatar::before {
  content: "";
  position: absolute;
  inset: -2% -4% -8%;
  background-repeat: no-repeat;
  background-size: var(--guide-face-size, 188%);
  background-position: var(--guide-face-position, center 15%);
}

.guide-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(90deg, rgba(255, 248, 232, 0.22), transparent 28%, transparent 72%, rgba(8, 12, 34, 0.18));
  pointer-events: none;
}

.guide-avatar-reception {
  background: linear-gradient(135deg, #fff6df, #d6c4a3);
  --guide-face-size: 270%;
  --guide-face-position: center 16%;
}

.guide-avatar-reception::before {
  background-image: url("./assets/guild-receptionist-standing.png");
}

.guide-avatar-gm {
  --guide-face-size: 205%;
  --guide-face-position: center 7%;
}

.guide-avatar-gm::before {
  background-image: url("./assets/guild-master-standing.png");
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.primary-button,
.unlock-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 999px;
  color: #2b2146;
  background: linear-gradient(135deg, #fff2b8, var(--gold));
  box-shadow: 0 0.75rem 1.8rem rgba(242, 207, 116, 0.28);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.secondary-button,
.coconala-sub-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: 0.72rem 1.05rem;
  border: 1px solid rgba(242, 207, 116, 0.55);
  border-radius: 999px;
  color: rgba(255, 249, 232, 0.96);
  background: rgba(31, 27, 47, 0.52);
  box-shadow: 0 0.6rem 1.4rem rgba(16, 18, 49, 0.18);
  text-decoration: none;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.secondary-button:hover,
.secondary-button:focus-visible,
.coconala-sub-link:hover,
.coconala-sub-link:focus-visible {
  border-color: rgba(255, 232, 164, 0.9);
  background: rgba(31, 27, 47, 0.68);
}

.cta-note {
  max-width: min(100%, 34rem);
  margin: 0.85rem 0 0;
  color: rgba(255, 249, 232, 0.84);
  font-size: 0.9rem;
  line-height: 1.8;
}

.secondary-link,
.inline-cta {
  color: inherit;
  text-underline-offset: 0.25rem;
  font-weight: 700;
}

.diagnosis-panel,
.result-panel {
  position: relative;
  z-index: 10;
  width: min(calc(100% - 2rem), 980px);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 5vw, 5rem);
  border: 1px solid rgba(255, 248, 232, 0.68);
  border-radius: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 200, 255, 0.34), transparent 18rem),
    radial-gradient(circle at 0% 100%, rgba(242, 207, 116, 0.26), transparent 18rem),
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(255, 245, 222, 0.82));
  box-shadow: 0 2rem 7rem rgba(16, 18, 49, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.seal-panel {
  width: 100%;
  min-height: 112svh;
  display: grid;
  align-content: center;
  margin-top: -12svh;
  padding: clamp(10rem, 18vw, 18rem) clamp(1.25rem, 6vw, 7rem) clamp(8rem, 12vw, 12rem);
  color: var(--ivory);
  border: 0;
  border-radius: 0;
  background: #111936;
  box-shadow: inset 0 5rem 8rem rgba(17, 25, 54, 0.6), inset 0 -5rem 8rem rgba(17, 25, 54, 0.6);
  isolation: isolate;
}

.seal-panel::before {
  content: "";
  position: absolute;
  inset: 15% 50% auto auto;
  width: min(58vw, 34rem);
  aspect-ratio: 1;
  transform: translateX(50%);
  border-radius: 50%;
  border: 1px solid rgba(242, 207, 116, 0.26);
  background:
    radial-gradient(circle, transparent 0 29%, rgba(242, 207, 116, 0.14) 30% 30.5%, transparent 31% 47%, rgba(255, 248, 232, 0.12) 48% 48.5%, transparent 49%),
    conic-gradient(from 20deg, transparent 0 8%, rgba(242, 207, 116, 0.16) 8% 9%, transparent 9% 25%, rgba(216, 200, 255, 0.14) 25% 26%, transparent 26% 50%, rgba(242, 207, 116, 0.14) 50% 51%, transparent 51% 100%);
  filter: drop-shadow(0 0 2.8rem rgba(242, 207, 116, 0.18));
  opacity: 0.55;
  pointer-events: none;
  z-index: 2;
}

.seal-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(17, 25, 54, 0.7) 0%, rgba(17, 25, 54, 0.08) 24%, rgba(17, 25, 54, 0.14) 62%, rgba(17, 25, 54, 0.8) 100%),
    linear-gradient(90deg, rgba(17, 25, 54, 0.52), rgba(17, 25, 54, 0.1) 52%, rgba(17, 25, 54, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

.seal-panel .section-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.03);
  transform: translate3d(0, 0, 0) scale(1.18);
  transform-origin: center;
  transition: transform 90ms linear;
  will-change: transform;
}

.seal-panel > * {
  position: relative;
  z-index: 3;
  width: min(100%, 35rem);
  margin-left: clamp(0rem, 7vw, 8rem);
}

.seal-panel > .section-art {
  z-index: 0;
  width: 100%;
  margin-left: 0;
}

.seal-panel .section-number {
  width: auto;
  margin-left: 0;
}

.seal-panel .eyebrow {
  display: inline-flex;
  width: fit-content;
  max-width: max-content;
  padding: 0.28rem 0.78rem;
  border: 1px solid rgba(242, 207, 116, 0.44);
  border-radius: 999px;
  background: rgba(17, 25, 54, 0.38);
  box-shadow: 0 0.8rem 2.2rem rgba(8, 12, 34, 0.18), inset 0 1px 0 rgba(255, 248, 232, 0.18);
  backdrop-filter: blur(12px);
}

.seal-panel > .eyebrow {
  width: fit-content;
  max-width: max-content;
  justify-self: start;
}

.seal-panel h2 {
  margin-bottom: 1.3rem;
  color: var(--ivory);
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 1.12;
  text-shadow: 0 0.55rem 2.5rem rgba(0, 0, 0, 0.48), 0 0 2.2rem rgba(242, 207, 116, 0.18);
}

.seal-panel .guide-bubble {
  color: var(--ivory);
  border-color: rgba(255, 248, 232, 0.24);
  background: linear-gradient(135deg, rgba(17, 25, 54, 0.42), rgba(255, 248, 232, 0.1));
  box-shadow: 0 1.4rem 4rem rgba(8, 12, 34, 0.3), inset 0 1px 0 rgba(255, 248, 232, 0.2);
  backdrop-filter: blur(13px) saturate(1.12);
}

.seal-panel .guide-bubble p {
  color: rgba(255, 248, 232, 0.92);
}

.seal-panel .diagnosis-form {
  width: min(100%, 39rem);
  margin-top: 2.2rem;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.88), rgba(255, 244, 220, 0.68)),
    radial-gradient(circle at 100% 0%, rgba(242, 207, 116, 0.28), transparent 16rem);
  border-color: rgba(242, 207, 116, 0.48);
  box-shadow: 0 1.8rem 5.4rem rgba(8, 12, 34, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.result-panel .result-mark {
  font-size: clamp(4rem, 15vw, 11rem);
  color: rgba(242, 207, 116, 0.18);
}

.diagnosis-panel::after,
.result-panel::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(242, 207, 116, 0.22);
  border-radius: inherit;
  pointer-events: none;
}

.diagnosis-panel.seal-panel::after {
  inset: 0;
  z-index: 1;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(17, 25, 54, 0.76) 0%, rgba(17, 25, 54, 0.08) 24%, rgba(17, 25, 54, 0.16) 62%, rgba(17, 25, 54, 0.88) 100%),
    linear-gradient(90deg, rgba(17, 25, 54, 0.54), rgba(17, 25, 54, 0.1) 52%, rgba(17, 25, 54, 0.42) 100%);
}

.about-panel,
.members-panel,
.path-panel,
.registration-panel,
.goods-shop-panel,
.communication-panel {
  overflow: hidden;
}

.scenic-panel {
  width: 100%;
  min-height: 138svh;
  display: grid;
  align-content: end;
  color: var(--ivory);
  background: #1c2448;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: clamp(24rem, 30vw, 34rem) clamp(1.25rem, 5vw, 6rem) clamp(14rem, 18vw, 20rem);
  margin-top: -26svh;
  isolation: isolate;
}

.hero + .scenic-panel {
  margin-top: -6svh;
}

.scenic-panel + .scenic-panel,
.scenic-panel + .diagnosis-panel,
.result-panel + .scenic-panel {
  margin-top: -24svh;
}

.scenic-panel + .diagnosis-panel {
  margin-top: -22svh;
}

.result-panel + .scenic-panel {
  margin-top: -24svh;
}

.scenic-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(17, 25, 54, 0.78) 0%, rgba(17, 25, 54, 0.05) 19%, rgba(17, 25, 54, 0.06) 58%, rgba(17, 25, 54, 0.86) 100%),
    linear-gradient(90deg, rgba(17, 25, 54, 0.58) 0%, rgba(17, 25, 54, 0.16) 42%, rgba(17, 25, 54, 0.04) 100%);
  pointer-events: none;
}

.scenic-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  background:
    radial-gradient(ellipse at 25% 18%, rgba(255, 248, 232, 0.23), transparent 26%),
    radial-gradient(ellipse at 86% 72%, rgba(216, 200, 255, 0.13), transparent 30%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 248, 232, 0.22), transparent 36%);
  mix-blend-mode: screen;
  opacity: 0.55;
  pointer-events: none;
}

.scenic-panel .section-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
  transform: translate3d(0, 0, 0) scale(1.16);
  transform-origin: center;
  transition: transform 90ms linear;
  will-change: transform;
}

.scenic-panel > :not(.section-art) {
  position: relative;
  z-index: 3;
}

.scenic-panel h2,
.scenic-panel > p:not(.eyebrow) {
  max-width: 32rem;
}

.scenic-panel h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.05rem, 6.6vw, 4.4rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-shadow: 0 0.55rem 2.5rem rgba(0, 0, 0, 0.48), 0 0 2.2rem rgba(242, 207, 116, 0.12);
}

.scenic-panel > p:not(.eyebrow),
.scenic-panel .tiny {
  color: rgba(255, 248, 232, 0.9);
  text-shadow: 0 0.2rem 1rem rgba(17, 25, 54, 0.34);
}

.scenic-panel > .eyebrow,
.scenic-panel > h2,
.scenic-panel > p:not(.eyebrow),
.scenic-panel > .mini-scroll,
.scenic-panel > .character-talk,
.scenic-panel > .inline-cta,
.scenic-panel > .guide-bubble,
.scenic-panel > .comparison-card,
.scenic-panel > .tiny,
.scenic-panel > .primary-button,
.scenic-panel > .social-grid {
  width: min(100%, 38rem);
  justify-self: start;
}

.scenic-panel > .eyebrow,
.scenic-panel > h2,
.scenic-panel > p:not(.eyebrow),
.scenic-panel > .mini-scroll,
.scenic-panel > .character-talk,
.scenic-panel > .inline-cta,
.scenic-panel > .tiny,
.scenic-panel > .primary-button {
  margin-left: clamp(0rem, 7vw, 8rem);
}

.scenic-panel > h2,
.scenic-panel > p:not(.eyebrow) {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.about-panel > p:nth-of-type(3),
.registration-panel > .tiny {
  display: none;
}

.scenic-panel > p:not(.eyebrow) {
  font-size: clamp(0.98rem, 2.2vw, 1.12rem);
  line-height: 1.9;
  padding: 0;
  border-left: 0;
  background: transparent;
  box-shadow: none;
}

.path-panel .character-talk {
  width: min(100%, 28rem);
  margin-top: 0.8rem;
  color: var(--ivory);
  background: rgba(17, 25, 54, 0.34);
  border-color: rgba(242, 207, 116, 0.22);
  backdrop-filter: blur(7px);
}

.path-panel .character-talk p {
  color: rgba(255, 248, 232, 0.92);
}

.scenic-panel .inline-cta,
.scenic-panel > .primary-button {
  display: inline-flex;
  width: auto;
  margin-top: 0.8rem;
  padding: 0.62rem 0.9rem;
  border: 1px solid rgba(242, 207, 116, 0.46);
  border-radius: 999px;
  color: var(--ivory);
  background: rgba(17, 25, 54, 0.38);
  backdrop-filter: blur(7px);
  text-decoration: none;
}

.registration-panel .guide-bubble {
  width: min(100%, 31rem);
  color: var(--ivory);
  background: rgba(17, 25, 54, 0.34);
  border-color: rgba(242, 207, 116, 0.24);
  backdrop-filter: blur(7px);
}

.registration-panel .guide-bubble p {
  color: rgba(255, 248, 232, 0.94);
}

.scenic-panel > h2 {
  display: inline-block;
  width: auto;
  max-width: min(100%, 35rem);
  padding-bottom: 0.75rem;
}

.scenic-panel > .eyebrow {
  display: inline-flex;
  width: auto;
  padding: 0.28rem 0.78rem;
  border: 1px solid rgba(242, 207, 116, 0.44);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(17, 25, 54, 0.52), rgba(255, 248, 232, 0.08));
  box-shadow: 0 0.8rem 2.2rem rgba(8, 12, 34, 0.18), inset 0 1px 0 rgba(255, 248, 232, 0.18);
  backdrop-filter: blur(12px);
}

.scenic-panel .member-card,
.scenic-panel .path-cards article,
.scenic-panel .comparison-card article,
.scenic-panel .character-talk,
.scenic-panel .social-grid a {
  border-color: rgba(255, 248, 232, 0.24);
  background:
    linear-gradient(135deg, rgba(17, 25, 54, 0.46), rgba(255, 248, 232, 0.1)),
    radial-gradient(circle at 0% 0%, rgba(242, 207, 116, 0.16), transparent 14rem);
  color: var(--ivory);
  backdrop-filter: blur(13px) saturate(1.12);
  box-shadow: 0 1.6rem 4.8rem rgba(8, 12, 34, 0.32), inset 0 1px 0 rgba(255, 248, 232, 0.2);
}

.scenic-panel .member-card .tiny,
.scenic-panel .social-grid span {
  color: rgba(255, 248, 232, 0.72);
  text-shadow: 0 0.2rem 0.8rem rgba(8, 12, 34, 0.28);
}

.scenic-panel .mini-scroll span,
.scenic-panel .path-icon {
  color: #fff8e8;
  background: rgba(17, 25, 54, 0.54);
  border: 1px solid rgba(242, 207, 116, 0.34);
  backdrop-filter: blur(10px);
}

.members-panel::after {
  background:
    linear-gradient(180deg, rgba(17, 25, 54, 0.62) 0%, rgba(17, 25, 54, 0.04) 17%, rgba(17, 25, 54, 0.16) 52%, rgba(17, 25, 54, 0.72) 100%),
    linear-gradient(90deg, rgba(17, 25, 54, 0.44) 0%, rgba(17, 25, 54, 0.12) 54%, rgba(17, 25, 54, 0.04) 100%);
}

.members-panel > .eyebrow,
.members-panel > h2,
.members-panel > p:not(.eyebrow),
.members-panel > .member-grid {
  justify-self: end;
  margin-left: 0;
  margin-right: clamp(0rem, 6vw, 7rem);
}

.members-panel > h2,
.members-panel > p:not(.eyebrow) {
  text-align: right;
}

.members-panel > .member-grid {
  width: min(100%, 52rem);
}

.path-panel::after {
  background:
    linear-gradient(180deg, rgba(33, 22, 38, 0.66) 0%, rgba(33, 22, 38, 0.04) 18%, rgba(33, 22, 38, 0.16) 52%, rgba(33, 22, 38, 0.74) 100%),
    linear-gradient(90deg, rgba(33, 22, 38, 0.42) 0%, rgba(33, 22, 38, 0.12) 52%, rgba(33, 22, 38, 0.04) 100%);
}

.path-panel > .eyebrow,
.path-panel > h2,
.path-panel > p:not(.eyebrow),
.path-panel > .path-cards,
.path-panel > .character-talk,
.path-panel > .inline-cta {
  margin-left: clamp(0rem, 4vw, 5rem);
}

.path-panel > h2 {
  max-width: min(100%, 43rem);
}

.registration-panel::after {
  background:
    linear-gradient(180deg, rgba(17, 25, 54, 0.66) 0%, rgba(17, 25, 54, 0.04) 20%, rgba(17, 25, 54, 0.12) 58%, rgba(17, 25, 54, 0.76) 100%),
    linear-gradient(90deg, rgba(17, 25, 54, 0.52) 0%, rgba(17, 25, 54, 0.16) 46%, rgba(17, 25, 54, 0.02) 100%),
    radial-gradient(circle at 70% 38%, rgba(242, 207, 116, 0.12), transparent 18rem);
}

.registration-panel > .eyebrow,
.registration-panel > h2,
.registration-panel > .guide-bubble,
.registration-panel > .comparison-card,
.registration-panel > .secondary-button,
.registration-panel > .coconala-sub-link,
.registration-panel > .purchase-button-row,
.registration-panel > .purchase-action-block,
.registration-panel > .cta-note {
  justify-self: end;
  margin-left: 0;
  margin-right: clamp(0rem, 7vw, 8rem);
}

.registration-panel > h2 {
  max-width: min(100%, 42rem);
  text-align: right;
}

.registration-panel > .guide-bubble {
  width: min(100%, 32rem);
}

.registration-panel > .comparison-card {
  width: min(100%, 42rem);
}

.registration-panel > .service-detail-button,
.registration-panel > .coconala-sub-link {
  width: min(100%, 28rem);
}

.purchase-action-block {
  width: min(100%, 42rem);
  margin-top: calc(1.15rem + 2cm);
}

.purchase-button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  width: 100%;
}

.purchase-button-row .primary-button,
.purchase-button-row .coconala-sub-link {
  flex: 1 1 14rem;
  min-width: min(100%, 14rem);
}

.purchase-button-row .stripe-main-button {
  color: #392346;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.75), transparent 1.7rem),
    linear-gradient(135deg, #fff0bb 0%, #ffd1e8 48%, #f2cf74 100%);
  box-shadow:
    0 0.95rem 2rem rgba(242, 207, 116, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

.purchase-button-row .stripe-main-button::before {
  content: "✦";
  margin-right: 0.35rem;
  color: #9f6b0f;
}

.purchase-button-row .coconala-sub-link {
  color: rgba(255, 249, 232, 0.9);
  background: rgba(31, 27, 47, 0.42);
  box-shadow: 0 0.5rem 1.1rem rgba(16, 18, 49, 0.16);
}

.scenic-panel.registration-panel > .cta-note {
  width: calc((100% - 0.75rem) / 2);
  max-width: 20.625rem;
  margin-top: 0.45rem;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: rgba(255, 248, 232, 0.74);
  font-size: clamp(0.68rem, 1.05vw, 0.78rem);
  line-height: 1.45;
  text-align: left;
}

.goods-shop-panel::after {
  background:
    linear-gradient(180deg, rgba(36, 22, 18, 0.68) 0%, rgba(36, 22, 18, 0.05) 18%, rgba(36, 22, 18, 0.16) 52%, rgba(36, 22, 18, 0.74) 100%),
    linear-gradient(90deg, rgba(17, 25, 54, 0.58) 0%, rgba(17, 25, 54, 0.24) 42%, rgba(17, 25, 54, 0.02) 100%),
    radial-gradient(circle at 54% 48%, rgba(242, 207, 116, 0.13), transparent 18rem);
}

.goods-shop-panel .section-art {
  object-position: center center;
}

.goods-shop-panel > .eyebrow,
.goods-shop-panel > h2,
.goods-shop-panel > p:not(.eyebrow),
.goods-shop-panel > .stamp-count-badge,
.goods-shop-panel > .stamp-showcase,
.goods-shop-panel > .primary-button {
  margin-left: clamp(0rem, 7vw, 8rem);
}

.goods-shop-panel > h2 {
  max-width: min(100%, 39rem);
}

.goods-shop-panel > p:not(.eyebrow) {
  max-width: min(100%, 31rem);
}

.goods-shop-panel > .stamp-count-badge {
  display: inline-flex;
  width: fit-content;
  max-width: min(100%, 31rem);
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding: 0.32rem 0.82rem;
  border: 1px solid rgba(242, 207, 116, 0.34);
  border-radius: 999px;
  color: rgba(255, 248, 232, 0.92);
  background:
    linear-gradient(135deg, rgba(17, 25, 54, 0.46), rgba(255, 248, 232, 0.11));
  box-shadow: 0 0.65rem 1.6rem rgba(8, 12, 34, 0.22), inset 0 1px 0 rgba(255, 248, 232, 0.18);
  backdrop-filter: blur(9px);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.goods-shop-panel > .stamp-count-badge::before {
  content: "✦";
  margin-right: 0.42rem;
  color: var(--gold);
}

.stamp-showcase {
  width: min(100%, 42rem);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.25rem, 1.2vw, 0.65rem);
  align-items: flex-end;
  margin-top: clamp(0.85rem, 2vw, 1.15rem);
  margin-bottom: 0.9rem;
}

.stamp-card {
  position: relative;
  display: block;
  flex: 0 1 clamp(5.2rem, 8.5vw, 7.1rem);
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.stamp-card::before {
  content: none;
}

.stamp-card::after {
  content: none;
}

.stamp-card img {
  width: 100%;
  height: clamp(5rem, 8.3vw, 7rem);
  object-fit: contain;
  filter: drop-shadow(0 0.55rem 0.75rem rgba(8, 12, 34, 0.32));
  transform: rotate(-3deg);
}

.stamp-card figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.stamp-card-large {
  flex-basis: clamp(6.7rem, 11vw, 9rem);
}

.stamp-card-large img {
  height: clamp(6.3rem, 10.5vw, 8.9rem);
  transform: rotate(2deg);
}

.stamp-card:nth-child(3) img,
.stamp-card:nth-child(5) img {
  transform: rotate(3deg);
}

.stamp-card:nth-child(4) img {
  transform: rotate(-1.2deg);
}

.communication-panel::after {
  background:
    linear-gradient(180deg, rgba(17, 25, 54, 0.64) 0%, rgba(17, 25, 54, 0.05) 18%, rgba(17, 25, 54, 0.16) 50%, rgba(17, 25, 54, 0.7) 100%),
    linear-gradient(90deg, rgba(17, 25, 54, 0.48) 0%, rgba(17, 25, 54, 0.14) 54%, rgba(17, 25, 54, 0.04) 100%);
}

.communication-panel > .eyebrow,
.communication-panel > h2,
.communication-panel > p:not(.eyebrow),
.communication-panel > .social-grid {
  margin-left: clamp(0rem, 8vw, 9rem);
}

.communication-panel > h2 {
  max-width: min(100%, 38rem);
}

.section-number {
  position: absolute;
  top: clamp(7rem, 14vw, 12rem);
  right: clamp(1rem, 5vw, 5rem);
  z-index: 2;
  color: rgba(255, 248, 232, 0.13);
  font-size: clamp(5rem, 18vw, 15rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
  text-shadow: 0 1rem 5rem rgba(8, 12, 34, 0.26);
  pointer-events: none;
}

.members-panel .section-number,
.registration-panel .section-number {
  left: clamp(1rem, 5vw, 5rem);
  right: auto;
}

.mini-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.mini-scroll span,
.path-icon {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(110, 90, 168, 0.12);
  color: #4c3a7f;
  font-weight: 700;
  font-size: 0.82rem;
}

.member-grid {
  display: grid;
  gap: 1.1rem;
}

.scenic-panel > .member-grid,
.scenic-panel > .path-cards,
.scenic-panel > .comparison-card {
  width: min(100%, 46rem);
  margin-left: clamp(0rem, 4vw, 4rem);
}

.members-panel > .member-grid {
  margin-top: 1rem;
}

.members-panel .member-card {
  min-height: 23rem;
  padding: 0.95rem 0.95rem 1.05rem;
  text-align: center;
}

.members-panel .member-card p:not(.member-role):not(.tiny) {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.86rem;
  line-height: 1.65;
}

.members-panel .member-portrait,
.members-panel .member-card img {
  width: min(100%, 11.2rem);
  height: clamp(12rem, 24vw, 16rem);
}

.member-card,
.path-cards article,
.comparison-card article,
.result-story-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1.65rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.42)),
    rgba(255, 255, 255, 0.55);
  box-shadow: 0 1.2rem 3.6rem rgba(46, 36, 78, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.member-card:nth-child(1),
.member-card:nth-child(3) {
  transform: translateY(-1rem);
}

.member-card:nth-child(2),
.member-card:nth-child(4) {
  transform: translateY(1.2rem);
}

.member-portrait,
.member-card img {
  width: min(100%, 11.6rem);
  height: clamp(12rem, 24vw, 16.2rem);
  margin: 0 auto 0.85rem;
  border-radius: 1.4rem 1.4rem 0.85rem 0.85rem;
  object-fit: contain;
  object-position: center bottom;
  background:
    radial-gradient(ellipse at 50% 82%, rgba(242, 207, 116, 0.18), transparent 54%),
    linear-gradient(180deg, rgba(255, 248, 232, 0.16), rgba(17, 25, 54, 0.18));
  border: 1px solid rgba(255, 248, 232, 0.28);
  box-shadow: 0 1rem 2.8rem rgba(8, 12, 34, 0.22), inset 0 1px 0 rgba(255, 248, 232, 0.22);
}

.member-card img.member-stand {
  width: min(100%, 13.8rem);
  height: clamp(9.8rem, 21vw, 13.2rem);
  padding: 0;
  object-fit: cover;
  object-position: center 12%;
  transform: scale(1.48);
  transform-origin: center 12%;
}

.reception-card img.member-stand {
  object-position: center 12%;
  transform: scale(1.72);
}

.image-card:nth-child(3) img.member-stand {
  object-position: center 10%;
  transform: scale(1.68);
}

.master-card img.member-stand {
  object-position: center 10%;
  transform: scale(1.56);
}

.image-card:nth-child(4) img.member-stand {
  object-position: center 10%;
  transform: scale(1.54);
}

.member-portrait {
  display: grid;
  place-items: center;
  color: rgba(255, 248, 232, 0.9);
  font-weight: 800;
  font-size: 1.1rem;
}

.placeholder-reception {
  background: linear-gradient(135deg, #f9ead4, #d8c4a7);
}

.member-role {
  margin-bottom: 0.5rem;
  color: var(--violet);
  font-weight: 800;
}

.path-cards,
.comparison-card {
  display: grid;
  gap: 0.9rem;
}

.path-cards article {
  position: relative;
  min-height: 10rem;
}

.path-cards article::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(242, 207, 116, 0.45), transparent 67%);
  opacity: 0.75;
}

.character-talk {
  margin: 1rem 0;
  padding: 0.95rem;
  border-radius: 1.25rem;
  background: rgba(216, 200, 255, 0.2);
}

.character-talk p {
  margin-bottom: 0.35rem;
}

.diagnosis-panel .guide-bubble,
.registration-panel .guide-bubble,
.result-panel .guide-bubble {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 248, 232, 0.5));
  border-color: var(--line);
  box-shadow: 0 1rem 3rem rgba(46, 36, 78, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.scenic-panel .guide-bubble,
.seal-panel .guide-bubble {
  color: var(--ivory);
  border-color: rgba(255, 248, 232, 0.24);
  background: linear-gradient(135deg, rgba(17, 25, 54, 0.42), rgba(255, 248, 232, 0.1));
  box-shadow: 0 1.4rem 4rem rgba(8, 12, 34, 0.3), inset 0 1px 0 rgba(255, 248, 232, 0.2);
  backdrop-filter: blur(13px) saturate(1.12);
}

.scenic-panel .guide-bubble p,
.seal-panel .guide-bubble p {
  color: rgba(255, 248, 232, 0.92);
}

.diagnosis-form {
  margin-top: 1.8rem;
  padding: clamp(1.2rem, 4vw, 2.3rem);
  border: 1px solid rgba(242, 207, 116, 0.38);
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.82), rgba(255, 244, 220, 0.62));
  box-shadow: 0 1.4rem 4rem rgba(46, 36, 78, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 0.7rem;
  font-weight: 800;
}

.date-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.65rem;
}

label span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.84rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(88, 61, 110, 0.24);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, #fffdf8, #fff5df);
  color: var(--ink);
  font-size: 1rem;
  box-shadow: inset 0 0.18rem 0.6rem rgba(46, 36, 78, 0.06);
}

.privacy-note,
.tiny {
  color: var(--muted);
  font-size: 0.83rem;
}

.form-button {
  width: 100%;
  margin-top: 0.7rem;
}

.hidden {
  display: none !important;
}

.result-pattern {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.result-pattern span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(242, 207, 116, 0.35);
  font-weight: 800;
}

.type-visual-wrap {
  margin: 1rem 0;
}

.type-visual-wrap img {
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.type-visual-wrap figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.result-story-card dl {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1rem;
}

.result-story-card dt {
  color: var(--violet);
  font-weight: 800;
}

.result-story-card dd {
  margin: 0;
}

.result-theme {
  color: #5d4388;
  font-weight: 800;
}

.diagnosis-result-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.82rem;
  margin-top: 1rem;
}

.diagnosis-result-item {
  display: grid;
  grid-template-columns: clamp(2.8rem, 7vw, 3.55rem) 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: clamp(0.92rem, 2.6vw, 1.2rem);
  border: 1px solid rgba(242, 207, 116, 0.22);
  border-radius: 1.15rem;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.12), rgba(255, 248, 232, 0.055)),
    rgba(17, 25, 54, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 248, 232, 0.13), 0 0.8rem 1.9rem rgba(8, 12, 34, 0.16);
}

.diagnosis-result-number {
  display: grid;
  place-items: center;
  width: clamp(2.55rem, 6vw, 3.15rem);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(242, 207, 116, 0.42);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 248, 232, 0.24), transparent 52%),
    rgba(17, 25, 54, 0.36);
}

.diagnosis-result-item h3 {
  margin: 0 0 0.35rem;
  color: rgba(255, 248, 232, 0.96);
  font-size: clamp(1rem, 2.3vw, 1.16rem);
  line-height: 1.45;
}

.diagnosis-result-item p {
  margin: 0;
  color: rgba(255, 248, 232, 0.86);
  line-height: 1.86;
}

.mist-card {
  position: relative;
  margin-top: 1.3rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #f2e2c6;
  box-shadow: inset 0 0 0 1px rgba(242, 207, 116, 0.32), var(--shadow);
}

.mist-card img {
  width: 100%;
}

.unlock-button {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  width: min(calc(100% - 2rem), 24rem);
  transform: translateX(-50%);
  text-align: center;
}

.mist-card-note {
  position: absolute;
  left: 50%;
  bottom: 4.7rem;
  width: min(calc(100% - 2rem), 24rem);
  margin: 0;
  transform: translateX(-50%);
  color: rgba(43, 33, 70, 0.78);
  font-size: clamp(0.72rem, 1.35vw, 0.84rem);
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

.comparison-card ul {
  padding-left: 1.2rem;
  margin: 0;
}

.social-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.communication-panel .social-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.social-grid a {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-grid a:hover,
.social-grid a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0.7rem 1.5rem rgba(46, 36, 78, 0.12);
}

.social-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.site-footer {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 2rem 1.15rem 4rem;
  color: #4b3e59;
  text-align: center;
}

@media (min-width: 720px) {
  .member-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .path-cards,
  .comparison-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .guild-signboard {
    grid-template-columns: repeat(3, 1fr);
    max-width: 44rem;
  }
}

@media (max-width: 719px) {
  .scenic-panel {
    min-height: 92svh;
  }

  .scenic-panel::after {
    background:
      linear-gradient(180deg, rgba(17, 25, 54, 0.04) 0%, rgba(17, 25, 54, 0.18) 32%, rgba(17, 25, 54, 0.74) 100%);
  }

  .scenic-panel > .member-grid,
  .scenic-panel > .path-cards,
  .scenic-panel > .comparison-card,
  .communication-panel .social-grid {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-left: 0;
  }

  .members-panel .member-card {
    text-align: center;
  }

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

  .stamp-showcase {
    display: flex;
    width: 100%;
    margin-left: 0;
  }

  .stamp-card-large {
    flex-basis: clamp(6.2rem, 32vw, 8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.seal-panel .guide-bubble {
  color: var(--ivory);
  border-color: rgba(255, 248, 232, 0.24);
  background: linear-gradient(135deg, rgba(17, 25, 54, 0.36), rgba(255, 248, 232, 0.1));
  box-shadow: 0 1.4rem 4rem rgba(8, 12, 34, 0.28), inset 0 1px 0 rgba(255, 248, 232, 0.18);
}

.seal-panel .guide-bubble p {
  color: rgba(255, 248, 232, 0.92);
}

@media (max-width: 719px) {
  .seal-panel > * {
    width: 100%;
    margin-left: 0;
  }
}

.registration-panel > h2 {
  max-width: min(100%, 48rem);
  font-size: clamp(1.9rem, 5.6vw, 3.9rem);
}

/* --- Guild artifact frame trial: 白い説明パネルを、世界内の札・記録帳へ寄せる --- */
.scenic-panel > h2 {
  position: relative;
  padding-bottom: 1.05rem;
}

.scenic-panel > h2::after,
.seal-panel h2::after {
  content: "";
  display: block;
  width: min(12rem, 48vw);
  height: 1px;
  margin-top: 1rem;
  background: linear-gradient(90deg, rgba(242, 207, 116, 0), rgba(242, 207, 116, 0.86), rgba(255, 248, 232, 0));
  box-shadow: 0 0 1.4rem rgba(242, 207, 116, 0.28);
}

/* --- Payment application draft pages --- */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin: 1rem auto 0;
  font-size: 0.82rem;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(88, 61, 110, 0.22);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--night);
  border-color: rgba(242, 207, 116, 0.8);
}

.legal-body main {
  overflow: visible;
  background:
    radial-gradient(circle at 12% 4%, rgba(242, 207, 116, 0.15), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(216, 200, 255, 0.16), transparent 26rem),
    linear-gradient(180deg, #111936 0%, #241f52 30%, #f8edd3 100%);
}

.legal-main {
  min-height: 100vh;
  padding: clamp(5.5rem, 9vw, 8rem) clamp(1.2rem, 5vw, 5rem) clamp(4rem, 8vw, 7rem);
}

.legal-document {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 3.2rem);
  color: var(--ink);
  border: 1px solid rgba(242, 207, 116, 0.34);
  border-radius: clamp(1.25rem, 3vw, 2.1rem);
  background:
    linear-gradient(135deg, rgba(255, 248, 232, 0.97), rgba(255, 243, 214, 0.9)),
    radial-gradient(circle at 12% 10%, rgba(216, 200, 255, 0.24), transparent 18rem);
  box-shadow: 0 2.2rem 7rem rgba(8, 12, 34, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.legal-document h1,
.legal-document h2,
.legal-document h3 {
  line-height: 1.45;
}

.legal-document h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--night);
}

.legal-document h2 {
  margin: 2.4rem 0 0.9rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--gold);
  color: var(--night-2);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.legal-document h3 {
  margin: 0 0 0.45rem;
  color: var(--night-2);
}

.legal-lead {
  font-size: clamp(1rem, 2.3vw, 1.15rem);
}

.draft-note,
.placeholder {
  display: inline-block;
  border-radius: 0.8rem;
  background: rgba(242, 207, 116, 0.24);
  color: #6b4a13;
  font-weight: 700;
}

.draft-note {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
}

.placeholder {
  padding: 0.08rem 0.4rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 0 0 1px rgba(88, 61, 110, 0.12);
}

.legal-table th,
.legal-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(88, 61, 110, 0.12);
  vertical-align: top;
  text-align: left;
}

.legal-table th {
  width: 30%;
  min-width: 11rem;
  color: var(--night);
  background: rgba(216, 200, 255, 0.22);
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.legal-card {
  padding: 1.2rem;
  border: 1px solid rgba(242, 207, 116, 0.3);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1rem 2.5rem rgba(16, 18, 49, 0.09);
}

.legal-card .price {
  margin: 0 0 0.5rem;
  color: #8b5d10;
  font-weight: 800;
}

.legal-link-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(88, 61, 110, 0.14);
}

.legal-link-box a {
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(88, 61, 110, 0.18);
  border-radius: 999px;
  color: var(--night);
  background: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.legal-link-box a:hover,
.legal-link-box a:focus-visible {
  border-color: rgba(242, 207, 116, 0.75);
  color: #8b5d10;
}

.legal-cta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.2rem 0 0.8rem;
}

.legal-document .secondary-button {
  color: var(--night);
  background: rgba(255, 255, 255, 0.52);
}

@media (max-width: 720px) {
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th {
    min-width: 0;
    border-bottom: none;
  }

  .legal-card-grid {
    grid-template-columns: 1fr;
  }
}

.members-panel .member-card,
.path-panel .path-cards article,
.registration-panel .comparison-card article,
.communication-panel .social-grid a,
.result-story-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(242, 207, 116, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 248, 232, 0.14), rgba(17, 25, 54, 0.46)),
    radial-gradient(circle at 14% 8%, rgba(242, 207, 116, 0.2), transparent 12rem),
    radial-gradient(circle at 92% 82%, rgba(216, 200, 255, 0.13), transparent 10rem);
  color: var(--ivory);
  box-shadow:
    0 1.6rem 4.6rem rgba(8, 12, 34, 0.36),
    inset 0 1px 0 rgba(255, 248, 232, 0.22),
    inset 0 -1px 0 rgba(17, 25, 54, 0.36);
  backdrop-filter: blur(14px) saturate(1.14);
}

.members-panel .member-card::before,
.path-panel .path-cards article::before,
.registration-panel .comparison-card article::before,
.communication-panel .social-grid a::before,
.result-story-card::before {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgba(242, 207, 116, 0.24);
  border-radius: calc(1.65rem - 0.45rem);
  pointer-events: none;
}

.members-panel .member-card::after,
.registration-panel .comparison-card article::after,
.communication-panel .social-grid a::after,
.result-story-card::after {
  content: "✦";
  position: absolute;
  right: 0.9rem;
  bottom: 0.72rem;
  color: rgba(242, 207, 116, 0.45);
  font-size: 1rem;
  line-height: 1;
  text-shadow: 0 0 1rem rgba(242, 207, 116, 0.22);
  pointer-events: none;
}

.members-panel .member-role,
.members-panel .member-card p,
.path-panel .path-cards article p,
.registration-panel .comparison-card li,
.communication-panel .social-grid span {
  color: rgba(255, 248, 232, 0.82);
  text-shadow: 0 0.25rem 0.9rem rgba(8, 12, 34, 0.28);
}

.members-panel .member-card h3,
.path-panel .path-cards article h3,
.registration-panel .comparison-card h3,
.communication-panel .social-grid a {
  color: #fff8e8;
  text-shadow: 0 0.25rem 1rem rgba(8, 12, 34, 0.32);
}

.members-panel .member-card {
  border-radius: 2.1rem 1.4rem 2rem 1.55rem;
}

.members-panel .member-card:nth-child(odd) {
  transform: translateY(-1.2rem) rotate(-0.8deg);
}

.members-panel .member-card:nth-child(even) {
  transform: translateY(1.1rem) rotate(0.7deg);
}

.path-panel .path-cards article {
  border-radius: 1.2rem 2.15rem 1.45rem 1.85rem;
  background:
    linear-gradient(135deg, rgba(17, 25, 54, 0.52), rgba(58, 39, 78, 0.36)),
    repeating-linear-gradient(120deg, rgba(255, 248, 232, 0.06) 0 1px, transparent 1px 13px);
}

.path-panel .path-cards article::after {
  width: 5.3rem;
  height: 5.3rem;
  background:
    radial-gradient(circle, rgba(242, 207, 116, 0.28), transparent 58%),
    conic-gradient(from 45deg, transparent 0 18%, rgba(242, 207, 116, 0.18) 18% 19%, transparent 19% 48%, rgba(216, 200, 255, 0.16) 48% 49%, transparent 49%);
  opacity: 0.95;
}

.registration-panel .comparison-card article {
  border-radius: 0.8rem 2rem 1.2rem 2rem;
  background:
    linear-gradient(135deg, rgba(50, 31, 23, 0.52), rgba(255, 248, 232, 0.13)),
    radial-gradient(circle at 0% 0%, rgba(242, 207, 116, 0.22), transparent 14rem);
}

.communication-panel .social-grid a {
  border-radius: 1rem 1.7rem 1rem 1.7rem;
  background:
    linear-gradient(135deg, rgba(67, 43, 24, 0.44), rgba(17, 25, 54, 0.42)),
    radial-gradient(circle at 8% 15%, rgba(242, 207, 116, 0.18), transparent 10rem);
}

.scenic-panel .guide-bubble,
.seal-panel .guide-bubble {
  border-radius: 1.15rem 2.2rem 1.35rem 1.75rem;
  border-color: rgba(242, 207, 116, 0.26);
  background:
    linear-gradient(135deg, rgba(17, 25, 54, 0.44), rgba(255, 248, 232, 0.08)),
    radial-gradient(circle at 8% 0%, rgba(242, 207, 116, 0.12), transparent 9rem);
}

.seal-panel .diagnosis-form {
  border-radius: 1.2rem 2.4rem 1.4rem 2rem;
  border-color: rgba(242, 207, 116, 0.34);
  background:
    linear-gradient(135deg, rgba(17, 25, 54, 0.5), rgba(255, 248, 232, 0.13)),
    radial-gradient(circle at 100% 0%, rgba(242, 207, 116, 0.17), transparent 14rem);
  color: var(--ivory);
  box-shadow:
    0 1.9rem 5.2rem rgba(8, 12, 34, 0.42),
    inset 0 1px 0 rgba(255, 248, 232, 0.22);
  backdrop-filter: blur(15px) saturate(1.16);
}

.seal-panel .diagnosis-form legend,
.seal-panel .diagnosis-form label span,
.seal-panel .diagnosis-form .privacy-note,
.seal-panel .diagnosis-form .tiny {
  color: rgba(255, 248, 232, 0.88);
}

.seal-panel .diagnosis-form input {
  color: #2d2541;
  border-color: rgba(242, 207, 116, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(255, 244, 220, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 0.7rem 1.7rem rgba(8, 12, 34, 0.18);
}

.scenic-panel .inline-cta,
.scenic-panel > .primary-button,
.seal-panel .form-button {
  border-radius: 999px;
  border-color: rgba(242, 207, 116, 0.62);
  box-shadow:
    0 1rem 2.5rem rgba(8, 12, 34, 0.3),
    0 0 0 1px rgba(255, 248, 232, 0.1) inset,
    0 0 2rem rgba(242, 207, 116, 0.12);
}

@media (max-width: 719px) {
  .members-panel .member-card:nth-child(odd),
  .members-panel .member-card:nth-child(even) {
    transform: none;
  }

  .members-panel .member-card::before,
  .path-panel .path-cards article::before,
  .registration-panel .comparison-card article::before,
  .communication-panel .social-grid a::before,
  .result-story-card::before {
    inset: 0.45rem;
  }
}

.members-panel .member-card {
  display: grid;
  grid-template-rows: minmax(10.5rem, 1fr) auto;
  gap: 0.75rem;
  min-height: 25rem;
  padding: 0.8rem;
}

.member-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(10.8rem, 23vw, 14.2rem);
  overflow: hidden;
  border: 1px solid rgba(255, 248, 232, 0.28);
  border-radius: 1.45rem 1.45rem 0.9rem 0.9rem;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(242, 207, 116, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(255, 248, 232, 0.13), rgba(17, 25, 54, 0.22));
  box-shadow: inset 0 1px 0 rgba(255, 248, 232, 0.18), 0 1rem 2.4rem rgba(8, 12, 34, 0.18);
}

.member-visual::after {
  content: "";
  position: absolute;
  inset: auto 10% 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(17, 25, 54, 0.26));
  pointer-events: none;
}

.member-card .member-visual img.member-stand {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: cover;
  object-position: center var(--face-y, 10%);
  transform: translateY(var(--face-lift, 0)) scale(var(--face-scale, 1.58));
  transform-origin: center var(--face-origin, 10%);
}

.member-copy {
  position: relative;
  z-index: 2;
  padding: 0.8rem 0.75rem 0.7rem;
  border: 1px solid rgba(242, 207, 116, 0.22);
  border-radius: 0.95rem 0.95rem 1.4rem 1.4rem;
  background:
    linear-gradient(135deg, rgba(17, 25, 54, 0.48), rgba(255, 248, 232, 0.08)),
    radial-gradient(circle at 10% 0%, rgba(242, 207, 116, 0.13), transparent 7rem);
  box-shadow: inset 0 1px 0 rgba(255, 248, 232, 0.14);
}

.member-copy h3 {
  margin-bottom: 0.2rem;
}

.member-copy .copy-line {
  display: block;
}

.members-panel .member-card .member-copy p:not(.member-role):not(.tiny) {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.55;
}

.reception-card .member-visual img.member-stand {
  --face-scale: 2.58;
  --face-y: 8%;
  --face-origin: 12%;
  --face-lift: -8%;
}

.master-card .member-visual img.member-stand {
  --face-scale: 1.68;
  --face-y: 8%;
  --face-origin: 8%;
}

.image-card:nth-child(3) .member-visual img.member-stand {
  --face-scale: 2.28;
  --face-y: 9%;
  --face-origin: 15%;
  --face-lift: -10%;
}

.image-card:nth-child(4) .member-visual img.member-stand {
  --face-scale: 1.94;
  --face-y: 12%;
  --face-origin: 11%;
}

/* --- Game dialogue portrait UI: 吹き出しを登場人物の会話ウィンドウへ寄せる --- */
.scenic-panel .guide-bubble,
.seal-panel .guide-bubble,
.diagnosis-panel .guide-bubble,
.registration-panel .guide-bubble,
.result-panel .guide-bubble {
  grid-template-columns: clamp(4.8rem, 9vw, 5.8rem) 1fr;
  gap: 1rem;
  align-items: stretch;
  padding: 0.7rem 1.05rem 0.7rem 0.7rem;
  border-radius: 0.95rem 1.7rem 1.7rem 0.95rem;
  background:
    linear-gradient(135deg, rgba(17, 25, 54, 0.58), rgba(255, 248, 232, 0.14)),
    radial-gradient(circle at 0% 50%, rgba(242, 207, 116, 0.22), transparent 9rem);
  border-color: rgba(242, 207, 116, 0.28);
}

.diagnosis-panel .guide-bubble p,
.registration-panel .guide-bubble p,
.result-panel .guide-bubble p,
.scenic-panel .guide-bubble p,
.seal-panel .guide-bubble p {
  align-self: center;
  color: rgba(255, 248, 232, 0.94);
}

.seal-panel > .guide-bubble,
.diagnosis-panel > .guide-bubble,
.registration-panel > .guide-bubble {
  width: min(100%, 32rem);
}

.seal-panel > .guide-bubble.diagnosis-guide {
  display: grid;
  grid-template-columns: clamp(4.8rem, 9vw, 5.8rem) 1fr;
  gap: 1rem;
  align-items: stretch;
  width: min(100%, 32rem);
  min-height: clamp(6.8rem, 10vw, 7.6rem);
  padding: 0.7rem 1.05rem 0.7rem 0.7rem;
  border-radius: 0.95rem 1.7rem 1.7rem 0.95rem;
  border-color: rgba(242, 207, 116, 0.28);
  background:
    linear-gradient(135deg, rgba(17, 25, 54, 0.58), rgba(255, 248, 232, 0.14)),
    radial-gradient(circle at 0% 50%, rgba(242, 207, 116, 0.22), transparent 9rem);
}

.seal-panel > .guide-bubble.diagnosis-guide .guide-avatar {
  width: clamp(4.8rem, 9vw, 5.8rem);
  min-height: clamp(5.3rem, 10vw, 6.4rem);
  height: 100%;
}

/* --- Shared receptionist dialogue: 05と06の受付女性の会話枠を完全共通化 --- */
.seal-panel > .guide-bubble.reception-dialogue,
.registration-panel > .guide-bubble.reception-dialogue {
  display: grid !important;
  grid-template-columns: clamp(4.8rem, 9vw, 5.8rem) 1fr !important;
  gap: 1rem !important;
  align-items: stretch !important;
  width: min(100%, 32rem) !important;
  min-height: clamp(6.8rem, 10vw, 7.6rem) !important;
  padding: 0.7rem 1.05rem 0.7rem 0.7rem !important;
  border-radius: 0.95rem 1.7rem 1.7rem 0.95rem !important;
  border-color: rgba(242, 207, 116, 0.28) !important;
  background:
    linear-gradient(135deg, rgba(17, 25, 54, 0.58), rgba(255, 248, 232, 0.14)),
    radial-gradient(circle at 0% 50%, rgba(242, 207, 116, 0.22), transparent 9rem) !important;
  box-shadow:
    0 1.4rem 4rem rgba(8, 12, 34, 0.32),
    inset 0 1px 0 rgba(255, 248, 232, 0.2) !important;
}

.seal-panel > .guide-bubble.reception-dialogue .guide-avatar,
.registration-panel > .guide-bubble.reception-dialogue .guide-avatar {
  width: clamp(4.8rem, 9vw, 5.8rem) !important;
  min-height: clamp(5.3rem, 10vw, 6.4rem) !important;
  height: 100% !important;
  border-radius: 0.75rem 1.15rem 1.15rem 0.75rem !important;
}

.seal-panel > .guide-bubble.reception-dialogue .guide-avatar-reception,
.registration-panel > .guide-bubble.reception-dialogue .guide-avatar-reception {
  --guide-face-size: 270%;
  --guide-face-position: center 16%;
}

/* --- Square receptionist portrait: 文章量で受付女性の顔枠が伸びないよう固定 --- */
.seal-panel > .guide-bubble.reception-dialogue,
.registration-panel > .guide-bubble.reception-dialogue {
  --reception-portrait-size: clamp(5.2rem, 8vw, 5.8rem);
  grid-template-columns: var(--reception-portrait-size) minmax(0, 1fr) !important;
  align-items: center !important;
  width: min(100%, 42rem) !important;
  min-height: 0 !important;
  padding: 0.62rem 1.05rem 0.62rem 0.62rem !important;
}

.seal-panel > .guide-bubble.reception-dialogue .guide-avatar,
.registration-panel > .guide-bubble.reception-dialogue .guide-avatar {
  width: var(--reception-portrait-size) !important;
  height: var(--reception-portrait-size) !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  align-self: center !important;
}

.seal-panel > .guide-bubble.reception-dialogue p,
.registration-panel > .guide-bubble.reception-dialogue p {
  align-self: center !important;
  line-height: 1.65 !important;
}

@media (max-width: 520px) {
  .scenic-panel .guide-bubble,
  .seal-panel .guide-bubble,
  .diagnosis-panel .guide-bubble,
  .registration-panel .guide-bubble,
  .result-panel .guide-bubble {
    grid-template-columns: 4.25rem 1fr;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem 0.6rem 0.6rem;
  }

  .guide-avatar {
    width: 4.25rem;
    min-height: 5rem;
  }
}
