@charset "UTF-8";

/**
 * 受験申込みページ - モダンデザイン
 * スマホファースト・レスポンシブデザイン
 * メディアクエリ: max-width: 480px
 *
 * このファイルは完全に独立しており、order.cssに依存しません
 */

/* ========================================
   カラースキーム
======================================== */
:root {
  --primary-color: #b44b4c;
  --primary-hover: #963133;
  --secondary-color: #1b305c;
  --accent-color: #d82121;
  --background-light: #fafafa;
  --background-white: #ffffff;
  --text-dark: #333333;
  --text-gray: #666666;
  --border-color: #e0e0e0;
  --error-bg: #ffdede;
  --error-color: #c01b1b;
  --success-bg: #e8f5e9;
  --required-color: #D21717;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.12);
  --radius: 4px;
  --radius-sm: 3px;
}

/* ========================================
   ベーススタイル & リセット
======================================== */
* {
  box-sizing: border-box;
}

/* ========================================
   ヘッダー（offer）
======================================== */
.offer {
  position: static;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  height: 80px;
  border-bottom: none;
}

@media screen and (max-width: 480px) {
  .offer {
    height: 50px;
  }
}

.offer .header_wrapper {
  margin: 0 auto;
  padding: 0;
  width: 1040px;
  height: 100%;
}

@media screen and (max-width: 480px) {
  .offer .header_wrapper {
    width: 98%;
  }
}

.offer .header_wrapper .main_logo {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 30%;
  height: 100%;
}

@media screen and (max-width: 480px) {
  .offer .header_wrapper .main_logo {
    width: 50%;
  }
}

.offer .header_wrapper .main_logo>a {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

.offer .header_wrapper .main_logo>a>img {
  object-fit: contain;
  width: 100%;
}

/* ========================================
   メインビジュアル
======================================== */
.main_visual {
  margin: 0 auto;
  padding: 0;
  width: 100%;
  height: 220px;
}

@media screen and (max-width: 480px) {
  .main_visual {
    height: 120px;
  }
}

.main_visual>img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* ========================================
   コンテナ
======================================== */
.container-fluid {
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

.inquiry_area {
  margin: 0 auto 80px;
  padding: 0 20px;
  max-width: 1040px;
  width: 100%;
}

@media screen and (max-width: 480px) {
  .inquiry_area {
    margin: 0 auto 40px;
    padding: 0 16px;
  }
}

/* ========================================
   セクションタイトル
======================================== */
.section_title {
  margin: 40px auto 32px;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  letter-spacing: 0.02em;
}

@media screen and (max-width: 480px) {
  .section_title {
    margin: 24px auto 20px;
    font-size: 1.5rem;
  }
}

/* ========================================
   ステップインジケーター
======================================== */
.input_process_area {
  margin: 0 auto 32px;
  padding: 24px 0;
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-color);
}

@media screen and (max-width: 480px) {
  .input_process_area {
    margin: 0 auto 24px;
    padding: 16px 0;
  }
}

.input_process {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  max-width: 800px;
  list-style: none;
}

@media screen and (max-width: 480px) {
  .input_process {
    max-width: 100%;
    /* padding: 0 12px; */
    padding: 0;
  }
}

.input_process>li {
  flex: 1;
  min-width: 0;
}

.input_process>li.separator {
  flex: 0 0 auto;
  margin: 0 8px;
  font-size: 0.875rem;
  color: #c0c0c0;
}

@media screen and (max-width: 480px) {
  .input_process>li.separator {
    margin: 0 4px;
    font-size: 0.75rem;
  }
}

.process_cont {
  text-align: center;
}

.process_cont .step_num {
  display: inline-block;
  margin: 0 0 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f0f0f0;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

@media screen and (max-width: 480px) {
  .process_cont .step_num {
    padding: 3px 8px;
    font-size: 0.65rem;
  }
}

.process_cont .ja_txt {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #999999;
  transition: all 0.2s ease;
}

@media screen and (max-width: 480px) {
  .process_cont .ja_txt {
    font-size: 0.75rem;
  }
}

.process_cont.current .step_num {
  color: #ffffff;
  background: var(--accent-color);
  box-shadow: 0 2px 4px rgba(216, 33, 33, 0.3);
}

.process_cont.current .ja_txt {
  color: var(--accent-color);
  font-weight: 600;
}

/* ========================================
   カード & セクション
======================================== */
.area_title,
.info_title {
  position: relative;
  margin: 0 auto 24px;
  padding: 16px 24px;
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #243a6b 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

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

  .area_title,
  .info_title {
    margin: 0 auto 12px auto;
    padding: 12px 16px;
    font-size: 1rem;
  }
}

.info_title.required::after {
  content: "必須";
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--required-color);
  border-radius: var(--radius-sm);
}

@media screen and (max-width: 480px) {
  .info_title.required::after {
    right: 12px;
    padding: 3px 10px;
    font-size: 0.7rem;
  }
}

.select_input_area,
.select_info,
.personal_info,
.payment_info {
  margin: 0 auto 24px;
  padding: 24px;
  background: var(--background-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

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

  .select_input_area,
  .select_info,
  .personal_info,
  .payment_info {
    /* padding: 16px 8px; */
    padding: 8px;
    margin: 0 auto 16px;
  }
}

/* ========================================
   資格選択リスト
======================================== */
.shikaku_list_area {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (max-width: 768px) {
  .shikaku_list_area {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media screen and (max-width: 480px) {
  .shikaku_list_area {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.shikaku_list_area>li {
  margin: 0;
  padding: 0;
  width: 100%;
}

.shikaku_list_area input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shikaku_list_area .checklabel {
  display: block;
  width: 100%;
  padding: 12px 16px 12px 44px;
  position: relative;
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: var(--background-light);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  word-break: keep-all;
  white-space: normal;
  line-height: 1.5;
  min-height: 48px;
  box-sizing: border-box;
}

@media screen and (max-width: 480px) {
  .shikaku_list_area .checklabel {
    padding: 10px 14px 10px 40px;
    font-size: 0.875rem;
    min-height: 44px;
  }
}

.shikaku_list_area .checklabel:hover {
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.shikaku_list_area .checklabel::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 2px solid #d0d0d0;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.shikaku_list_area .checklabel::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 21px;
  margin-top: -8px;
  margin-left: 0px;
  width: 5px;
  height: 10px;
  border-right: 2.5px solid #ffffff;
  border-bottom: 2.5px solid #ffffff;
  transform: rotate(45deg);
  opacity: 0;
  transition: all 0.2s ease;
}

.shikaku_list_area input[type="checkbox"]:checked+.checklabel {
  border-color: var(--primary-color);
  background: #fff5f5;
}

.shikaku_list_area input[type="checkbox"]:checked+.checklabel::before {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.shikaku_list_area input[type="checkbox"]:checked+.checklabel::after {
  opacity: 1;
}

/* ========================================
   選択済み資格・受験料表示
======================================== */
.select_info {
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid var(--border-color);
}

.select_exam {
  margin: 0;
  padding: 0;
  list-style: none;
}

.select_exam_list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s ease;
}

.select_exam_list:last-child {
  border-bottom: none;
}

.select_exam_list:hover {
  background: rgba(180, 75, 76, 0.02);
}

@media screen and (max-width: 480px) {
  .select_exam_list {
    /* flex-direction: column; */
    align-items: flex-start;
    /* padding: 12px 16px; */
    padding: 8px;
    /* gap: 8px; */
  }
}

.select_exam_list .exam_title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

@media screen and (max-width: 480px) {
  .select_exam_list .exam_title {
    font-size: 1rem;
    width: 70%;
  }
}

.select_exam_list .exam_price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-dark);
}

@media screen and (max-width: 480px) {
  .select_exam_list .exam_price {
    font-size: 0.9rem;
    font-weight: normal;
    width: 30%;
    justify-content: flex-end;
  }
}

.select_exam_list .exam_price::before {
  content: "受験料";
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent-color);
  border-radius: var(--radius-sm);
}

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

  .select_exam_list .exam_price::before {
    display: none;
  }
}

/* 受験料合計 */
.exam_fee_area,
.total_price_area {
  display: flex;
  margin: 0 auto;
  overflow: hidden;
  /* background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%); */
  /* border: 2px solid var(--primary-color);
  border-radius: var(--radius); */
  border-top: 1px solid #bbb;
  background: #fff;
  /* box-shadow: var(--shadow-md); */
}

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

  .exam_fee_area,
  .total_price_area {
    /* margin: 12px auto 16px; */
    margin: 0 auto;
  }
}

.exam_fee_title,
.total_title {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  font-size: 1.125rem;
  font-weight: 700;
  /* color: #ffffff; */
  color: var(--primary-color);
  /* background: linear-gradient(135deg, var(--primary-color) 0%, #a03d3e 100%); */
  white-space: nowrap;
}

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

  .exam_fee_title,
  .total_title {
    padding: 12px 16px;
    font-size: 1rem;
  }
}

.exam_fee_total,
.total_price {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 16px 16px 24px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.02em;
}

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

  .exam_fee_total,
  .total_price {
    padding: 12px 16px;
    font-size: 1.25rem;
  }
}

/* クーポン割引 */
.discount_price_area,
.discount_price_confirm {
  display: flex;
  margin: 12px auto 0 auto;
  overflow: hidden;
  /* background: #f0f6f8; */
  border-top: 1px solid #ddd;
  /* border: 1px solid #b8dae8; */
  /* border-radius: var(--radius); */
}

.discount_price_title {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  /* color: var(--accent-color); */
  color: #1e5082;
  /* background: #dbedf5; */
  white-space: nowrap;
}

@media screen and (max-width: 480px) {
  .discount_price_title {
    padding: 10px 16px;
    font-size: 0.9375rem;
  }
}

.discount_price {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 20px;
  font-size: 1.25rem;
  font-weight: 600;
  /* color: var(--accent-color); */
  color: #1e5082;
}

@media screen and (max-width: 480px) {
  .discount_price {
    padding: 10px 16px;
    font-size: 1.125rem;
  }
}

/* ========================================
   フォーム要素
======================================== */
.exam_order_tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.exam_order_tbl tr {
  border-bottom: 1px solid var(--border-color);
}

.exam_order_tbl tr:last-child {
  border-bottom: none;
}

.exam_order_tbl .in_name {
  position: relative;
  padding: 16px 20px;
  width: 30%;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  vertical-align: middle;
  background: var(--background-light);
}

@media screen and (max-width: 480px) {
  .exam_order_tbl .in_name {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border-bottom: none;
    text-align: left;
    /* background: #f1f1f1; */
  }
}

.exam_order_tbl .in_name.required::after {
  content: "必須";
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--required-color);
  border-radius: var(--radius-sm);
}

@media screen and (max-width: 480px) {
  .exam_order_tbl .in_name.required::after {
    top: 8px;
    right: 12px;
    transform: none;
  }
}

.exam_order_tbl .input_area {
  padding: 16px 20px;
  vertical-align: top;
}

@media screen and (max-width: 480px) {
  .exam_order_tbl .input_area {
    display: block;
    padding: 12px 16px;
  }
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
select,
textarea {
  padding: 10px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: var(--radius);
  outline: none;
  transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(180, 75, 76, 0.1);
}

/* プレースホルダーのスタイル */
input::placeholder,
textarea::placeholder {
  color: #999999;
  opacity: 1;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: #999999;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
  color: #999999;
  opacity: 1;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: #999999;
}

input[type="text"][name="full_name"],
input[type="text"][name="phonetic"],
input[type="tel"][name="telephone"],
input[type="email"][name="email"] {
  width: 100%;
  max-width: 400px;
}

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

  input[type="text"][name="full_name"],
  input[type="text"][name="phonetic"],
  input[type="tel"][name="telephone"],
  input[type="email"][name="email"] {
    max-width: 100%;
  }
}

input[type="number"][name="zip"] {
  width: 160px;
}

@media screen and (max-width: 480px) {
  input[type="number"][name="zip"] {
    width: 140px;
  }
}

select[name="pref"] {
  width: 200px;
}

@media screen and (max-width: 480px) {
  select[name="pref"] {
    width: 100%;
    max-width: 200px;
  }
}

input[type="text"][name="city"],
input[type="text"][name="address"],
input[type="text"][name="address_option"] {
  width: 100%;
}

textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

textarea.msg_area {
  width: 100%;
  min-height: 160px;
}

@media screen and (max-width: 480px) {
  textarea.msg_area {
    width: 100%;
  }
}

.auto-zip {
  margin-left: 8px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background: #f78205;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auto-zip:hover {
  background: #d96e04;
  box-shadow: var(--shadow-sm);
}

.auto-zip:disabled,
.auto-zip.disabled {
  background: #cccccc;
  cursor: not-allowed;
  opacity: 0.6;
}

@media screen and (max-width: 480px) {
  .auto-zip {
    margin-top: 8px;
    margin-left: 0;
    padding: 6px 12px;
    font-size: 0.8125rem;
  }
}

/* フォームエラー */
.form-error {
  margin: 8px 0;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--error-color);
  background: var(--error-bg);
  border-left: 3px solid var(--error-color);
  border-radius: var(--radius-sm);
}

/* ========================================
   支払い方法選択
======================================== */
.payment_select {
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.payment_item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--border-color);
}

.payment_item:last-child {
  border-bottom: none;
}

.payment_item .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.payment_method {
  display: block;
  position: relative;
  padding: 16px 20px 16px 52px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media screen and (max-width: 480px) {
  .payment_method {
    padding: 14px 18px 14px 48px;
    font-size: 0.9375rem;
  }
}

.payment_method:hover {
  background: var(--background-light);
}

.payment_method::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: #ffffff;
  border: 2px solid #d0d0d0;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.payment_method::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 25px;
  transform: translateY(-60%) rotate(45deg);
  width: 6px;
  height: 12px;
  border-right: 3px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  opacity: 0;
  transition: all 0.2s ease;
}

input[name="payment"]:checked+.payment_method::before {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

input[name="payment"]:checked+.payment_method::after {
  opacity: 1;
}

input[name="payment"]:checked+.payment_method {
  background: #fff5f5;
}

/* 支払い方法詳細 */
.pay_info {
  padding: 20px 24px;
  background: #fafbfc;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

@media screen and (max-width: 480px) {
  .pay_info {
    padding: 16px 18px;
  }
}

.pay_info .pay_title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-dark);
}

.pay_info p {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-gray);
}

.pay_info .ccard_img {
  margin: 16px 0 20px;
  max-width: 400px;
}

.pay_info .ccard_img img {
  width: 100%;
  height: auto;
}

/* クレジットカードフォーム */
#app_confirm__group {
  margin-top: 20px;
}

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

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-field .input_area {
  padding: 0;
}

.form-control {
  padding: 10px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: var(--radius);
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(180, 75, 76, 0.1);
}

#cc_number,
#billing_last_name,
#billing_first_name,
#cc_expiration_month,
#cc_expiration_year,
#security_code {
  width: 100%;
  /* max-width: 300px; */
}

#cc_expiration_month,
#cc_expiration_year {
  display: inline-block;
  width: 80px;
  /* margin: 0 4px; */
  margin: 0;
}

#security_code {
  max-width: 100px;
}

/* 分割払い回数選択 */
#divide_group {
  /* margin-top: 16px; */
  width: 100%;
  max-width: 48%;
}

.select-wrapper {
  position: relative;
  /* display: inline-block; */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  /* max-width: 200px; */
  max-width: 48%;
}

@media screen and (max-width: 480px) {
  .select-wrapper {
    max-width: 100%;
  }
}

.select-wrapper select {
  width: 100%;
  padding-right: 32px;
  appearance: none;
}

.select-wrapper::after {
  content: "▼";
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--text-gray);
  pointer-events: none;
}

/* ========================================
   ボタン
======================================== */
.form_btn_area {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  /* gap: 16px; */
  margin: 32px auto 0;
  padding: 0;
  position: relative;
}

@media screen and (max-width: 480px) {
  .form_btn_area {
    flex-direction: column-reverse;
    gap: 16px;
    margin: 24px auto 0;
  }
}

.back_btn {
  flex: 0 0 auto;
  /* margin-right: auto; */
}

@media screen and (max-width: 480px) {
  .back_btn {
    width: 30%;
  }
}

.back_btn .btn {
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  background: #929292;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.back_btn .btn:hover {
  background: #737272;
  box-shadow: var(--shadow-sm);
}

@media screen and (max-width: 480px) {
  .back_btn .btn {
    width: 100%;
    padding: 14px;
  }
}

.submit_btn_area {
  flex: 0 0 auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media screen and (max-width: 480px) {
  .submit_btn_area {
    width: 100%;
    position: static;
    left: auto;
    transform: none;
  }
}

.submit_btn_area.first_btn {
  position: relative;
  justify-content: center;
  text-align: center;
}

.submit_btn {
  min-width: 300px;
  padding: 16px 32px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-color) 0%, #a03d3e 100%);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.submit_btn:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #8a2f30 100%);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.submit_btn:active {
  transform: translateY(0);
}

.submit_btn:disabled,
.submit_btn.disabled {
  background: #cccccc;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  opacity: 0.6;
}

@media screen and (max-width: 480px) {
  .submit_btn {
    width: 100%;
    min-width: 0;
    padding: 16px;
    font-size: 1rem;
  }
}

/* ========================================
   入力必須項目カウンター
======================================== */
.fc_unit {
  display: none;
}

#form_checker {
  position: fixed;
  top: 30%;
  right: 0;
  transform: translateY(-50%);
  padding: 12px 16px;
  min-width: 180px;
  font-size: 0.875rem;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, rgba(235, 107, 164, 0.95) 0%, rgba(200, 80, 140, 0.95) 100%);
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    right: -200px;
  }

  to {
    right: 0;
  }
}

@media screen and (max-width: 480px) {
  #form_checker {
    top: 22%;
    right: 0;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
    width: auto;
    min-width: 0;
    padding: 10px 8px;
    background: #ffffff;
    border-top: 1px solid #D21717;
    border-left: 1px solid #D21717;
    border-bottom: 1px solid #D21717;
    border-radius: 6px 0 0 6px;
    color: #333333;
    animation: slideInRightMobile 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  @keyframes slideInRightMobile {
    from {
      right: -100px;
    }

    to {
      right: 0;
    }
  }

  #form_checker .fc_label,
  #form_checker .fc_br,
  #form_checker .fc_suffix {
    display: none;
  }

  #form_checker .fc_unit {
    display: block;
    line-height: 1;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 4px;
    color: #333;
  }

  #form_checker .form_check-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    font-size: 1rem;
    font-weight: normal;
  }

  #form_checker .fc_prefix {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
  }
}

#form_checker .form_check-text {
  font-size: 1rem;
  font-weight: 700;
}

#form_checker #check-number {
  display: inline-block;
  margin: 0 4px;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff5a0;
}

@media screen and (max-width: 480px) {
  #form_checker #check-number {
    color: #D21717;
    margin: 0;
    font-size: 1.3rem;
  }
}

/* ========================================
   クーポンエリア
======================================== */
.coupon_area {
  margin: 0 auto 24px;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.coupon_title {
  margin: 0;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  background: var(--background-light);
  border-bottom: 1px solid var(--border-color);
}

.coupon_explain {
  margin: 0;
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: var(--text-gray);
  text-align: center;
  line-height: 1.5;
}

@media screen and (max-width: 480px) {
  .coupon_explain {
    font-size: 0.875rem;
  }
}

.coupon_input_area {
  padding: 16px;
  text-align: center;
  background: #fafbfc;
}

.coupon_input_area #coupon_code {
  padding: 8px 12px;
  width: 200px;
  font-size: 1rem;
  background: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.05em;
}

@media screen and (max-width: 480px) {
  .coupon_input_area #coupon_code {
    width: 160px;
    font-size: 0.9375rem;
  }
}

.coupon_input_area #coupon_code:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(180, 75, 76, 0.1);
}

.coupon_btn {
  margin-left: 8px;
  padding: 8px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  background: #f37945;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.coupon_btn:hover {
  background: #d9642f;
  box-shadow: var(--shadow-sm);
}

.coupon_btn:disabled,
.coupon_btn.disabled {
  background: #cccccc;
  cursor: not-allowed;
  opacity: 0.6;
}

@media screen and (max-width: 480px) {
  .coupon_btn {
    margin: 24px auto 0 auto;
    /* margin-left: 6px; */
    padding: 8px 16px;
    font-size: 0.9rem;
    width: 100%;
  }
}

/* ========================================
   確認・完了ページ
======================================== */
#confirm-form {
  margin: 0 auto;
  padding: 0;
}

#confirm-form .exam_order_tbl .input_area {
  padding: 16px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
}

@media screen and (max-width: 480px) {
  #confirm-form .exam_order_tbl .input_area {
    padding: 12px 16px;
    font-size: 0.9375rem;
  }
}

.pay_select {
  margin: 16px auto;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

/* 申込み完了 */
#order_complete {
  margin: 40px auto;
  padding: 32px 24px;
  max-width: 800px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

@media screen and (max-width: 480px) {
  #order_complete {
    margin: 24px auto;
    padding: 24px 16px;
  }
}

#order_complete .comp_msg {
  margin: 0 auto 24px;
  padding: 24px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-dark);
  background: var(--success-bg);
  border-left: 4px solid #4caf50;
  border-radius: var(--radius);
}

@media screen and (max-width: 480px) {
  #order_complete .comp_msg {
    padding: 20px 16px;
    font-size: 1rem;
  }
}

#order_complete .comp_msg.error_msg {
  background: #fff1f1;
  border-left-color: var(--error-color);
}

#order_complete .sitetop_link {
  margin: 32px auto 0;
  max-width: 320px;
}

@media screen and (max-width: 480px) {
  #order_complete .sitetop_link {
    margin: 24px auto 0;
  }
}

#order_complete .sitetop_link>a {
  display: block;
  padding: 16px 32px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-color) 0%, #a03d3e 100%);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

#order_complete .sitetop_link>a:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #8a2f30 100%);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

@media screen and (max-width: 480px) {
  #order_complete .sitetop_link>a {
    padding: 14px 24px;
    font-size: 1rem;
  }
}

/* エラー・リダイレクトアラート */
.redirect-alert {
  margin: 40px auto;
  padding: 24px;
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
  text-align: center;
  background: #fff1f1;
  border: 1px solid #ffcccb;
  border-left: 4px solid var(--error-color);
  border-radius: var(--radius);
}

@media screen and (max-width: 480px) {
  .redirect-alert {
    margin: 24px auto;
    padding: 20px 16px;
    font-size: 0.9375rem;
  }
}

.redirect-alert .back_to_select {
  margin-top: 20px;
}

.redirect-alert .back_to_select a {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--primary-color);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s ease;
}

.redirect-alert .back_to_select a:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-sm);
}

/* ========================================
   ユーティリティ
======================================== */
.mb-1 {
  margin-bottom: 8px;
}

/* 隠しフィールド */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 郵便番号自動入力用の隠しフィールド */
.p-country-name {
  display: none;
}

.h-adr {
  display: block;
}

/* フォームの隠しinput */
input[type="hidden"] {
  display: none;
}

/* ========================================
   フッター（基本スタイル）
======================================== */
footer {
  margin-top: 60px;
  padding: 40px 0 20px;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
}

@media screen and (max-width: 480px) {
  footer {
    margin-top: 40px;
    padding: 30px 0 15px;
  }
}

footer .container {
  margin: 0 auto;
  padding: 0 20px;
  max-width: 1040px;
  text-align: center;
}

footer .footer-logo {
  margin: 0 auto 20px;
  max-width: 200px;
}

footer .footer-logo img {
  width: 100%;
  height: auto;
}

footer .footer-copyright {
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: #666666;
}

.page-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  width: 50px;
  height: 50px;
  font-size: 2rem;
  color: var(--primary-color);
  cursor: pointer;
  z-index: 999;
  transition: opacity 0.3s ease;
}

@media screen and (max-width: 480px) {
  .page-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
  }
}

.page-top:hover {
  opacity: 0.7;
}

/* ========================================
   資格選択スライドイン
======================================== */
.exam-slide-in {
  position: fixed;
  bottom: -200px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  border-top: 3px solid var(--primary-color);
  backdrop-filter: blur(5px);
}

.exam-slide-in.active {
  bottom: 0;
}

.slide-in-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 16px 20px;
  max-width: 1040px;
  /* .inquiry_areaと同じ幅 */
  width: 100%;
}

.selection-info {
  display: flex;
  gap: 32px;
  align-items: center;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-label {
  font-size: 0.75rem;
  color: var(--text-gray);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.info-value {
  font-size: 1.25rem;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

.info-value span {
  font-size: 1.75rem;
  margin-right: 2px;
  color: var(--primary-color);
}

.slide-in-button {
  flex-shrink: 0;
}

.slide-in-button .submit_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--primary-color);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(180, 75, 76, 0.3);
}

.slide-in-button .submit_btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(180, 75, 76, 0.4);
}

@media screen and (max-width: 768px) {
  .slide-in-content {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }

  .selection-info {
    width: 100%;
    justify-content: space-around;
    gap: 16px;
  }

  .info-item {
    align-items: center;
  }

  .info-value {
    font-size: 1.125rem;
  }

  .info-value span {
    font-size: 1.5rem;
  }

  .slide-in-button {
    width: 100%;
  }

  .slide-in-button .submit_btn {
    width: 100%;
    min-width: auto;
    padding: 14px 20px;
  }
}

/* ========================================

/* ========================================
   クレジットカード入力デザイン (exam-modern.css)
======================================== */
.credit_input_tbl {
  margin-top: 1.5rem;
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e8e8e8;
}

/* テーブルヘッダー (項目名) */
.credit_input_tbl th.in_name {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  padding: 15px;
  font-weight: 600;
  color: #333;
  width: 25%;
  vertical-align: middle;
  box-sizing: border-box;
  display: table-cell;
}

/* テーブルデータ (入力エリア) */
.credit_input_tbl td.input_area {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  padding: 15px;
  vertical-align: top;
  box-sizing: border-box;
  display: table-cell;
}

/* 入力フィールド共通スタイル */
.credit_input_tbl input[type="text"],
.credit_input_tbl select {
  background-color: #ffdede;
  border: 2px solid #e0e0e0;
  padding: 12px 14px;
  height: 48px;
  font-size: 16px;
  border-radius: 4px;
  box-sizing: border-box;
}

.credit_input_tbl select.form-control {
  background-color: #ffffff;
}

.credit_input_tbl input[type="text"]:focus,
.credit_input_tbl select:focus {
  background-color: #fff;
  border-color: #b44b4c;
  outline: none;
}

/* エラーメッセージ */
.form-error {
  margin-top: 5px;
  font-size: 0.85rem;
  color: #d32f2f;
}

/* ----- PC/タブレット表示等の共通レイアウト ----- */
.split-input-wrapper {
  display: flex;
  gap: 16px;
  width: 100%;
  align-items: flex-end;
}

.split-input-wrapper .input-item {
  width: auto;
}

/* 特定フィールドの幅 */
#billing_last_name,
#billing_first_name {
  width: 100%;
}

#cc_expiration_month,
#cc_expiration_year {
  width: 80px;
  text-align: center;
}

/* ミニラベル */
.mini-label {
  font-size: 12px;
  font-weight: 700;
  color: #666;
  margin-bottom: 5px;
  display: block;
}

/* 支払い方法のレイアウト */
.payment-method-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.divide-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.divide-label {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}



/* ========================================
   SP対応 (レスポンシブ: max-width 480px)
======================================== */
@media screen and (max-width: 480px) {

  /* 入力欄の幅を100%にする */
  .credit_input_tbl input[type="text"],
  .credit_input_tbl select {
    width: 100%;
  }

  /* セキュリティコード */
  #security_code {
    width: 120px;
  }

  /* 有効期限は横並び、幅は均等割り */
  .expiration-wrapper {
    display: flex;
    gap: 10px;
    flex-direction: row !important;
  }

  .expiration-wrapper .input-item {
    flex: 1;
    width: auto;
  }

  /* それ以外の分割入力（姓名など）は縦並び */
  .split-input-wrapper:not(.expiration-wrapper) {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .split-input-wrapper:not(.expiration-wrapper) .input-item {
    width: 100%;
  }

  #cc_expiration_month,
  #cc_expiration_year {
    width: 100%;
    text-align: center;
  }

  /* テーブルブロック化 */
  .credit_input_tbl,
  .credit_input_tbl tbody,
  .credit_input_tbl tr,
  .credit_input_tbl th.in_name,
  .credit_input_tbl td.input_area {
    display: block;
    width: 100% !important;
    border: none;
    box-sizing: border-box;
  }

  .credit_input_tbl {
    border: 1px solid #e8e8e8;
  }

  .credit_input_tbl tr {
    margin-bottom: 0;
    border-bottom: 1px solid #e8e8e8;
  }

  .credit_input_tbl tr:last-child {
    border-bottom: none;
  }

  .credit_input_tbl th.in_name {
    padding: 12px 16px 4px;
    background: transparent;
    text-align: left;
    border-bottom: none;
  }

  .credit_input_tbl td.input_area {
    /* padding: 0 16px 16px; */
    padding: 16px 8px;
    border-top: none;
  }

  /* 縦並びレイアウト（姓名、支払い方法など） */
  /* 支払い方法など */

  .payment-method-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .divide-container {
    width: 100%;
  }
}