body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #eaf5e9;
  margin: 0;
  padding: 20px;
}

.form-container {
  max-width: 652px;
  margin: auto;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 3px solid #b9e4bc;
}

.form-header {
  text-align: center;
  margin-bottom: 16px;
}

.ribbon {
  display: inline-block;
  background: #f6e5b9;
  color: #7a3600;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 6px;
  font-size: 1rem;
}

.ribbon .highlight {
  color: #d40000;
}

.sub-text {
  margin-top: 6px;
  color: #444;
  font-size: 0.95rem;
}

.form-title {
  font-size: 1.4rem;
  text-align: center;
  color: #184b38;
  border-bottom: 2px dashed #7ed957;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #219150;
  margin-bottom: 10px;
}

.input-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.input-row label {
  font-weight: bold;
  margin-bottom: 4px;
  color: #184b38;
}

.input-row input {
  padding: 8px;
  border: 1px solid #cbe8cc;
  border-radius: 6px;
  background: #f8fff8;
  font-size: 1rem;
}

.input-row input[readonly] {
  background: #f0f8f0;
  color: #555;
}

.service-box {
  border: 1px solid #d9e9d9;
  border-radius: 10px;
  padding: 12px;
  background: #f9fff9;
}

.service-name {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.service-detail > div {
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #333;
}

.button-wrapper {
  text-align: center;
  margin-top: 24px;
}

.submit-btn {
  background: linear-gradient(90deg, #43a047, #7ed957);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 36px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 3px 10px rgba(67,160,71,0.25);
}

.submit-btn:hover {
  background: linear-gradient(90deg, #388e3c, #43a047);
}

.submit-btn:disabled {
  background: #b9e4bc;
  cursor: not-allowed;
}

.note {
  font-size: 0.85rem;
  color: #444;
  text-align: center;
  margin-top: 18px;
}

.terms-wrapper {
  font-size: 0.92rem;
  color: #184b38;
  text-align: center;
  margin: 12px 0 8px;
}

.terms-wrapper input[type="checkbox"] {
  margin-right: 6px;
  transform: scale(1.2);
}

.terms-wrapper a {
  color: #217a3b;
  text-decoration: underline;
  font-weight: bold;
}

.br-sp {
  display: none;
}

@media (max-width: 600px) {
  .br-sp {
    display: block;
  }

  .service-name {
    font-size: 1rem;
  }

  .lp-modal-content {
    border-radius: 12px;
    width: 96vw;
    max-width: 96vw;
    min-height: unset;
    max-height: 90vh;
    padding: 14px 2vw 10px 2vw;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    position: fixed;
    box-sizing: border-box;
  }
  .form-container {
    padding: 0;
    box-shadow: none;
    border-radius: 0;
  }
  .tmodal_bg {
    height: 100vh;
  }
}

.lp-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 64, 32, 0.25);
  z-index: 10;
  display: none; /* 初期は非表示 */
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  transition: background 0.2s;
}

.lp-modal-content {
  background: #f6fff7;
  border-radius: 18px;
  box-shadow: 0 4px 24px #b6e2c1;
  padding: 36px 28px 28px 28px;
  max-width: 480px;
  width: 95vw;
  max-height: 95vh;
  overflow-y: auto;
  margin: 0 auto;
  animation: lpModalFadeIn 0.25s;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  position: fixed;
}

.lp-modal-close {
  position: absolute;
  top: 5px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #219150;
  cursor: pointer;
  z-index: 100;
  transition: color 0.15s;
  line-height: 1;
  padding: 0 8px;
}

.lp-modal-close:hover {
  color: #43a047;
  background: #e8f5e9;
  border-radius: 50%;
}

.lp-modal-open {
  overflow: hidden !important;
  height: 100vh !important;
  position: relative !important;
}

@keyframes lpModalFadeIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 30px));}
  to   { opacity: 1; transform: translate(-50%, -50%);}
}