@charset "utf-8";
/*--home.css-英語版トップ（シングルページ）------*/


/* ----- ヒーロー ----- */
.hero {
  position: relative;
  min-height: min(70dvh, 32rem);
  display: flex;
  align-items: flex-end;
  background: #1a1a1a center / cover no-repeat;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero__image.is-active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-hero-overlay);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.hero__tagline {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 4vw, 2.25rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  max-width: 36rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero__sub {
  margin-top: var(--space-md);
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.92);
  max-width: 40rem;
}

/* ----- About / 二カラム ----- */
.media-block {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 48rem) {
  .media-block {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .media-block--reverse .media-block__text {
    order: 2;
  }

  .media-block--reverse .media-block__figure {
    order: 1;
  }
}

.media-block__figure {
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.media-block__figure img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-block__text p + p {
  margin-top: var(--space-md);
}

.lead {
  font-size: var(--font-size-lg);
}

/* ----- Courses ----- */
.course-list {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 48rem) {
  .course-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.course-card {
  border: 1px solid #e5e5e5;
  padding: var(--space-md);
  background: #fff;
}

.course-card__name {
  font-weight: 700;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
}

.course-card__fields {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

/* ----- Courses: auto-scrolling photo strip (marquee) ----- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.courses-marquee {
  margin-top: var(--space-lg);
  width: 100%;
}

.courses-marquee__viewport {
  overflow: hidden;
  border-radius: 2px;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
}


.courses-marquee__track {
  display: flex;
  width: max-content;
  animation: courses-marquee-shift 45s linear infinite;
}

.courses-marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-sm);
  /* 次のグループ先頭までの間隔＝画像間と同じにし、translate -50% で継ぎ目なくループ */
  padding-inline-end: var(--space-sm);
}

.courses-marquee__item {
  margin: 0;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.courses-marquee__item img {
  display: block;
  width: 11rem;
  height: 8.25rem;
  max-width: none;
  object-fit: cover;
}

/* ループ用複製列：実画像の代わりに同サイズのグレー枠 */
.courses-marquee__placeholder {
  display: block;
  width: 11rem;
  height: 8.25rem;
  background-color: #c5c5c5;
}

@media (min-width: 48rem) {
  .courses-marquee__item img {
    width: 12.5rem;
    height: 9.375rem;
  }

  .courses-marquee__placeholder {
    width: 12.5rem;
    height: 9.375rem;
  }
}

@keyframes courses-marquee-shift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .courses-marquee__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .courses-marquee__track {
    animation: none;
    width: 100%;
    max-width: 48rem;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }

  .courses-marquee__group--placeholder {
    display: none;
  }
}

/* ----- Centers ----- */
.center-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 48rem) {
  .center-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.center-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  background: #fff;
}

.center-card__image {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.center-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.center-card__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.center-card__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.center-card__title a {
  color: var(--color-text);
}

.center-card__title a:hover {
  color: var(--color-accent);
}

.center-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  flex: 1;
}

.center-card__link {
  margin-top: var(--space-md);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-align: right;
}

/* ----- Links ----- */
.ref-links {
  border: 1px solid #e5e5e5;
  padding: var(--space-md);
  background: #ffffff;
}

.ref-links ul {
  padding-left: 1.25rem;
}

.ref-links li {
  margin-bottom: var(--space-sm);
}

.ref-links a {
  word-break: break-word;
}

/* ----- Contact ----- */
.contact-note {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin-top: var(--space-lg);
}

.contact-dl {
  display: grid;
  gap: var(--space-md);
}

.contact-dl dt {
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.contact-dl dd {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin: 0;
}

.contact-dl dd a {
  word-break: break-all;
}

.section--alt {
  background: #f3efe3;
}

.section__lead {
  max-width: 48rem;
  margin-bottom: var(--space-lg);
}

.section__lead--tight {
  margin-bottom: var(--space-md);
}

/*1280px以下*/
@media screen and (min-width:1px) and (max-width:1280px){

}


/*1180px以下*/
@media screen and (min-width:1px) and (max-width:1180px){
    
}

/*1080px以下*/
@media screen and (min-width:1px) and (max-width:1080px){

}

/*ipad*/
@media screen and (min-width:1px) and (max-width:1024px){

}

/* ##########SP########## */
@media screen and (min-width:1px) and (max-width:575px) {
  .hero{
    margin-top: 6rem;
    min-height: auto;
    min-height: initial;
    height: 62vw;
  }

  .hero__content{
    padding: 0 3rem 1rem 0.5rem;
  }

  .hero__tagline{
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .hero__sub{
    font-size: 0.7rem;
    line-height: 1.4;
    margin-top: 0.5em;
  }

  .section__inner > .section-title{
    line-height: 1.4;
  }

  .section-title__en{
    letter-spacing: 0;
  }

  .section__inner > .section__lead{
    text-align: left;
  }

  .course-card__name{
    line-height: 1.4;
  }

}