@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600&family=Noto+Sans+JP:wght@400;500;600;700&family=Noto+Serif+JP:wght@500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #241831;
  --muted: #65586f;
  --plum: #5b3371;
  --purple: #46255e;
  --night: #160e22;
  --pink: #efd8ff;
  --sheet: #faf6fd;
  --line: #ded2e7;
  --sans: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --serif: "Noto Serif JP", "Yu Mincho", serif;
  --display: "Cormorant Garamond", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; color: var(--ink); background: var(--sheet); font: 400 1rem/1.75 var(--sans); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #a866cc; outline-offset: 4px; }
.wrap { width: min(100% - 5rem, 69rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; top: .5rem; left: .5rem; padding: .5rem 1rem; color: var(--ink); background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header, .site-footer { color: #f8eafa; background: var(--night); }
.site-header { border-bottom: 1px solid #ffffff23; }
.header-inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; font: 700 1.12rem/1 var(--display); letter-spacing: .13em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: #dca7f0; font-size: 1.25rem; }
.site-header nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2.6rem); font-size: .875rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: #efc6ff; }
.nav-join { padding: .4rem .95rem; border: 1px solid #e9bafa75; border-radius: 99px; }

.hero { overflow: hidden; color: #fff5ff; background: radial-gradient(ellipse at 78% 57%, #633a75 0%, #331d45 33%, transparent 68%), linear-gradient(111deg, #191024 7%, #221432 80%); }
.hero-inner { display: grid; grid-template-columns: 1.12fr 1fr; min-height: 39.5rem; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: 3.3rem 3.8rem; }
.hero-copy { position: relative; z-index: 1; padding-bottom: .4rem; }
.hero-date { display: flex; align-items: center; gap: .8rem; color: #eed3fa; font-size: .8rem; font-weight: 600; letter-spacing: .23em; }
.hero-date span { width: 2rem; height: 1px; background: #d598e5; }
.hero h1 { margin: .9rem 0 1.1rem; font: 700 clamp(5rem, 9.3vw, 8.5rem)/.79 var(--display); letter-spacing: -.061em; }
.hero h1 em { display: block; color: #ebc4fc; font-size: .75em; font-weight: 600; letter-spacing: -.075em; }
.hero h1 strong { display: block; margin-top: .11em; color: #fff5ff; white-space: nowrap; font-weight: inherit; }
.hero-korean { color: #efd6fd; margin-top: 1.8rem; font-weight: 700; letter-spacing: .09em; }
.hero-intro { color: #f6eafa; margin-top: .5rem; font-size: .98rem; line-height: 1.9; }
.hero-action { display: flex; align-items: flex-start; flex-direction: column; gap: .65rem; margin-top: 1.65rem; }
.hero-action p { color: #e9d4ed; font-size: .855rem; }
.hero-visual { width: min(100%, 27rem); margin-inline: auto; position: relative; padding: .62rem; border: 1px solid #e2b6f782; border-radius: 46% 46% 1rem 1rem / 31% 31% 1rem 1rem; box-shadow: 0 0 3rem #b875f328; }
.portrait { height: clamp(25rem, 41vw, 32rem); position: relative; border-radius: inherit; overflow: hidden; isolation: isolate; background: #38254b; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #29133c73, transparent 34%); pointer-events: none; }
.sparkle { position: absolute; z-index: 1; color: #f9dcff; line-height: 1; filter: drop-shadow(0 0 .7rem #e9a0ff); }
.star-top { right: -.8rem; top: 14%; font-size: 3.4rem; }
.star-bottom { left: -1.7rem; bottom: 9%; font-size: 3.7rem; }
.star-side { right: -1.75rem; top: 26%; font-size: 1.3rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.9rem; border: 1px solid transparent; border-radius: 99px; padding: .68rem 1.45rem; font-size: .92rem; font-weight: 700; text-align: center; text-decoration: none; transition: background-color .18s, box-shadow .18s; }
.button-pink { color: #331845; background: #f1d8ff; box-shadow: 0 .35rem 1.6rem #a64ad94d; }
.button-pink:hover { background: #fff0ff; }
.button-dark { color: #fff; background: var(--purple); }
.button-dark:hover { background: #5c3678; }
.button-outline { color: var(--purple); border-color: #b8a4c8; background: #fff; }
.button-outline:hover { background: #f6edfa; }

.about { padding-block: clamp(3.5rem, 8vw, 7rem); background: #f8f1fb; }
.details-layout { display: grid; grid-template-columns: minmax(15rem, 21rem) 1fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); width: min(100% - 5rem, 61rem); }
.poster { padding: .42rem; border: 1px solid #cbb6d7; border-radius: .9rem; background: #fff; box-shadow: 0 1.1rem 2.9rem #5a3a6c22; }
.poster img { width: 100%; height: auto; border-radius: .55rem; }
.about h2, .join h2 { color: #332044; font: 700 clamp(1.85rem, 4vw, 3.05rem)/1.35 var(--serif); letter-spacing: .025em; }
.section-intro { max-width: 30rem; margin-top: 1rem; color: var(--muted); line-height: 1.9; }
.event-facts { margin-block: 1.7rem 1.25rem; border-top: 1px solid var(--line); }
.event-facts div { display: grid; grid-template-columns: 6rem 1fr; gap: .8rem; padding-block: .74rem; border-bottom: 1px solid var(--line); }
.event-facts dt { color: var(--plum); font-weight: 700; }
.event-facts dd { overflow-wrap: anywhere; }
.event-facts small { color: var(--muted); }
.text-link { color: var(--plum); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: .27em; }
.text-link:hover { color: #815093; }

.join { background: #eee2f5; padding-block: clamp(3.5rem, 7vw, 6.2rem); }
.join-layout { display: grid; grid-template-columns: minmax(13rem, 18rem) 1fr; align-items: start; gap: clamp(2rem, 6vw, 6rem); width: min(100% - 5rem, 65rem); }
.join-copy { padding-block: 1rem; }
.join-star { display: inline-block; color: #805098; font-size: 2.3rem; line-height: 1; margin-bottom: .6rem; }
.join-copy p { margin-top: 1rem; }
.join-copy .join-note { margin-top: 1.4rem; color: var(--muted); font-size: .9rem; }
.form-card, .admin-card { min-width: 0; border: 1px solid #e1d6e9; border-radius: 1.25rem; background: #fff; padding: clamp(1.2rem, 4vw, 2.4rem); box-shadow: 0 .8rem 2rem #53297013; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.05rem 1.2rem; }
.wide { grid-column: 1 / -1; }
label { display: block; font-size: .89rem; font-weight: 700; }
label small { display: block; margin-top: .28rem; color: var(--muted); font-size: .8rem; font-weight: 400; }
.required { margin-inline-start: .5rem; padding: .1rem .35rem; color: #643b75; border-radius: .25rem; background: #f3e8f8; font-size: .73rem; font-weight: 700; white-space: nowrap; }
input:not([type="checkbox"]), select, textarea { display: block; width: 100%; margin-top: .42rem; padding: .61rem .72rem; min-height: 2.8rem; color: var(--ink); background: #fcf9fd; border: 1px solid #d9cbe3; border-radius: .4rem; font-size: 1rem; font-weight: 400; }
input::placeholder, textarea::placeholder { color: #786a81; }
select { appearance: none; padding-right: 2.1rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%2365586f' stroke-width='1.5'/%3E%3C/svg%3E"); background-position: right .8rem center; background-repeat: no-repeat; }
textarea { resize: vertical; }
.counter { text-align: right; }
.checkbox { display: flex; align-items: center; gap: .65rem; margin-block: .95rem 1.13rem; }
.checkbox input { width: 1.2rem; height: 1.2rem; margin: 0; flex: 0 0 auto; accent-color: var(--purple); }
.feedback { color: var(--muted); margin-block: .4rem .8rem; overflow-wrap: anywhere; }
.feedback:empty { display: none; }
.feedback.error { color: #9b2250; }
#complete h3 { font: 700 clamp(1.3rem, 3vw, 1.65rem)/1.5 var(--serif); }
#complete p { margin-top: .75rem; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 5rem; padding-block: 1rem; }
.site-footer p { color: #ecdbea; font-size: .8rem; }

dialog { width: min(calc(100% - 2rem), 37rem); max-height: calc(100% - 2rem); padding: clamp(1.05rem, 4vw, 2rem); color: var(--ink); border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: 0 1rem 4rem #21102b60; overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #1a0c28bd; }
dialog h2 { font: 700 1.5rem/1.4 var(--serif); margin-bottom: .5rem; }
.review { margin-block: 1rem; }
.review div { display: grid; grid-template-columns: minmax(7rem, 35%) 1fr; gap: .7rem; border-bottom: 1px solid var(--line); padding-block: .55rem; }
.review dt { color: var(--plum); font-size: .9rem; font-weight: 700; }
.review dd { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .6rem; margin-top: 1.05rem; }

@media (max-width: 900px) {
  .wrap, .details-layout, .join-layout { width: min(100% - 3.5rem, 69rem); }
  .hero-inner { gap: 2.1rem; min-height: 34rem; }
  .hero h1 { font-size: clamp(4rem, 10vw, 6.2rem); }
  .details-layout { gap: 2.7rem; }
  .join-layout { gap: 1.8rem; grid-template-columns: minmax(11rem, 15rem) 1fr; }
}
@media (max-width: 680px) {
  .wrap, .details-layout, .join-layout { width: calc(100% - 2.25rem); }
  .header-inner { min-height: 3.65rem; }
  .wordmark { font-size: 1rem; gap: .34rem; }
  .site-header nav { font-size: .8rem; }
  .nav-join { padding: .32rem .65rem; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 2.7rem 2.55rem; gap: 2.25rem; }
  .hero h1 { font-size: clamp(4.25rem, 13.8vw, 6.4rem); }
  .hero-korean { margin-top: 1.35rem; }
  .hero-visual { width: min(89%, 24rem); }
  .portrait { height: clamp(20rem, 104vw, 28rem); }
  .star-top { font-size: 2.65rem; }
  .star-side { right: -1.3rem; }
  .star-bottom { left: -1.35rem; font-size: 2.8rem; }
  .details-layout, .join-layout { grid-template-columns: 1fr; gap: 1.45rem; }
  .poster { grid-row: 2; width: min(82%, 19rem); margin-inline: auto; }
  .join-copy { padding-block: 0; }
  .join-star { font-size: 1.7rem; margin-bottom: .35rem; }
  .fields { grid-template-columns: 1fr; gap: .85rem; }
  .review div { grid-template-columns: 1fr; gap: .1rem; }
  .site-footer .wrap { align-items: flex-start; flex-direction: column; justify-content: center; gap: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
