
<style>
:root {
  --blush: #f2d5d5;
  --rose: #e8a0a0;
  --rosegold: #c9957c;
  --cream: #f9f4ef;
  --nude: #ede0d4;
  --petal: #f7eae8;
  --ink: #1a1412;
  --muted: #7a6b65;
  --white: #fffcfa;
  --magenta: #b32673;
  --deep: #241018;
  --glassBorder: rgba(201,149,124,0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
}

/* LOADING SCREEN */
.loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(ellipse at 30% 10%, rgba(179,38,115,0.20), transparent 40%),
    radial-gradient(ellipse at 80% 90%, rgba(232,160,160,0.14), transparent 45%),
    #050505;
  color: var(--white);
}

.loading-card {
  background: #0c0c0c;
  padding: 34px 30px;
  border-radius: 24px;
  width: 100%;
  max-width: 410px;
  text-align: center;
  box-shadow: 0 0 40px rgba(0,0,0,0.85);
  border: 1px solid rgba(255,255,255,0.05);
}

.spinner {
  width: 54px;
  height: 54px;
  border: 4px solid #333;
  border-top: 4px solid var(--magenta);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 22px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-card h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 16px;
  font-weight: 800;
}

.loading-text {
  color: #b7b7b7;
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 22px;
}

.loading-box-info {
  border: 1px dashed var(--magenta);
  border-radius: 18px;
  padding: 18px;
  color: #d4d4d4;
  font-size: 14px;
  line-height: 1.9;
}

.highlight {
  color: #ff4d98;
  font-weight: 800;
  margin-top: 12px;
}

.ref-loading {
  margin-top: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  letter-spacing: 0.18em;
  color: var(--blush);
}

/* MAIN PAGE */
.apply-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

/* LEFT VIDEO SIDE */
.apply-visual {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.apply-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apply-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255,252,250,0.93), rgba(255,252,250,0.65), rgba(255,252,250,0.22)),
    radial-gradient(ellipse at 10% 80%, rgba(232,160,160,0.48), transparent 55%);
  z-index: 1;
}

.apply-visual::after {
  content: 'HIRAYA';
  position: absolute;
  top: 5%;
  left: -5%;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(7rem, 16vw, 17rem);
  font-style: italic;
  color: rgba(179,38,115,0.08);
  z-index: 2;
  pointer-events: none;
}

.visual-nav,
.visual-content {
  position: relative;
  z-index: 3;
}

.visual-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}

.visual-content {
  max-width: 650px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
  background: rgba(255,252,250,0.75);
  border: 1px solid rgba(179,38,115,0.22);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.visual-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(3rem, 5vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
  color: var(--deep);
  margin-bottom: 1rem;
  font-weight: 800;
}

.visual-title span {
  color: var(--magenta);
}

.visual-copy {
  max-width: 560px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #5e4651;
  margin-bottom: 1.3rem;
}

.visual-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.visual-tags span {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--magenta);
  background: rgba(255,252,250,0.82);
  border: 1px solid rgba(179,38,115,0.18);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
}

.info-card {
  background: rgba(255,252,250,0.78);
  border: 1px solid rgba(179,38,115,0.18);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  margin-top: 0.75rem;
  backdrop-filter: blur(12px);
}

.info-card h4 {
  font-family: 'DM Sans', sans-serif;
  color: var(--magenta);
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.info-card p {
  color: #6d5260;
  font-size: 0.8rem;
  line-height: 1.6;
}

.visual-steps {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

.visual-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.visual-step span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffd6e8;
  color: var(--magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
}

/* RIGHT FORM SIDE */
.apply-content {
  min-height: 100vh;
  padding: 3rem clamp(1.5rem, 5vw, 5rem);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(232,160,160,0.18), transparent 45%),
    var(--white);
}

.form-shell {
  width: 100%;
  max-width: 720px;
}

.top-link {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.6rem;
}

.top-link a {
  color: var(--magenta);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
}

.form-header {
  margin-bottom: 1.5rem;
}

.form-header h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
  color: var(--magenta);
  margin-bottom: 0.8rem;
  font-weight: 800;
}

.form-header p {
  max-width: 620px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--muted);
}

.progress-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.6rem 0;
}

.progress-item {
  border: 1px solid rgba(179,38,115,0.18);
  background: var(--white);
  border-radius: 14px;
  padding: 0.9rem;
  opacity: 0.55;
  transition: all 0.3s ease;
}

.progress-item.active {
  opacity: 1;
  border-color: var(--magenta);
  background: #fff1f7;
  transform: translateY(-2px);
}

.progress-item span {
  width: 24px;
  height: 24px;
  background: #ffd6e8;
  color: var(--magenta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.progress-item p {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--deep);
}

.notice {
  border: 1px solid rgba(179,38,115,0.18);
  background: #fff1f7;
  color: #8a315f;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  font-size: 0.78rem;
  line-height: 1.7;
  margin-bottom: 1.3rem;
}

.error-box {
  border: 1px solid rgba(179,38,115,0.28);
  background: #fff1f7;
  color: #8a315f;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  font-size: 0.82rem;
  line-height: 1.7;
  margin-bottom: 1.3rem;
}

.error-box ul {
  padding-left: 1.2rem;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.mini-card {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(179,38,115,0.13);
  background: var(--white);
}

.mini-card img {
  width: 100%;
  height: 115px;
  object-fit: cover;
  display: block;
}

.mini-card p {
  padding: 0.6rem;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--deep);
}

/* FORM */
.form-card {
  background: rgba(255,252,250,0.88);
  border: 1px solid rgba(179,38,115,0.16);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(179,38,115,0.08);
}

.apply-form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.form-group.full {
  grid-column: span 2;
}

label {
  font-size: 0.68rem;
  color: var(--deep);
  font-weight: 800;
}

input,
select,
textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(179,38,115,0.25);
  border-radius: 999px;
  padding: 0.82rem 1rem;
  outline: none;
  width: 100%;
}

textarea {
  min-height: 120px;
  resize: vertical;
  border-radius: 18px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--magenta);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b32673' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.check-group {
  border: 1px solid rgba(179,38,115,0.14);
  background: #fff7fb;
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}

.check-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--magenta);
  margin-top: 2px;
  flex-shrink: 0;
}

.check-item span {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--magenta);
  color: var(--white);
  border: none;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(179,38,115,0.22);
  transition: transform 0.3s, background 0.3s;
}

.form-submit:hover {
  background: var(--deep);
  transform: translateY(-2px);
}

.form-note {
  text-align: center;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.68rem;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .apply-page {
    grid-template-columns: 1fr;
  }

  .apply-visual {
    position: relative;
    height: 78vh;
    min-height: 620px;
  }
}

@media (max-width: 768px) {
  .apply-visual {
    padding: 1.5rem;
    min-height: 680px;
  }

  .apply-content {
    padding: 2rem 1rem;
  }

  .form-row,
  .progress-grid,
  .mini-gallery {
    grid-template-columns: 1fr;
  }

  .form-group.full {
    grid-column: span 1;
  }

  .form-card {
    padding: 1.3rem;
  }

  .visual-title,
  .form-header h1 {
    letter-spacing: -0.05em;
  }
}
</style>