/* コースの一覧：暗い横長の写真に白い名前、下に短い文（3 列 × 2 段） */
.lineup { position: relative; padding-top: 14.4rem; margin-bottom: 5.7rem; }
.lineup__head { position: relative; width: min(112rem, 100% - 4rem); margin-inline: auto; }
.lineup__ttl { position: relative; z-index: 1; text-align: center; }
.lineup__ttl h2 { font-size: 3.6rem; font-weight: 500; line-height: 1.3; letter-spacing: 0.08em; }
.lineup__ttl p { font-size: 1.8rem; line-height: 1.8; letter-spacing: 0.14em; }
.lineup__ghost { left: 50%; bottom: -5rem; transform: translateX(-50%); font-size: 18rem; }
.lineup__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: min(112rem, 100% - 4rem);
  margin: 3rem auto 0;
}
.lineup__item { display: block; position: relative; }
.lineup__fig { position: relative; display: block; height: 12rem; }
.lineup__fig img { position: absolute; inset: 0; transition: transform 0.5s ease-in-out; object-position: center 40%; }
.lineup__fig::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(12, 12, 12, 0.72) 0%, rgba(12, 12, 12, 0.42) 55%, rgba(12, 12, 12, 0.3) 100%);
}
.lineup__name {
  position: absolute;
  z-index: 2;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 1.7rem;
  line-height: 1.4;
  letter-spacing: 0.16em;
}
.lineup__mark { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; width: 1.4rem; height: 1.4rem; color: var(--white); }
.lineup__catch { display: block; margin-top: 1.3rem; text-align: center; font-size: 1.3rem; line-height: 1.6; }
@media (hover: hover) {
  .lineup__item:hover .lineup__fig img { transform: scale(1.05); }
}

@media (max-width: 1023px) {
  .lineup { max-width: 40rem; margin: 6rem auto 0; padding: 0 2rem 6.4rem; }
  .lineup__head, .lineup__list { width: auto; }
  .lineup__ttl h2 { font-size: 2.4rem; }
  .lineup__ttl p { font-size: 1.5rem; }
  .lineup__ghost { bottom: -1rem; font-size: 9rem; filter: blur(3px); }
  .lineup__list { grid-template-columns: 1fr; gap: 1.9rem; }
  .lineup__name { top: 2rem; transform: none; font-size: 1.6rem; }
  .lineup__catch {
    position: absolute;
    z-index: 2;
    left: 3rem;
    bottom: 1.6rem;
    margin: 0;
    color: var(--white);
    text-align: left;
    font-size: 1.15rem;
  }
}

/* コースごとの全面の写真：写真が留まり、右半分の白い面が上がってくる */
.cdetail { position: relative; z-index: 2; overflow: clip; }
.cdetail__fig {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: flex;
  background: #000;
}
.cdetail__fig img {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 50vw;
  object-fit: cover;
  object-position: center var(--py, 50%);
  transform: scale(1.12);
  transform-origin: 72% center;
  transition: transform-origin 1.2s ease-in-out;
}
.cdetail.is-shifted .cdetail__fig img { transform-origin: 28% center; }
.cdetail__hero { position: relative; height: 100vh; min-height: 50vw; }
.cdetail__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(20deg, rgba(8, 8, 8, 0.66) 0%, rgba(8, 8, 8, 0.3) 38%, rgba(8, 8, 8, 0) 64%);
}
.cdetail__hero-in { position: absolute; left: 13rem; bottom: 13rem; color: var(--white); }
.cdetail__hero-in--mid { bottom: auto; top: 50%; transform: translateY(-50%); }
.cdetail__hero-ttl { font-size: 4.2rem; line-height: 1.5; letter-spacing: 0.12em; }
.cdetail__hero-txt { position: relative; margin-top: 0.4rem; padding-bottom: 1rem; line-height: 2; letter-spacing: 0.1em; }
.cdetail__hero-txt::after { content: ""; position: absolute; left: 0; bottom: 0; width: 5rem; height: 1px; background: var(--white); }

.cdetail__body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  min-height: 100vh;
  margin-left: auto;
  padding-block: 10.3rem;
  background: var(--white);
}
.cdetail__in { width: 36rem; }
.cdetail__hgroup { line-height: 1.3; }
.cdetail__name { display: block; margin-bottom: 1.5rem; font-size: 3rem; color: var(--accent); letter-spacing: 0.12em; }
.cdetail__ttl { position: relative; padding-bottom: 1.5rem; font-size: 1.4rem; line-height: 1.9; letter-spacing: 0.12em; }
.cdetail__ttl::after { content: ""; position: absolute; left: 0; bottom: 0; width: 5rem; height: 1px; background: var(--line); }
.cdetail__txt { margin-top: 2.2rem; font-size: 1.3rem; line-height: 1.8; }
.cdetail__price { display: flex; align-items: center; margin-top: 1.8rem; }
.cdetail__price dt {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 3.9rem;
  height: 3.9rem;
  margin-right: 1.2rem;
  border: 1px solid #5b5b5b;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}
.cdetail__price dd { font-size: 1.4rem; line-height: 1.5; letter-spacing: 0.06em; }
.cdetail__links { display: grid; gap: 1.5rem; margin-top: 4rem; }

@media (max-width: 1023px) {
  .cdetail { max-width: none; }
  .cdetail__fig { position: static; }
  .cdetail__fig img { position: static; height: 26rem; min-height: 0; object-position: center var(--py, 50%); transform: none; }
  .cdetail__hero { display: none; }
  .cdetail__body { width: 100%; min-height: 0; padding: 4rem 0 6rem; background: none; }
  .cdetail__in { width: 34rem; }
  .cdetail__name { font-size: 2.6rem; margin-bottom: 1rem; }
  .cdetail__links { gap: 0.8rem; margin-top: 2.3rem; }
}
#course-1 { --py: 50%; }
#course-2 { --py: 45%; }
#course-3 { --py: 35%; }
#course-4 { --py: 50%; }
