.header {
  background: url(../img/strengths-2-1.webp) top center / cover;
  height: 435px;
  position: relative;
}

@media screen and (max-width: 768px) {
  .header {
    height: 200px;
  }
}

.page-mainV {
  margin-top: 0;
  color: #fff;
}

/* ハンバーガーメニューが開いているときにpage-mainVを非表示 */
body.menu-open .page-mainV,
body.menu-open .page-mainV__sp {
  display: none;
}

.page-mainV__inner {
  position: absolute;
  width: 100%;
  top: 26%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  text-align: center;
  padding: 32px 16px;
}

@media screen and (max-width: 768px) {
  .page-mainV__inner {
    top: 115px;
  }
}

.page-mainV__ttl-eg {
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 15px;
}

.page-mainV__ttl {
  margin-top: 40px;
  font-size: 32px;
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-weight: bold;
}

@media screen and (max-width: 600px) {
  .page-mainV__ttl {
    font-size: 16px;
    margin-top: 10px;
  }
}

.page-mainV__txt {
  margin-top: 56px;
  font-size: 14px;
  line-height: 1.8;
}

@media screen and (max-width: 768px) {
  .page-mainV__txt {
    display: none;
  }
}

/* .page-mainV__sp {
  padding-bottom: 60px;
} */
@media screen and (max-width: 600px) {
  .page-mainV__sp {
    padding-bottom: 60px;
  }
}

.page-mainV__txt-sp {
  font-size: 14px;
  line-height: 1.75;
  display: none;
}

@media screen and (max-width: 600px) {
  .page-mainV__txt-sp {
    display: block;
  }
}

.wrap {
  width: 600px;
  margin: 120px auto 0;
  color: #333;
  line-height: 120%;
  font-size: 90%;
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

@media screen and (max-width: 768px) {
  .wrap {
    margin: 60px auto 0;
  }
}

.submit_area {
  text-align: center;
  padding: 1em 0;
}

.error_messe {
  margin: 5px 0;
  color: red;
}

.form-group:not(:first-child) {
  margin-top: 32px;
}

.form-group label,
fieldset legend {
  font-weight: bold;
  margin-bottom: 0.5em;
}

.form-group .inline-label {
  font-weight: normal;
}

.form-group-label {
  margin-bottom: 16px;
}

input[type="text"],
input[type="email"],
textarea,
input[type="url"] {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0.5em;
  font-size: 1em;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 3px;
}

@media screen and (max-width: 600px) {

  .input[type="text"],
  .input[type="email"],
  .textarea,
  .input[type="url"] {
    min-height: 40px;
  }
}

textarea {
  resize: vertical;
  min-height: 223px;
}

@media screen and (max-width: 600px) {
  .textarea {
    min-height: 200px;
  }
}

/* =====================================================
通常チェックボックス
===================================================== */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 7px;
  border: 1px solid #ccc;
  background: #f9f8f6;
  cursor: pointer;
  position: relative;
  margin-right: 8px;
}

.checkbox-group-inline {
  margin-top: 14px;
}

@media screen and (max-width: 768px) {
  .checkbox-group-block {
    margin-top: 14px;
  }
}


input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background-color: #000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.required {
  color: #d00;
  font-weight: normal;
  margin-left: 0.25em;
}

.submit_area {
  margin-top: 2em;
}

/* 横並びにするためのコンテナ設定 */
.checkbox-group-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  /* チェックボックス間のスペース */
}

@media screen and (max-width: 768px) {
  .checkbox-group-inline {
    flex-direction: column;
  }
}

/* 個々のチェックボックスラベル設定 */
.checkbox-group-inline .inline-label {
  display: inline-flex;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .wrap {
    width: 95%;
  }

  form#myForm {
    max-width: 100%;
    padding: 0;
  }

  .form-group,
  fieldset.form-group {
    margin-bottom: 1.5em;
  }

  .form-group label,
  fieldset legend {
    font-size: 1.1em;
    margin-bottom: 0.5em;
  }

  input[type="text"],
  input[type="email"],
  textarea,
  input[type="url"] {
    font-size: 1.1em;
    padding: 0.75em;
  }

  .checkbox-group label {
    display: inline-block;
    margin-right: 1.5em;
    font-size: 1em;
    padding-left: 0.25em;
    cursor: pointer;
  }

  .privacy-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .privacy-group input[type="checkbox"] {
    margin-bottom: 0.5em;
  }

  .submit_area input[type="submit"] {
    width: 100%;
    padding: 1em;
    font-size: 1.2em;
    cursor: pointer;
  }
}

/* =====================================================
プライバシーポリシーエリア
===================================================== */
.privacy-policy {
  max-width: 600px;
  margin: 40px auto;
  font-size: 14px;
  color: #333;
  line-height: 1.8;
}

.scroll-box {
  max-height: 200px;
  overflow-y: auto;
  padding: 20px;
  border: 1px solid #ccc;
  background: #f9f8f6;
  border-radius: 2px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.scroll-box::-webkit-scrollbar {
  width: 6px;
}

.scroll-box::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

.privacy-ttl {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  text-align: center;
}

.scroll-box h4 {
  margin: 16px 0 8px;
  text-decoration: underline;
}

.scroll-box p {
  margin-bottom: 12px;
}

/* =====================================================
プライバシー同意チェック専用
===================================================== */
.privacy-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px auto 0;
  font-size: 14px;
  padding: 0 16px;
}

.privacy-group input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.privacy-group label {
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  user-select: none;
  margin: 0 auto;
  font-family: "Noto Sans JP", sans-serif;
}

.privacy-group label::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #333;
  border-radius: 2px;
  background: #fff;
  transition: all 0.2s ease;
  transform: translateY(-2.5px);
}

.privacy-group label::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 15%;
  width: 7px;
  height: 15px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg) scale(0) translateY(-2.5px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.privacy-group input[type="checkbox"]:checked+label::before {
  border-color: #333;
  background: #e6f4f2;
}

.privacy-group input[type="checkbox"]:checked+label::after {
  transform: rotate(45deg) scale(1) translateY(-3.5px);
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .privacy-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .privacy-group label {
    padding-left: 28px;
    font-size: 1rem;
  }
}

/* =====================================================
エラー表示
===================================================== */
input.error,
textarea.error {
  border: 1px solid #922e41;
}

.error_messe {
  margin-top: 4px;
  color: #922e41;
  font-size: 13px;
}

input:invalid {
  box-shadow: none;
}

/* エラー時の赤枠 */
input.error {
  border: 1px solid #e60033;
}

/* エラーメッセージ */
.error-text {
  color: #e60033;
  font-size: 0.9em;
  margin-top: 4px;
  display: none;
}

.error-text.active {
  display: block;
}

/* 確認ページ専用フォームデザイン */
body.confirm form {
  background: #fff;
  padding: 80px;
}

@media screen and (max-width: 768px) {
  body.confirm form {
    padding: 50px 30px;
  }
}

/* 確認ページ内のラベルやテキスト調整 */
body.confirm .form_answer-wrap {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

body.confirm .page-mainV__sp {
  text-align: center;
}

body.confirm .submit_area {
  margin-top: 40px;
  text-align: center;
}

body.confirm .submit_area input[type="submit"],
body.confirm .submit_area input[type="button"] {
  width: 600px;
  margin: 0 auto;
  height: 56px;
  border: none;
  border-radius: 28px;
  font-size: 1.1em;
  cursor: pointer;
  font-weight: bold;
  overflow: hidden;
  transition: 0.3s ease;
}

@media screen and (max-width: 768px) {

  body.confirm .submit_area input[type="submit"],
  body.confirm .submit_area input[type="button"] {
    width: 90%;
    max-width: 600px;
    box-sizing: border-box;
    transition: 0.3s ease;
  }

  body.confirm .submit_area {
    overflow-x: hidden;
  }
}

/* 「送信する」ボタン */
body.confirm .submit_area input[type="submit"] {
  background: #333;
  color: #fff;
  transition: 0.3s ease;
}

/* 「入力内容を変更する」ボタン */
body.confirm .submit_area input[type="button"] {
  background: #fff;
  color: #333;
  margin-top: 32px;
  border: 1px solid #ccc;
  transition: 0.3s ease;
}

/* hover効果 */
body.confirm .submit_area input[type="submit"]:hover {
  background: #000;
  color: #fff;
}

body.confirm .submit_area input[type="button"]:hover {
  background: #000;
  color: #fff;
}

/* --- 確認ボタン（初期：無効） --- */
.submit_area input[type="submit"] {
  width: 600px;
  height: 56px;
  border: none;
  border-radius: 28px;
  background: #bbb;
  color: #fff;
  font-size: 1.1em;
  cursor: not-allowed;
  transition: 0.3s ease, color 0.3s ease;
}

/* --- 有効時（全項目入力済） --- */
.submit_area input[type="submit"].active {
  background: #000;
  color: #fff;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .submit_area input[type="submit"] {
    width: 90%;
  }
}

.confirm-page {
  max-width: 600px;
  margin: 0 auto;
}

.confirm-page .submit_area {
  text-align: center;
  margin-top: 32px;
}

.send .en {
  font-size: 16px;
  text-align: center;
  font-family: "crimson text", sans-serif;
}

@media screen and (max-width: 600px) {
  .send .en {
    font-size: 14px;
  }
}

.send .ttl {
  margin-top: 20px;
  font-size: 32px;
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-weight: bold;
}

@media screen and (max-width: 600px) {
  .send .ttl {
    font-size: 16px;
    margin-top: 10px;
  }
}

.send .txt {
  font-size: 14px;
  margin-top: 60px;
}

@media screen and (max-width: 768px) {
  .send .ttl {
    font-size: 20px;
  }

  .send .txt {
    font-size: 14px;
  }
}