/* =========================================
   フォント読み込み
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap');

/* =========================================
   ベース設定
========================================= */
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17px;
  letter-spacing: 0.08em;
  color: #333333;
}

/* =========================================
   上部（ヘッダー画像エリア）
========================================= */
.form-top .form-top-left {
  display: none;
}

/* padding-bottom は (画像の高さ ÷ 幅) × 100 */
.form-top {
  padding-bottom: 40%;
  background: url("https://d27rnpuamwvieu.cloudfront.net/0C0Wkgt1HRDjdgUbaKv9KWQXX/1040")
    center / cover no-repeat;
}

/* =========================================
   背景エリア
========================================= */
.form-bottom {
  background-color: #fff; /* ←必要に応じて変更 */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding-top: 20px;
}

.form-editor {
  background-color: #ffffff; /* ←必要に応じて変更 */
  border-radius: 10px;
  padding: 0;
  animation: fadeUpAnime 1.8s forwards;
  opacity: 1;
}

/* フェードアニメーション */
@keyframes fadeUpAnime {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   見出し
========================================= */
.description-md-title {
  display: flex;
  justify-content: center;
  color: #fff;
  background: #0D343E;
  padding: 0.3em 0;
  margin: 0 auto;
}

/* 中見出し */
h4 {
  background-color: #0D343E !important;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 22px;
  font-weight: bold;
  color: #fff !important;
  text-align: center;
  margin-top: 30px !important;
  position: relative;
}

/* 子見出し */
.description-title {
  font-size: 17px;
  font-weight: 600;
}

h5 {
  font-family: 'Noto Sans JP', sans-serif;
  position: relative;
  display: inline-block;
  padding: 0;
  text-align: left;
}

/* 子見出しの下に下線 */
h5:after {
  content: "";
  display: block;
  height: 4px;
  width: 110%; /* 少し長くする */
  background: -webkit-linear-gradient(to right, rgb(12,52,62), transparent);
  background: linear-gradient(to right, rgb(12,52,62), transparent);
  background: linear-gradient(135deg, rgb(42, 117, 76) 0%, rgb(140, 204, 127)50% rgb(140, 204, 127, 0) 100%);
}


/* =========================================
   フォーム内項目
========================================= */
.control-label {
  color: #0D343E;
  width: 100%;
}

/* 項目名の前のアイコン */
.control-label:before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url(https://d27rnpuamwvieu.cloudfront.net/0qXzuh8QX4rzUyJAw5bsPLgXX/normal);
  background-size: contain;
  vertical-align: middle;
  margin-top: -4px;
}

.form-group {
  margin-bottom: 30px;
}

.text-break {
  line-height: 2em;
  margin: 0 auto;
}

p {
  margin: 0 0 20px;
}

.description-image {
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  width: 100%;
  object-fit: cover;
}

.description-image img {
  width: 100%;
}

/* 必須ラベル */
.label-danger {
  background-color: #0D343E;
  font-size: 0.7em;
  font-weight: normal;
}

/* 注意書き右寄せ */
.help-block {
  text-align: right;
}

/* =========================================
   グリッド調整
========================================= */
.col-xs-4 {
  display: none;
}

.col-sm-6,
.col-sm-8,
.col-sm-4 {
  width: 100%;
}

/* =========================================
   チェック・ラジオボタンカラー
========================================= */
.has-success .control-label,
.has-success .help-block,
.has-success .checkbox label,
.has-success .radio label {
  color: #333 !important;
}

.radio input[type=radio]:checked::after {
  border-color: #0D343E !important;
}

.radio input[type=radio]:before {
  background-color: #0D343E !important;
}

.checkbox input[type=checkbox]:checked::after {
  background-color: #0D343E !important;
  border-color: #0D343E !important;
}

/* =========================================
   ボタン（お申し込みはこちら・送信）
========================================= */
.btn {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: bold;
  display: block;
  width: 100%;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  background-color: #0D343E;
  border: #0D343E thin solid;
  overflow: hidden;
  margin: 0 auto 40px !important;
  position: relative;
}

.btn:hover {
  background-color: #C0A650;
  border: #C0A650 thin solid;
}

/* 光るアニメーション */
.btn::after {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 50px;
  height: 50px;
  background-image: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 10%,
    rgba(255, 255, 255, 1) 100%,
    rgba(255, 255, 255, 0) 0%
  );
  animation: shiny 3s ease-in-out infinite;
}

/* shinyアニメーション */
@keyframes shiny {
  0% {
    transform: scale(0) rotate(25deg);
    opacity: 0;
  }
  50% {
    transform: scale(1) rotate(25deg);
    opacity: 1;
  }
  100% {
    transform: scale(50) rotate(25deg);
    opacity: 0;
  }
}

/* =========================================
   テキストボックスフォーカス時
========================================= */
.form-control:focus,
.has-success .form-control,
.has-success .form-control:focus {
  border-color: #0D343E;
  outline: 0;
  box-shadow:
    inset 0 1px 1px rgba(0, 0, 0, .075),
    0 0 8px rgba(100, 100, 50, .6);
}

/* ========================================
▼ 個別の装飾 ▼
=========================================*/
/* 年齢欄に歳をつける */
.form-editor>div:nth-child(4) .col-sm-8 {
    position: relative;
}

.form-editor>div:nth-child(4) .col-sm-8:after {
    position: absolute;
    top: 0.6rem;
    left: 8.5rem;
    font-size: 1.6rem;
    content: '歳';
}

/* 欄を小さくする */
.form-editor>div:nth-child(4) .form-control {
    width: 6rem;
}

/* ベーシックプランの背景をグレーにする */
.form-editor > div:nth-child(3) h4 {
  background: 	#333333 !important;
}

/* プライムプランの背景を青にする */
.form-editor > div:nth-child(8) h4 {
  background: 	#051E43 !important;
}

/* エグゼクティブプランの背景をゴールドにする */
.form-editor > div:nth-child(12) h4 {
  background: 	#C0A650 !important;
}

/* 太字にする */
.form-editor > div:nth-child(4) p,
.form-editor > div:nth-child(5) p,
.form-editor > div:nth-child(6) p,
.form-editor > div:nth-child(7) p,
.form-editor > div:nth-child(9) p,
.form-editor > div:nth-child(11) p,
.form-editor > div:nth-child(12) p,
.form-editor > div:nth-child(14) p,
.form-editor > div:nth-child(15) p {
    font-weight: bold; /* 太字 */
}

/* 【毎月先着20名様】の下にゴールドのグラデの下線をつける */
.form-editor > div:nth-child(12) p::after {
  content: "";
  display: block;
  height: 4px;
  width: 75%; /* 少し短くする */
  background: -webkit-linear-gradient(to right, rgb(192,166,80), transparent);
  background: linear-gradient(to right, rgb(192,166,80), transparent);
  background: linear-gradient(135deg, rgb(192,166,80) 0%, rgb(227,214,178) 50%, rgba(140,204,127,0) 100%);
}

/* =========================================
   メディアクエリ
========================================= */
@media screen and (max-width: 650px) {
  body {
    font-size: 17px;
  }

  .text-break {
    line-height: 1.8;
    font-size: 1.7rem;
  }

  .radio label,
  .checkbox label {
    font-size: 1em;
  }

  .radio input[type=radio] {
    margin-top: 8px;
  }

  .checkbox input[type=checkbox] {
    margin-top: 5px;
  }
}