/* ============================================
   TOP PAGE CSS — トップページ専用スタイル
   ============================================ */

/* ============================================
   HERO KV
   ============================================ */
.p-hero {
  position: relative;
  width: 100%;
  background: #e8e8e8;
  overflow: hidden;
}

.p-hero__slider-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 480px;
}
@media screen and (max-width: 767px) {
  .p-hero__slider-wrap {
    flex-direction: column;
    min-height: auto;
  }
}

/* Swiper */
.p-hero__swiper {
  flex: 1;
  min-width: 0;
}
.p-hero__swiper .swiper-wrapper,
.p-hero__swiper .swiper-slide { height: 100%; }
.p-hero__slide-link { display: block; width: 100%; height: 100%; }
.p-hero__slide-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Swiper Arrows */
.p-hero__prev,
.p-hero__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  transition: background .2s;
}
.p-hero__prev:hover,
.p-hero__next:hover { background: var(--white); }
.p-hero__prev { left: 16px; }
.p-hero__next { right: 16px; }
.p-hero__prev i,
.p-hero__next i { font-size: 18px; }

/* Override default Swiper button */
.p-hero__swiper .swiper-button-prev::after,
.p-hero__swiper .swiper-button-next::after { display: none; }

/* Overlay Panel */
.p-hero__panel {
  width: 420px;
  flex-shrink: 0;
  background: rgba(0,0,0,.52);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 32px;
}
@media screen and (max-width: 1100px) { .p-hero__panel { width: 360px; } }
@media screen and (max-width: 767px) {
  .p-hero__panel {
    width: 100%;
    padding: 24px 16px;
  }
}

.p-hero__panel-text { margin-bottom: 24px; }
.p-hero__panel-title {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  color: var(--white);
  line-height: 1.6;
}
@media screen and (max-width: 767px) { .p-hero__panel-title { font-size: 16px; } }

/* 4 Points Grid */
.p-hero__points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(255,255,255,.1);
}
.p-hero__point {
  background: rgba(77, 187, 207, .75);
  padding: 16px 12px;
  text-align: center;
}
.p-hero__point-label {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,.8);
  margin-bottom: 8px;
  letter-spacing: .05em;
}
.p-hero__point-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
}
.p-hero__point-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(10);
}
.p-hero__point-title {
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.4;
}
.p-hero__point-text {
  font-size: 10px;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.p-categories {
  padding: 80px 0;
}

.p-categories__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media screen and (max-width: 767px) {
  .p-categories__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.p-categories__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--black);
  transition: transform .25s, box-shadow .25s;
  position: relative;
}
.p-categories__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.p-categories__card--yellow {
  background: #F5E642;
}
.p-categories__card--green {
  background: #3AAE6B;
  color: var(--white);
}
.p-categories__card--green .p-categories__card-icon,
.p-categories__card--green .p-categories__card-title,
.p-categories__card--green .p-categories__card-text,
.p-categories__card--green .p-categories__card-arrow { color: var(--white); }

.p-categories__card-icon {
  font-size: 32px;
  color: rgba(0,0,0,.5);
}
.p-categories__card--yellow .p-categories__card-icon { color: #8A7A00; }

.p-categories__card-body { flex: 1; }
.p-categories__card-title {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 10px;
  line-height: 1.4;
}
.p-categories__card-text {
  font-size: var(--font-size-std);
  line-height: 1.7;
}
.p-categories__card-arrow {
  font-size: 20px;
  color: rgba(0,0,0,.4);
  align-self: flex-end;
}
.p-categories__card--yellow .p-categories__card-arrow { color: #8A7A00; }

/* ============================================
   LEAD SECTION
   ============================================ */
.p-lead {
  padding: 80px 0 90px;
  background: var(--white);
}

.p-lead__heading {
  margin-bottom: 48px;
}
.p-lead__title {
  font-size: 28px;
  font-weight: var(--font-weight-bold);
  color: var(--black);
  line-height: 1.5;
  margin-bottom: 16px;
}
@media screen and (max-width: 767px) { .p-lead__title { font-size: 22px; } }

.p-lead__subtitle {
  font-size: var(--font-size-medium);
  color: var(--text-gray);
  line-height: 1.8;
}
@media screen and (max-width: 767px) { .p-lead__subtitle { font-size: var(--font-size-std); } }

/* Visual Row */
.p-lead__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
}
@media screen and (max-width: 767px) {
  .p-lead__figure {
    flex-direction: column;
    gap: 16px;
  }
}
.p-lead__figure-icon {
  width: 140px;
  flex-shrink: 0;
}
@media screen and (max-width: 767px) { .p-lead__figure-icon { width: 100px; } }
.p-lead__figure-main {
  flex: 1;
  max-width: 480px;
  border-radius: 8px;
  overflow: hidden;
}
.p-lead__figure-main img { width: 100%; border-radius: 8px; }

/* Body Text */
.p-lead__body {
  font-size: var(--font-size-std);
  color: var(--text-gray);
  line-height: 1.9;
  margin-bottom: 60px;
}

/* Feature Boxes */
.p-lead__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
@media screen and (max-width: 767px) {
  .p-lead__features { grid-template-columns: 1fr; }
}

.p-lead__feature {
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.p-lead__feature--green  { background: #8BC34A; }
.p-lead__feature--teal   { background: #4DBBCF; }
.p-lead__feature--yellow { background: #F5C400; }

.p-lead__feature-icon {
  width: 56px;
  height: 56px;
}
.p-lead__feature-icon img { width: 100%; height: 100%; object-fit: contain; }
.p-lead__feature-title {
  font-size: var(--font-size-heading);
  font-weight: var(--font-weight-bold);
  color: var(--white);
  line-height: 1.3;
}
.p-lead__feature--yellow .p-lead__feature-title { color: var(--black); }
.p-lead__feature-text {
  font-size: var(--font-size-small);
  color: rgba(255,255,255,.9);
  line-height: 1.6;
}
.p-lead__feature--yellow .p-lead__feature-text { color: rgba(0,0,0,.7); }

/* ============================================
   NEW ITEM (course list) overrides for TOP
   ============================================ */
.is--top section.new-item {
  padding: 80px 0;
  margin-bottom: 0;
}
.is--top .item-list {
  grid-template-columns: repeat(3, 1fr);
}
@media screen and (max-width: 767px) {
  .is--top .item-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.p-services {
  padding: 0;
}
.p-services__bg {
  background: var(--green-light);
  padding: 90px 0;
  position: relative;
}

.p-services__heading {
  margin-bottom: 60px;
}
.p-services__label {
  display: block;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: var(--green-medium);
  letter-spacing: .15em;
  margin-bottom: 12px;
  position: relative;
}
.p-services__label::before,
.p-services__label::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--green-medium);
  vertical-align: middle;
  margin: 0 8px;
}
.p-services__title {
  font-size: 26px;
  font-weight: var(--font-weight-bold);
  color: var(--green);
  line-height: 1.5;
}
@media screen and (max-width: 767px) { .p-services__title { font-size: 20px; } }

.p-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
@media screen and (max-width: 767px) {
  .p-services__grid { grid-template-columns: 1fr; }
}

.p-services__card {
  padding: 40px 28px;
  text-align: center;
  border-right: 1px solid var(--border-gray);
  border-bottom: 1px solid var(--border-gray);
}
.p-services__card:nth-child(3n) { border-right: none; }
.p-services__card:nth-child(n+4) { border-bottom: none; }
@media screen and (max-width: 767px) {
  .p-services__card { border-right: none; border-bottom: 1px solid var(--border-gray); }
  .p-services__card:last-child { border-bottom: none; }
}

.p-services__card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
}
.p-services__card-icon img { width: 100%; height: 100%; object-fit: contain; }
.p-services__card-title {
  font-size: var(--font-size-std);
  font-weight: var(--font-weight-bold);
  color: var(--green);
  margin-bottom: 10px;
  line-height: 1.4;
}
.p-services__card-text {
  font-size: var(--font-size-small);
  color: var(--text-gray);
  line-height: 1.7;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.p-trust {
  padding: 80px 0;
  background: var(--white);
}

.p-trust__item {
  border: 1px solid var(--border-gray);
  border-left: 4px solid var(--green-medium);
  border-radius: 4px;
  margin-bottom: 24px;
  overflow: hidden;
}
.p-trust__item:last-child { margin-bottom: 0; }

.p-trust__header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green-light);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-gray);
}
.p-trust__header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-medium);
  color: var(--white);
  font-size: 14px;
  flex-shrink: 0;
}
.p-trust__header-title {
  font-size: var(--font-size-std);
  font-weight: var(--font-weight-bold);
  color: var(--green-dark);
}
.p-trust__body {
  padding: 20px 24px;
}
.p-trust__body p {
  font-size: var(--font-size-std);
  line-height: 1.8;
  color: var(--black);
}
.p-trust__highlight {
  color: var(--green);
  font-weight: var(--font-weight-bold);
  text-decoration: underline;
  text-decoration-color: var(--green-medium);
}

/* ============================================
   MEDIA SECTION
   ============================================ */
.p-media {
  padding: 80px 0;
  background: var(--gray-back);
}

.p-media__inner {
  max-width: 800px;
  margin: 0 auto;
}
.p-media__label {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  margin-bottom: 16px;
}
.p-media__label-main { color: var(--text-gray); }
.p-media__label-color--green  { color: #3AAE6B; font-weight: bold; }
.p-media__label-color--teal   { color: #4DBBCF; font-weight: bold; }
.p-media__label-color--yellow { color: #F5C400; font-weight: bold; }
.p-media__label-color--blue   { color: #2196F3; font-weight: bold; }
.p-media__label-color--red    { color: #E63946; font-weight: bold; }

.p-media__video-area {
  background: #ddd;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-media__video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-media__video-area video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   COURSE CLASS SECTION
   ============================================ */
.p-class {
  padding: 80px 0 90px;
  background: var(--white);
}

.p-class__main-title {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  text-align: center;
  margin-bottom: 48px;
  color: var(--black);
}

.p-class__subtitle {
  width: 100%;
  min-height: 44px;
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  color: var(--white);
  background: #2b2b2b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 2px;
}
.p-class__subtitle small {
  font-size: 13px;
  font-weight: var(--font-weight-regular);
  margin-left: 8px;
  opacity: .8;
}

.p-class__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}
@media screen and (max-width: 767px) {
  .p-class__row {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
}
.p-class__row:last-child { margin-bottom: 0; }

.p-class__col { width: 100%; }

/* Color variants */
.p-class__row.is-color-green .p-class__col__title {
  color: var(--green);
  border-left-color: var(--green-medium);
}
.p-class__row.is-color-green dt { color: var(--green); }
.p-class__row.is-color-teal .p-class__col__title {
  color: var(--teal);
  border-left-color: var(--teal);
}
.p-class__row.is-color-teal dt { color: var(--teal); }

.p-class__col__title {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  background: #e6e6e6;
  border-left-width: 12px;
  border-left-style: solid;
  padding-left: 16px;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
@media screen and (max-width: 767px) { .p-class__col__title { height: 36px; font-size: 16px; } }

.p-class__col__data {
  font-size: 14px;
  line-height: 1.7;
  padding: 0 8px;
}
.p-class__col__data dt { font-weight: var(--font-weight-bold); flex-shrink: 0; }
.p-class__col__data dd { margin: 0; flex-grow: 1; }
.p-class__col__data dd ul { list-style: disc; padding-left: 1.2em; }
.p-class__col__data dd ul li + li { margin-top: 4px; }

.p-class__col__data__item {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.p-class__col__data__item + .p-class__col__data__item { border-top: 1px solid var(--border-gray); padding-top: 8px; }

/* ============================================
   CORPORATE SECTION
   ============================================ */
.p-corporate {
  background: var(--gray-back);
}

.p-corporate__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
}
@media screen and (max-width: 767px) {
  .p-corporate__inner { grid-template-columns: 1fr; }
}

.p-corporate__content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  background: var(--white);
}
@media screen and (max-width: 767px) {
  .p-corporate__content { padding: 40px 24px; }
}

.p-corporate__content-box { max-width: 380px; }

.p-corporate__eyebrow {
  display: inline-block;
  font-size: var(--font-size-small);
  color: var(--text-gray);
  margin-bottom: 12px;
}
.p-corporate__title {
  font-size: 22px;
  font-weight: var(--font-weight-bold);
  color: var(--black);
  line-height: 1.6;
  margin-bottom: 16px;
}
@media screen and (max-width: 767px) { .p-corporate__title { font-size: 18px; } }

.p-corporate__text {
  font-size: var(--font-size-std);
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 28px;
}
.p-corporate__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-medium);
  color: var(--white);
  font-size: var(--font-size-std);
  font-weight: var(--font-weight-medium);
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: background .2s;
}
.p-corporate__btn:hover { background: var(--green-dark); }
.p-corporate__btn-arrow { font-size: 18px; line-height: 1; }

.p-corporate__image {
  overflow: hidden;
}
.p-corporate__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   NEWS SECTION (2-column)
   ============================================ */
.p-news-section {
  padding: 80px 0 90px;
  background: var(--white);
}

.p-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}
@media screen and (max-width: 767px) {
  .p-news-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.p-news-col__title {
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  color: var(--black);
  border-left: 4px solid var(--green-medium);
  padding-left: 12px;
  margin-bottom: 24px;
  line-height: 1;
}

.p-news-list { }
.p-news-list__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-gray);
}
.p-news-list__item:first-child { border-top: 1px solid var(--border-gray); }
.p-news-list__date {
  font-size: var(--font-size-small);
  color: var(--text-gray);
  white-space: nowrap;
}
.p-news-list__link {
  font-size: var(--font-size-std);
  color: var(--black);
  text-decoration: none;
  line-height: 1.5;
}
.p-news-list__link:hover { color: var(--green); text-decoration: underline; }

.p-news-empty { font-size: var(--font-size-std); color: var(--text-gray); }

/* Help Column */
.p-help-list { margin-bottom: 28px; }
.p-help-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-gray);
}
.p-help-list li:first-child { border-top: 1px solid var(--border-gray); }
.p-help-list li a {
  font-size: var(--font-size-std);
  color: var(--black);
  text-decoration: none;
}
.p-help-list li a:hover { color: var(--green); text-decoration: underline; }

.p-help-cert {
  font-size: var(--font-size-small);
  color: var(--text-gray);
  line-height: 1.7;
}
.p-help-cert__link {
  display: inline-block;
  margin-top: 8px;
  color: var(--green);
  text-decoration: underline;
  font-size: var(--font-size-small);
}
.p-help-cert__link:hover { opacity: .7; }
