* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background: #fff;
  color: #333;
}

.heading-section {
  background-color: #e7e7e7;
  color: #333;
}

.hero {
  width: 100%;
  max-width: 100%;
  display: block;
  height: auto;
  margin-bottom: 50px;
}

.video-box {
  background-color: #ffffff;
  max-width: 100%;
}

.video-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* 動画側 */
.video-col-left {
  flex: 3;
  min-width: 280px;
}

.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
}

.video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 説明文側 */
.video-col-right {
  flex: 2;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0;
}

.video-col-right h5 {
  color: #1e73be;
}

.form-section {
  padding: 4rem 2rem;
  min-height: 700px;
  width: 100%;
}

.form-section .form-control {
  height: 50px;
  font-size: 1.1rem;
}

.form-section textarea.form-control {
  height: auto;
  min-height: 120px;
}

.form-section .form-check {
  margin-bottom: 0.75rem;
}

.col-form-label-top {
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  line-height: 1.5;
}

.form-control::placeholder {
  color: #aaa;
  opacity: 1;
}

.custom-submit-btn {
  background-color: #d15b5b;
  border: 1px solid #a74949;
  color: #fff;
  font-size: 1.1rem;
  padding: 0.75rem 2.5rem;
  border-radius: 4px;
  min-width: 260px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.custom-submit-btn:hover {
  background-color: #b64848;
  border-color: #923838;
  color: #fff;
}

.custom-back-btn {
  background-color: #ddd;
  border: 1px solid #ccc;
  color: #333;
  font-size: 1.1rem;
  padding: 0.75rem 2.5rem;
  border-radius: 4px;
  min-width: 260px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.custom-back-btn:hover {
  background-color: #ccc;
  border-color: #bbb;
  color: #111;
}

.custom-line-btn {
  background-color: #06C755;
  border: 1px solid #06C755;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  min-width: 210px;
}

.custom-line-btn:hover {
  background-color: #05b24f;
  border-color: #05b24f;
  color: #fff;
}

.policy-links a {
  color: #333;
}

.policy-links a:hover {
  color: #1e73be;
}

.line-qr {
  width: 250px;
  max-width: 250px;
}

.fixed-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  padding: 10px 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1040;
  text-align: center;
}

.fixed-register-btn {
  background-color: #ffffff;
  color: #39905c;
  border: 2px solid #39905c;
  font-size: 1.2rem;
  padding: 0.6rem 2.8rem;
  border-radius: 6px;
  min-width: 260px;
  z-index: 1051;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.fixed-register-btn:hover {
  background-color: #39905c;
  color: #ffffff;
}

/* --------------------------
   スマホ（幅576px以下）対応
-------------------------- */
@media (max-width: 576px) {
  body {
    font-size: 16px;
  }

  .container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .hero {
    margin-bottom: 30px;
  }

  .form-section {
    padding: 2rem 1rem;
  }

  .form-section .row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
  }

  .form-section label {
    text-align: left !important;
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .form-section .row > [class^="col-sm"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: unset !important;
    padding-left: 0;
    padding-right: 0;
  }

  .form-section input:not([type="checkbox"]):not([type="radio"]),
  .form-section textarea {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1.2rem;
    padding: 1rem;
    height: auto !important;
  }

  .form-section textarea {
    font-size: 1.2rem;
    padding: 1rem;
  }

  .form-section .d-flex.gap-2,
  .form-section .d-flex.align-items-center.gap-2,
  .form-section .d-flex.gap-3,
  .form-section .d-flex.align-items-center.gap-3 {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  /* 電話番号だけは横並び維持 */
  .form-section .row.tel-row .d-flex {
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
  }

  .form-section .row.tel-row input {
    flex: 1;
    max-width: 110px !important;
  }

  /* チェックボックス・ラジオボタンを拡大 */
  .form-section .form-check-input {
    width: 1.5em;
    height: 1.5em;
    margin-top: 0.2em;
    cursor: pointer;
    transform: scale(1.3);
  }

  .form-section .form-check-label {
    font-size: 1.1rem;
    padding-left: 0.5rem;
    cursor: pointer;
  }

  .custom-submit-btn,
  .fixed-register-btn {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    width: 100%;
    min-width: unset;
  }

  .video-col-left,
  .video-col-right {
    flex: 100%;
    min-width: 100%;
  }

  .video-col-right {
    padding-top: 0;
  }
}
