/* ========================================================================== */
/* teacher-list.twig styles (carousel) */
/* ========================================================================== */

.teacher-carousel {
  overflow: hidden;
  width: 100%;
}

.teacher-carousel__track {
  display: flex;
  will-change: transform;
}

.teacher-3-card {
  flex: 0 0 calc(100% / 5);
  min-width: 0;
  overflow: hidden;
  height: 368px;
  display: flex;
  flex-direction: column;
}

.teacher-3-card-info {
  height: 160px;
  padding: 16px 16px 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
}

.teacher-3-card-name-row {
  margin-bottom: 15px;
}

.teacher-3-card-name {
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.72px;
  color: #333;
  white-space: nowrap;
}

.teacher-3-card-position {
  height: 40px;
  margin-bottom: 8px;
}

.teacher-3-card-position-text {
  color: #A7A7A7;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.48px;
}

.teacher-3-card-subject {
  background-color: #009FE8;
  color: #fff;
  font-size: 14px;
  padding: 4px 8px;
  display: inline-block;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.56px;
}

.teacher-3-card-image-box {
  height: 200px;
  padding: 0 20px 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.teacher-3-card-image-frame {
  position: relative;
  width: min(200px, 100%);
  aspect-ratio: 1 / 1;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.teacher-3-card-img {
  width: 90%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  z-index: 5;
  background-color: #eee;
  display: block;
}

.teacher-3-arc-top,
.teacher-3-arc-bottom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
}

.teacher-3-arc-top {
  border: 1px solid transparent;
  border-right: 1px solid #009FE8;
  transform: rotate(-40deg);
}

.teacher-3-arc-top::after {
  content: '';
  position: absolute;
  top: 27.64%;
  ;
  right: 5.64%;
  width: 12px;
  height: 12px;
  background-color: #009FE8;
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.teacher-3-arc-bottom {
  border: 1px solid transparent;
  border-left: 1px solid #0B318F;
  transform: rotate(-55deg);
}

.teacher-3-arc-bottom::after {
  content: '';
  position: absolute;
  bottom: 27.64%;
  left: 4.64%;
  width: 12px;
  height: 12px;
  background-color: #0B318F;
  border-radius: 50%;
  transform: translate(-50%, 50%);
}

@media (max-width: 1024px) {
  .teacher-3-card {
    flex-basis: calc(100% / 3);
  }
}

@media (max-width: 768px) {
  .teacher-3-card {
    flex-basis: calc(100% / 2);
  }
}

/* ========================================================================== */
/* pagination.twig styles (Circular) */
/* ========================================================================== */

.pager {
  margin: 40px 0;
  display: flex;
  justify-content: center;
}

.pager-list {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pager-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #009FE8;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.border-darkblue {
  border: 1px solid #0B318F !important;
}

.pager-item a,
.pager-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #009FE8;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.color-darkblue a,
.color-darkblue span {
  color: #0B318F !important;
}

.pager-item.active {
  background-color: #009FE8;
}

.bgcolor-darkblue.active {
  background-color: #0B318F !important;
}

.pager-item.active span {
  color: #fff;
}

.pager-item:not(.active):hover {
  background-color: #f0faff;
}

/* Arrows */
.pager-arrow-item span[class^="arrow-"],
.pager-arrow-item span[class^="double-arrow-"] {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 10px;
}

.arrow-left::before,
.arrow-right::before,
.double-arrow-left::before,
.double-arrow-left::after,
.double-arrow-right::before,
.double-arrow-right::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid #009FE8;
  border-left: 1.5px solid #009FE8;
  display: block;
}

.arrow-darkblue::before,
.arrow-darkblue::after {
  border-top: 1.5px solid #0B318F !important;
  border-left: 1.5px solid #0B318F !important;
}

/* Single Left */
.arrow-left::before {
  left: 50%;
  transform: translate(-30%, -50%) rotate(-45deg);
}

/* Single Right */
.arrow-right::before {
  left: 50%;
  transform: translate(-50%, -25%) rotate(90deg);
}

/* Double Left */
.double-arrow-left::before {
  left: 15%;
  transform: translateY(-50%) rotate(-45deg);
}

.double-arrow-left::after {
  left: 65%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Double Right */
.double-arrow-right::before {
  left: -5%;
  transform: translateY(-50%) rotate(135deg);
}

.double-arrow-right::after {
  left: 45%;
  transform: translateY(-50%) rotate(135deg);
}

@media (max-width: 480px) {
  .pager-list {
    gap: 6px;
  }

  .pager-item {
    width: 32px;
    height: 32px;
  }

  .pager-item a,
  .pager-item span {
    font-size: 14px;
  }
}

.pager-item.disabled {
  opacity: 0.3;
  pointer-events: none;
  border-color: #A7A7A7;
}

.pager-item.disabled span::before,
.pager-item.disabled span::after {
  border-color: #A7A7A7;
}

/* ========================================================================== */
/* Gallery Unit styles (3 columns) */
/* ========================================================================== */

.gallery-unit-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.gallery-unit-item {
  display: flex;
  flex-direction: column;
}

.gallery-unit-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #D9D9D9;
  /* Placeholder color like in image */
  margin-bottom: 10px;
  overflow: hidden;
}

.gallery-unit-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-unit-caption {
  font-size: 12px;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .gallery-unit-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ===============================
   Career Model base
================================ */
.career-model {
  background: #0B318F;
  color: #fff;
}

.career-model__inner {
  padding: 56px 120px 120px 120px;
}

.career-model__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.career-model__track {
  display: flex;
  gap: 40px;
  width: max-content;
  margin-bottom: 24px;
}

.career-model__item {
  flex: 0 0 270px;
  display: block;
}

.career-model__img {
  width: 270px;
  height: auto;
  display: block;
  max-width: none;
}

@media screen and (min-width: 1440px) {
  .career-model__viewport {
    overflow-x: visible;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: hidden;
  }

  .career-model__track {
    width: auto;
    max-width: 100%;
    justify-content: center;
  }
}

.career-model__cta {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.career-model-cta {
  position: relative;
  width: min(360px, 100%);
  background: #fff;
  color: #0B318F !important;
  border-radius: 40px;
  text-decoration: none;
  padding: 16px;
  display: block;
  text-align: center;
  font-weight: 600;
  font-size: 18px;
}

.career-model-cta__icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0b2f8a;

  display: grid;
  place-items: center;
}

/* ===============================
   Tablet: 2枚見え寄りに調整
================================ */
@media screen and (min-width: 600px) and (max-width: 1024px) {
  .career-model__list {
    gap: 20px;
    padding: 0 24px 10px;
  }

  .career-model__list>.career-model-card {
    flex-basis: clamp(280px, 44vw, 360px);
    /* 2枚＋チラ見えに寄せる */
  }
}

/* ========================================================================== */
/* doc-item.twig styles */
/* ========================================================================== */
/*
.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border: 1.5px solid #009CE2;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.doc-item:hover {
  background-color: #F7FCFE;
  border-color: #009CE2;
}

.doc-item-title {
  color: #009CE2;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 32px;
}

.doc-item-icon {
  width: 20px;
  height: auto;
  filter: invert(48%) sepia(85%) saturate(2285%) hue-rotate(174deg) brightness(98%) contrast(106%);
}

@media (max-width: 768px) {
  .doc-item {
    padding: 16px 20px;
  }
}
*/



/* ========================================================================== */
/* info-entry-file-item.twig */
/* ========================================================================== */

.notice-doc-item-parts {
  display: flex;
  height: 80px;
  padding: 8px 24px;
  align-items: center;
  gap: 16px;
  align-self: stretch;
  border-radius: 8px;
}

.notice-doc-item-text-parts {
  line-height: 32px;
  /* 200% */
  flex: 1 0 0;
}

.notice-doc-item-pdf-icon-parts {
  width: 18px;
  height: 24px;
  aspect-ratio: 3/4;
}

.notice-doc-color-skyblue-parts {
  color: var(--sky-blue);
}

.notice-doc-color-darkblue-parts {
  color: var(--dark-blue);
}

.notice-doc-border-color-skyblue-parts {
  border: 1px solid var(--sky-blue);
}

.notice-doc-border-color-darkblue-parts {
  border: 1px solid var(--dark-blue);
}

/* ========================================================================== */
/* @media：SP */
/* ========================================================================== */

@media (max-width: 767px) {
  .notice-doc-item-text-parts {
    font-size: 14px;
    line-height: 24px;
    /* 171.429% */
  }
}

/* ========================================================================== */
/* /入試情報@SPH/include/parts/common/admission-doc-item.twig styles */
/* ========================================================================== */

.admission-docs-parts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.admission-doc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 80px;
  border: 1px solid #ccc;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: #fff;
  gap: 10px;
}

.admission-ap-doc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 24px;
  border: 1px solid #ccc;
  border-radius: 12px;
  text-decoration: none;
  background: #fff;
  transition: all 0.3s ease;
}

.admission-doc-btn:hover {
  border-color: #009CE2;
  color: #009CE2;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.admission-doc-btn-caption {
  text-align: center;
}

/* ========================================================= */
/* @media：SP */
/* ========================================================= */

@media (max-width: 767px) {
  .admission-docs-parts {
    grid-template-columns: 1fr;
  }

  .admission-doc-btn-caption {
    font-size: 14px;
  }
}

/* ========================================================================== */
/* /受験生向け@SPH/include/parts/voice-item.twig styles */
/* ========================================================================== */

.voice-background-light-blue-parts {
  background: var(--title-text-light-blue);
}

.voice-background-dark-blue-parts {
  background: var(--title-text-dark-blue);
}

.voice-group-light-blue-parts,
.voice-group-dark-blue-parts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 0;
  border-radius: 0 0 0 40px;
  position: relative;
}

.voice-group-light-blue-parts {
  border: 1px solid var(--title-text-light-blue);
}

.voice-group-dark-blue-parts {
  border: 1px solid var(--title-text-dark-blue);
}

.voice-top-parts {
  display: flex;
  padding: 16px 16px 32px 16px;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  align-self: stretch;
  border-radius: 0 0 0 40px;
  background: #FFF;
}

.voice-top-body-parts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  align-self: stretch;
}

.voice-top-body-header-parts {
  display: flex;
  padding: 8px 0;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  align-self: stretch;
}

.voice-top-body-header-title-text-parts {
  align-self: stretch;
  font-size: 18px;
  font-weight: 600;
  line-height: 32px;
  /* 177.778% */
  letter-spacing: 0.72px;
  color: var(--title-text-light-blue);
}

.voice-group-dark-blue-parts .voice-top-body-header-title-text-parts {
  color: var(--title-text-dark-blue);
}

#voice-popup.student .voice-popup-top-header-title-text {
  color: var(--title-text-light-blue);
}

#voice-popup.alumni .voice-popup-top-header-title-text {
  color: var(--title-text-dark-blue);
}

#voice-popup.alumni .voice-popup-top {
  border-bottom: 1px solid var(--title-text-dark-blue);
}

.voice-top-body-header-job-text-parts {
  align-self: stretch;
  font-size: 14px;
  line-height: 24px;
  /* 171.429% */
  letter-spacing: 0.56px;
}

.voice-top-body-content-parts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;
}

.voice-top-body-content-text-parts {
  align-self: stretch;
  font-size: 14px;
  line-height: 24px;
  /* 171.429% */
  letter-spacing: 0.56px;
}

.voice-bottom-body-parts {
  display: flex;
  width: 32px;
  height: 32px;
  transform: rotate(90deg);
  justify-content: center;
  align-items: center;
  gap: 8.828px;
  border-radius: 44.138px;
}

.voice-bottom-body-href-parts {
  display: flex;
  width: 32px;
  height: 32px;
  transform: rotate(-90deg);
  justify-content: center;
  align-items: center;
  gap: 10.667px;
  flex-shrink: 0;
  border-radius: 133.333px;
}

.voice-caseno-parts {
  transform-origin: right top;
  transform: rotate(-90deg) translateY(-100%);
  display: flex;
  padding: 8px 16px;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  position: absolute;
  right: 0;
  border-radius: 24px 0 0 0;
}

.voice-caseno-text-parts {
  transform: rotate(180deg);
  color: #FFF;
  font-family: Arial;
  font-weight: 700;
  line-height: 32px;
  /* 200% */
}

/* ========================================================================== */
/* news-list.twig styles */
/* ========================================================================== */

.news-list {
  list-style: none;
  margin: 0;
  padding: 0 180px 0 180px;
}

.news-item-lightblue {
  display: block;
  align-items: center;
  padding: 16px 8px 16px 8px;
  font-size: 16px;
  line-height: 1.7;
  border-bottom: 1px solid #009CE2;
}

.news-item-darkblue {
  display: block;
  align-items: center;
  padding: 16px 8px 16px 8px;
  font-size: 16px;
  line-height: 1.7;
  border-bottom: 1px solid #0B318F;
}

.news-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  width: 100%;
}

.news-item-darkblue__label {
  background: #0B318F;
  color: #fff;
  font-size: 14px;
  padding: 0 4px;
}

.news-item__date {
  font-size: 14px;
  color: #A7A7A7;
}

.news-item__title {
  width: 100%;
}

.news-item__title a {
  display: block;
  line-height: 1.8;
  text-decoration: none;
  color: inherit;
}

/* ========================================================= */
/* @media：TB */
/* ========================================================= */

@media (max-width: 1023px) {
  .news-list {
    list-style: none;
    margin: 0;
    padding: 0 64px 0 64px;
  }
}

/* ========================================================= */
/* @media：SP */
/* ========================================================= */

@media (max-width: 767px) {
  .news-list {
    padding: 0;
  }

  .news-item-lightblue,
  .news-item-darkblue {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .news-item__meta {
    min-width: auto;
  }
}