@charset "UTF-8";

/**
 * 受験申し込み専用CSS
 * モダンで洗練されたデザイン
 * スマホファースト・レスポンシブ対応
 */

/* ========================================
   共通スタイル
======================================== */
.exam-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 16px 80px;
}

.offer-footer {
  margin-left: 0;
  margin-right: 0;
}

@media screen and (max-width: 480px) {
  .exam-container {
    padding: 16px 12px 80px;
  }
}

/* ========================================
   プログレスインジケーター（ステップ表示）
======================================== */
.exam-progress {
  background: #fff;
  padding: 24px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid #e8e8e8;
}

.exam-progress-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.exam-progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

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

.exam-progress-step::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e0e0e0;
  z-index: -1;
}

.exam-progress-step:last-child::after {
  display: none;
}

.exam-progress-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #999;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.exam-progress-label {
  font-size: 13px;
  color: #666;
  text-align: center;
  line-height: 1.4;
  transition: all 0.3s ease;
}

.exam-progress-step.is-current .exam-progress-number {
  background: #b44b4c;
  border-color: #b44b4c;
  color: #fff;
  box-shadow: 0 2px 8px rgba(180, 75, 76, 0.3);
}

.exam-progress-step.is-current .exam-progress-label {
  color: #b44b4c;
  font-weight: 600;
}

.exam-progress-step.is-completed .exam-progress-number {
  background: #4caf50;
  border-color: #4caf50;
  color: #fff;
}

.exam-progress-step.is-completed .exam-progress-label {
  color: #4caf50;
}

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

  .exam-progress-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .exam-progress-label {
    font-size: 11px;
  }

  .exam-progress-step::after {
    top: 16px;
  }
}

/* ========================================
   ページタイトル
======================================== */
.exam-page-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 3px solid #b44b4c;
}

@media screen and (max-width: 480px) {
  .exam-page-title {
    font-size: 22px;
    margin-bottom: 24px;
  }
}

/* ========================================
   資格選択ページ
======================================== */
.exam-selection-section {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 24px;
}

.exam-selection-header {
  background: linear-gradient(135deg, #b44b4c 0%, #963133 100%);
  color: #fff;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
}

@media screen and (max-width: 480px) {
  .exam-selection-header {
    padding: 14px 16px;
    font-size: 16px;
  }
}

.exam-selection-content {
  padding: 24px;
}

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

.exam-category-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (max-width: 480px) {
  .exam-category-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.exam-category-item {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.exam-category-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.exam-category-title {
  background: #f5f5f5;
  color: #b44b4c;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 16px;
  margin: 0;
  border-bottom: 1px solid #e8e8e8;
}

@media screen and (max-width: 480px) {
  .exam-category-title {
    font-size: 15px;
    padding: 10px 14px;
  }
}

.exam-license-list {
  padding: 16px;
  margin: 0;
  list-style: none;
}

@media screen and (max-width: 480px) {
  .exam-license-list {
    padding: 12px;
  }
}

.exam-license-item {
  margin-bottom: 12px;
}

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

.exam-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.exam-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  color: #333;
  padding: 8px;
  border-radius: 3px;
  transition: background-color 0.2s ease;
  position: relative;
  padding-left: 36px;
  min-height: 28px;
}

.exam-checkbox-label:hover {
  background-color: #f0f0f0;
}

.exam-checkbox-label::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 3px;
  background: #fff;
  transition: all 0.2s ease;
}

.exam-checkbox-label::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translate(-50%, -59%) rotate(45deg);
  width: 8px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.exam-checkbox:checked + .exam-checkbox-label::before {
  background: #b44b4c;
  border-color: #b44b4c;
}

.exam-checkbox:checked + .exam-checkbox-label::after {
  opacity: 1;
}

.exam-checkbox:focus + .exam-checkbox-label::before {
  box-shadow: 0 0 0 3px rgba(180, 75, 76, 0.1);
}

@media screen and (max-width: 480px) {
  .exam-checkbox-label {
    font-size: 14px;
    padding: 6px 6px 6px 32px;
  }

  .exam-checkbox-label::before {
    width: 18px;
    height: 18px;
  }

  .exam-checkbox-label::after {
    left: 17px;
    transform: translate(-50%, -55%) rotate(45deg);
    width: 5px;
    height: 10px;
  }
}

/* ========================================
   フローティングアクションバー（スライドイン）
======================================== */
.exam-floating-bar {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  padding: 16px 20px;
  z-index: 1000;
  transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.exam-floating-bar.is-visible {
  bottom: 0;
}

.exam-floating-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.exam-floating-bar-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.exam-floating-bar-count,
.exam-floating-bar-total {
  display: flex;
  flex-direction: column;
}

.exam-floating-bar-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.exam-floating-bar-value {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.exam-floating-bar-value.is-price {
  color: #b44b4c;
  font-size: 20px;
}

.exam-floating-bar-button {
  background: linear-gradient(135deg, #b44b4c 0%, #963133 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(180, 75, 76, 0.3);
}

.exam-floating-bar-button:hover {
  box-shadow: 0 4px 12px rgba(180, 75, 76, 0.4);
  transform: translateY(-1px);
}

.exam-floating-bar-button:active {
  transform: translateY(0);
}

@media screen and (max-width: 480px) {
  .exam-floating-bar {
    padding: 12px 16px;
  }

  .exam-floating-bar-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .exam-floating-bar-info {
    width: 100%;
    justify-content: space-around;
    gap: 12px;
  }

  .exam-floating-bar-button {
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
  }

  .exam-floating-bar-value {
    font-size: 16px;
  }

  .exam-floating-bar-value.is-price {
    font-size: 18px;
  }
}

/* ========================================
   フォーム入力ページ
======================================== */
.exam-form-section {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 24px;
}

.exam-form-header {
  background: linear-gradient(135deg, #b44b4c 0%, #963133 100%);
  color: #fff;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
  position: relative;
}

.exam-form-header.is-required::after {
  content: '必須';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: #d32f2f;
  color: #fff;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}

@media screen and (max-width: 480px) {
  .exam-form-header {
    padding: 14px 16px;
    font-size: 16px;
  }

  .exam-form-header.is-required::after {
    right: 16px;
    padding: 3px 10px;
    font-size: 11px;
  }
}

.exam-form-content {
  padding: 24px;
}

@media screen and (max-width: 480px) {
  .exam-form-content {
    padding: 16px;
  }
}

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

.exam-form-row {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #f0f0f0;
}

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

.exam-form-label {
  flex: 0 0 180px;
  padding: 16px;
  background: #fafafa;
  font-size: 15px;
  font-weight: 500;
  color: #444;
  display: flex;
  align-items: center;
  position: relative;
}

.exam-form-label.is-required::after {
  content: '必須';
  margin-left: auto;
  background: #d32f2f;
  color: #fff;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
}

.exam-form-input-wrapper {
  flex: 1;
  padding: 16px;
  background: #fff;
  min-width: 0;
}

/* 電話番号・メールアドレスの入力欄のみ約半分の幅に */
.exam-form-row.exam-form-row--half .exam-form-input-wrapper {
  max-width: 50%;
}

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

  .exam-form-label {
    flex: none;
    width: 100%;
    padding: 12px 16px;
  }

  .exam-form-input-wrapper {
    padding: 12px 16px;
  }

  .exam-form-row.exam-form-row--half .exam-form-input-wrapper {
    width: 100%;
    max-width: 100%;
  }
}

.exam-form-input,
.exam-form-select,
.exam-form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: #fff;
  font-family: inherit;
}

.exam-form-input:focus,
.exam-form-select:focus,
.exam-form-textarea:focus {
  outline: none;
  border-color: #b44b4c;
  box-shadow: 0 0 0 3px rgba(180, 75, 76, 0.1);
}

/* 都道府県selectは幅を約半分に */
#pref.exam-form-select {
  width: 50%;
  max-width: 240px;
}

.exam-form-input.has-error {
  border-color: #d32f2f;
  background: #fff5f5;
}

.exam-form-textarea {
  min-height: 120px;
  resize: vertical;
}

.exam-form-error {
  display: none;
  margin-top: 8px;
  padding: 8px 12px;
  background: #ffebee;
  color: #c62828;
  font-size: 13px;
  border-radius: 3px;
  border-left: 3px solid #d32f2f;
}

.exam-form-helper {
  margin-top: 6px;
  font-size: 13px;
  color: #666;
}

.exam-form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  background: #ff9800;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.exam-form-inline {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.exam-form-inline .exam-form-input {
  flex: 0 0 auto;
  width: 11em;
  min-width: 0;
  box-sizing: border-box;
}

.exam-form-inline .exam-form-button {
  flex: 0 0 auto;
  margin-left: 0;
  white-space: nowrap;
  padding: 10px 16px;
  box-sizing: border-box;
}

.exam-form-button:hover {
  background: #f57c00;
}

.exam-form-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

@media screen and (max-width: 480px) {
  .exam-form-input,
  .exam-form-select,
  .exam-form-textarea {
    font-size: 16px;
  }

  /* スマホでは都道府県selectを幅100%に */
  #pref.exam-form-select {
    width: 100%;
    max-width: none;
  }
}

/* ========================================
   選択済み資格表示
======================================== */
.exam-selected-list {
  background: #f8f9fa;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 16px;
}

.exam-selected-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #fff;
  border-radius: 3px;
  margin-bottom: 8px;
  border: 1px solid #e8e8e8;
}

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

.exam-selected-name {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  flex: 1;
}

.exam-selected-price {
  font-size: 16px;
  font-weight: 700;
  color: #b44b4c;
  white-space: nowrap;
}

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

  .exam-selected-list {
    border-radius: 4px;
    padding: 8px 6px;
    margin-bottom: 16px;
  }
  
  /* 資格名と金額は横並び（1行）のまま維持 */
  .exam-selected-item {
    padding: 10px 12px;
  }

  .exam-selected-name {
    font-size: 14px;
    min-width: 0; /* 長い名前でも折り返し可能に */
  }

  .exam-selected-price {
    font-size: 15px;
    flex-shrink: 0;
  }
}

.exam-total-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff3f3;
  padding: 16px 20px;
  border-radius: 4px;
  margin-top: 16px;
  border: 2px solid #ffebeb;
}

.exam-total-label {
  font-size: 18px;
  font-weight: 700;
  color: #b44b4c;
}

.exam-total-value {
  font-size: 22px;
  font-weight: 700;
  color: #b44b4c;
}

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

  .exam-total-label {
    font-size: 16px;
  }

  .exam-total-value {
    font-size: 20px;
  }
}

/* ========================================
   お支払い方法
======================================== */
.exam-payment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exam-payment-item {
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.exam-payment-item:has(input:checked) {
  border-color: #b44b4c;
  box-shadow: 0 2px 8px rgba(180, 75, 76, 0.15);
}

.exam-payment-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.exam-payment-label {
  display: flex;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  position: relative;
  padding-left: 48px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

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

.exam-payment-label::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.exam-payment-radio:checked + .exam-payment-label::before {
  border-color: #b44b4c;
  background: #b44b4c;
}

.exam-payment-radio:checked + .exam-payment-label::after {
  opacity: 1;
}

.exam-payment-details {
  display: none;
  padding: 20px;
  background: #fafafa;
  border-top: 1px solid #e8e8e8;
}

.exam-payment-radio:checked ~ .exam-payment-details {
  display: block;
}

.exam-payment-details h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.exam-payment-details p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.exam-payment-details p:last-child {
  margin-bottom: 0;
}

/* ========================================
   クレジットカード入力テーブル
======================================== */
.exam-credit-card-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.exam-credit-card-table th {
  width: 180px;
  padding: 16px;
  background: #fafafa;
  font-size: 15px;
  font-weight: 500;
  color: #444;
  text-align: left;
  vertical-align: middle;
  border: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.exam-credit-card-table td {
  padding: 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: none;
  border-bottom: 1px solid #e0e0e0;
}

.exam-credit-card-table tr:last-child th,
.exam-credit-card-table tr:last-child td {
  border-bottom: none;
}

/* カード名義グループ */
.exam-card-name-group {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.exam-card-name-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exam-card-name-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

/* 有効期限グループ */
.exam-expiration-group {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.exam-expiration-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 80px;
}

.exam-expiration-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.exam-expiration-item .exam-form-input {
  width: 100%;
}

/* 支払い方法グループ */
.exam-payment-method-group {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.exam-payment-method-item {
  flex: 1;
}

.exam-payment-method-item--divide {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.exam-payment-method-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.exam-payment-method-item .exam-form-select {
  width: 100%;
}

.exam-payment-method-item--divide .exam-form-select {
  flex: 1;
  min-width: 0;
}

/* クレジットカード入力欄のスタイル */
.exam-credit-card-table .exam-form-input,
.exam-credit-card-table .exam-form-select {
  background: #fff5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 15px;
  transition: all 0.2s ease;
}

.exam-credit-card-table .exam-form-input:focus,
.exam-credit-card-table .exam-form-select:focus {
  outline: none;
  border-color: #b44b4c;
  box-shadow: 0 0 0 3px rgba(180, 75, 76, 0.1);
  background: #fff;
}

.exam-credit-card-table .exam-form-input.has-error,
.exam-credit-card-table .exam-form-select.has-error {
  border-color: #d32f2f;
  background: #ffebee;
}

.exam-credit-card-table .exam-form-error {
  margin-top: 8px;
}

/* セキュリティコード入力欄の幅調整 */
#security_code {
  width: auto;
  max-width: 120px;
  min-width: 80px;
}

@media screen and (max-width: 480px) {
  .exam-payment-label {
    padding: 14px 14px 14px 44px;
    font-size: 15px;
  }

  .exam-payment-details {
    padding: 16px;
  }

  .exam-credit-card-table {
    display: block;
  }

  .exam-credit-card-table thead {
    display: none;
  }

  .exam-credit-card-table tbody {
    display: block;
  }

  .exam-credit-card-table tr {
    display: block;
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
  }

  .exam-credit-card-table th {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .exam-credit-card-table td {
    display: block;
    padding: 12px 16px;
    border: none;
  }

  .exam-card-name-group,
  .exam-payment-method-group {
    flex-direction: column;
    gap: 12px;
  }

  /* 有効期限はスマホでも横並びを維持 */
  .exam-expiration-group {
    flex-direction: row;
    gap: 12px;
  }

  .exam-card-name-item,
  .exam-payment-method-item {
    width: 100%;
  }

  /* 有効期限の各項目は横並びを維持 */
  .exam-expiration-item {
    flex: 1;
    min-width: 0;
  }
}

/* ========================================
   ボタン
======================================== */
.exam-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  justify-content: space-between;
}

.exam-button {
  flex: 1;
  padding: 16px 32px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.exam-button-primary {
  background: linear-gradient(135deg, #b44b4c 0%, #963133 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(180, 75, 76, 0.3);
}

.exam-button-primary:hover {
  box-shadow: 0 4px 12px rgba(180, 75, 76, 0.4);
  transform: translateY(-1px);
}

.exam-button-primary:active {
  transform: translateY(0);
}

.exam-button-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.exam-button-secondary {
  background: #757575;
  color: #fff;
  flex: 0 0 auto;
  min-width: 120px;
}

.exam-button-secondary:hover {
  background: #616161;
}

@media screen and (max-width: 480px) {
  .exam-actions {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .exam-button {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
  }

  .exam-button-secondary {
    min-width: auto;
  }
}

/* ========================================
   完了ページ
======================================== */
.exam-complete-message {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 32px;
}

.exam-complete-icon {
  width: 80px;
  height: 80px;
  background: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 40px;
  color: #fff;
}

.exam-complete-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 0 0 16px;
}

.exam-complete-text {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin: 0;
}

.exam-complete-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  background: linear-gradient(135deg, #b44b4c 0%, #963133 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(180, 75, 76, 0.3);
}

.exam-complete-link:hover {
  box-shadow: 0 4px 12px rgba(180, 75, 76, 0.4);
  transform: translateY(-1px);
}

@media screen and (max-width: 480px) {
  .exam-complete-message {
    padding: 32px 24px;
  }

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

  .exam-complete-title {
    font-size: 20px;
  }

  .exam-complete-text {
    font-size: 15px;
  }

  .exam-complete-link {
    width: 100%;
    padding: 14px 32px;
    font-size: 15px;
  }
}

/* ========================================
   確認ページ
======================================== */
.exam-confirm-section {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
  overflow: hidden;
}

.exam-confirm-header {
  background: linear-gradient(135deg, #b44b4c 0%, #963133 100%);
  color: #fff;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
}

.exam-confirm-content {
  padding: 24px;
}

.exam-confirm-table {
  width: 100%;
}

.exam-confirm-row {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
}

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

.exam-confirm-label {
  flex: 0 0 180px;
  padding: 16px;
  background: #fafafa;
  font-size: 15px;
  font-weight: 500;
  color: #444;
}

.exam-confirm-value {
  flex: 1;
  padding: 16px;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

@media screen and (max-width: 480px) {
  .exam-confirm-header {
    padding: 14px 16px;
    font-size: 16px;
  }

  .exam-confirm-content {
    padding: 16px;
  }

  .exam-confirm-row {
    flex-direction: column;
  }

  .exam-confirm-label {
    flex: none;
    width: 100%;
    padding: 12px 16px;
  }

  .exam-confirm-value {
    padding: 12px 16px;
  }
}

/* ========================================
   エラーメッセージ
======================================== */
.exam-error-alert {
  background: #ffebee;
  border: 2px solid #ef5350;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.exam-error-title {
  font-size: 18px;
  font-weight: 700;
  color: #c62828;
  margin: 0 0 8px;
}

.exam-error-text {
  font-size: 15px;
  color: #b71c1c;
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   クーポンエリア
======================================== */
.exam-coupon-section {
  background: #fff;
  border: 2px solid #ff9800;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 24px;
}

.exam-coupon-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
  text-align: center;
}

.exam-coupon-description {
  font-size: 14px;
  color: #666;
  margin: 0 0 16px;
  text-align: center;
  line-height: 1.6;
}

.exam-coupon-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.exam-coupon-input {
  flex: 0 1 200px;
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 15px;
  transition: all 0.2s ease;
  background-color: #fff;
}

.exam-coupon-input:focus {
  outline: none;
  border-color: #ff9800;
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.exam-coupon-input.exam-coupon-input--error {
  background-color: #ffcdd2;
  border-color: #e57373;
}

.exam-coupon-button {
  padding: 10px 24px;
  background: #ff9800;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

@media screen and (max-width: 480px) {
  .exam-coupon-form {
    flex-direction: column;
    width: 100%;
  }

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

  .exam-coupon-button {
    width: 100%;
  }
}

.exam-discount-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e3f2fd;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 12px;
  border: 1px solid #bbdefb;
}

.exam-discount-label {
  font-size: 15px;
  font-weight: 600;
  color: #1976d2;
}

.exam-discount-value {
  font-size: 16px;
  font-weight: 700;
  color: #1976d2;
}

/* ========================================
   フォームチェッカー（残り入力項目表示）
   受験申込み専用 - order.cssとは完全に独立
======================================== */
.exam-form-checker {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: auto;
  max-width: 280px;
  background: rgba(233, 30, 99, 0.95);
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  animation: slideInLeft 0.3s ease;
  box-sizing: border-box;
}

.exam-form-checker-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  opacity: 0.9;
  line-height: 1.4;
}

.exam-form-checker-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.exam-form-checker-number {
  font-size: 28px;
  font-weight: 700;
  color: #ffeb3b;
  display: inline-block;
  margin: 0 4px;
  line-height: 1;
  vertical-align: middle;
}

@media screen and (max-width: 480px) {
  .exam-form-checker {
    position: fixed;
    top: 14%;
    right: 0;
    left: auto;
    bottom: auto;
    width: auto;
    max-width: 100px;
    min-width: 80px;
    text-align: center;
    padding: 6px 10px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  .exam-form-checker-label {
    font-size: 8px;
    margin-bottom: 3px;
    line-height: 1.2;
  }

  .exam-form-checker-text {
    font-size: 11px;
    line-height: 1.3;
  }

  /* スマホ表示：「で完了！」部分を非表示 */
  .exam-form-checker-completion {
    display: none;
  }

  .exam-form-checker-number {
    font-size: 16px;
    margin: 0 2px;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ========================================
   ユーティリティ
======================================== */
.exam-text-center {
  text-align: center;
}

.exam-mt-16 {
  margin-top: 16px;
}

.exam-mb-16 {
  margin-bottom: 16px;
}

.exam-hidden {
  display: none !important;
}
