@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 {
  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 {
  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;
  }
}

.cert-header {
  margin: 0 auto;
  padding: 0;
  width: 100%;
  border-bottom: none;
}

.cert-header .cert-header-wrapper {
  margin: 0 auto;
  padding: 0;
  width: 1040px;
  height: 100%;
}

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

.cert-header .cert-header-wrapper .cert-main-logo {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 30%;
  height: 100%;
}

@media screen and (max-width: 480px) {
  .cert-header .cert-header-wrapper .cert-main-logo {
    width: 50%;
  }
}

.cert-header .cert-header-wrapper .cert-main-logo > a {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0.8em 0;
  width: 100%;
  height: 100%;
}

.cert-header .cert-header-wrapper .cert-main-logo > a > img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.cert-header .cert-offer-head-visual {
  position: relative;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  height: 220px;
}

@media screen and (max-width: 480px) {
  .cert-header .cert-offer-head-visual {
    height: 120px;
  }
}

.cert-header .cert-offer-head-visual > img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.cert-header .cert-offer-head-visual .cert-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.9);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 480px) {
  .cert-header .cert-offer-head-visual .cert-offer-title-area {
    width: 90%;
  }
}

.cert-header .cert-offer-head-visual .cert-offer-title-area .cert-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) {
  .cert-header .cert-offer-head-visual .cert-offer-title-area .cert-exam-title {
    font-size: 1.2rem;
  }
}

.cert-header .cert-offer-head-visual .cert-offer-title-area .cert-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) {
  .cert-header .cert-offer-head-visual .cert-offer-title-area .cert-exam-en-name {
    font-size: 0.9rem;
  }
}

/* ========================================
   ページヘッダー
   ======================================== */
.cert-page-header {
  margin: 40px auto 50px auto;
  padding: 0;
  width: 100%;
  text-align: center;
}

@media screen and (max-width: 480px) {
  .cert-page-header {
    margin: 30px auto 24px auto;
  }
}

.cert-page-description {
  margin: 20px auto 0 auto;
  padding: 0;
  width: 100%;
  font-size: 1.05rem;
  color: #666;
  text-align: center;
  line-height: 1.7;
}

@media screen and (max-width: 480px) {
  .cert-page-description {
    margin-top: 0;
    font-size: 0.95rem;
  }
}

/* ========================================
   セクションタイトル
   ======================================== */
.cert-section-title {
  position: relative;
  margin: 40px auto 60px auto;
  padding: 0 0 30px 0;
  width: 100%;
  font-family: sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}

@media screen and (max-width: 480px) {
  .cert-section-title {
    margin: 30px auto 24px auto;
    font-size: 1.5rem;
  }
}

.cert-section-title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #45857D 0%, #6ba89f 100%);
  border-radius: 3px;
}

.cert-section-title .cert-en-title {
  display: block;
  margin: 12px auto 0 auto;
  padding: 0;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 400;
  color: #888;
  text-align: center;
  letter-spacing: 0.1em;
}

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

/* ========================================
   プロセスエリア
   ======================================== */
.cert-input-process-area {
  margin: 0 auto;
  padding: 20px 0;
  width: 100%;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e0e0e0;
}

.cert-input-process-area .cert-input-process {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0;
  width: 70%;
}

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

.cert-input-process-area .cert-input-process > li {
  margin: 0;
  padding: 0;
  width: 20%;
}

@media screen and (max-width: 480px) {
  .cert-input-process-area .cert-input-process > li:first-of-type,
  .cert-input-process-area .cert-input-process > li:nth-of-type(2n),
  .cert-input-process-area .cert-input-process > li:last-of-type {
    width: 18%;
  }
  .cert-input-process-area .cert-input-process > li:nth-of-type(3n) {
    width: 15%;
  }
}

.cert-input-process-area .cert-input-process > li.cert-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 5%;
  font-size: 1rem;
  color: #c0c0c0;
  text-align: center;
}

@media screen and (max-width: 480px) {
  .cert-input-process-area .cert-input-process > li.cert-separator {
    width: 8%;
    font-size: 0.8rem;
  }
}

.cert-input-process-area .cert-input-process > li .cert-process-cont {
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

.cert-input-process-area .cert-input-process > li .cert-process-cont .cert-step-num {
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  color: #bbb;
  text-align: center;
}

@media screen and (max-width: 480px) {
  .cert-input-process-area .cert-input-process > li .cert-process-cont .cert-step-num {
    font-size: 0.85rem;
  }
}

.cert-input-process-area .cert-input-process > li .cert-process-cont .cert-ja-txt {
  margin: 10px 0 0 0;
  padding: 0;
  width: 100%;
  font-size: 0.9rem;
  color: #bbb;
  text-align: center;
}

@media screen and (max-width: 480px) {
  .cert-input-process-area .cert-input-process > li .cert-process-cont .cert-ja-txt {
    margin-top: 6px;
    font-size: 0.75rem;
  }
}

.cert-input-process-area .cert-input-process > li .cert-process-cont.cert-current .cert-step-num {
  color: #d82121;
}

.cert-input-process-area .cert-input-process > li .cert-process-cont.cert-current .cert-ja-txt {
  color: #d82121;
}

/* ========================================
   メインコンテンツエリア
   ======================================== */
.cert-inquiry-area {
  margin: 0 auto 80px auto;
  padding: 0;
  width: 1040px;
}

@media screen and (max-width: 480px) {
  .cert-inquiry-area {
    width: 96%;
    margin-bottom: 60px;
  }
}

/* ========================================
   セクションカード
   ======================================== */
.cert-section-card {
  margin: 0 auto 40px auto;
  padding: 0;
  width: 100%;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.cert-section-card:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
}

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

.cert-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 1.5em 2em;
  width: 100%;
  background: linear-gradient(135deg, #45857D 0%, #5a9d93 100%);
  border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

@media screen and (max-width: 480px) {
  .cert-card-header {
    padding: 1.2em 1.5em;
    gap: 10px;
  }
}

.cert-card-icon {
  font-size: 1.8rem;
  line-height: 1;
}

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

.cert-card-title {
  margin: 0;
  padding: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

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

.cert-card-body {
  margin: 0;
  padding: 2.5em;
  width: 100%;
  background: #fafafa;
}

@media screen and (max-width: 480px) {
  .cert-card-body {
    padding: 1.8em 1.5em;
  }
}

.cert-card-description {
  margin: 0 0 2em 0;
  padding: 1.2em 1.5em;
  width: 100%;
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  background: #fff;
  border-left: 4px solid #45857D;
  border-radius: 4px;
}

@media screen and (max-width: 480px) {
  .cert-card-description {
    margin-bottom: 1.5em;
    padding: 1em;
    font-size: 0.9rem;
  }
}

.cert-inquiry-area .cert-area-title {
  margin: 0;
  padding: 1em 1.8em;
  width: 100%;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #45857D 0%, #5a9d93 100%);
  border-radius: 6px 6px 0 0;
}

@media screen and (max-width: 480px) {
  .cert-inquiry-area .cert-area-title {
    padding: 0.9em 1.2em;
    font-size: 1rem;
  }
}

.cert-inquiry-area .cert-area-title:not(:first-of-type) {
  margin-top: 30px;
}

.cert-inquiry-area .cert-select-input-area {
  margin: 0 auto;
  padding: 2em 2.5em;
  width: 100%;
  background: #fafafa;
  border-radius: 0 0 6px 6px;
}

@media screen and (max-width: 480px) {
  .cert-inquiry-area .cert-select-input-area {
    padding: 1.5em 1.5em;
  }
}

.cert-inquiry-area .cert-select-input-area input[type=checkbox] {
  display: none;
  position: relative;
}

.cert-inquiry-area .cert-select-input-area .cert-checklabel {
  cursor: pointer;
  display: inline-block;
  padding: 8px 35px;
  position: relative;
  width: auto;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.cert-inquiry-area .cert-select-input-area .cert-checklabel:hover {
  opacity: 0.8;
}

.cert-inquiry-area .cert-select-input-area .cert-checklabel::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5px;
  display: block;
  margin-top: -10px;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.cert-inquiry-area .cert-select-input-area .cert-checklabel::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 13px;
  display: block;
  margin-top: -14px;
  width: 4px;
  height: 18px;
  border-right: 4px solid #45857D;
  border-bottom: 4px solid #45857D;
  transform: rotate(45deg);
  opacity: 0;
  transition: all 0.2s ease;
}

.cert-inquiry-area .cert-select-input-area input[type=checkbox]:checked + .cert-checklabel::before {
  border-color: #45857D;
  background: #f0f8f7;
}

.cert-inquiry-area .cert-select-input-area input[type=checkbox]:checked + .cert-checklabel::after {
  opacity: 1;
}

/* ========================================
   認定証タイプ選択カード
   ======================================== */
.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: 15px;
  }
}

.cert-type-card {
  position: relative;
  margin: 0;
  padding: 0;
}

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

.cert-type-label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2em 1.5em 2em 1.5em;
  width: 100%;
  min-height: 200px;
  background: #fff;
  border: 3px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

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

.cert-type-label:hover {
  border-color: #45857D;
  box-shadow: 0 8px 24px rgba(69, 133, 125, 0.15);
}

.cert-type-label::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: #fff;
  border: 3px solid #d0d0d0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cert-type-label::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 34px;
  width: 8px;
  height: 16px;
  border-right: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: rotate(45deg);
  opacity: 0;
  transition: all 0.3s ease;
}

.cert-type-card input[type="checkbox"]:checked + .cert-type-label {
  background: linear-gradient(135deg, #f0f8f7 0%, #e8f5f3 100%);
  border-color: #45857D;
  border-width: 3px;
  box-shadow: 0 8px 24px rgba(69, 133, 125, 0.2);
}

.cert-type-card input[type="checkbox"]:checked + .cert-type-label::before {
  /* background: linear-gradient(135deg, #45857D 0%, #5a9d93 100%); */
  background: #45857D;
  border-color: #45857D;
  transform: scale(1.05);
}

.cert-type-card input[type="checkbox"]:checked + .cert-type-label::after {
  opacity: 1;
  animation: checkmark-pop 0.3s ease;
}

@keyframes checkmark-pop {
  0% {
    transform: rotate(45deg) scale(0);
    opacity: 0;
  }
  50% {
    transform: rotate(45deg) scale(1.2);
  }
  100% {
    transform: rotate(45deg) scale(1);
    opacity: 1;
  }
}

.cert-type-icon {
  font-size: 3rem;
  margin-bottom: 0.5em;
  line-height: 1;
}

.cert-type-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5em;
}

.cert-type-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d82121;
  margin-bottom: 0.5em;
}

.cert-price-tax {
  font-size: 0.75rem;
  font-weight: 400;
  color: #666;
  margin-left: 0.3em;
}

.cert-type-desc {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  line-height: 1.5;
}

/* ========================================
   資格リストエリア
   ======================================== */
.cert-shikaku-area {
  margin: 0;
  padding: 0;
  width: 100%;
}

.cert-category-section {
  margin: 0 0 2.5em 0;
  padding: 0;
  width: 100%;
}

.cert-category-section:last-child {
  margin-bottom: 0;
}

.cert-category-toggle {
  display: none;
}

.cert-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 1.5em 0;
  padding: 1em 1.5em;
  width: 100%;
  background: #fff;
  border-left: 5px solid #45857D;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: default;
}

.cert-category-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #45857D;
}

@media screen and (max-width: 480px) {
  .cert-category-section {
    margin-bottom: 1.5em;
  }

  .cert-category-header {
    margin: 0;
    padding: 0.8em 1em;
    border-radius: 0;
    background: #f7f7f7;
    cursor: pointer;
  }

  .cert-category-title {
    font-size: 1rem;
  }

  .cert-category-content {
    display: none;
    margin-top: 12px;
  }

  .cert-category-toggle:checked + .cert-category-header + .cert-category-content {
    display: block;
  }

  .cert-category-toggle:checked + .cert-category-header .cert-category-icon {
    transform: rotate(180deg);
  }
}

.cert-category-icon {
  display: none;
  font-size: 0.9rem;
  line-height: 1;
  color: #999;
  transition: transform 0.2s ease;
}

@media screen and (max-width: 480px) {
  .cert-category-icon {
    display: inline-flex;
  }
}

.cert-shikaku-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 0;
  padding: 0;
  width: 100%;
}

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

.cert-shikaku-card {
  position: relative;
  margin: 0;
  padding: 0;
}

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

.cert-shikaku-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1em 1.2em;
  width: 100%;
  font-size: 0.95rem;
  color: #333;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  line-height: 1.5;
}

.cert-shikaku-label:hover {
  border-color: #45857D;
  background: #f9fcfb;
}

.cert-shikaku-card input[type="checkbox"]:checked + .cert-shikaku-label {
  background: linear-gradient(135deg, #f0f8f7 0%, #e8f5f3 100%);
  border-color: #45857D;
  border-width: 2px;
  box-shadow: 0 4px 12px rgba(69, 133, 125, 0.15);
}

.cert-check-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  font-size: 0;
  background: #fff;
  border: 3px solid #d0d0d0;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.cert-check-icon::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 7px;
  width: 6px;
  height: 12px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
  opacity: 0;
  transition: all 0.3s ease;
}

.cert-shikaku-card input[type="checkbox"]:checked + .cert-shikaku-label .cert-check-icon {
  /* background: linear-gradient(135deg, #45857D 0%, #5a9d93 100%); */
  background: #45857D;
  border-color: #45857D;
  transform: scale(1.05);
}

.cert-shikaku-card input[type="checkbox"]:checked + .cert-shikaku-label .cert-check-icon::after {
  opacity: 1;
  animation: checkmark-pop 0.3s ease;
}

.cert-shikaku-name {
  flex: 1;
  font-weight: 500;
}

/* ========================================
   選択情報表示
   ======================================== */
.cert-select-info {
  margin: 0 auto;
  padding: 0;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cert-select-info .cert-info-title {
  position: relative;
  margin: 0 auto;
  padding: 1.2em 1.8em;
  width: 100%;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #45857D 0%, #5a9d93 100%);
  border-radius: 8px 8px 0 0;
}

@media screen and (max-width: 480px) {
  .cert-select-info .cert-info-title {
    padding: 0.9em 1.2em;
    font-size: 1rem;
  }
}

.cert-select-info .cert-select-shikaku {
  margin: 0 auto;
  padding: 0 1.8em;
  width: 100%;
  background: #fafafa;
}

@media screen and (max-width: 480px) {
  .cert-select-info .cert-select-shikaku {
    padding: 0 1em;
  }
}

.cert-select-info .cert-select-shikaku .cert-select-shikaku-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 1.2em 0;
  width: 100%;
  border-bottom: 1px solid #e8e8e8;
}

@media screen and (max-width: 480px) {
  .cert-select-info .cert-select-shikaku .cert-select-shikaku-list {
    padding: 1em 0;
  }
}

.cert-select-info .cert-select-shikaku .cert-select-shikaku-list:last-of-type {
  border-bottom: none;
}

.cert-select-info .cert-select-shikaku .cert-select-shikaku-list .cert-shikaku-title {
  margin: 0;
  padding: 0;
  width: 55%;
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  text-indent: 1.5em;
}

@media screen and (max-width: 480px) {
  .cert-select-info .cert-select-shikaku .cert-select-shikaku-list .cert-shikaku-title {
    margin-bottom: 10px;
    width: 100%;
    font-size: 0.95rem;
    line-height: 1.4;
    text-indent: 0;
  }
}

.cert-select-info .cert-select-shikaku .cert-select-shikaku-list .cert-cert-name {
  position: relative;
  margin: 0 1% 0 0;
  padding: 6px 10px;
  width: 10%;
  font-size: 0.9rem;
  color: #333;
  text-align: center;
  background: #e3f2fd;
  border-radius: 4px;
}

@media screen and (max-width: 480px) {
  .cert-select-info .cert-select-shikaku .cert-select-shikaku-list .cert-cert-name {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    width: 40%;
  }
}

.cert-select-info .cert-select-shikaku .cert-select-shikaku-list .cert-cert-price {
  position: relative;
  margin: 0;
  padding: 0;
  width: 10%;
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
}

@media screen and (max-width: 480px) {
  .cert-select-info .cert-select-shikaku .cert-select-shikaku-list .cert-cert-price {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48%;
  }
}

/* ========================================
   合計金額エリア
   ======================================== */
.cert-total-price-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 20px auto 40px auto;
  padding: 0;
  width: 100%;
  height: 60px;
  background: #fff5f5;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media screen and (max-width: 480px) {
  .cert-total-price-area {
    height: 50px;
  }
}

.cert-total-price-area .cert-total-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 30%;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #e46868 0%, #d85555 100%);
  border-radius: 6px 0 0 6px;
}

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

.cert-total-price-area .cert-total-price {
  display: flex;
  align-items: center;
  justify-content: end;
  margin: 0;
  padding: 0 2em 0 0;
  width: 70%;
  font-size: 1.5rem;
  font-weight: 700;
  color: #d82121;
  text-align: right;
  letter-spacing: 0.05em;
}

@media screen and (max-width: 480px) {
  .cert-total-price-area .cert-total-price {
    font-size: 1.3rem;
    padding-right: 1.5em;
  }
}

/* ========================================
   フォーム関連
   ======================================== */
.cert-input-form,
.cert-confirm-form {
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

.cert-input-form .cert-info-area:not(:first-of-type),
.cert-confirm-form .cert-info-area:not(:first-of-type) {
  margin-top: 30px;
}

.cert-input-form input[type=text],
.cert-input-form input[type=number],
.cert-input-form input[type=tel],
.cert-input-form input[type=email],
.cert-input-form select,
.cert-input-form textarea,
.cert-confirm-form input[type=text],
.cert-confirm-form input[type=number],
.cert-confirm-form input[type=tel],
.cert-confirm-form input[type=email],
.cert-confirm-form select,
.cert-confirm-form textarea {
  padding: 0.7em 1em;
  font-size: 1rem;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease;
}

.cert-input-form input[type=text]:focus,
.cert-input-form input[type=number]:focus,
.cert-input-form input[type=tel]:focus,
.cert-input-form input[type=email]:focus,
.cert-input-form select:focus,
.cert-input-form textarea:focus {
  border-color: #45857D;
  outline: none;
}

.cert-input-form input[name=full_name],
.cert-input-form input[name=phonetic],
.cert-input-form input[name=tel],
.cert-input-form input[name=telephone],
.cert-input-form input[name=email],
.cert-confirm-form input[name=full_name],
.cert-confirm-form input[name=phonetic],
.cert-confirm-form input[name=tel],
.cert-confirm-form input[name=telephone],
.cert-confirm-form input[name=email] {
  width: 50%;
}

@media screen and (max-width: 480px) {
  .cert-input-form input[name=full_name],
  .cert-input-form input[name=phonetic],
  .cert-input-form input[name=tel],
  .cert-input-form input[name=telephone],
  .cert-input-form input[name=email],
  .cert-confirm-form input[name=full_name],
  .cert-confirm-form input[name=phonetic],
  .cert-confirm-form input[name=tel],
  .cert-confirm-form input[name=telephone],
  .cert-confirm-form input[name=email] {
    width: 100%;
  }
}

.cert-input-form input[name=zip],
.cert-confirm-form input[name=zip] {
  width: 30%;
}

@media screen and (max-width: 480px) {
  .cert-input-form input[name=zip],
  .cert-confirm-form input[name=zip] {
    width: 50%;
  }
}

.cert-input-form select,
.cert-confirm-form select {
  width: 30%;
}

@media screen and (max-width: 480px) {
  .cert-input-form select,
  .cert-confirm-form select {
    width: 50%;
  }
}

.cert-input-form input[name=city],
.cert-input-form input[name=address],
.cert-input-form input[name=address_option],
.cert-confirm-form input[name=city],
.cert-confirm-form input[name=address],
.cert-confirm-form input[name=address_option] {
  width: 100%;
}

.cert-input-form textarea,
.cert-confirm-form textarea {
  width: 100%;
  height: 160px;
}

.cert-input-form .cert-auto-zip,
.cert-confirm-form .cert-auto-zip {
  padding: 0.6rem 1.2rem;
  min-width: 3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #f78205 0%, #e67200 100%);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cert-input-form .cert-auto-zip:hover,
.cert-confirm-form .cert-auto-zip:hover {
  background: linear-gradient(135deg, #e67200 0%, #d56600 100%);
}

.cert-input-form .cert-auto-zip.cert-disabled,
.cert-confirm-form .cert-auto-zip.cert-disabled {
  background: #ccc;
  cursor: not-allowed;
}

.cert-input-form .cert-info-title,
.cert-confirm-form .cert-info-title {
  position: relative;
  margin: 0 auto 2em auto;
  padding: 1.2em 1.8em;
  width: 100%;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #45857D 0%, #5a9d93 100%);
  border-radius: 6px 6px 0 0;
}

@media screen and (max-width: 480px) {
  .cert-input-form .cert-info-title,
  .cert-confirm-form .cert-info-title {
    margin-bottom: 1.5em;
    padding: 0.9em 1.2em;
    font-size: 1rem;
  }
}

.cert-input-form .cert-info-title.cert-required::after,
.cert-confirm-form .cert-info-title.cert-required::after {
  content: "必須";
  position: absolute;
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
  margin: 0;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  background: #D21717;
  border-radius: 4px;
}

@media screen and (max-width: 480px) {
  .cert-input-form .cert-info-title.cert-required::after,
  .cert-confirm-form .cert-info-title.cert-required::after {
    padding: 4px 12px;
    font-size: 0.75rem;
  }
}

.cert-input-form .cert-personal-info,
.cert-input-form .cert-payment-info,
.cert-confirm-form .cert-personal-info,
.cert-confirm-form .cert-payment-info {
  margin: 30px auto;
  padding: 0 0 2em 0;
  width: 100%;
  background: #fafafa;
  border-radius: 8px;
}

@media screen and (max-width: 480px) {
  .cert-input-form .cert-personal-info,
  .cert-input-form .cert-payment-info,
  .cert-confirm-form .cert-personal-info,
  .cert-confirm-form .cert-payment-info {
    /* padding: 0.5em; */
    padding: 0;
  }
}

.cert-input-form .cert-personal-info .cert-exam-order-tbl,
.cert-input-form .cert-payment-info .cert-exam-order-tbl,
.cert-confirm-form .cert-personal-info .cert-exam-order-tbl,
.cert-confirm-form .cert-payment-info .cert-exam-order-tbl {
  margin: 30px auto 0 auto;
  padding: 0;
  width: 94%;
  border-collapse: collapse;
}

@media screen and (max-width: 480px) {
  .cert-input-form .cert-personal-info .cert-exam-order-tbl,
  .cert-input-form .cert-payment-info .cert-exam-order-tbl,
  .cert-confirm-form .cert-personal-info .cert-exam-order-tbl,
  .cert-confirm-form .cert-payment-info .cert-exam-order-tbl {
    margin-top: 20px;
    width: 98%;
  }
}

.cert-input-form .cert-personal-info .cert-exam-order-tbl .cert-in-name,
.cert-input-form .cert-payment-info .cert-exam-order-tbl .cert-in-name,
.cert-confirm-form .cert-personal-info .cert-exam-order-tbl .cert-in-name,
.cert-confirm-form .cert-payment-info .cert-exam-order-tbl .cert-in-name {
  position: relative;
  margin: 0;
  padding: 20px 0 20px 30px;
  width: 25%;
  font-size: 1rem;
  font-weight: 600;
  color: #644000;
  text-align: left;
  vertical-align: middle;
  background: #FBF1E2;
  border-bottom: 5px solid #fff;
}

@media screen and (max-width: 480px) {
  .cert-input-form .cert-personal-info .cert-exam-order-tbl .cert-in-name,
  .cert-input-form .cert-payment-info .cert-exam-order-tbl .cert-in-name,
  .cert-confirm-form .cert-personal-info .cert-exam-order-tbl .cert-in-name,
  .cert-confirm-form .cert-payment-info .cert-exam-order-tbl .cert-in-name {
    display: block;
    padding: 10px 0 10px 15px;
    width: 100%;
    border-bottom: none;
  }
}

.cert-input-form .cert-personal-info .cert-exam-order-tbl .cert-in-name.cert-required::after,
.cert-input-form .cert-payment-info .cert-exam-order-tbl .cert-in-name.cert-required::after,
.cert-confirm-form .cert-personal-info .cert-exam-order-tbl .cert-in-name.cert-required::after,
.cert-confirm-form .cert-payment-info .cert-exam-order-tbl .cert-in-name.cert-required::after {
  content: "必須";
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  margin: 0;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  background: #D21717;
  border-radius: 4px;
}

.cert-input-form .cert-personal-info .cert-exam-order-tbl .cert-input-area,
.cert-input-form .cert-payment-info .cert-exam-order-tbl .cert-input-area,
.cert-confirm-form .cert-personal-info .cert-exam-order-tbl .cert-input-area,
.cert-confirm-form .cert-payment-info .cert-exam-order-tbl .cert-input-area {
  margin: 0;
  padding: 20px;
  width: 75%;
  line-height: 1.6;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}

@media screen and (max-width: 480px) {
  .cert-input-form .cert-personal-info .cert-exam-order-tbl .cert-input-area,
  .cert-input-form .cert-payment-info .cert-exam-order-tbl .cert-input-area,
  .cert-confirm-form .cert-personal-info .cert-exam-order-tbl .cert-input-area,
  .cert-confirm-form .cert-payment-info .cert-exam-order-tbl .cert-input-area {
    display: block;
    padding: 15px 10px;
    width: 100%;
    border-bottom: none;
  }
}

.cert-input-form .cert-personal-info .cert-exam-order-tbl .cert-form-error,
.cert-input-form .cert-payment-info .cert-exam-order-tbl .cert-form-error,
.cert-confirm-form .cert-personal-info .cert-exam-order-tbl .cert-form-error,
.cert-confirm-form .cert-payment-info .cert-exam-order-tbl .cert-form-error {
  display: none;
  margin-bottom: 10px;
  padding: 0.5em;
  width: 100%;
  font-size: 0.9rem;
  color: #c01b1b;
  background: #fdf0f0;
  border-radius: 4px;
}

/* ========================================
   クレジットカード入力テーブル
   ======================================== */
.cert-input-form .cert-payment-info .cert-ccard-tbl .cert-in-name,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-in-name {
  width: 28%;
  color: #333;
  background: #f5f5f7;
  border-bottom: 1px solid #e6e6e6;
}

.cert-input-form .cert-payment-info .cert-ccard-tbl .cert-input-area,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-input-area {
  padding: 18px 20px;
  border-bottom: 1px solid #e6e6e6;
}

.cert-input-form .cert-payment-info .cert-ccard-tbl tr:last-child .cert-in-name,
.cert-input-form .cert-payment-info .cert-ccard-tbl tr:last-child .cert-input-area,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl tr:last-child .cert-in-name,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl tr:last-child .cert-input-area {
  border-bottom: none;
}

.cert-input-form .cert-payment-info .cert-ccard-tbl input[type=text],
.cert-input-form .cert-payment-info .cert-ccard-tbl select,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl input[type=text],
.cert-confirm-form .cert-payment-info .cert-ccard-tbl select {
  width: 100%;
  background: #f8d9d9;
  border: 1px solid #e5c2c2;
  box-shadow: none;
}

.cert-input-form .cert-payment-info .cert-ccard-tbl #dealing,
.cert-input-form .cert-payment-info .cert-ccard-tbl #divide,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl #dealing,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl #divide {
  background: #fff;
  border-color: #d0d0d0;
}

.cert-input-form .cert-payment-info .cert-ccard-tbl #cc_number,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl #cc_number {
  max-width: 480px;
}

.cert-input-form .cert-payment-info .cert-ccard-tbl #security_code,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl #security_code {
  width: 90px;
}

.cert-input-form .cert-payment-info .cert-ccard-tbl .cert-ccard-name,
.cert-input-form .cert-payment-info .cert-ccard-tbl .cert-ccard-expire,
.cert-input-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-ccard-name,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-ccard-expire,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cert-input-form .cert-payment-info .cert-ccard-tbl .cert-ccard-name-field,
.cert-input-form .cert-payment-info .cert-ccard-tbl .cert-ccard-expire-field,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-ccard-name-field,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-ccard-expire-field {
  flex: 1;
  min-width: 0;
}

.cert-input-form .cert-payment-info .cert-ccard-tbl .cert-ccard-expire-field,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-ccard-expire-field {
  max-width: 90px;
}

.cert-input-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay-method,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay-method {
  flex: 0 0 180px;
}

.cert-input-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay-split,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay-split {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 220px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.cert-input-form .cert-payment-info .cert-ccard-tbl .cert-ccard-sub-label,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-ccard-sub-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.cert-input-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay-split .cert-ccard-sub-label,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay-split .cert-ccard-sub-label {
  display: inline-block;
  margin: 0;
  white-space: nowrap;
}

.cert-input-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay-split .select-wrapper,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay-split .select-wrapper {
  display: inline-block;
  flex: 0 0 110px;
}

.cert-input-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay-split select,
.cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay-split select {
  width: 110px;
}

@media screen and (max-width: 480px) {
  .cert-input-form .cert-payment-info .cert-ccard-tbl .cert-in-name,
  .cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-in-name {
    width: 100%;
    border-bottom: none;
  }

  .cert-input-form .cert-payment-info .cert-ccard-tbl .cert-input-area,
  .cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-input-area {
    padding: 15px 12px;
  }

  .cert-input-form .cert-payment-info .cert-ccard-tbl .cert-ccard-name,
  .cert-input-form .cert-payment-info .cert-ccard-tbl .cert-ccard-expire,
  .cert-input-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay,
  .cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-ccard-name,
  .cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-ccard-expire,
  .cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay {
    flex-direction: column;
    gap: 12px;
  }

  .cert-input-form .cert-payment-info .cert-ccard-tbl .cert-ccard-expire-field,
  .cert-input-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay-method,
  .cert-input-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay-split,
  .cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-ccard-expire-field,
  .cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay-method,
  .cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay-split {
    width: 100%;
    max-width: none;
  }

  .cert-input-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay-method,
  .cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay-method {
    flex: 0 0 auto;
    min-height: 0;
  }

  .cert-input-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay-split,
  .cert-confirm-form .cert-payment-info .cert-ccard-tbl .cert-ccard-pay-split {
    flex-direction: row;
    align-items: center;
  }
}

/* ========================================
   支払い方法選択
   ======================================== */
.cert-input-form .cert-personal-info .cert-payment-select,
.cert-input-form .cert-payment-info .cert-payment-select,
.cert-confirm-form .cert-personal-info .cert-payment-select,
.cert-confirm-form .cert-payment-info .cert-payment-select {
  margin: 0 auto;
  padding: 0;
  width: 94%;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.cert-input-form .cert-personal-info .cert-payment-select .cert-payment-item,
.cert-input-form .cert-payment-info .cert-payment-select .cert-payment-item,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-payment-item,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-payment-item {
  margin: 0;
  padding: 15px 15px;
  width: 100%;
  font-size: 1rem;
  color: #333;
  border-bottom: 1px solid #e0e0e0;
}

.cert-input-form .cert-personal-info .cert-payment-select .cert-payment-item:last-of-type,
.cert-input-form .cert-payment-info .cert-payment-select .cert-payment-item:last-of-type,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-payment-item:last-of-type,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-payment-item:last-of-type {
  border-bottom: none;
}

.cert-input-form .cert-personal-info .cert-payment-select .cert-payment-item .cert-payment-method,
.cert-input-form .cert-payment-info .cert-payment-select .cert-payment-item .cert-payment-method,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-payment-item .cert-payment-method,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-payment-item .cert-payment-method {
  position: relative;
  display: block;
  height: auto;
  padding-left: 40px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cert-input-form .cert-personal-info .cert-payment-select .cert-payment-item .cert-payment-method:hover,
.cert-input-form .cert-payment-info .cert-payment-select .cert-payment-item .cert-payment-method:hover,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-payment-item .cert-payment-method:hover,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-payment-item .cert-payment-method:hover {
  opacity: 0.8;
}

.cert-input-form .cert-personal-info .cert-payment-select .cert-payment-item .cert-payment-method::before,
.cert-input-form .cert-payment-info .cert-payment-select .cert-payment-item .cert-payment-method::before,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-payment-item .cert-payment-method::before,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-payment-item .cert-payment-method::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  padding: 0;
  width: 24px;
  height: 24px;
  background-color: #fff;
  border-radius: 4px;
  border: 2px solid #ccc;
  transition: all 0.2s ease;
}

.cert-input-form .cert-personal-info .cert-payment-select .cert-payment-item .cert-payment-method::after,
.cert-input-form .cert-payment-info .cert-payment-select .cert-payment-item .cert-payment-method::after,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-payment-item .cert-payment-method::after,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-payment-item .cert-payment-method::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  width: 12px;
  height: 6px;
  border-bottom: 3px solid #45857D;
  border-left: 3px solid #45857D;
  transform: translateY(-70%) rotate(-45deg);
  opacity: 0;
  transition: all 0.2s ease;
}

.cert-input-form .cert-personal-info .cert-payment-select .cert-payment-item .cert-visually-hidden,
.cert-input-form .cert-payment-info .cert-payment-select .cert-payment-item .cert-visually-hidden,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-payment-item .cert-visually-hidden,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-payment-item .cert-visually-hidden {
  position: absolute;
  white-space: nowrap;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
}

.cert-input-form .cert-personal-info .cert-payment-select .cert-payment-item input[name=payment]:checked + .cert-payment-method::before,
.cert-input-form .cert-payment-info .cert-payment-select .cert-payment-item input[name=payment]:checked + .cert-payment-method::before,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-payment-item input[name=payment]:checked + .cert-payment-method::before,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-payment-item input[name=payment]:checked + .cert-payment-method::before {
  border-color: #45857D;
  background: #f0f8f7;
}

.cert-input-form .cert-personal-info .cert-payment-select .cert-payment-item input[name=payment]:checked + .cert-payment-method,
.cert-input-form .cert-payment-info .cert-payment-select .cert-payment-item input[name=payment]:checked + .cert-payment-method,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-payment-item input[name=payment]:checked + .cert-payment-method,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-payment-item input[name=payment]:checked + .cert-payment-method {
  font-weight: 700;
}

.cert-input-form .cert-personal-info .cert-payment-select .cert-payment-item.is-selected,
.cert-input-form .cert-payment-info .cert-payment-select .cert-payment-item.is-selected,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-payment-item.is-selected,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-payment-item.is-selected {
  background: #e7f4f2;
}

.cert-input-form .cert-personal-info .cert-payment-select .cert-payment-item input[name=payment]:checked + .cert-payment-method::after,
.cert-input-form .cert-payment-info .cert-payment-select .cert-payment-item input[name=payment]:checked + .cert-payment-method::after,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-payment-item input[name=payment]:checked + .cert-payment-method::after,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-payment-item input[name=payment]:checked + .cert-payment-method::after {
  opacity: 1;
}

.cert-input-form .cert-personal-info .cert-payment-select .cert-credit-info,
.cert-input-form .cert-personal-info .cert-payment-select .cert-paypay-info,
.cert-input-form .cert-personal-info .cert-payment-select .cert-daibiki-info,
.cert-input-form .cert-payment-info .cert-payment-select .cert-credit-info,
.cert-input-form .cert-payment-info .cert-payment-select .cert-paypay-info,
.cert-input-form .cert-payment-info .cert-payment-select .cert-daibiki-info,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-credit-info,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-paypay-info,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-daibiki-info,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-credit-info,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-paypay-info,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-daibiki-info {
  margin: 0 auto;
  padding: 1.8em 3em;
  width: 100%;
  background: #fdfbf4;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

@media screen and (max-width: 480px) {
  .cert-input-form .cert-personal-info .cert-payment-select .cert-credit-info,
  .cert-input-form .cert-personal-info .cert-payment-select .cert-paypay-info,
  .cert-input-form .cert-personal-info .cert-payment-select .cert-daibiki-info,
  .cert-input-form .cert-payment-info .cert-payment-select .cert-credit-info,
  .cert-input-form .cert-payment-info .cert-payment-select .cert-paypay-info,
  .cert-input-form .cert-payment-info .cert-payment-select .cert-daibiki-info,
  .cert-confirm-form .cert-personal-info .cert-payment-select .cert-credit-info,
  .cert-confirm-form .cert-personal-info .cert-payment-select .cert-paypay-info,
  .cert-confirm-form .cert-personal-info .cert-payment-select .cert-daibiki-info,
  .cert-confirm-form .cert-payment-info .cert-payment-select .cert-credit-info,
  .cert-confirm-form .cert-payment-info .cert-payment-select .cert-paypay-info,
  .cert-confirm-form .cert-payment-info .cert-payment-select .cert-daibiki-info {
    padding: 1.5em 0.8em;
  }
}

.cert-input-form .cert-personal-info .cert-payment-select .cert-credit-info > h4,
.cert-input-form .cert-personal-info .cert-payment-select .cert-paypay-info > h4,
.cert-input-form .cert-personal-info .cert-payment-select .cert-daibiki-info > h4,
.cert-input-form .cert-payment-info .cert-payment-select .cert-credit-info > h4,
.cert-input-form .cert-payment-info .cert-payment-select .cert-paypay-info > h4,
.cert-input-form .cert-payment-info .cert-payment-select .cert-daibiki-info > h4,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-credit-info > h4,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-paypay-info > h4,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-daibiki-info > h4,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-credit-info > h4,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-paypay-info > h4,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-daibiki-info > h4 {
  margin: 0 0 12px 0;
  padding: 0;
  width: 100%;
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
}

.cert-input-form .cert-personal-info .cert-payment-select .cert-credit-info > p,
.cert-input-form .cert-personal-info .cert-payment-select .cert-paypay-info > p,
.cert-input-form .cert-personal-info .cert-payment-select .cert-daibiki-info > p,
.cert-input-form .cert-payment-info .cert-payment-select .cert-credit-info > p,
.cert-input-form .cert-payment-info .cert-payment-select .cert-paypay-info > p,
.cert-input-form .cert-payment-info .cert-payment-select .cert-daibiki-info > p,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-credit-info > p,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-paypay-info > p,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-daibiki-info > p,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-credit-info > p,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-paypay-info > p,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-daibiki-info > p {
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

.cert-input-form .cert-personal-info .cert-payment-select .cert-credit-info .cert-ccard-img,
.cert-input-form .cert-personal-info .cert-payment-select .cert-paypay-info .cert-ccard-img,
.cert-input-form .cert-personal-info .cert-payment-select .cert-daibiki-info .cert-ccard-img,
.cert-input-form .cert-payment-info .cert-payment-select .cert-credit-info .cert-ccard-img,
.cert-input-form .cert-payment-info .cert-payment-select .cert-paypay-info .cert-ccard-img,
.cert-input-form .cert-payment-info .cert-payment-select .cert-daibiki-info .cert-ccard-img,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-credit-info .cert-ccard-img,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-paypay-info .cert-ccard-img,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-daibiki-info .cert-ccard-img,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-credit-info .cert-ccard-img,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-paypay-info .cert-ccard-img,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-daibiki-info .cert-ccard-img {
  margin: 15px auto 0 auto;
  padding: 0;
  width: 80%;
  overflow: hidden;
}

.cert-input-form .cert-personal-info .cert-payment-select .cert-credit-info .cert-ccard-img > img,
.cert-input-form .cert-personal-info .cert-payment-select .cert-paypay-info .cert-ccard-img > img,
.cert-input-form .cert-personal-info .cert-payment-select .cert-daibiki-info .cert-ccard-img > img,
.cert-input-form .cert-payment-info .cert-payment-select .cert-credit-info .cert-ccard-img > img,
.cert-input-form .cert-payment-info .cert-payment-select .cert-paypay-info .cert-ccard-img > img,
.cert-input-form .cert-payment-info .cert-payment-select .cert-daibiki-info .cert-ccard-img > img,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-credit-info .cert-ccard-img > img,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-paypay-info .cert-ccard-img > img,
.cert-confirm-form .cert-personal-info .cert-payment-select .cert-daibiki-info .cert-ccard-img > img,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-credit-info .cert-ccard-img > img,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-paypay-info .cert-ccard-img > img,
.cert-confirm-form .cert-payment-info .cert-payment-select .cert-daibiki-info .cert-ccard-img > img {
  object-fit: cover;
  width: 100%;
}

/* ========================================
   ボタンエリア
   ======================================== */
.cert-form-btn-area {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px auto 0 auto;
  padding: 0;
  width: 100%;
}

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

.cert-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  padding: 1.2em 3em;
  width: 560px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  border: none;
  /* border-radius: 50px; */
  border-radius: 5px;
  background: linear-gradient(135deg, #b44b4c 0%, #a03d3e 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(180, 75, 76, 0.3);
}

@media screen and (max-width: 480px) {
  .cert-submit-btn {
    min-width: auto;
    width: 100%;
    padding: 1em 2em;
    font-size: 1rem;
  }
}

.cert-submit-btn:hover {
  background: linear-gradient(135deg, #a03d3e 0%, #8f3334 100%);
  box-shadow: 0 8px 28px rgba(180, 75, 76, 0.4);
  transform: translateY(-2px);
}

.cert-submit-btn:active {
  transform: translateY(0);
}

.cert-submit-btn.cert-disabled,
.cert-submit-btn.disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

.cert-submit-btn.cert-disabled:hover,
.cert-submit-btn.disabled:hover {
  transform: none;
}

.cert-btn-text {
  font-size: 1.15rem;
  font-weight: 600;
}

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

.cert-btn-icon {
  font-size: 1.3rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.cert-submit-btn:hover .cert-btn-icon {
  transform: translateX(4px);
}

.cert-form-btn-area .cert-submit-btn-area {
  margin: 0;
  width: 70%;
}

.cert-form-btn-area .cert-submit-btn-area.cert-first-btn {
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

@media screen and (max-width: 480px) {
  .cert-form-btn-area .cert-submit-btn-area {
    width: 76%;
  }
}

.cert-form-btn-area .cert-submit-btn-area .cert-submit-btn.cert-disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

.cert-form-btn-area .cert-back-btn {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 20%;
}

@media screen and (max-width: 480px) {
  .cert-form-btn-area .cert-back-btn {
    width: 24%;
  }
}

.cert-form-btn-area .cert-back-btn .cert-btn {
  margin: 0;
  padding: 0;
  width: 80%;
  height: 45px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background: #929292;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cert-form-btn-area .cert-back-btn .cert-btn:hover {
  background: #737272;
}

@media screen and (max-width: 480px) {
  .cert-form-btn-area .cert-back-btn .cert-btn {
    font-size: 0.9rem;
  }
}

/* ========================================
   フォームチェッカー
   ======================================== */
.cert-form-checker {
  position: fixed;
  top: 430px;
  right: 0;
  padding: 0.7rem 1rem;
  min-width: 180px;
  font-size: 0.95rem;
  color: white;
  text-align: center;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(135deg, rgba(235, 107, 164, 0.95) 0%, rgba(220, 90, 150, 0.95) 100%);
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

@media screen and (max-width: 480px) {
  .cert-form-checker {
    top: 12px;
    right: 8px;
    bottom: auto;
    left: auto;
    padding: 0.2rem 0.4rem;
    min-width: auto;
    font-size: 0.6rem;
    line-height: 1.1;
    border-radius: 4px;
    opacity: 0.85;
    box-shadow: -1px 1px 3px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
  }
}

@media screen and (max-width: 480px) {
  .cert-form-checker .cert-form-check-text {
    font-size: 0.65rem;
  }

  .cert-form-checker .cert-form-check-text .cert-check-number {
    font-size: 0.85rem;
  }

  .cert-form-checker br {
    display: none;
  }
}

.cert-form-checker .cert-form-check-text {
  font-size: 1.05rem;
  font-weight: 700;
}

.cert-form-checker .cert-form-check-text .cert-check-number {
  color: #fff5a0;
  font-size: 1.4rem;
  font-weight: 900;
}

/* ========================================
   リダイレクトアラート
   ======================================== */
.cert-redirect-alert {
  margin: 60px auto;
  padding: 2.5em;
  width: 60%;
  font-size: 1.05rem;
  color: #333;
  text-align: center;
  line-height: 1.9;
  border-radius: 8px;
  background: #fdd8d8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 480px) {
  .cert-redirect-alert {
    width: 90%;
    padding: 2em;
  }
}

/* ========================================
   確認ページ専用
   ======================================== */
.cert-pay-select {
  margin: 20px auto 0 auto;
  padding: 0.5em 1.8em;
  width: 94%;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  background: #fafafa;
  border-radius: 6px;
}

@media screen and (max-width: 480px) {
  .cert-pay-select {
    margin-top: 8px;
    font-size: 1rem;
    padding: 0 1.8em 1em 1.8em;
  }
}

/* ========================================
   完了ページ
   ======================================== */
.cert-order-complete {
  margin: 0 auto;
  padding: 2.5em 2em;
  width: 70%;
  text-align: center;
}

@media screen and (max-width: 480px) {
  .cert-order-complete {
    margin-top: 40px;
    padding: 2em 1.5em;
    width: 92%;
  }
}

.cert-order-complete .cert-comp-msg {
  margin: 0 auto;
  padding: 2.5em;
  width: 100%;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.9;
  text-align: center;
  background: #f5f5f5;
  border-radius: 8px;
}

.cert-order-complete .cert-comp-msg.cert-error-msg {
  background: #fff1f1;
}

.cert-order-complete .cert-sitetop-link {
  margin: 50px auto 30px auto;
  padding: 0;
  width: 40%;
  height: 65px;
}

@media screen and (max-width: 480px) {
  .cert-order-complete .cert-sitetop-link {
    width: 80%;
    height: 55px;
  }
}

.cert-order-complete .cert-sitetop-link > a {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #b44b4c 0%, #a03d3e 100%);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(180, 75, 76, 0.3);
}

.cert-order-complete .cert-sitetop-link > a:hover {
  background: linear-gradient(135deg, #a03d3e 0%, #8f3334 100%);
  box-shadow: 0 6px 16px rgba(180, 75, 76, 0.4);
}

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

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

.cert-slide-panel-inner {
  margin: 0 auto;
  padding: 0;
  width: 1040px;
}

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

.cert-slide-panel-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 1.5em 0;
  width: 100%;
}

@media screen and (max-width: 480px) {
  .cert-slide-panel-content {
    flex-direction: column;
    padding: 1.2em 1em;
    gap: 15px;
  }
}

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

@media screen and (max-width: 480px) {
  .cert-slide-panel-info {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    width: 100%;
    gap: 10px;
    align-items: stretch;
  }
}

#panel-cert-types {
  white-space: nowrap;
}

#panel-total-price {
  white-space: nowrap;
}

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

@media screen and (max-width: 480px) {
  .cert-slide-panel-item {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding: 0.8em 1em;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
    height: 100%;
  }
}

@media screen and (max-width: 480px) {
  .cert-slide-panel-item.cert-slide-panel-total {
    grid-column: 1 / -1;
    background: #fff;
  }
}

.cert-slide-panel-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #666;
  white-space: nowrap;
}

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

.cert-slide-panel-value {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  line-height: 1;
}

.cert-slide-panel-count-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d82121;
  line-height: 1;
}

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

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

#panel-shikaku-count {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  line-height: 1;
  white-space: nowrap;
}

.cert-slide-panel-item.cert-slide-panel-total .cert-slide-panel-label {
  color: #d82121;
}

.cert-slide-panel-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d82121;
}

.cert-slide-panel-tax {
  font-size: 0.7em;
  font-weight: 500;
  color: #999;
  margin-left: 0.25em;
}

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

.cert-slide-panel-action {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.cert-slide-panel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 1em 2.5em;
  min-width: 280px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #b44b4c 0%, #a03d3e 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(180, 75, 76, 0.3);
}

@media screen and (max-width: 480px) {
  .cert-slide-panel-btn {
    width: 100%;
    min-width: auto;
    padding: 1em 2em;
    font-size: 1rem;
  }
}

.cert-slide-panel-btn:hover {
  background: linear-gradient(135deg, #a03d3e 0%, #8f3334 100%);
  box-shadow: 0 8px 28px rgba(180, 75, 76, 0.4);
  transform: translateY(-2px);
}

.cert-slide-panel-btn:active {
  transform: translateY(0);
}

.cert-slide-panel-btn .cert-btn-icon {
  font-size: 1.3rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.cert-slide-panel-btn:hover .cert-btn-icon {
  transform: translateX(4px);
}
