:root {
  --coral:      #FF6B6B;
  --turquoise:  #4ECDC4;
  --sunshine:   #FFE66D;
  --hibiscus:   #FF8FAB;
  --ocean:      #1A535C;
  --cream:      #FFF9F0;
  --warm-white: #FFFDF7;
}

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

body {
  background: var(--cream);
  font-family: 'Zen Maru Gothic', sans-serif;
  color: #333;
  min-height: 100vh;
}

/* ===== HEADER ===== */
.page-header {
  background: var(--ocean);
  color: #fff;
  text-align: center;
  padding: 40px 24px 32px;
}

.page-header .event-name {
  font-family: 'Kaisei Decol', serif;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  margin-bottom: 8px;
}

.page-header .event-date {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===== MAIN ===== */
main {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ===== FORM CARD ===== */
.form-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.form-card h2 {
  font-family: 'Kaisei Decol', serif;
  font-size: 1.5rem;
  color: var(--ocean);
  margin-bottom: 8px;
}

.form-lead {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ===== FORM FIELDS ===== */
.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #444;
}

.field label .required {
  color: var(--coral);
  margin-left: 4px;
  font-size: 0.75rem;
}

.field input[type="text"],
.field input[type="email"],
.field select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8e0d8;
  border-radius: 10px;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1rem;
  color: #333;
  background: var(--cream);
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
  -webkit-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='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field select:focus {
  border-color: var(--turquoise);
  background-color: #fff;
}

.field-note {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #888;
}

/* ===== RADIO CARDS ===== */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid #e8e0d8;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--cream);
}

.radio-card:has(input:checked) {
  border-color: var(--coral);
  background: #fff5f5;
}

.radio-card input[type="radio"] {
  accent-color: var(--coral);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.radio-label {
  flex: 1;
}

.radio-label .radio-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #333;
}

.radio-label .radio-desc {
  font-size: 0.8rem;
  color: #888;
  margin-top: 2px;
}

.radio-label .radio-price {
  font-weight: 700;
  color: var(--coral);
  font-size: 1rem;
}

/* ===== DIVIDER ===== */
.field-divider {
  border: none;
  border-top: 1px dashed #e0d8d0;
  margin: 8px 0 24px;
}

/* ===== SUBMIT BUTTON ===== */
.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--coral);
  color: #fff;
  font-family: 'Kaisei Decol', serif;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 107, 107, 0.5);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== MESSAGES ===== */
.msg {
  display: none;
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.msg.error {
  background: #fff0f0;
  border: 1px solid #ffb3b3;
  color: #c0392b;
}

/* ===== TRANSFER INFO ===== */
#transfer-info {
  display: none;
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  margin-top: 24px;
}

#transfer-info h3 {
  font-family: 'Kaisei Decol', serif;
  color: var(--ocean);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

#transfer-info p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

.transfer-detail {
  background: var(--cream);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.transfer-detail dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
}

.transfer-detail dt {
  font-size: 0.8rem;
  color: #888;
  font-weight: 700;
  white-space: nowrap;
}

.transfer-detail dd {
  font-size: 0.95rem;
  color: #333;
  font-weight: 700;
}

.transfer-amount {
  font-size: 1.2rem;
  color: var(--coral);
}

.transfer-note {
  font-size: 0.8rem;
  color: #999;
  line-height: 1.7;
}

/* ===== LEGAL TABLE ===== */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #ede6dc;
  vertical-align: top;
  line-height: 1.7;
  text-align: left;
}

.legal-table th {
  width: 38%;
  color: #888;
  font-weight: 700;
  white-space: nowrap;
}

.legal-table td {
  color: #333;
}

/* ===== BACK LINK ===== */
.back-link {
  display: block;
  text-align: center;
  margin-top: 32px;
  color: var(--ocean);
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0.7;
}

.back-link:hover { opacity: 1; }

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 24px;
  font-size: 0.75rem;
  color: #aaa;
  line-height: 2;
}

.legal-link {
  color: #aaa;
  text-decoration: underline;
}

.legal-link:hover { color: var(--ocean); }

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  main { padding: 24px 16px 60px; }

  .form-card { padding: 24px 16px; }
  .form-card h2 { font-size: 1.3rem; }

  #transfer-info { padding: 24px 16px; }

  /* radio-cardの価格を右端固定からラップ許容へ */
  .radio-card { flex-wrap: wrap; }
  .radio-label .radio-price {
    margin-left: auto;
    font-size: 1rem;
  }

  /* submit button */
  .btn-submit { font-size: 1rem; padding: 14px; }
}
