/* ============================================================
   記念日フラワー便 — 共通スタイル
   ============================================================ */

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

:root {
  --color-pink: #d63384;
  --color-pink-soft: #ff6b6b;
  --color-green: #28a745;
  --color-green-soft: #20c997;
  --color-purple: #667eea;
  --color-purple-soft: #764ba2;
  --color-blue: #0066cc;
  --color-text: #333;
  --color-muted: #666;
  --color-border: #ddd;
  --color-bg: #f9f9f9;
}

body {
  font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.7;
  padding: 10px;
}

.container {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

h1 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 32px;
  line-height: 1.4;
  color: var(--color-pink);
}
.theme-annual h1 { color: var(--color-green); }
.theme-purple h1 { color: var(--color-purple); }

.subtitle {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 25px;
  font-size: 20px;
}

.highlight {
  background: linear-gradient(135deg, var(--color-pink-soft), #feca57);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
  font-size: 20px;
}
.theme-annual .highlight {
  background: linear-gradient(135deg, var(--color-green), var(--color-green-soft));
}

.section-title {
  background: linear-gradient(135deg, var(--color-pink), var(--color-pink-soft));
  color: white;
  padding: 18px 20px;
  border-radius: 12px;
  margin: 30px 0 20px 0;
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-annual .section-title {
  background: linear-gradient(135deg, var(--color-green), var(--color-green-soft));
}

/* ----- アコーディオン ----- */
.accordion-item {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
}
.accordion-header {
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
}
.accordion-header h3 {
  margin: 0;
  color: var(--color-pink);
  font-size: 20px;
  font-weight: bold;
}
.theme-annual .accordion-header h3 { color: var(--color-green); }
.accordion-icon {
  font-size: 28px;
  color: var(--color-pink);
  transition: transform 0.3s;
}
.theme-annual .accordion-icon { color: var(--color-green); }
.accordion-item.active .accordion-icon { transform: rotate(180deg); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: white;
}
.accordion-item.active .accordion-content {
  max-height: 2000px;
  transition: max-height 0.5s ease-in;
}
.accordion-body { padding: 25px; line-height: 1.9; color: #555; font-size: 18px; }
.accordion-body h4 { color: var(--color-pink); margin: 20px 0 12px; font-size: 20px; }
.theme-annual .accordion-body h4 { color: var(--color-green); }
.accordion-body h4:first-child { margin-top: 0; }
.accordion-body ul { margin: 12px 0; padding-left: 25px; }
.accordion-body li { margin-bottom: 12px; }

/* ----- コース情報 ----- */
.course-info {
  background: #fff3cd;
  border: 2px solid #ffeaa7;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
}
.theme-annual .course-info {
  background: #e8f5e8;
  border-color: #c3e6cb;
}
.course-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px dotted #ddd;
}
.course-item:last-child { border-bottom: none; }
.original-price { text-decoration: line-through; color: #999; margin-right: 12px; font-size: 16px; }
.discount-price { color: var(--color-pink); font-weight: bold; font-size: 20px; }
.theme-annual .discount-price { color: var(--color-green); }

/* ----- フォーム ----- */
.form-group { margin-bottom: 25px; }
label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #555;
  font-size: 20px;
}
.required { color: var(--color-pink); }
.theme-annual .required { color: var(--color-green); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 18px;
  border: 3px solid var(--color-border);
  border-radius: 10px;
  font-size: 20px;
  font-family: inherit;
  min-height: 60px;
  transition: border-color 0.3s;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-pink);
}
.theme-annual input:focus, .theme-annual select:focus { border-color: var(--color-green); }
input[readonly] { background-color: #f0f0f0; cursor: not-allowed; }

select {
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23d63384" d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 30px;
  padding-right: 50px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding: 18px;
  background: #e7f3ff;
  border: 2px solid #b3d9ff;
  border-radius: 10px;
  cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  min-height: auto;
}
.checkbox-group label {
  margin-bottom: 0;
  cursor: pointer;
  font-size: 20px;
  color: var(--color-blue);
  font-weight: bold;
}

.delivery-section {
  background: #f0f8ff;
  border: 2px solid #b3d9ff;
  border-radius: 12px;
  padding: 25px;
  margin-top: 20px;
}

.submit-btn {
  background: linear-gradient(135deg, var(--color-pink), var(--color-pink-soft));
  color: white;
  padding: 22px 30px;
  border: none;
  border-radius: 12px;
  font-size: 24px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  margin-top: 30px;
  min-height: 70px;
  transition: all 0.3s;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(214,51,132,0.4); }
.submit-btn:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }
.theme-annual .submit-btn {
  background: linear-gradient(135deg, var(--color-green), var(--color-green-soft));
}
.theme-purple .submit-btn {
  background: linear-gradient(135deg, var(--color-purple), var(--color-purple-soft));
}

.message {
  margin-top: 20px;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 20px;
}
.success { background: #d4edda; border: 2px solid #c3e6cb; color: #155724; }
.error   { background: #f8d7da; border: 2px solid #f5c6cb; color: #721c24; }

.zip-helper { font-size: 16px; color: var(--color-muted); margin-top: 8px; }
.address-loading { font-size: 18px; color: var(--color-pink); margin-top: 8px; display: none; }
.payment-info {
  margin-top: 12px;
  padding: 18px;
  background: #fff3cd;
  border: 2px solid #ffeaa7;
  border-radius: 10px;
  font-size: 18px;
  color: #856404;
  display: none;
}

.version-info {
  text-align: center;
  font-size: 14px;
  color: #999;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.theme-link {
  display: inline-block;
  text-align: center;
  margin: 0 auto 20px;
  padding: 10px 20px;
  border: 2px solid var(--color-green);
  color: var(--color-green);
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
}
.theme-link.pink { border-color: var(--color-pink); color: var(--color-pink); }

.loading {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: var(--color-purple);
}
.error-box {
  background: #f8d7da;
  border: 2px solid #f5c6cb;
  color: #721c24;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin: 20px 0;
}

@media (min-width: 768px) {
  body { padding: 20px; }
  .container { padding: 40px; }
  h1 { font-size: 36px; }
}
