/* =======================================
     EC Site Only Styles
   ======================================= */

/* H2 Heading Underline */
.c-heading.-underline {
  display: flex;
  flex-direction: column;
}

.c-heading__bar {
  display: block;
  width: 60px;
  height: 3px;
  background: #36408d;
  margin-bottom: 16px;
}

/* H3 Heading Number */
.c-heading.-numbered {
  display: flex;
  align-items: center;
  gap: 12px;
}

.c-heading__number {
  letter-spacing: 0;
  color: #36408d;
}

.c-heading__divider {
  width: 0;
  height: 28px;
  border: 1px solid #36408d;
  display: inline-block;
}

.c-heading__text {
  line-height: 48px;
  color: #333333;
}

/* Component: Service panel */
.c-ec-panel-wrap {
  display: flex;
  align-items: stretch;
  gap: 38px;
}

.c-ec-panel {
  position: relative;
  width: 564px;
  border: 1px solid #36408d;
  border-top: none;
  box-sizing: border-box;
  padding: 50px 36px 36px 36px;
  margin-top: 15px;
  display: flex;
  flex-direction: column;
}

/* Top Decorative Line (Excluding Title Area) */
.c-ec-panel__top-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #36408d;
}

.c-ec-panel__top-line::before,
.c-ec-panel__top-line::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 1px;
  background: #36408d;
}

.c-ec-panel__top-line::before {
  left: 0;
}

.c-ec-panel__top-line::after {
  right: 0;
}

/* Panel Title (Overlapping the Line) */
.c-ec-panel__title {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 0 20px;
  font-weight: bold;
  color: #36408d;
  white-space: nowrap;
  height: 44px;
  line-height: 30px;
}

/* Description */
.c-ec-panel__desc {
  color: #333;
  text-align: center;
  margin-bottom: 44px;
}

/* Image Area */
.c-ec-panel__image {
  width: 100%;
  height: 290px;
}

.c-ec-panel__image img {
  display: block;
  margin: 0 auto;
}

/* Image Caption */
.c-ec-panel__caption {
  margin-top: 17px;
}
.c-ec-panel__link {
  line-height: 29px;
  text-align: left;
  opacity: 1;
  display: block;
  margin-bottom: 32px;
}

/* Footer Banner */
.c-ec-panel__footer {
  background: #e2e6fd;
  padding: 16px;
  text-align: center;
  line-height: 29px;
  color: #36408d;
  margin-top: auto;
}

/* =======================================
   Responsive
   ======================================= */

@media (min-width: 768px) {
  .exp-2026 .c-heading.-large {
    font-size: 28px; /* 38px change */
  }
  .exp-2026 .c-heading.-medium {
    font-size: 24px; /* 28px change */
  }
  .exp-2026 .l-section > p {
    font-size: 18px;
  }
  .c-heading__number {
    font-size: 30px;
  }
  .c-heading__text {
    font-size: 24px;
  }
  .c-ec-panel__title {
    font-size: 20px;
  }
  .c-ec-panel__desc {
    font-size: 16px;
  }
  /* Image Caption */
  .c-ec-panel__caption {
    font-size: 14px;
  }
  .c-ec-panel__link {
    font-size: 14px;
  }
  .c-ec-panel__footer {
    font-size: 16px;
  }
}

@media only screen and (max-width: 767px) {
  .c-sp-panel-wrap {
    flex-direction: column;
    align-items: center;
  }
  .c-sp-panel {
    width: 100%;
    max-width: 564px;
  }
  .c-ec-panel__title {
    font-size: 16px;
  }
  .c-ec-panel__image {
    width: 100%;
    height: auto;
  }
  .c-ec-panel__image,
  .c-ec-panel__link {
    margin-bottom: 0;
  }
  .c-ec-panel__footer {
    margin-top: 24px;
  }
}

/* WES */
/* =======================================
   Overlay layout (Text + Image)
   ======================================= */

.c-text_ble {
  color: #36408d;
}

.box {
  position: relative;
}

/* テキストが土台 */
.box_text {
  padding: 28px 28px 0 40px;
  width: 50%;
  background: #e2e6fd;
  border-radius: 16px;
}

.box_text__inner--offset-left {
  margin-left: 30%;
}

.box_text__inner--offset-right {
  margin-right: 30%;
}

/* 画像を上に重ねる */
.box_image {
  position: absolute;
  top: 48px;
  left: 36%;
  width: 64%;
  background: #fff;
  border-radius: 26px;
}

.box_image__inner {
  padding: 30px; /* 基本 */
  display: flex;
  justify-content: center;
}

.box_image img {
  display: block;
  margin: 0 auto;
}

.p-step-number {
  font-size: 48px;
  line-height: 1;
}

@media (min-width: 768px) {
  .box {
    display: flex;
    align-items: center;
  }

  .box.reverse {
    flex-direction: row-reverse;
  }

  .box.reverse .box_image {
    left: 0;
  }
}

@media (max-width: 767px) {
  .box {
    display: flex;
    flex-direction: column;
  }

  .box_image {
    position: static;
    width: 100%;
    top: auto;
    left: auto;
  }

  .box_text {
    width: 100%;
    padding: 24px 24px 8px;
  }

  .box_text__inner--offset-left {
    margin-left: 0;
  }

  .box_text__inner--offset-right {
    margin-right: 0;
  }

  .p-step-number {
    font-size: 32px;
    line-height: 1;
  }

  .u-ta-c {
    text-align: left;
  }

  .exp-2026 br {
    display: none;
  }
}
