/* ========== Curriculum Intro ========== */
.curriculum-intro {
  padding: 80px 20px;
  background: #fff;
}

.curriculum-intro__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.curriculum-intro__lead {
  font-family: "Noto Serif JP", "Source Han Serif JP", serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.8;
  color: #333;
  margin-bottom: 5px;
}

.curriculum-intro__heading {
  font-family: "Noto Serif JP", "Source Han Serif JP", serif;
  font-size: 26px;
  font-weight: 600;
  color: #333;
  margin-bottom: 60px;
  line-height: 1.2;
  text-indent: -1.5em;
}

.curriculum-intro__em {
  color: #145786;
  font-size: 42px;
}

.curriculum-intro__sub {
  display: inline-block;
  text-align: left;
}

.curriculum-intro__desc {
  font-size: 14px;
  line-height: 2;
  color: #555;
  text-align: left;
}

.curriculum-intro__lead-br,
.curriculum-intro__heading-br {
  display: none;
}

@media screen and (max-width: 640px) {
  .curriculum-intro__lead {
    font-size: 21px;
  }

  .curriculum-intro__lead-br,
  .curriculum-intro__heading-br {
    display: inline;
  }

  .curriculum-intro__heading {
    font-size: 21px;
    text-indent: 0;
  }

  .curriculum-intro__em {
    display: block;
    margin-bottom: -15px;
    text-align: center;
    font-size: 28px;
  }
}

/* ========== Feature (講座の特長) ========== */
.feature {
  padding: 80px 20px 120px;
  /* background: #f9f9f9; */
}

.feature__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.feature__label {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #333;
  margin-bottom: 8px;
}

.feature__heading {
  text-align: center;
  font-family: "Noto Serif JP", "Source Han Serif JP", serif;
  font-size: 30px;
  font-weight: 600;
  color: #2a2a2a;
  margin: 0;
}

.feature__heading-en {
  text-align: center;
  font-family: "Source Han Serif JP", "Noto Serif JP", serif;
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(191, 205, 220, 0.4);
  line-height: 1;
  margin: -18px 0 56px;
}

.feature__item {
  display: flex;
  gap: 48px;
  margin-bottom: 35px;
  align-items: flex-start;
}

.feature__item-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.feature__item:last-child {
  margin-bottom: 0;
}

.feature__item-text {
  flex: 1;
}

.feature__item-num-wrap {
  width: fit-content;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}

.feature__item-num {
  display: block;
  font-family: "Noto Serif JP", "Source Han Serif JP", serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 0;
  text-align: center;
  background: linear-gradient(to bottom right, #9d323f, #c07942);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.feature__item-number {
  display: block;
  font-family: "Noto Serif JP", "Source Han Serif JP", serif;
  font-size: 36px;
  font-weight: 400;
  text-align: center;
  line-height: 1;
  margin-bottom: 0;
  background: linear-gradient(to bottom right, #9d323f, #c07942);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.feature__item-title {
  font-family: "Noto Serif JP", "Source Han Serif JP", serif;
  font-size: 26px;
  font-weight: 600;
  color: #2a2a2a;
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

.feature__item-title--red {
  color: #c40b0b;
}

.feature__item-title--sub {
  margin-bottom: 25px;
  font-size: 22px;
}

.feature__item-desc {
  font-size: 14px;
  line-height: 2;
  color: #555;
}

.feature__item-images {
  flex-shrink: 0;
  width: 45%;
}

.feature__item-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #a8b2be;
}

.feature__item-images--double {
  display: flex;
  gap: 12px;
}

.feature__item-images--double .feature__item-img {
  flex: 1;
}

@media screen and (max-width: 768px) {
  .feature__item {
    flex-direction: column;
    gap: 24px;
  }

  .feature__item-images {
    width: 100%;
  }

  .feature__heading {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .feature__heading-en {
    font-size: 44px;
  }
}

/* Feature vertical layout */
.feature--bg-white {
  background: #fff;
}

.feature--bg-gray {
  /* background: #f5f5f5; */
}

.feature--bg-dark {
  position: relative;
  background: #1a1a1a;
  margin-top: -5vh;
  padding-top: calc(80px + 5vh);
  padding-bottom: 80px;
  clip-path: polygon(0 5vh, 100% 0, 100% calc(100% - 5vh), 0 100%);
}

@media screen and (max-width: 960px) {
  .feature--bg-dark {
    clip-path: polygon(0 2.5vh, 100% 0, 100% calc(100% - 2.5vh), 0 100%);
  }
}

.feature__item--center {
  align-items: center;
  text-align: center;
}

.feature__item-title--invert {
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
}

.feature__item-title-br--sm {
  display: none;
}

@media screen and (max-width: 640px) {
  .feature__item-title-br--sm {
    display: inline;
  }
}

.feature__item-title--accent {
  background: linear-gradient(to bottom right, #e8b36d, #c07942);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.feature__item-desc--invert {
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
}

.feature__item--vertical {
  flex-direction: column;
  gap: 32px;
}

.feature__item--mb60 {
  margin-bottom: 60px;
}

.feature__item-gallery {
  display: flex;
  gap: 16px;
  width: 100%;
}

.feature__item-gallery-item {
  flex: 1;
}

.feature__item-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature__item-gallery--five .feature__item-gallery-item img {
  height: 65%;
}

.feature__item-gallery-item .feature__item-placeholder {
  aspect-ratio: 4 / 3;
}

.feature__item-caption {
  font-size: 12px;
  color: #555;
  margin-top: 8px;
  text-align: center;
}

.feature__item-gallery--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
}

.feature__item-gallery--grid .feature__item-gallery-item {
  overflow: hidden;
}

.feature__item-gallery--grid .feature__item-placeholder {
  height: 240px;
  aspect-ratio: auto;
}

.feature__item-gallery--captioned .feature__item-gallery-item {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.feature__item-gallery--captioned .feature__item-placeholder {
  height: 100%;
  aspect-ratio: auto;
}

.feature__item-overlay-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  padding: 12px 16px;
  text-align: center;
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PCでは自動スライド用 track / クローン (aria-hidden) を解除して通常表示 */
.feature__item-gallery-track {
  display: contents;
}

.feature__item-gallery-item[aria-hidden="true"] {
  display: none;
}

/* スマホでループ起動時：トラックを実体化して scrollLeft 駆動で無限ループ（手動スクロール可） */
.feature__item-gallery.is-looping {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.feature__item-gallery.is-looping::-webkit-scrollbar { display: none; }

.feature__item-gallery.is-looping .feature__item-gallery-track {
  display: flex;
  width: max-content;
  gap: 12px;
  will-change: scroll-position;
}

.feature__item-gallery.is-looping .feature__item-gallery-item[aria-hidden="true"] {
  display: block;
}

/* ループ中の余分な縦幅をカット（画像でアイテムを埋める） */
.feature__item-gallery.is-looping .feature__item-gallery-item img {
  height: 100%;
}

.feature__item-gallery--five.is-looping .feature__item-placeholder {
  height: 140px;
}

@media screen and (max-width: 640px) {
  .feature__item-gallery {
    flex-direction: column;
  }

  /* グリッド+captioned ギャラリーのループ用カード幅 */
  .feature__item-gallery--grid.feature__item-gallery--captioned.is-looping .feature__item-gallery-item {
    flex: 0 0 280px;
    height: 240px;
  }
}

/* ========== Comrades (仲間) ========== */
.comrades {
  padding: 60px 20px;
  background: #fff;
}

.comrades__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.comrades__heading {
  font-family: "Noto Serif JP", "Source Han Serif JP", serif;
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 32px;
  text-align: center;
  line-height: 1.6;
}

.comrades__images {
  display: flex;
  gap: 16px;
}

.comrades__img {
  flex: 1;
}

.comrades__placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #a8b2be;
}

@media screen and (max-width: 640px) {
  .comrades__images {
    flex-direction: column;
  }

  .comrades__heading {
    font-size: 18px;
  }
}

.feature__item-gallery--five {
  display: flex;
  gap: 12px;
}

.feature__item-gallery--five .feature__item-gallery-item {
  flex: 1;
}

.feature__item-gallery--five .feature__item-placeholder {
  height: 180px;
  aspect-ratio: auto;
}

@media screen and (max-width: 768px) {
  /* スマホでもPCと同じカードサイズを保ち、横スクロール＋自動スライド */
  .feature__item-gallery--five {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .feature__item-gallery--five::-webkit-scrollbar {
    display: none;
  }

  .feature__item-gallery--five .feature__item-gallery-item {
    flex: 0 0 190px;
  }

  .feature__item-gallery--five .feature__item-placeholder {
    height: 140px;
  }
}

/* Feature single image */
.feature__item-single-img {
  width: 100%;
  border: 1px solid #ddd;
}

.feature__item-single-img img {
  width: 100%;
  height: auto;
}

/* Feature flow chart */
.feature__flow {
  width: 100%;
}

.feature__flow-content {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.feature__flow-img {
  width: 35%;
  flex-shrink: 0;
}

.feature__flow-img .feature__item-placeholder {
  aspect-ratio: 3 / 4;
}

.feature__flow-chart {
  flex: 1;
}

.feature__flow-title {
  font-family: "Noto Serif JP", "Source Han Serif JP", serif;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.feature__flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.feature__flow-step {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #145786;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature__flow-step-label {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.feature__flow-arrow {
  font-size: 20px;
  color: #145786;
}

@media screen and (max-width: 768px) {
  .feature__flow-content {
    flex-direction: column;
  }

  .feature__flow-img {
    width: 100%;
  }

  .feature__flow-img .feature__item-placeholder {
    aspect-ratio: 16 / 10;
  }

  .feature__flow-step {
    width: 60px;
    height: 60px;
  }
}

/* ========== Community (コミュニティ目標) ========== */
.community {
  padding: 60px 20px;
  background: #fff;
}

.community__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.community__heading {
  font-family: "Noto Serif JP", "Source Han Serif JP", serif;
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 32px;
  text-align: center;
  line-height: 1.6;
}

.community__images {
  display: flex;
  gap: 16px;
}

.community__img {
  flex: 1;
}

.community__placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #a8b2be;
}

@media screen and (max-width: 640px) {
  .community__images {
    flex-direction: column;
  }

  .community__heading {
    font-size: 18px;
  }
}

/* ========== Curriculum CTA ========== */
.curriculum-cta {
  padding: 48px 20px;
  background: #fff;
  text-align: center;
}

.curriculum-cta__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.curriculum-cta__btn {
  display: inline-block;
  padding: 16px 70px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(to bottom right, #314b6f, #0f3b74);
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
}

.curriculum-cta__btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}


/* ========== Environment (セミナー受講環境) ========== */
.environment {
  padding: 80px 20px;
  background: #fff;
}

.environment__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.environment__label {
  display: inline-block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #333;
  margin-bottom: 8px;
}

.environment__heading {
  font-family: "Noto Serif JP", "Source Han Serif JP", serif;
  font-size: 30px;
  font-weight: 600;
  color: #2a2a2a;
  margin: 0;
}

.environment__heading-en {
  font-family: "Source Han Serif JP", "Noto Serif JP", serif;
  font-size: 56px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(191, 205, 220, 0.4);
  line-height: 1;
  margin: -18px 0 40px;
}

.environment__text {
  font-size: 14px;
  color: #555;
  margin: 0 0 40px;
}

.environment__images {
  display: grid;
  gap: 24px;
  margin-bottom: 60px;
}

/* 件数別レイアウト: 1件=単独中央、2〜4件以上=2列で折り返し */
.environment__images--count-1 {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}

.environment__images--count-2,
.environment__images--count-3,
.environment__images--count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.environment__img {
  min-width: 0; /* グリッド内で画像コンテンツが幅を超えないように */
}

.environment__placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #a8b2be;
}

.environment__img img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.environment__img {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.3s;
}

a.environment__img:hover {
  opacity: 0.88;
}

.environment__overlay-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 17px;
  line-height: 1.6;
  padding: 12px 16px;
  text-align: center;
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.environment__btn {
  display: inline-block;
  padding: 16px 70px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(to bottom right, #314b6f, #0f3b74);
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
}

.environment__btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

@media screen and (max-width: 768px) {
  .environment__overlay-caption {
    font-size: 14px;
  }
}

@media screen and (max-width: 640px) {
  /* モバイル: 件数に関わらず1列に */
  .environment__images--count-1,
  .environment__images--count-2,
  .environment__images--count-3,
  .environment__images--count-4 {
    grid-template-columns: 1fr;
  }

  .environment__heading {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .environment__heading-en {
    font-size: 44px;
  }
}
