/* ============================================
   Miss Dance Drill Team Japan
   フォームページ 共通デザイン CSS
   ============================================ */

/* ---- ヘッダー ---- */
#header h1 {
  text-shadow: none !important;
  background: none !important;
  -webkit-text-fill-color: white !important;
}

#hd-inner {
  background: #c0182a;
  padding: 14px 40px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}

#hd-inner img {
  height: 64px;
  width: auto;
  flex-shrink: 0;
}

#hd-inner h1 {
  margin: 0 0 5px 0 !important;
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif !important;
  font-size: 1.8em !important;
  font-weight: 900 !important;
  color: white !important;
  letter-spacing: 1.5px !important;
  line-height: 1.2 !important;
  text-shadow: none !important;
  background: none !important;
  -webkit-text-fill-color: white !important;
}

#hd-inner p {
  margin: 0 !important;
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif !important;
  font-size: 0.75em !important;
  color: rgba(255, 255, 255, 0.85) !important;
  letter-spacing: 0.3px !important;
}

/* ---- 全体レイアウト ---- */
#wrapper {
  max-width: 720px;
  margin: 32px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .10);
  overflow: hidden;
}

#container {
  padding: 32px 40px 40px;
  background: #fff;
}

/* ---- 注意事項ブロック ---- */
#container > font {
  display: block;
  background: #fdf6f6;
  border-left: 4px solid #c0182a;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: .88em;
  color: #444;
  line-height: 1.8;
}

/* ---- フォーム項目 ---- */
dl.mailform dt.mfp {
  font-size: .88em;
  font-weight: 600;
  color: #333;
  padding: 0 0 6px 0;
  margin-top: 20px;
  border: none;
  background: none;
  line-height: 1.6;
}

dl.mailform dd.mfp {
  margin: 0 0 4px 0;
  padding: 0 0 16px 0;
  background: none;
  font-size: .88em;
  color: #555;
  line-height: 1.7;
  border-bottom: 1px solid #f0f0f0;
}

/* ---- 必須バッジ ---- */
span.must {
  display: inline-block;
  background: #c0182a;
  color: #fff;
  font-size: .75em;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
  letter-spacing: .5px;
}

/* ---- 入力フィールド ---- */
dl.mailform input[type="text"],
dl.mailform input[type="email"] {
  width: 100%;
  max-width: 440px;
  padding: 9px 12px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: .95em;
  color: #333;
  background: #fafafa;
  box-sizing: border-box;
  margin-top: 4px;
}

dl.mailform input[type="text"]:focus,
dl.mailform input[type="email"]:focus {
  outline: none;
  border-color: #c0182a;
  background: #fff;
}

dl.mailform input[type="number"] {
  width: 80px;
  padding: 9px 8px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: .95em;
  color: #333;
  background: #fafafa;
  text-align: center;
  margin: 0 6px;
  box-sizing: border-box;
}

dl.mailform select {
  padding: 9px 12px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: .95em;
  background: #fafafa;
  color: #333;
  margin-top: 4px;
}

/* ---- 合計金額 ---- */
#mfp_price {
  font-size: 2em;
  font-weight: 900;
  color: #c0182a;
  margin: 4px 0 2px;
}

/* ---- 送信ボタン ---- */
.mfp_buttons {
  margin-top: 32px;
  text-align: center;
}

.mfp_buttons button[type="submit"] {
  background: #c0182a;
  color: #fff;
  font-size: 1.05em;
  font-weight: 700;
  padding: 14px 60px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: none !important;
  text-shadow: none !important;
}

.mfp_buttons button[type="submit"]:hover {
  background: #9e1122;
}

/* ---- フッター ---- */
#footer {
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  padding: 14px;
  font-size: .78em;
  color: #888;
}

/* ============================================
   スマホ対応 （640px以下）
   ============================================ */
@media screen and (max-width: 640px) {

  /* example.css の width:800px を上書き */
  div#wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  /* ---- ヘッダー ---- */
  #hd-inner {
    padding: 12px 14px 14px !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  #hd-inner img {
    height: 44px !important;
    width: auto !important;
    flex-shrink: 0 !important;
  }

  #hd-inner > div {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  #hd-inner h1 {
    font-size: 1.05em !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    word-break: break-all !important;
    line-height: 1.3 !important;
    margin: 0 0 2px 0 !important;
  }

  #hd-inner p {
    font-size: 0.62em !important;
    white-space: normal !important;
    word-break: break-all !important;
    line-height: 1.4 !important;
  }

  /* ---- コンテナ ---- */
  #container {
    padding: 20px 16px 32px !important;
  }

  /* ---- 注意事項ブロック ---- */
  #container > font {
    padding: 12px 14px !important;
    font-size: .83em !important;
  }

  /* ---- 入力フィールド ---- */
  dl.mailform input[type="text"],
  dl.mailform input[type="email"] {
    max-width: 100% !important;
  }

  /* ---- 送信ボタン ---- */
  .mfp_buttons button[type="submit"] {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 1em !important;
  }
}
