@charset "UTF-8";
/**
 * 受験申し込み専用スタイル
 * モダンで洗練されたデザイン - スマホファースト
 */

/* ========================================
   ヘッダー
   ======================================== */
#header_offer {
  margin: 0 auto;
  padding: 0;
  width: 100%;
  border-bottom: none;
}

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

@media screen and (max-width: 480px) {
  #header_offer .header_wrapper {
    width: 96%;
  }
}

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

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

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

#header_offer .header_wrapper .main_logo>a>img {
  -o-object-fit: contain;
  object-fit: contain;
  width: 100%;
  height: 100%;
}

#header_offer .offer_head_visual {
  position: relative;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  height: 220px;
}

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

#header_offer .offer_head_visual>img {
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

#header_offer .offer_head_visual .offer_title_area {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 1.2em 0;
  width: 70%;
  background: rgba(255, 255, 255, 0.8);
}

@media screen and (max-width: 480px) {
  #header_offer .offer_head_visual .offer_title_area {
    width: 90%;
  }
}

#header_offer .offer_head_visual .offer_title_area .exam_title {
  display: block;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  font-size: 1.8rem;
  font-weight: bold;
  color: #45857D;
  text-align: center;
}

@media screen and (max-width: 480px) {
  #header_offer .offer_head_visual .offer_title_area .exam_title {
    font-size: 1.2rem;
  }
}

#header_offer .offer_head_visual .offer_title_area .exam_en_name {
  display: block;
  margin: 10px auto 0 auto;
  padding: 0;
  width: 100%;
  font-size: 1rem;
  color: #45857D;
  text-align: center;
}

@media screen and (max-width: 480px) {
  #header_offer .offer_head_visual .offer_title_area .exam_en_name {
    font-size: 0.9rem;
  }
}

/* ========================================
   プログレスバー（ステップインジケーター）
   ======================================== */
.exam-progress-wrapper {
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.exam-progress-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.exam-progress-container::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}

.exam-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.exam-step-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.exam-step.active .exam-step-circle {
  background: #45857D;
  border-color: #45857D;
  color: #ffffff;
}

.exam-step.completed .exam-step-circle {
  background: #d1fae5;
  border-color: #45857D;
  color: #45857D;
}

.exam-step-label {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  font-weight: 500;
}

.exam-step.active .exam-step-label {
  color: #45857D;
  font-weight: 600;
}

@media screen and (max-width: 480px) {
  .exam-progress-wrapper {
    padding: 1.5rem 0.5rem;
  }

  .exam-step-circle {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }

  .exam-progress-container::before {
    top: 18px;
  }

  .exam-step-label {
    font-size: 0.625rem;
    margin-top: 0.375rem;
  }
}

/* ========================================
   コンテナ
   ======================================== */
.exam-main-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

@media screen and (max-width: 480px) {
  .exam-main-container {
    padding: 1.5rem 1rem;
  }
}

/* ========================================
   セクションタイトル
   ======================================== */
.exam-section-title {
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: 0.025em;
}

@media screen and (max-width: 480px) {
  .exam-section-title {
    font-size: 1.375rem;
    margin-bottom: 2rem;
  }
}

/* ========================================
   カード
   ======================================== */
.exam-card {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.exam-card-header {
  background: #45857D;
  color: #ffffff;
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

@media screen and (max-width: 480px) {
  .exam-card-header {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
}

.exam-card-body {
  padding: 1.5rem;
}

@media screen and (max-width: 480px) {
  .exam-card-body {
    padding: 1rem;
  }
}

/* ========================================
   資格選択エリア
   ======================================== */
.exam-qualification-section {
  margin-bottom: 1.5rem;
}

.exam-category-title {
  background: #f3f4f6;
  color: #45857D;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-left: 4px solid #45857D;
  margin-bottom: 1rem;
}

.exam-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  padding: 1rem 0;
}

@media screen and (max-width: 480px) {
  .exam-checkbox-grid {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }
}

.exam-checkbox-item {
  position: relative;
}

.exam-checkbox-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.exam-checkbox-label {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9375rem;
  min-height: 48px;
}

.exam-checkbox-label:hover {
  border-color: #45857D;
  background: #f9fafb;
}

.exam-checkbox-item input[type="checkbox"]:checked+.exam-checkbox-label {
  background: #ecf4f3;
  border-color: #45857D;
  font-weight: 500;
}

.exam-checkbox-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  border: 2px solid #d1d5db;
  border-radius: 3px;
  background: #ffffff;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.exam-checkbox-item input[type="checkbox"]:checked+.exam-checkbox-label::before {
  background: #45857D;
  border-color: #45857D;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.5 3.5L6 11 2.5 7.5l1-1L6 9l6.5-6.5z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

@media screen and (max-width: 480px) {
  .exam-checkbox-label {
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
  }
}

/* ========================================
   フォーム - 選択された資格表示
   ======================================== */
.exam-selected-qualifications {
  background: #ecf4f3;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

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

.exam-selected-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem;
  background: #ffffff;
  border-radius: 3px;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.exam-selected-item:last-child {
  margin-bottom: 0;
}

.exam-selected-name {
  font-weight: 500;
  color: #1f2937;
  flex: 1;
}

.exam-selected-price {
  font-weight: 600;
  color: #45857D;
  margin-left: 1rem;
}

.exam-selected-price::before {
  content: '受験料';
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.75rem;
  border-radius: 2px;
  margin-right: 0.5rem;
  font-weight: 600;
}

@media screen and (max-width: 480px) {
  .exam-selected-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .exam-selected-price {
    margin-left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }
}

/* ========================================
   合計金額表示
   ======================================== */
.exam-total-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  margin: 1rem 0 1.5rem;
}

.exam-total-label {
  font-size: 1.125rem;
  font-weight: 700;
  color: #991b1b;
}

.exam-total-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #991b1b;
  letter-spacing: 0.025em;
}

@media screen and (max-width: 480px) {
  .exam-total-price {
    padding: 0.875rem 1rem;
  }

  .exam-total-label {
    font-size: 1rem;
  }

  .exam-total-amount {
    font-size: 1.25rem;
  }
}

/* ========================================
   フォームテーブル
   ======================================== */
.exam-form-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
}

.exam-form-table tr {
  border-bottom: 1px solid #e5e7eb;
}

.exam-form-table tr:last-child {
  border-bottom: none;
}

.exam-form-table th {
  background: #f9fafb;
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 0.9375rem;
  width: 220px;
  vertical-align: middle;
}

.exam-form-table td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
}

.exam-form-required {
  display: inline-block;
  background: #dc2626;
  color: #ffffff;
  padding: 0.125rem 0.5rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

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

  .exam-form-table th,
  .exam-form-table td {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .exam-form-table th {
    background: #f3f4f6;
    border-bottom: none;
    padding-bottom: 0.5rem;
  }

  .exam-form-table td {
    padding-top: 0.5rem;
  }

  .exam-form-table tr {
    border-bottom: 2px solid #e5e7eb;
  }
}

/* ========================================
   フォーム入力要素
   ======================================== */
.exam-input,
.exam-select,
.exam-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  font-size: 1rem;
  color: #1f2937;
  background: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.exam-input:focus,
.exam-select:focus,
.exam-textarea:focus {
  outline: none;
  border-color: #45857D;
  box-shadow: 0 0 0 3px rgba(69, 133, 125, 0.1);
}

.exam-input::placeholder {
  color: #9ca3af;
}

.exam-input-half {
  width: 50%;
}

.exam-input-small {
  width: 160px;
}

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

  .exam-input-half,
  .exam-input-small {
    width: 100%;
  }
}

.exam-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

/* ========================================
   郵便番号自動入力ボタン
   ======================================== */
.exam-zip-button {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.625rem 1rem;
  background: #f59e0b;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  min-height: 44px;
}

.exam-zip-button:hover:not(.disabled) {
  background: #d97706;
}

.exam-zip-button.disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

@media screen and (max-width: 480px) {
  .exam-zip-button {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
  }
}

/* ========================================
   エラー表示
   ======================================== */
.exam-form-error {
  display: none;
  padding: 0.5rem 0.75rem;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 3px;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.exam-form-error:not(:empty) {
  display: block;
}

/* ========================================
   支払い方法選択
   ======================================== */
.exam-payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.exam-payment-option {
  position: relative;
}

.exam-payment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.exam-payment-option-label {
  display: block;
  padding: 1rem 1.25rem;
  padding-left: 3rem;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  min-height: 52px;
  display: flex;
  align-items: center;
}

.exam-payment-option-label:hover {
  border-color: #45857D;
  background: #f9fafb;
}

.exam-payment-option input[type="radio"]:checked+.exam-payment-option-label {
  background: #ecf4f3;
  border-color: #45857D;
}

.exam-payment-option-label::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  background: #ffffff;
  transition: all 0.2s ease;
}

.exam-payment-option input[type="radio"]:checked+.exam-payment-option-label::before {
  border-color: #45857D;
  border-width: 6px;
}

.exam-payment-details {
  padding: 1.5rem;
  background: #fefce8;
  border: 1px solid #fde047;
  border-radius: 3px;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.exam-payment-details h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.exam-card-image {
  max-width: 400px;
  margin: 1rem 0;
}

.exam-card-image img {
  width: 100%;
  height: auto;
}

@media screen and (max-width: 480px) {
  .exam-payment-option-label {
    padding: 0.875rem 1rem;
    padding-left: 2.75rem;
    font-size: 0.9375rem;
  }

  .exam-payment-details {
    padding: 1rem;
    font-size: 0.875rem;
  }
}

/* クレジットカード入力フィールド */
.exam-credit-fields {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.exam-field-group {
  display: flex;
  flex-direction: column;
}

.exam-field-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.exam-field-inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}



.exam-name-inputs {
  display: flex;
  gap: 0.5rem;
}

.exam-name-inputs .exam-input {
  flex: 1;
}

@media screen and (max-width: 480px) {
  .exam-name-inputs {
    flex-direction: column;
  }
}

/* ========================================
   クーポンエリア
   ======================================== */
.exam-coupon-section {
  background: #fef3c7;
  border: 2px dashed #f59e0b;
  border-radius: 4px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.exam-coupon-title {
  font-size: 1rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 0.5rem;
}

.exam-coupon-description {
  font-size: 0.875rem;
  color: #78350f;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.exam-coupon-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.exam-coupon-input {
  flex: 1;
  max-width: 200px;
  background-color: #ffffff;
}

.exam-coupon-button {
  padding: 0.75rem 1.5rem;
  background: #f59e0b;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.exam-coupon-button:hover {
  background: #d97706;
}

@media screen and (max-width: 480px) {
  .exam-coupon-section {
    padding: 1rem;
  }

  .exam-coupon-input-group {
    flex-direction: column;
  }

  .exam-coupon-input {
    max-width: 100%;
  }
}

/* ========================================
   割引表示
   ======================================== */
.exam-discount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #dbeafe;
  padding: 0.75rem 1rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

.exam-discount-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e40af;
}

.exam-discount-amount {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e40af;
}

/* ========================================
   ボタンエリア
   ======================================== */
.exam-button-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.exam-button-back {
  padding: 0.875rem 1.5rem;
  background: #6b7280;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  min-height: 48px;
}

.exam-button-back:hover {
  background: #4b5563;
}

.exam-button-primary {
  flex: 1;
  padding: 1rem 2rem;
  background: #b91c1c;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  min-height: 56px;
}

.exam-button-primary:hover:not(.disabled) {
  background: #991b1b;
}

.exam-button-primary.disabled {
  background: #d1d5db;
  cursor: not-allowed;
  color: #9ca3af;
}

@media screen and (max-width: 480px) {
  .exam-button-group {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }

  .exam-button-back,
  .exam-button-primary {
    width: 100%;
  }

  .exam-button-primary {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    min-height: 52px;
  }

  .exam-button-back {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    min-height: 48px;
  }
}

/* ========================================
   確認ページ - 確認項目表示
   ======================================== */
.exam-confirm-section {
  background: #ffffff;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.exam-confirm-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

.exam-confirm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.exam-confirm-table tr {
  border-bottom: 1px solid #f3f4f6;
}

.exam-confirm-table tr:last-child {
  border-bottom: none;
}

.exam-confirm-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #6b7280;
  font-size: 0.875rem;
  width: 160px;
  background: #f9fafb;
  vertical-align: top;
}

.exam-confirm-table td {
  padding: 1rem;
  color: #1f2937;
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media screen and (max-width: 480px) {
  .exam-confirm-section {
    padding: 1rem;
  }

  .exam-confirm-table th,
  .exam-confirm-table td {
    display: block;
    width: 100%;
    padding: 0.75rem;
  }

  .exam-confirm-table th {
    padding-bottom: 0.375rem;
    border-bottom: none;
  }

  .exam-confirm-table td {
    padding-top: 0.375rem;
  }
}

/* ========================================
   完了ページ
   ======================================== */
.exam-complete-container {
  max-width: 700px;
  margin: 3rem auto;
  text-align: center;
  padding: 0 1rem;
}

.exam-complete-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.exam-complete-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.exam-complete-message {
  background: #f3f4f6;
  padding: 2rem;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 2rem;
}

.exam-complete-button {
  display: inline-block;
  padding: 1rem 3rem;
  background: #45857D;
  color: #ffffff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.exam-complete-button:hover {
  background: #3a6f68;
}

@media screen and (max-width: 480px) {
  .exam-complete-container {
    margin: 2rem auto;
  }

  .exam-complete-icon {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }

  .exam-complete-title {
    font-size: 1.5rem;
  }

  .exam-complete-message {
    padding: 1.5rem;
    font-size: 0.9375rem;
  }
}

/* ========================================
   入力完了カウンター
   ======================================== */
.exam-progress-counter {
  position: fixed;
  bottom: 2rem;
  left: 1rem;
  background: rgba(236, 72, 153, 0.95);
  color: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 160px;
}

.exam-progress-text {
  font-size: 1rem;
  font-weight: 700;
}

.exam-progress-number {
  color: #fef08a;
  font-size: 1.375rem;
  font-weight: 900;
}

@media screen and (max-width: 480px) {
  .exam-progress-counter {
    bottom: 1.5rem;
    left: 0.5rem;
    padding: 0.75rem 1rem;
    min-width: 140px;
  }
}

/* ========================================
   アラート・メッセージ
   ======================================== */
.exam-alert {
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  margin: 1.5rem auto;
  max-width: 600px;
  text-align: center;
  line-height: 1.7;
}

.exam-alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.exam-alert-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

@media screen and (max-width: 480px) {
  .exam-alert {
    padding: 1rem;
    font-size: 0.9375rem;
  }
}

/* ========================================
   ユーティリティクラス
   ======================================== */
.exam-text-small {
  font-size: 0.875rem;
  color: #6b7280;
}

.exam-mb-1 {
  margin-bottom: 0.5rem;
}

.exam-mb-2 {
  margin-bottom: 1rem;
}

.exam-mb-3 {
  margin-bottom: 1.5rem;
}

.exam-mt-1 {
  margin-top: 0.5rem;
}

.exam-mt-2 {
  margin-top: 1rem;
}

.exam-mt-3 {
  margin-top: 1.5rem;
}

/* 既存のセレクタとの互換性維持 */
.inquiry_area[data-type="exam"] .section_title {
  margin: 2rem auto 2.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
}

.inquiry_area[data-type="cert"] .section_title {
  margin: 2rem auto 2.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
}

/* 分割払い選択 */
.exam-select-wrapper {
  position: relative;
  display: inline-block;
}

@media screen and (max-width: 480px) {
  .exam-select-wrapper {
    display: block;
  }
}

/* Hidden form elements */
input[type="hidden"] {
  display: none !important;
}

/* Yubinbango compatibility */
.h-adr .p-country-name {
  display: none !important;
}

/* 既存のフォームエラー表示も新デザインと統一 */
.form-error {
  display: none;
  padding: 0.5rem 0.75rem;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 3px;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.form-error:not(:empty) {
  display: block;
}

/* 旧デザイン互換性のためのクラス */
.redirect-alert .back_to_select a {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  background: #b91c1c;
  color: #ffffff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.redirect-alert .back_to_select a:hover {
  background: #991b1b;
}

/* ローディング状態 */
.exam-button-primary:disabled,
.exam-button-back:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 補足テキスト */
.exam-help-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
  line-height: 1.5;
}

/* スムーズなトランジション */
.exam-card,
.exam-checkbox-label,
.exam-button-primary,
.exam-button-back,
.exam-payment-option-label {
  transition: all 0.2s ease;
}

/* フォーカス状態の改善 */
.exam-input:focus-visible,
.exam-select:focus-visible,
.exam-textarea:focus-visible {
  outline: 2px solid #45857D;
  outline-offset: 2px;
}

/* ========================================
   資格選択サマリー（スライドインエリア）
   ======================================== */
.exam-selection-summary {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
  border-top: 3px solid #45857D;
}

.exam-selection-summary.show {
  transform: translateY(0);
}

.exam-selection-summary-content {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.exam-selection-info {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.exam-selection-count {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: #ecf4f3;
  border-radius: 4px;
}

.exam-selection-label {
  font-size: 0.875rem;
  color: #45857D;
  font-weight: 600;
}

.exam-selection-number {
  font-size: 1.75rem;
  font-weight: 700;
  /* color: #45857D; */
  color: #991b1b;
  line-height: 1;
}

.exam-selection-unit {
  font-size: 0.875rem;
  color: #45857D;
  font-weight: 600;
}

.exam-selection-total {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  /* background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); */
  border-radius: 4px;
}

.exam-selection-total-label {
  font-size: 0.875rem;
  color: #991b1b;
  font-weight: 600;
}

.exam-selection-total-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: #991b1b;
  line-height: 1;
}

.exam-selection-total-unit {
  font-size: 0.875rem;
  color: #991b1b;
  font-weight: 600;
}

.exam-selection-button {
  padding: 1rem 2rem;
  background: #b91c1c;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
  min-height: 56px;
  box-shadow: 0 2px 4px rgba(185, 28, 28, 0.2);
}

.exam-selection-button:hover {
  background: #991b1b;
  box-shadow: 0 4px 8px rgba(185, 28, 28, 0.3);
}

.exam-selection-button:active {
  transform: translateY(1px);
}

@media screen and (max-width: 768px) {
  .exam-selection-summary-content {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .exam-selection-info {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }

  .exam-selection-count,
  .exam-selection-total {
    width: 100%;
    justify-content: center;
  }

  .exam-selection-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    min-height: 52px;
  }
}

@media screen and (max-width: 480px) {
  .exam-selection-summary-content {
    padding: 0.875rem 0.75rem;
  }

  .exam-selection-count,
  .exam-selection-total {
    padding: 0.5rem 0.75rem;
  }

  .exam-selection-label,
  .exam-selection-unit,
  .exam-selection-total-label,
  .exam-selection-total-unit {
    font-size: 0.75rem;
  }

  .exam-selection-number,
  .exam-selection-total-amount {
    font-size: 1.5rem;
  }

  .exam-selection-button {
    font-size: 0.9375rem;
    padding: 0.75rem 1.25rem;
    min-height: 48px;
  }
}