@charset "UTF-8";

/* ============================================
   認定証申込み専用CSS
   cert- プレフィックスで名前空間を分離
============================================ */

/* 必須項目カウントダウン表示 */
#form_checker {
  position: fixed;
  top: 430px;
  right: 0;
  padding: 0.5rem;
  min-width: 170px;
  font-size: 0.9rem;
  color: white;
  text-align: center;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  background: rgba(235, 107, 164, 0.8);
  z-index: 1000;
}

@media screen and (max-width: 480px) {
  #form_checker {
    top: auto;
    right: auto;
    bottom: 30px;
    left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
  }
}

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

#form_checker .form_check-text #check-number {
  color: #fff5a0;
  font-size: 1.3rem;
}

/* ステップ表示エリア */
.cert-process-area {
  margin: 0 auto;
  padding: 24px 0;
  width: 100%;
  background: #f7f9fc;
  border-bottom: 2px solid #e5e9f0;
}

.cert-process {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  width: 90%;
  max-width: 1000px;
  list-style: none;
}

@media screen and (max-width: 480px) {
  .cert-process {
    width: 95%;
  }
}

.cert-process-item {
  flex: 1;
  margin: 0;
  padding: 0;
}

.cert-process-content {
  margin: 0 auto;
  padding: 0;
  width: 100%;
  text-align: center;
}

.cert-process-number {
  margin: 0 0 8px 0;
  padding: 0;
  width: 100%;
  font-size: 0.85rem;
  font-weight: 700;
  color: #9ca3af;
  text-align: center;
  letter-spacing: 0.05em;
}

@media screen and (max-width: 480px) {
  .cert-process-number {
    font-size: 0.7rem;
    margin-bottom: 6px;
  }
}

.cert-process-text {
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: 0.9rem;
  color: #9ca3af;
  text-align: center;
}

@media screen and (max-width: 480px) {
  .cert-process-text {
    font-size: 0.7rem;
  }
}

.cert-process-item--current .cert-process-number {
  color: #1574a0;
}

.cert-process-item--current .cert-process-text {
  color: #1574a0;
  font-weight: 600;
}

.cert-process-separator {
  flex: 0 0 40px;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: #d1d5db;
  text-align: center;
}

@media screen and (max-width: 480px) {
  .cert-process-separator {
    flex: 0 0 24px;
    font-size: 0.7rem;
  }
}

/* コンテナ */
.cert-container {
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%;
  max-width: 1000px;
  box-sizing: border-box;
}

@media screen and (max-width: 480px) {
  .cert-container {
    padding: 24px 16px;
  }
}

.cert-main-section {
  margin: 0;
  padding: 0;
  width: 100%;
}

.cert-page-title {
  margin: 0 0 40px 0;
  padding: 0;
  width: 100%;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
}

@media screen and (max-width: 480px) {
  .cert-page-title {
    font-size: 1.4rem;
    margin-bottom: 32px;
  }
}

/* セクション */
.cert-section {
  margin: 0 0 32px 0;
  padding: 0;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

@media screen and (max-width: 480px) {
  .cert-section {
    margin-bottom: 24px;
    border-radius: 8px;
  }
}

.cert-section-header {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 20px 28px;
  width: 100%;
  background: #1574a0;
  border: none;
  box-sizing: border-box;
}

@media screen and (max-width: 480px) {
  .cert-section-header {
    padding: 16px 20px;
  }
}

.cert-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 16px 0 0;
  padding: 0;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  font-weight: 700;
  color: #1574a0;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}

@media screen and (max-width: 480px) {
  .cert-section-number {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    margin-right: 12px;
  }
}

.cert-section-title {
  margin: 0;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

@media screen and (max-width: 480px) {
  .cert-section-title {
    font-size: 0.95rem;
  }
}

.cert-section-body {
  margin: 0;
  padding: 32px 40px;
  width: 100%;
  background: #fff;
  box-sizing: border-box;
}

@media screen and (max-width: 480px) {
  .cert-section-body {
    padding: 24px 20px;
  }
}

/* 認定証種別選択 */
.cert-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  width: 100%;
}

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

.cert-type-item {
  margin: 0;
  padding: 0;
}

.cert-type-item input[type="checkbox"] {
  display: none;
}

.cert-type-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 32px 20px;
  width: 100%;
  min-height: 140px;
  background: #fafbfc;
  border: 3px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

@media screen and (max-width: 480px) {
  .cert-type-label {
    min-height: 120px;
    padding: 24px 16px;
  }
}

.cert-type-label:hover {
  border-color: #1574a0;
  background: #f0f7fa;
}

.cert-type-item input[type="checkbox"]:checked + .cert-type-label {
  background: #e8f4f8;
  border-color: #1574a0;
  box-shadow: 0 4px 20px rgba(21, 116, 160, 0.15);
}

.cert-type-name {
  display: block;
  margin: 0 0 16px 0;
  padding: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
}

@media screen and (max-width: 480px) {
  .cert-type-name {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }
}

.cert-type-price-box {
  display: block;
  margin: 0;
  padding: 8px 24px;
  font-size: 1.2rem;
  font-weight: 700;
  /* color: #dc2626; */
  color: #666;
  background: #fff;
  /* border: 2px solid #dc2626; */
  border: 1px solid #666;
  border-radius: 24px;
  text-align: center;
}

@media screen and (max-width: 480px) {
  .cert-type-price-box {
    font-size: 1.1rem;
    padding: 7px 20px;
  }
}

/* 資格選択 */
.cert-category-wrapper {
  margin: 0;
  padding: 0;
  width: 100%;
}

.cert-category-wrapper:first-child .cert-category-title {
  margin-top: 0;
}

.cert-category-title {
  margin: 32px 0 20px 0;
  padding: 0 0 0 18px;
  width: 100%;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0a4c6b;
  border-left: 5px solid #1574a0;
  position: relative;
}

@media screen and (max-width: 480px) {
  .cert-category-title {
    font-size: 1rem;
    /* margin-top: 24px;
    margin-bottom: 16px; */
    margin: 16px 0 0 0;
    padding: 14px 40px 14px 14px;
    border-left-width: 4px;
    background: #f7f9fc;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .cert-category-title:hover {
    background: #edf4f7;
  }

  .cert-category-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cert-category-icon::before {
    content: "▶";
    font-size: 0.8rem;
    color: #1574a0;
    transition: transform 0.3s ease;
  }

  .cert-category-title.cert-category--open .cert-category-icon::before {
    transform: rotate(90deg);
  }
}

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

@media screen and (max-width: 480px) {
  .cert-shikaku-list {
    grid-template-columns: 1fr;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
  }

  .cert-category-title.cert-category--open + .cert-shikaku-list {
    max-height: 5000px;
    opacity: 1;
    margin-top: 16px;
  }
}

.cert-shikaku-item {
  margin: 0;
  padding: 0;
}

.cert-shikaku-item input[type="checkbox"] {
  display: none;
}

.cert-shikaku-label {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 16px 18px 16px 50px;
  width: 100%;
  font-size: 0.95rem;
  color: #374151;
  background: #fafbfc;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-sizing: border-box;
  min-height: 56px;
}

@media screen and (max-width: 480px) {
  .cert-shikaku-label {
    padding: 14px 16px 14px 46px;
    font-size: 0.9rem;
    min-height: 52px;
  }
}

.cert-shikaku-label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  display: block;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 2px solid #d1d5db;
  border-radius: 5px;
  transition: all 0.2s ease;
}

@media screen and (max-width: 480px) {
  .cert-shikaku-label::before {
    width: 20px;
    height: 20px;
    left: 14px;
  }
}

.cert-shikaku-label::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 23px;
  transform: translateY(-50%) rotate(45deg);
  display: block;
  width: 6px;
  height: 12px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  opacity: 0;
  transition: all 0.2s ease;
}

@media screen and (max-width: 480px) {
  .cert-shikaku-label::after {
    left: 21px;
    width: 5px;
    height: 11px;
  }
}

.cert-shikaku-label:hover {
  border-color: #1574a0;
  background: #f0f7fa;
}

.cert-shikaku-item input[type="checkbox"]:checked + .cert-shikaku-label {
  background: #e8f4f8;
  border-color: #1574a0;
  font-weight: 600;
  color: #0a4c6b;
}

.cert-shikaku-item input[type="checkbox"]:checked + .cert-shikaku-label::before {
  background: #1574a0;
  border-color: #1574a0;
}

.cert-shikaku-item input[type="checkbox"]:checked + .cert-shikaku-label::after {
  opacity: 1;
}

/* ボタンエリア */
.cert-btn-area {
  margin: 48px auto 0 auto;
  padding: 0;
  width: 100%;
  text-align: center;
}

@media screen and (max-width: 480px) {
  .cert-btn-area {
    margin-top: 40px;
  }
}

.cert-submit-btn {
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 480px;
  height: 64px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  background: #1574a0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(21, 116, 160, 0.3);
}

@media screen and (max-width: 480px) {
  .cert-submit-btn {
    height: 56px;
    font-size: 1.05rem;
    max-width: 100%;
  }
}

.cert-submit-btn:hover {
  background: #125d7f;
  box-shadow: 0 6px 20px rgba(21, 116, 160, 0.4);
  transform: translateY(-2px);
}

.cert-submit-btn:disabled,
.cert-submit-btn.disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.cert-submit-btn:disabled:hover,
.cert-submit-btn.disabled:hover {
  background: #d1d5db;
  box-shadow: none;
  transform: none;
}

/* リダイレクトアラート */
.redirect-alert {
  margin: 60px auto;
  padding: 2em;
  width: 60%;
  font-size: 1rem;
  color: #000;
  text-align: center;
  line-height: 1.8rem;
  border-radius: 5px;
  background: #fdd8d8;
}

@media screen and (max-width: 480px) {
  .redirect-alert {
    width: 90%;
    padding: 1.5em;
    font-size: 0.9rem;
  }
}

.redirect-alert .back_to_select {
  margin: 20px auto 0 auto;
  padding: 0;
  width: 100%;
}

.redirect-alert .back_to_select a {
  display: inline-block;
  margin: 0 auto;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #cf5d5d;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* 入力画面専用スタイル */
.cert-input-container {
  margin: 0 auto;
  padding: 32px 20px 80px 20px;
  width: 100%;
  max-width: 1000px;
  box-sizing: border-box;
}

@media screen and (max-width: 480px) {
  .cert-input-container {
    padding: 24px 16px 60px 16px;
  }
}

.cert-input-section {
  margin: 0 0 32px 0;
  padding: 0;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

@media screen and (max-width: 480px) {
  .cert-input-section {
    margin-bottom: 24px;
    border-radius: 8px;
  }
}

.cert-input-section-header {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 20px 28px;
  width: 100%;
  background: #1574a0;
  border: none;
  box-sizing: border-box;
}

@media screen and (max-width: 480px) {
  .cert-input-section-header {
    padding: 16px 20px;
  }
}

.cert-input-section-title {
  margin: 0;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

@media screen and (max-width: 480px) {
  .cert-input-section-title {
    font-size: 1rem;
  }
}

.cert-input-section-body {
  margin: 0;
  padding: 32px 40px;
  width: 100%;
  box-sizing: border-box;
}

@media screen and (max-width: 480px) {
  .cert-input-section-body {
    padding: 24px 20px;
  }
}

.cert-form-table {
  margin: 0;
  padding: 0;
  width: 100%;
  border-collapse: collapse;
}

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

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

.cert-form-table th {
  padding: 20px 0 20px 0;
  width: 30%;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  text-align: left;
  vertical-align: top;
  box-sizing: border-box;
}

@media screen and (max-width: 480px) {
  .cert-form-table th {
    display: block;
    padding: 16px 0 8px 0;
    width: 100%;
    font-size: 0.9rem;
  }
}

.cert-form-table th.required::after {
  content: "必須";
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #dc2626;
  border-radius: 4px;
  vertical-align: middle;
}

.cert-form-table td {
  padding: 20px 0 20px 24px;
  width: 70%;
  box-sizing: border-box;
}

@media screen and (max-width: 480px) {
  .cert-form-table td {
    display: block;
    padding: 0 0 16px 0;
    width: 100%;
  }
}

.cert-form-table input[type="text"],
.cert-form-table input[type="email"],
.cert-form-table input[type="tel"],
.cert-form-table input[type="number"],
.cert-form-table select,
.cert-form-table textarea {
  margin: 0;
  padding: 12px 16px;
  width: 100%;
  font-size: 1rem;
  color: #1f2937;
  background: #fff;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

/* 郵便番号入力欄は横並びボタンのため幅を調整 */
.cert-form-table input#zip {
  width: calc(100% - 140px);
  display: inline-block;
  vertical-align: middle;
}

@media screen and (max-width: 480px) {
  .cert-form-table input#zip {
    width: 100%;
    display: block;
    margin-bottom: 8px;
  }
}

@media screen and (max-width: 480px) {
  .cert-form-table input[type="text"],
  .cert-form-table input[type="email"],
  .cert-form-table input[type="tel"],
  .cert-form-table input[type="number"],
  .cert-form-table select,
  .cert-form-table textarea {
    font-size: 0.95rem;
    padding: 11px 14px;
  }
}

.cert-form-table input:focus,
.cert-form-table select:focus,
.cert-form-table textarea:focus {
  outline: none;
  border-color: #1574a0;
  box-shadow: 0 0 0 3px rgba(21, 116, 160, 0.1);
}

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

.form-error {
  display: none;
  margin: 8px 0 0 0;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
}

@media screen and (max-width: 480px) {
  .form-error {
    font-size: 0.8rem;
  }
}

.cert-auto-zip-btn {
  display: inline-block;
  margin: 0 0 0 8px;
  padding: 12px 16px;
  min-width: 120px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: #f78205;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.cert-auto-zip-btn:hover {
  background: #d66f04;
}

.cert-auto-zip-btn:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}

@media screen and (max-width: 480px) {
  .cert-auto-zip-btn {
    display: block;
    margin: 8px 0 0 0;
    width: 100%;
  }
}

/* 支払い方法選択 */
.cert-payment-list {
  margin: 0;
  padding: 0;
  width: 100%;
  list-style: none;
}

.cert-payment-item {
  margin: 0 0 16px 0;
  padding: 0;
}

.cert-payment-item:last-child {
  margin-bottom: 0;
}

.cert-payment-item input[type="radio"] {
  display: none;
}

.cert-payment-label {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 18px 20px 18px 52px;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  background: #fafbfc;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-sizing: border-box;
  min-height: 60px;
}

@media screen and (max-width: 480px) {
  .cert-payment-label {
    padding: 16px 18px 16px 48px;
    font-size: 0.95rem;
    min-height: 56px;
  }
}

.cert-payment-label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  display: block;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  transition: all 0.2s ease;
}

@media screen and (max-width: 480px) {
  .cert-payment-label::before {
    left: 16px;
  }
}

.cert-payment-label::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  display: block;
  width: 10px;
  height: 10px;
  background: #1574a0;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.2s ease;
}

@media screen and (max-width: 480px) {
  .cert-payment-label::after {
    left: 22px;
  }
}

.cert-payment-label:hover {
  border-color: #1574a0;
  background: #f0f7fa;
}

.cert-payment-item input[type="radio"]:checked + .cert-payment-label {
  background: #e8f4f8;
  border-color: #1574a0;
  color: #0a4c6b;
}

.cert-payment-item input[type="radio"]:checked + .cert-payment-label::before {
  border-color: #1574a0;
}

.cert-payment-item input[type="radio"]:checked + .cert-payment-label::after {
  opacity: 1;
}

.cert-payment-detail {
  display: none;
  margin: 16px 0 0 0;
  padding: 20px 24px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.cert-payment-detail.active {
  display: block;
}

@media screen and (max-width: 480px) {
  .cert-payment-detail {
    padding: 16px 20px;
  }
}

.cert-payment-detail h4 {
  margin: 0 0 12px 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
}

@media screen and (max-width: 480px) {
  .cert-payment-detail h4 {
    font-size: 0.95rem;
  }
}

.cert-payment-detail p {
  margin: 0 0 12px 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #4b5563;
}

.cert-payment-detail p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 480px) {
  .cert-payment-detail p {
    font-size: 0.85rem;
  }
}

/* ボタンエリア（入力・確認画面） */
.cert-form-btn-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 48px auto 0 auto;
  padding: 0;
  width: 100%;
  max-width: 800px;
}

@media screen and (max-width: 480px) {
  .cert-form-btn-area {
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
  }
}

.cert-back-btn {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 32px;
  height: 56px;
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  background: #fff;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media screen and (max-width: 480px) {
  .cert-back-btn {
    width: 100%;
    height: 52px;
    font-size: 0.95rem;
  }
}

.cert-back-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.cert-form-submit-btn {
  flex: 1 1 auto;
  margin: 0;
  padding: 0 32px;
  height: 56px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: #1574a0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(21, 116, 160, 0.3);
}

@media screen and (max-width: 480px) {
  .cert-form-submit-btn {
    width: 100%;
    height: 52px;
    font-size: 0.95rem;
  }
}

.cert-form-submit-btn:hover {
  background: #125d7f;
  box-shadow: 0 6px 20px rgba(21, 116, 160, 0.4);
  transform: translateY(-2px);
}

.cert-form-submit-btn:disabled,
.cert-form-submit-btn.disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* 確認画面専用 */
.cert-confirm-selected-list {
  margin: 0;
  padding: 0;
  width: 100%;
  list-style: none;
}

.cert-confirm-selected-item {
  margin: 0 0 16px 0;
  padding: 20px 24px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

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

@media screen and (max-width: 480px) {
  .cert-confirm-selected-item {
    padding: 16px 20px;
    margin-bottom: 12px;
  }
}

.cert-confirm-item-row {
  display: flex;
  align-items: flex-start;
  /* gap: 24px; */
}

@media screen and (max-width: 480px) {
  .cert-confirm-item-row {
    flex-direction: column;
    gap: 12px;
  }
}

.cert-confirm-shikaku-name {
  margin: 0;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  width: 75%;
}

@media screen and (max-width: 480px) {
  .cert-confirm-shikaku-name {
    font-size: 1rem;
    width: 100%;
  }
}

.cert-confirm-cert-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 25%;
  min-width: 160px;
}

.cert-confirm-cert-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* gap: 16px; */
  gap: 0;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  color: #4b5563;
}

@media screen and (max-width: 480px) {
  .cert-confirm-cert-type {
    font-size: 0.9rem;
    gap: 12px;
  }
}

.cert-type-title {
  width: 50%;
}

.cert-type-price {
  width: 50%;
  white-space: nowrap;
  text-align: right;
}

.cert-confirm-total-area {
  margin: 24px 0 0 0;
  padding: 20px 24px;
  background: #f0f7fa;
  border: 2px solid #1574a0;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (max-width: 480px) {
  .cert-confirm-total-area {
    padding: 16px 20px;
  }
}

.cert-confirm-total-label {
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #103674;
}

@media screen and (max-width: 480px) {
  .cert-confirm-total-label {
    font-size: 0.95rem;
  }
}

.cert-confirm-total-price {
  margin: 0;
  padding: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1574a0;
}

@media screen and (max-width: 480px) {
  .cert-confirm-total-price {
    font-size: 1.5rem;
  }
}

.cert-confirm-data-table {
  margin: 0;
  padding: 0;
  width: 100%;
  border-collapse: collapse;
}

.cert-confirm-data-table tr {
  border-bottom: 1px solid #e5e7eb;
}

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

.cert-confirm-data-table th {
  padding: 16px 0;
  width: 30%;
  font-size: 1rem;
  font-weight: 600;
  color: #444649;
  text-align: left;
  vertical-align: top;
}

@media screen and (max-width: 480px) {
  .cert-confirm-data-table th {
    display: block;
    padding: 12px 0 6px 0;
    width: 100%;
    font-size: 0.85rem;
  }
}

.cert-confirm-data-table td {
  padding: 16px 0 16px 24px;
  width: 70%;
  font-size: 1rem;
  color: #1f2937;
  line-height: 1.5;
}

@media screen and (max-width: 480px) {
  .cert-confirm-data-table td {
    display: block;
    padding: 0 0 12px 0;
    width: 100%;
    font-size: 0.9rem;
  }
}

/* 完了画面専用 */
.cert-complete-message-area {
  margin: 0 auto;
  padding: 60px 40px;
  width: 100%;
  max-width: 800px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

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

.cert-complete-title {
  margin: 0 0 24px 0;
  padding: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1574a0;
}

@media screen and (max-width: 480px) {
  .cert-complete-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }
}

.cert-complete-message {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: #4b5563;
}

@media screen and (max-width: 480px) {
  .cert-complete-message {
    font-size: 0.9rem;
  }
}

.cert-complete-link {
  display: inline-block;
  margin: 32px auto 0 auto;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  color: #1574a0;
  background: #fff;
  border: 2px solid #1574a0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cert-complete-link:hover {
  background: #1574a0;
  color: #fff;
}

@media screen and (max-width: 480px) {
  .cert-complete-link {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 24px auto 0 auto;
    font-size: 0.95rem;
  }
}

/* スライドインパネル */
.cert-slide-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-top: 2px solid #e5e7eb;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.cert-slide-panel.cert-slide-panel--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cert-slide-panel-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 20px 32px;
  width: 100%;
  max-width: 1000px;
  box-sizing: border-box;
}

@media screen and (max-width: 480px) {
  .cert-slide-panel-inner {
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
  }
}

.cert-slide-panel-info {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

@media screen and (max-width: 480px) {
  .cert-slide-panel-info {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
}

.cert-slide-panel-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media screen and (max-width: 480px) {
  .cert-slide-panel-item {
    width: 100%;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
  }

  .cert-slide-panel-item:last-child {
    border-bottom: none;
  }
}

.cert-slide-panel-item--total {
  margin-left: auto;
}

@media screen and (max-width: 480px) {
  .cert-slide-panel-item--total {
    margin-left: 0;
    padding-top: 12px;
    border-top: 2px solid #e5e7eb;
  }
}

.cert-slide-panel-label {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}

@media screen and (max-width: 480px) {
  .cert-slide-panel-label {
    font-size: 0.85rem;
  }
}

.cert-slide-panel-value {
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
}

@media screen and (max-width: 480px) {
  .cert-slide-panel-value {
    font-size: 0.9rem;
  }
}

.cert-slide-panel-total {
  font-size: 1.4rem;
  font-weight: 700;
  color: #dc2626;
}

@media screen and (max-width: 480px) {
  .cert-slide-panel-total {
    font-size: 1.2rem;
  }
}

.cert-slide-panel-action {
  flex-shrink: 0;
}

@media screen and (max-width: 480px) {
  .cert-slide-panel-action {
    width: 100%;
  }
}

.cert-slide-panel-btn {
  margin: 0;
  padding: 0 40px;
  height: 56px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: #1574a0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(21, 116, 160, 0.3);
  white-space: nowrap;
}

.cert-slide-panel-btn:hover {
  background: #125d7f;
  box-shadow: 0 6px 20px rgba(21, 116, 160, 0.4);
  transform: translateY(-2px);
}

@media screen and (max-width: 480px) {
  .cert-slide-panel-btn {
    width: 100%;
    height: 52px;
    font-size: 1rem;
  }
}

/* 支払い方法表示ボックス（確認画面） */
.cert-payment-display {
  padding: 8px 20px;
  /* background: #f0f7fa; */
  /* border: 2px solid #1574a0;
  border-radius: 8px; */
  font-size: 1.3rem;
  font-weight: 700;
  /* color: #1574a0; */
  color: #000;
}

@media screen and (max-width: 480px) {
  .cert-payment-display {
    font-size: 1rem;
  }
}

/* 必須マーク（支払い方法セクション） */
.cert-required-mark {
  color: #fca5a5;
  font-size: 0.85rem;
  margin-left: 8px;
}

@media screen and (max-width: 480px) {
  .cert-required-mark {
    font-size: 0.8rem;
  }
}

/* クレジットカード画像エリア */
.cert-ccard-img {
  margin: 16px 0;
}

.cert-ccard-img img {
  max-width: 100%;
  height: auto;
}

/* フォームグループ（クレジット決済フォーム） */
.cert-form-group {
  margin-bottom: 16px;
}

.cert-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

@media screen and (max-width: 480px) {
  .cert-form-group label {
    font-size: 0.85rem;
  }
}

.cert-form-group input[type="text"],
.cert-form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  box-sizing: border-box;
}

@media screen and (max-width: 480px) {
  .cert-form-group input[type="text"],
  .cert-form-group select {
    font-size: 0.95rem;
    padding: 11px 14px;
  }
}

.cert-form-group input[type="text"]:focus,
.cert-form-group select:focus {
  outline: none;
  border-color: #1574a0;
  box-shadow: 0 0 0 3px rgba(21, 116, 160, 0.1);
}

/* カード名義（姓名分離） */
.cert-form-group input[type="text"].cert-billing-last-name {
  margin-bottom: 8px;
}

/* 有効期限入力エリア */
.cert-expiration-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-expiration-group input[type="text"] {
  width: 80px;
}

/* セキュリティコード入力 */
.cert-form-group input[type="text"].cert-security-code {
  width: 100px;
}

/* 分割回数選択グループ（初期非表示） */
.cert-divide-group {
  display: none;
}

#divide_group {
  display: none;
}

/* エラー時のタイトル色 */
.cert-complete-title--error {
  color: #dc2626;
}

/* クレジットカード決済テーブル */
.cert-credit-table {
  margin: 20px 0 0 0;
  padding: 0;
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.cert-credit-table tr {
  border-bottom: none;
}

.cert-credit-table th {
  padding: 16px 20px;
  width: 180px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  text-align: left;
  vertical-align: middle;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

@media screen and (max-width: 480px) {
  .cert-credit-table th {
    display: block;
    padding: 12px 16px;
    width: 100%;
    font-size: 0.9rem;
    border-bottom: none;
  }
}

.cert-credit-table td {
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: none;
  vertical-align: middle;
}

@media screen and (max-width: 480px) {
  .cert-credit-table td {
    display: block;
    padding: 12px 16px;
    width: 100%;
    border-left: 1px solid #e5e7eb;
    border-top: none;
  }
}

/* カード番号入力 */
.cert-credit-table input[type="text"]#cc_number {
  width: 100%;
  max-width: 400px;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
}

@media screen and (max-width: 480px) {
  .cert-credit-table input[type="text"]#cc_number {
    max-width: 100%;
  }
}

/* カード名義（姓名横並び） */
.cert-card-name-wrapper {
  display: flex;
  gap: 12px;
  width: 100%;
}

@media screen and (max-width: 480px) {
  .cert-card-name-wrapper {
    flex-direction: column;
    gap: 8px;
  }
}

.cert-card-name-field {
  flex: 1;
}

.cert-card-name-label {
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.cert-card-name-wrapper input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
}

.cert-card-name-wrapper input[type="text"]:focus {
  outline: none;
  border-color: #1574a0;
  box-shadow: 0 0 0 3px rgba(21, 116, 160, 0.1);
}

/* 有効期限（月年横並び） */
.cert-expiration-wrapper {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

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

.cert-expiration-field {
  flex: 1;
}

.cert-expiration-label {
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.cert-expiration-wrapper input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  text-align: center;
}

.cert-expiration-wrapper input[type="text"]:focus {
  outline: none;
  border-color: #1574a0;
  box-shadow: 0 0 0 3px rgba(21, 116, 160, 0.1);
}

/* セキュリティコード */
.cert-credit-table input[type="text"]#security_code {
  width: 120px;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
}

@media screen and (max-width: 480px) {
  .cert-credit-table input[type="text"]#security_code {
    width: 100%;
    max-width: 180px;
  }
}

.cert-credit-table input[type="text"]:focus {
  outline: none;
  border-color: #1574a0;
  box-shadow: 0 0 0 3px rgba(21, 116, 160, 0.1);
}

/* 支払い方法と分割回数 */
.cert-payment-method-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

@media screen and (max-width: 480px) {
  .cert-payment-method-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.cert-payment-method-wrapper select#dealing {
  width: 200px;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
}

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

.cert-payment-method-wrapper select:focus {
  outline: none;
  border-color: #1574a0;
  box-shadow: 0 0 0 3px rgba(21, 116, 160, 0.1);
}

/* 分割回数グループ */
.cert-payment-method-wrapper .cert-divide-group {
  display: none;
  align-items: center;
  gap: 8px;
}

@media screen and (max-width: 480px) {
  .cert-payment-method-wrapper .cert-divide-group {
    width: 100%;
  }
}

.cert-divide-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.cert-payment-method-wrapper select#divide {
  width: 140px;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
}

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

/* エラーメッセージ（クレジットカードテーブル内） */
.cert-credit-table .form-error {
  display: none;
  margin: 8px 0 0 0;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
}
