@charset "utf-8";
/* CSS Document */


/* TOP PAGE */
:root {
  --main-image-height: 60vh;
}
@media (orientation: landscape) {
  :root {
    /* 横長のときは高さを抑えて、スクロールせずに全体が見えるようにする */
    --main-image-height: 90vh; 
  }
}

/* 非常に背の低い（横に長すぎる）画面への予備知識 */
@media (orientation: landscape) and (max-height: 500px) {
  :root {
    --main-image-height: 750px; /* 固定値で潰れすぎを防止 */
  }
}

.p-hero {
  position: relative;
  width: 100%;
  height: calc( var(--main-image-height) / 1.5  );
  max-height: calc( var(--main-image-height) );
  background-color: #767676;
  display: flex;
}

@media (min-width: 769px) {
  .p-hero {
    height: auto;
    max-height: none;
  }
}


.p-hero__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* 垂直方向も中央に */
  gap: var(--space-md);
  z-index: 10;
  overflow: hidden; /* 左右のはみ出しをカット */
}

.p-hero__image {
  width: 100%;
  height: 100%;       /* 親の高さに合わせる */
  max-height: 100%;   /* ご指定の条件 */
  object-fit: cover;  /* アスペクト比を維持したまま、はみ出し部分をトリミング */
  object-position: center; /* 中央寄せ */
  vertical-align: bottom;
}
.p-scroll-guide {
  display: none;
}
@media (min-width: 769px) {
  .p-hero__inner {
    height: auto; /* PCでは画像の元サイズに合わせる場合など */
  }
  .p-hero__image {
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: initial;
  }
  .p-scroll-guide {
    display: none;
    position: absolute;
    right: -2rem;
    bottom: 4rem;
    transform: rotate(90deg);
    color: #fff;
    cursor: pointer;
    font-size: 0.875rem;
    z-index: +10;
    -webkit-user-select: none;
    user-select: none;
  }
}
.p-hero__floating-label {
  position: absolute;
  left: 0;
  bottom: 10%;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 2vw 4vw 2vw 2vw;
  display: flex;
  align-items: center;
  gap: 2vw;
  font-weight: bold;
  z-index: 10;
  border-top-right-radius: 2vw;
  border-bottom-right-radius: 2vw;
}

.p-hero__floating-label-logo img {
  max-width:10vw;
  vertical-align: bottom;
}
.p-hero__floating-label-text {
  margin: 0;
  font-size: 4vw;
}

@media (min-width: 641px) {
  .p-hero__floating-label {
    padding: 1rem 2rem 1rem 1rem;
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    gap: 0 1rem;
  }
  .p-hero__floating-label-logo img {
    max-width:4.5rem;
  }
  .p-hero__floating-label-text {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Project: 中学教育
   ========================================================================== */

.p-course-intro {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column-reverse;
}
.p-course-intro__left,
.p-course-intro__right {
  width: 100%;
}
.p-course-intro__left {
  background-color: var(--color-primary);
  padding: 1.5rem 2rem;
}
.p-course-intro__title {
  color: var(--color-white);
  margin: 0 0 var(--space-md);
}
.p-course-intro__list {
  background-color: var(--color-white);
  border-radius:1.5rem;
  margin: 0;
  padding: 1.5rem;
  list-style: none;
}
.p-course-intro__list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2rem;
  border-bottom: 1px dotted var(--color-text);
  font-size:1.5rem;
  line-height: 1.5;
  font-weight: bold;
}
.p-course-intro__list > li:last-child {
  border-bottom: none;
}
.p-course-intro__list li::before {
  content:"";
  display: block;
  position: absolute;
  left:0;
  top: calc( 0.5em + 0.0625em );
  width:1em;
  height: 1em;
  line-height: 1;
  background-color: var(--color-primary);
}

.p-course-intro__right img {
  width: 100%;
  vertical-align: bottom;
}
@media(min-width:769px) {
  .p-course-intro {
    flex-direction: row;
  }
  .p-course-intro__left,
  .p-course-intro__right {
    width: 50%;
  }
  .p-course-intro__left {
    padding: 2.5rem 3rem;
  }
  .p-course-intro__title {
    font-size: 2rem;
    line-height: 1.5;
  }
  .p-flex-layout__right .p-under-image {
    text-align: right;
  }
}

/* ==========================================================================
   Project: p-educate
   ========================================================================== */
.p-educate-summary__block {
  padding: 0 0 var(--space-md);
  border-bottom: 1px solid var(--color-border);
  margin: 0 0 var(--space-md);
}
.p-educate-summary > .p-educate-summary__block:last-child {
  border-bottom: none;
}
