/*
Theme Name: maxx-child
Template: maxx_tcd043
Version: 1.0.0
*/

/* プログラムバナー（カスタムHTMLウィジェット） */
.program-banners a {
  display: block;
  margin-bottom: 7px;
}
.program-banners a:last-child {
  margin-bottom: 0;
}
.program-banners img {
  display: block;
  width: 100%;
  height: auto;
}

/* Recruit form (Contact Form 7) */
.page-id-16 .wpcf7 {
  margin-top: 8px;
  background: transparent !important;
  border: 0 !important;
}
.page-id-16 .wpcf7 form {
  background: transparent;
  border: 0;
  padding: 0;
}
.page-id-16 .wpcf7 p {
  margin: 0;
  padding: 20px 0;
  border: 0;
}
.page-id-16 .wpcf7 p:first-of-type {
  border-top: 0;
}
.page-id-16 .wpcf7 label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  color: #222;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.page-id-16 .wpcf7 label > .wpcf7-form-control-wrap {
  width: 100%;
  margin-top: 10px;
  order: 1;
}
.page-id-16 .wpcf7 label:has(.wpcf7-validates-as-required)::after {
  content: "必須";
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  background: #d95f63;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  order: 0;
}
.page-id-16 .wpcf7 input[type="text"],
.page-id-16 .wpcf7 input[type="email"],
.page-id-16 .wpcf7 input[type="tel"],
.page-id-16 .wpcf7 input[type="number"],
.page-id-16 .wpcf7 textarea {
  width: 100%;
  margin: 0;
  border: 1px solid #dfdfdf;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-size: 15px;
  line-height: 1.6;
  padding: 12px 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.page-id-16 .wpcf7 textarea {
  min-height: 200px;
  resize: vertical;
}
.page-id-16 .wpcf7 input:focus,
.page-id-16 .wpcf7 textarea:focus {
  border-color: #cfcfcf;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}
.page-id-16 .wpcf7 p:last-of-type {
  text-align: center;
}
.page-id-16 .wpcf7 input[type="submit"] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  min-width: 220px;
  border: 0;
  border-radius: 999px;
  background: #ff5a1f;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  height: auto !important;
  padding: 18px 32px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
.page-id-16 .wpcf7 input[type="submit"]:hover {
  background: #f24c11;
  box-shadow: 0 8px 16px rgba(255, 90, 31, 0.2);
}
.page-id-16 .wpcf7 .wpcf7-spinner {
  vertical-align: middle;
}
.page-id-16 .wpcf7 .wpcf7-not-valid-tip {
  margin-top: 4px;
  font-size: 12px;
}
.page-id-16 .wpcf7 .wpcf7-response-output {
  margin: 12px 22px 18px;
  border-radius: 6px;
  font-size: 13px;
}
@media (max-width: 767px) {
  .page-id-16 .wpcf7 p {
    padding: 14px 14px 16px;
  }
  .page-id-16 .wpcf7 label {
    font-size: 15px;
  }
  .page-id-16 .wpcf7 label > .wpcf7-form-control-wrap {
    margin-top: 8px;
  }
  .page-id-16 .wpcf7 label:has(.wpcf7-validates-as-required)::after {
    margin-left: 8px;
  }
  .page-id-16 .wpcf7 input[type="submit"] {
    width: 100%;
    min-width: 0;
  }
  .page-id-16 .wpcf7 .wpcf7-not-valid-tip {
    margin-top: 4px;
  }
  .page-id-16 .wpcf7 .wpcf7-response-output {
    margin: 12px 14px 14px;
  }
}

/* Page Builder editor safety: prevent media overflow */
#tcd-pb-wrap .pb-widget-editor img,
#tcd-pb-wrap .pb-widget-editor video,
#tcd-pb-wrap .pb-widget-editor iframe,
#tcd-pb-wrap .pb-widget-editor canvas,
#tcd-pb-wrap .pb-widget-editor svg {
  max-width: 100% !important;
  height: auto;
}
#tcd-pb-wrap .pb-widget-editor figure,
#tcd-pb-wrap .pb-widget-editor .wp-caption,
#tcd-pb-wrap .pb-widget-editor .wp-block-image,
#tcd-pb-wrap .pb-widget-editor .wp-block-cover,
#tcd-pb-wrap .pb-widget-editor .wp-block-media-text {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}
#tcd-pb-wrap .pb-widget-editor .alignfull,
#tcd-pb-wrap .pb-widget-editor .alignwide {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Global fix: prevent header images from overflowing page area */
.page_content_header,
.page_content_header .image {
  overflow: hidden;
}
.page_content_header img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: cover;
  display: block;
}

table.pb_simple_table th {
  text-align: center;
  width: 22%;
}

/* Section banner (帯見出し) */
.kfg-section-banner {
  background: #333;
  color: #fff;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 16px 20px;
  border-left: 5px solid #ff5a1f;
}
@media (max-width: 767px) {
  .kfg-section-banner {
    font-size: 18px;
    padding: 14px 16px;
  }
}

/* Section heading (セクション見出し — キャッチコピー風) */
.kfg-section-heading {
  border-left: 5px solid #ff5a1f;
  background: #faf5f2;
  color: #222;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  padding: 14px 20px;
}
@media (max-width: 767px) {
  .kfg-section-heading {
    font-size: 17px;
    padding: 12px 16px;
  }
}

/* Steps flow (入会までの流れ) */
.kfg-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f7f7f7;
  border-radius: 8px;
  padding: 36px 28px;
  margin: 30px 0;
}
.kfg-step {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  padding-bottom: 32px;
  width: 100%;
  max-width: 520px;
}
.kfg-step:last-child {
  padding-bottom: 0;
}
.kfg-step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ff5a1f;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
/* .kfg-step:not(:last-child)::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 24px;
  width: 2px;
  height: 32px;
  background: #ddd;
} */
.kfg-step__body {
  flex: 1;
}
.kfg-step__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700 !important;
  color: #222;
}
.kfg-step__desc {
  margin: 0 !important;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}
@media (max-width: 767px) {
  .kfg-step {
    gap: 14px;
    padding-bottom: 24px;
  }
  .kfg-step__number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .kfg-step:not(:last-child)::before {
    height: 24px;
    left: 20px;
  }
  .kfg-step__title {
    font-size: 15px;
  }
}

/* Points cards (おすすめポイント) */
.kfg-points {
  display: flex;
  gap: 20px;
  margin: 0 0 10px;
}
.kfg-point {
  flex: 1;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
}
.kfg-point__number {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #ff5a1f;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kfg-point__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}
.kfg-point__desc {
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.8;
  text-align: left;
}
@media (max-width: 767px) {
  .kfg-points {
    flex-direction: column;
    gap: 14px;
  }
  .kfg-point {
    padding: 22px 18px;
  }
}

/* Hide program list on program detail pages only */
.single-program #program_list {
  display: none;
}

/* Header logo */
.pc #header_logo img {
  display: block;
  max-height: 110px;
}

#program_list a {
  position: relative;
}

#program_list a:before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

#program_list .program .program_title {
  margin: 0;
  padding: 0 20px 0 40px;
  font-size: 25px;
  font-weight: bold !important;
}

/* PRICE */
#index_price .post_content > div,
#price .post_content > div {
  background: var(--toda-bg-soft);
}

#index_price .post_content > div > div,
#price .post_content > div > div {
  max-width: 640px;
  margin: 0 auto;
}

#index_price table,
#price table,
#access_section table,
#access table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: #fff;
}

#index_price th,
#index_price td,
#price th,
#price td,
#access_section th,
#access_section td,
#access th,
#access td {
  border-bottom: 1px solid #ccc;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.7;
}

#index_price th,
#price th {
  background: #f4f4f4;
  font-weight: 700;
}

#index_price table tbody th,
#price table tbody th {
  width: 170px;
  min-width: 170px;
  max-width: 170px;
}

#index_price .toda-price-table-ticket thead th:first-child,
#price .toda-price-table-ticket thead th:first-child,
#index_price .toda-price-table-ticket tbody td:first-child,
#price .toda-price-table-ticket tbody td:first-child {
  width: 170px;
  min-width: 170px;
  max-width: 170px;
}

#index_price .toda-price-band,
#price .toda-price-band {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 22px 0 0;
  padding: 10px 12px;
  background: #fe5b1e;
  color: #fff;
  text-align: center;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.04em;
}

#index_price .toda-price-section,
#price .toda-price-section {
  width: 100%;
}

#index_price .toda-price-section:first-child .toda-price-band,
#price .toda-price-section:first-child .toda-price-band {
  margin-top: 0;
}

/* PRICE (shared for fixed pages with same HTML) */
.post_content .toda-price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: #fff;
}

.post_content .toda-price-table th,
.post_content .toda-price-table td {
  border-bottom: 1px solid #ccc;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.7;
}

.post_content .toda-price-table th {
  background: #f4f4f4;
  font-weight: 700;
}

.post_content .toda-price-table tbody th {
  width: 170px;
  min-width: 170px;
  max-width: 170px;
}

.post_content .toda-price-table-ticket thead th:first-child,
.post_content .toda-price-table-ticket tbody td:first-child {
  width: 170px;
  min-width: 170px;
  max-width: 170px;
}

.post_content .toda-price-band {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 22px 0 0;
  padding: 10px 12px;
  background: #fe5b1e;
  color: #fff;
  text-align: center;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.post_content .toda-price-section {
  width: 100%;
}

.post_content .toda-price-section:first-child .toda-price-band {
  margin-top: 0;
}

#access_section .post_content > div > div,
#access .post_content > div > div {
  max-width: 760px;
  margin: 0 auto 24px;
}

#access iframe {
  width: 100%;
  border: 0;
}

@media (max-width: 900px) {
  #index_flow .post_content > div,
  #flow .post_content > div,
  #index_price .post_content > div,
  #price .post_content > div,
  #access_section .post_content > div,
  #access .post_content > div {
    padding: 44px 16px;
  }

  #index_price .toda-price-band,
  #price .toda-price-band {
    font-size: 15px;
    padding: 9px 10px;
  }

  .post_content .toda-price-band {
    font-size: 15px;
    padding: 9px 10px;
  }

  #index_price table tbody th,
  #price table tbody th,
  #index_price .toda-price-table-ticket thead th:first-child,
  #price .toda-price-table-ticket thead th:first-child,
  #index_price .toda-price-table-ticket tbody td:first-child,
  #price .toda-price-table-ticket tbody td:first-child {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
  }

  #index_price th,
  #index_price td,
  #price th,
  #price td {
    padding: 12px 12px;
  }

  .post_content .toda-price-table th,
  .post_content .toda-price-table td {
    padding: 12px 12px;
  }

  .post_content .toda-price-table tbody th,
  .post_content .toda-price-table-ticket thead th:first-child,
  .post_content .toda-price-table-ticket tbody td:first-child {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
  }
}
