/* ========================================
   TOP PAGE - style.css
   デザインカンプ 2校B 準拠
   ======================================== */

.p-top-wrapper {
  background: linear-gradient(to bottom, #F2F2F2 0%, #EAEBED 100%);
  padding-top: 100px;
}

/* ========================================
   HERO Section
   ======================================== */
.p-hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  max-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.p-hero__bg {
  position: absolute;
  top: 56px;
  right: 0;
  width: 66.666%;
  height: calc(100% - 136px);
  background-image: url('../img/mv_img.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 20px 0 0 20px;
}

.p-hero__inner {
  position: relative;
  z-index: 10;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.p-hero__catch {
  font-size: 56px;
  font-weight: 700;
  color: #134374;
  line-height: 1.5;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

/* MVアンダーライン */
.p-hero__catch-line {
  display: inline;
  background-image: linear-gradient(transparent calc(100% - 6px), #E2AD57 calc(100% - 6px));
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.p-hero__desc {
  font-size: 14px;
  line-height: 2;
  max-width: 500px;
  color: var(--color-text);
}

@media (max-width: 1070px) {
  .p-top-wrapper {
    padding-top: 0;
  }
  .p-hero {
    height: auto;
    min-height: 400px;
    display: flex;
    flex-direction: column;
  }
  .p-hero__bg {
    position: static;
    width: 100%;
    height: 250px;
    border-radius: 0;
  }
  .p-hero::before {
    display: none;
  }
  .p-hero__inner {
    padding: 40px 20px;
  }
  .p-hero__catch {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .p-hero__desc {
    font-size: 13px;
  }
}

/* ========================================
   ABOUT Section
   ======================================== */
.p-about {
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* INC背景ロゴ - sectionの右下に配置 */
.p-about::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 558px;
  height: 209px;
  background-image: url('../img/logo_bg_w.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  pointer-events: none;
  z-index: 10;
}

.p-about__inner {
  display: flex;
  align-items: stretch;
  min-height: 550px;
}

.p-about__image {
  width: 40%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: 0 20px 20px 0;
  margin-bottom: 80px;
}

.p-about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-about__text {
  flex: 1;
  padding: 80px 80px 80px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background-color: transparent;
}

.p-about .c-section-title__ja {
  font-size: 18px;
  color: #333333;
}

.p-about__heading {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-dark);
  line-height: 1.6;
}

.p-about__desc {
  margin-bottom: 40px;
  font-size: 15px;
  line-height: 2;
}

@media (max-width: 1070px) {
  .p-about__inner {
    flex-direction: column;
    min-height: auto;
  }
  .p-about__image {
    width: 100%;
    height: 250px;
    margin-bottom: 40px;
  }
  .p-about__text {
    padding: 40px 20px 60px;
  }
  .p-about::after {
    width: 200px;
    height: 80px;
  }
  .p-about__heading {
    font-size: 22px;
  }
}

/* ========================================
   SERVICE Section
   ======================================== */
.p-services {
  padding: 100px 0;
  background-color: #fff;
}

.p-services__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.p-services__item {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.p-services__img {
  margin-bottom: 24px;
}
.p-services__img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
}

.p-services__num {
  font-family: var(--font-family-en);
  font-size: 36px;
  font-weight: 800;
  color: var(--color-main);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 16px;
}

.p-services__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-dark);
}
.p-services__subtitle {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-main);
}

.p-services__desc {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.p-services__btn {
  text-align: center;
}

@media (max-width: 1070px) {
  .p-services {
    padding: 60px 0;
  }
  .p-services__list {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 25px;
  }
  .p-services__item {
    padding: 30px 24px;
  }
  .p-services__subtitle {
    font-size: 18px;
    font-weight: 700;
  }
}

/* ========================================
   VOICE (Testimonials) Section
   ======================================== */

