:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --accent: #16a34a;
  --danger: #dc2626;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Meiryo", sans-serif;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px 64px;
}

h1 { font-size: 1.5rem; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }

.lead { margin: 0 0 10px; }
.lead:last-of-type { margin-bottom: 0; }
.lead .price { color: var(--brand-dark); }

/* 「すてきな紫色」を強調（蛍光ペン風＋紫太字） */
.purple {
  color: #7c3aed;
  font-weight: 800;
  font-size: 1.18em;
  background: linear-gradient(transparent 55%, #ede9fe 55%);
  padding: 0 4px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

/* 募集締切の「以降も受付」注記 */
.notice .accept-note { color: var(--accent); font-weight: 700; font-size: 0.9em; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 8px 0; }
.req { color: var(--danger); font-size: 0.72rem; font-weight: 700; margin-left: 4px; }

/* Hero / notice */
.hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.intro-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.notice {
  list-style: none;
  margin: 12px 0 0;
  padding: 12px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}
.notice li { margin: 2px 0; }
.notice strong { color: var(--brand-dark); }

/* Guide cards (images) */
.guide { margin-bottom: 16px; }
.guide-cards { display: grid; gap: 12px; }
.guide-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.guide-card > summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  list-style: none;
}
.guide-card > summary::-webkit-details-marker { display: none; }
.guide-card > summary::after { content: "＋"; float: right; color: var(--muted); }
.guide-card[open] > summary::after { content: "－"; }
.guide-body { padding: 0 16px 16px; }
.guide-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.guide-images figure { margin: 0; }
.guide-images figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.guide-images img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fafafa;
}
.guide-images img.missing { display: none; }
.guide-sizes { font-size: 0.9rem; color: var(--muted); margin: 10px 0 0; }
.guide-link { display: inline-block; margin-top: 8px; color: var(--brand); }

/* Form blocks */
.block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

label { display: block; font-size: 0.92rem; font-weight: 600; }
input, select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.field-error { border-color: var(--danger) !important; }

.grid2 {
  display: grid;
  /* 各入力に最低 260px 確保。幅が足りなければ自動で1列に折り返す（スマホで詰まらない） */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 16px;
}

/* Item rows */
.items-head, .item-row {
  display: grid;
  grid-template-columns: 1fr 1fr 70px 36px;
  gap: 8px;
  align-items: center;
}
.items-head {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  padding: 0 2px 6px;
}
.item-row { margin-bottom: 8px; }
.item-row input, .item-row select { margin-top: 0; }
.row-remove {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  height: 40px;
  cursor: pointer;
  color: var(--danger);
  font-size: 1.1rem;
}

/* Custom dropdown（選択肢が項目のすぐ下に出る） */
.dd { position: relative; }
.dd-toggle {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
}
.dd-toggle::after { content: "▾"; color: var(--muted); flex: none; }
.dd.open .dd-toggle {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.dd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-label.dd-placeholder { color: #9ca3af; }
.dd-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  max-height: 240px;
  overflow-y: auto;
  display: none;
}
.dd.open .dd-menu { display: block; }
.dd-option { padding: 10px 12px; cursor: pointer; }
.dd-option:hover { background: #eff6ff; }
.dd-option.selected { background: #dbeafe; font-weight: 600; }

.totals {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  margin-top: 12px;
  font-size: 1.05rem;
}
.totals strong { color: var(--brand-dark); font-size: 1.2rem; }

.radios { border: none; padding: 0; margin: 0; }
.radios label { font-weight: 500; margin: 6px 0; display: flex; align-items: center; gap: 8px; }
.radios input { width: auto; margin: 0; }

.events { margin: 8px 0; padding-left: 20px; color: var(--muted); font-size: 0.9rem; }

/* Honeypot - hidden from humans */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }
.btn-secondary {
  margin-top: 4px;
  padding: 8px 14px;
  font-size: 0.92rem;
  color: var(--brand);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  cursor: pointer;
}

.submit-area { margin: 8px 0 0; }

.result { margin-top: 16px; padding: 0; }
.result.show {
  padding: 16px;
  border-radius: 10px;
}
.result.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.result.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.foot { color: var(--muted); font-size: 0.88rem; text-align: center; margin-top: 24px; }
.foot .privacy { font-size: 0.8rem; color: #9ca3af; margin-top: 6px; }
.result .sub-note { font-size: 0.85rem; opacity: 0.8; }

/* Mobile */
@media (max-width: 560px) {
  h1 { font-size: 1.3rem; }
  .item-row, .items-head { grid-template-columns: 1fr 1fr 56px 32px; gap: 6px; }
  .guide-images { grid-template-columns: 1fr; }
  .totals { justify-content: space-between; }
}
