/* Cute, kid-friendly, light-blue theme */
:root {
  --bg: #e9f6ff;
  --panel: #ffffff;
  --primary: #4fb3ff;
  --accent: #ff9bc1;
  --text: #203040;
  --muted: #6b7b8c;
  --ok: #2f9e44;
  --warn: #e8590c;
  --error: #d9480f;
  --sun: #ffd866;
  --grass: #b2f2bb;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'M PLUS Rounded 1c', 'Kosugi Maru', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, #f7fbff, var(--bg) 60%),
    radial-gradient(1000px 500px at 120% 10%, #f7fbff, var(--bg) 60%),
    linear-gradient(180deg, var(--bg) 0%, #f0fbff 70%, #e0f7ff 100%);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.fs14{ font-size: 14px; }

.container {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}

.header {
  background: linear-gradient(135deg, #b3e5ff, #d9f1ff);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  position: relative;
}

.header h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3.2vw, 32px);
  color: #135c8a;
  letter-spacing: 0.02em;
}

.header p { margin: 0; color: var(--muted); letter-spacing: 0.01em; }

/* playful elements */
.header::after {
  content: '';
  position: absolute;
  right: 16px;
  top: -20px;
  width: 120px; height: 120px;
  background:
    radial-gradient(circle at 30% 30%, #fff 0 12px, transparent 13px),
    radial-gradient(circle at 60% 50%, #fff 0 8px, transparent 9px),
    radial-gradient(circle at 80% 25%, #fff 0 6px, transparent 7px);
  opacity: .8;
}
.skyline {
  position: absolute; inset: auto 0 -12px 0; height: 12px;
  background: linear-gradient(0deg, var(--grass), transparent 80%);
  border-radius: 0 0 16px 16px;
}

.card {
  background: var(--panel);
  border-radius: 16px;
  padding: 20px;
  margin-top: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.section-title {
  font-weight: 700;
  color: #135c8a;
  margin: 12px 0 8px;
  letter-spacing: 0.02em;
  font-size: clamp(16px, 2.2vw, 20px);
}

form .grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px 16px;
}
/* make grid children full-width by default (fix narrow selects on mobile) */
form .grid > * { grid-column: span 12; }

.field { grid-column: span 12; }
@media (min-width: 720px) {
  .md-6 { grid-column: span 6; }
  .md-4 { grid-column: span 4; }
  .md-8 { grid-column: span 8; }
}

label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #d6ecff;
  border-radius: 12px;
  background: #fcfeff;
  transition: 0.15s ease;
  font-size: 16px;
}
/* placeholder sample text in light gray */
input::placeholder, textarea::placeholder { color: #9aa8b6; opacity: 1; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,179,255,0.25);
}

.hint { font-size: 12px; color: var(--muted); }
.req { color: var(--accent); font-weight: 700; margin-left: 4px; }
.actions { margin-top: 8px; display: flex; gap: 12px; align-items: center; }

.btn {
  appearance: none;
  border: 0;
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(79,179,255,0.35);
  transition: transform 0.06s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(79,179,255,0.45); }
.btn:active { transform: translateY(0); }

.note {
  background: #fff3cd;
  color: #7a5d00;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ffe69c;
}

.footer { color: var(--muted); font-size: 12px; text-align: center; margin: 20px 0; }

/* dividers and badges */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 8px;
}
.divider .line { flex: 1; height: 2px; background: linear-gradient(90deg, transparent, #bfe5ff, transparent); }
.divider .label {
  background: #fff;
  border: 2px solid #bfe5ff;
  color: #135c8a;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

/* fun emoji headings */
.emoji-title { font-size: 18px; font-weight: 800; color: #135c8a; }
.emoji-title .emo { margin-right: 6px; }

/* confirm table */
.confirm-list { list-style: none; padding: 0; margin: 0; }
.confirm-list li { padding: 10px 0; border-bottom: 1px dashed #cfe9ff; }
.confirm-list .k { color: var(--muted); display: block; font-size: 12px; }
.confirm-actions { display: flex; gap: 12px; margin-top: 16px; }
.btn.secondary { background: #ffd166; color: #5a3d00; box-shadow: 0 8px 18px rgba(255,209,102,0.35); }

/* tables */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e6f3ff; font-size: 14px; }
.table thead th { position: sticky; top: 0; background: #f2f9ff; color: #155a88; z-index: 1; }
.table tbody tr:nth-child(odd) { background: #fcfeff; }
.table tbody tr:hover { background: #f7fbff; }

/* validation */
.field.error input,
.field.error select,
.field.error textarea {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255,107,107,0.18);
}
.error-msg { color: #d9480f; font-size: 12px; margin-top: 4px; }

/* Responsive refinements */
@media (max-width: 1024px) {
  .container { padding: 0 14px; }
  .card { padding: 18px; }
}

@media (max-width: 768px) {
  .container { padding: 0 12px; }
  .header { padding: 18px; }
  .card { padding: 16px; border-radius: 14px; }
  .actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; padding: 14px 18px; }
  .tags li { font-size: 12px; padding: 5px 9px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; line-height: 1.8; }
  .header h1 { margin-bottom: 6px; }
  .section-title { margin-top: 10px; }
  label { font-size: 14px; }
  input[type="text"], input[type="email"], input[type="tel"], select, textarea { font-size: 16px; padding: 10px 12px; }
  .divider { margin: 16px 0 6px; }
  .overview .badge { padding: 5px 10px; }
}

/* refined typography */
h2.title { font-size: clamp(18px, 2.6vw, 26px); margin: 0 0 8px; letter-spacing: 0.02em; }
h3.sub { font-size: clamp(14px, 2vw, 18px); color: #155a88; margin: 12px 0 6px; letter-spacing: 0.02em; }
.lead { margin: 6px 0 10px; color: #2a4257; }

/* overview area */
.overview { position: relative; overflow: hidden; border: 2px dashed #bfe5ff; background: linear-gradient(180deg, #ffffff, #fbfeff); }
.overview .badge {
  display: inline-block; background: #fff; border: 2px solid #bfe5ff; color: #135c8a; padding: 6px 12px; border-radius: 999px; font-weight: 800; margin-bottom: 8px;
}
.overview::after {
  content: '';
  position: absolute; right: -20px; bottom: -20px; width: 160px; height: 160px;
  background:
    radial-gradient(circle at 30% 30%, #e6f6ff 0 30px, transparent 31px),
    radial-gradient(circle at 70% 60%, #e6f6ff 0 20px, transparent 21px);
  opacity: .6;
}

.tags { list-style: none; padding: 0; margin: 8px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: #eaf7ff; color: #135c8a; padding: 6px 10px; border-radius: 999px; border: 1px solid #cfe9ff; font-weight: 700; font-size: 13px; }

.icon-list { padding-left: 0; list-style: none; }
.icon-list li { position: relative; padding-left: 28px; margin: 8px 0; }
.icon-list li::before { content: '★'; position: absolute; left: 6px; top: 2px; color: var(--accent); }
.icon-list.warn li::before { content: '⚠'; color: #ffae00; }

/* specific gaps for birth select groups */
.birth-grid { gap: 8px 8px; }

/* チェックボックスグループのスタイル */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.checkbox-label:hover {
  background-color: #f7fbff;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-label span {
  font-weight: 500;
  color: var(--text);
}

/* ご参加にあたってのお願いセクション */
.attention-section {
  background: linear-gradient(135deg, #fff8e1, #fffbf0);
  border: 2px solid #ffb74d;
  border-radius: 12px;
  position: relative;
}

.attention-section::before {
  content: '⚠️';
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  opacity: 0.7;
}

.attention-title {
  font-weight: 700;
  color: #e65100;
  margin: 8px 0 12px;
  font-size: 16px;
  padding: 8px 12px;
  background: rgba(255, 152, 0, 0.1);
  border-radius: 6px;
  border-left: 4px solid #ff9800;
}

.attention-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.attention-list li {
  position: relative;
  padding: 6px 0 6px 20px;
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.attention-list li::before {
  content: '•';
  position: absolute;
  left: 6px;
  top: 6px;
  color: #ff9800;
  font-weight: bold;
  font-size: 16px;
}

@media (max-width: 768px) {
  .attention-section::before {
    top: 12px;
    right: 12px;
    font-size: 20px;
  }
  
  .attention-title {
    font-size: 14px;
  }
  
  .attention-list li {
    font-size: 13px;
    padding: 4px 0 4px 18px;
  }
  
  .attention-list li::before {
    left: 4px;
    font-size: 14px;
  }
}
