/* ============================================================
   Background Lines
   ============================================================ */
/*
  6本の縦線: L1 [gap] L2-50px-L3 [gap] L4-50px-L5 [gap] L6
  gap = (100vw - 109px) / 3
  109px = 線6本(1.5px×6=9px) + ペア内ギャップ2箇所(50px×2=100px)
*/
.bg-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(#f1f1f1, #f1f1f1),
    linear-gradient(#f1f1f1, #f1f1f1),
    linear-gradient(#f1f1f1, #f1f1f1),
    linear-gradient(#f1f1f1, #f1f1f1),
    linear-gradient(#f1f1f1, #f1f1f1),
    linear-gradient(#f1f1f1, #f1f1f1);
  background-size:
    1.5px 100%, 1.5px 100%, 1.5px 100%,
    1.5px 100%, 1.5px 100%, 1.5px 100%;
  background-position:
    var(--ml) 0,
    calc(var(--ml) + (var(--cw) - 109px) / 3 + 1.5px) 0,
    calc(var(--ml) + (var(--cw) - 109px) / 3 + 53px) 0,
    calc(var(--ml) + 2 * (var(--cw) - 109px) / 3 + 54.5px) 0,
    calc(var(--ml) + 2 * (var(--cw) - 109px) / 3 + 106px) 0,
    calc(var(--ml) + var(--cw) - 1.5px) 0;
  background-repeat: no-repeat;
}


/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h-pc);
  padding: 0 40px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0);
  transition: box-shadow 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-link {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}

.logo-img {
  width: 350px;
  margin-top: 185px;
  margin-left: 47px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 80px;
}


.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.55;
}

.nav-desktop .btn-outline {
  font-weight: 500;
  font-size: 14px;
  padding: 0;
}

/* SP ログインボタン（PC では非表示） */
.sp-login-btn {
  display: none;
}

/* Hamburger */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-overlay.open {
  opacity: 1;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h-sp);
  left: 0; right: 0;
  background: var(--bg);
  z-index: 99;
  padding: 24px;
  border-top: 1px solid var(--border);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-link {
  font-size: var(--text-base);
  font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-cta {
  margin-top: 20px;
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding-top: var(--header-h-pc);
  overflow: hidden;
  margin-right: calc(100% - 100vw);
}

/* 画像: 右端に寄せて通常フローで配置 */
.hero-image-wrap {
  position: relative;
  margin-left: max(26.5vw, calc(var(--ml) + 0.20625 * var(--cw)));
  width: auto;
  z-index: 0;
}

/* 画像下辺に重なるグラデーションオーバーレイ（全画面幅） */
.hero-image-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100vw;
  height: 200px;
  background: linear-gradient(to top, #ffffff, transparent);
  pointer-events: none;
}

.hero-mockup {
  width: 100%;
}

.mockup-bar {
  display: none;
}

.hero-artwork {
  width: 100%;
  height: auto;
  display: block;
}

/* キャッチコピー + CTA グループ: hero-image-wrapの下辺を基準に絶対配置 */
.hero-content {
  position: absolute;
  bottom: 0;
  left: min(-26.5vw, calc(0px - var(--ml) - 0.20625 * var(--cw)));
  width: 100vw;
  padding: 0 var(--ml);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 1;
}

.hero-title {
  font-size: clamp(26px, 4vw, 61px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.hero-cta {
  justify-content: center;
  gap: 10px;
}

.hero-cta-spacer {
  visibility: hidden;
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

@keyframes hero-note-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

@keyframes hero-note-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-cta-note {
  position: relative;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #444;
  text-align: center;
  background: #fff;
  border: 1.5px solid #d0d0d0;
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: -3px;
  margin-top: 0;
  opacity: 0;
  animation:
    hero-note-enter 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1350ms forwards,
    hero-note-float 2s ease-in-out 2050ms infinite;
}

.hero-cta-note::before {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #d0d0d0;
}

.hero-cta-note::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #fff;
}

@media (min-width: 769px) {
  .nav-overlay {
    display: none !important;
  }

  .hero-cta {
    margin-bottom: 0;
  }
  .hero-artwork {
    clip-path: inset(0 0 130px 0);
  }
  .hero-image-wrap::after {
    bottom: 118px;
  }
}

/* ============================================================
   Features / Slider Section
   ============================================================ */
.features {
  padding: 177px calc(100% - var(--ml) - var(--cw)) 177px var(--ml);
  position: relative;
  isolation: isolate;
}

.features::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: -2;
}

.features::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(#f5f5f5, #f5f5f5),
    linear-gradient(#f5f5f5, #f5f5f5),
    linear-gradient(#f5f5f5, #f5f5f5),
    linear-gradient(#f5f5f5, #f5f5f5),
    linear-gradient(#f5f5f5, #f5f5f5),
    linear-gradient(#f5f5f5, #f5f5f5);
  background-size:
    1.5px 100%, 1.5px 100%, 1.5px 100%,
    1.5px 100%, 1.5px 100%, 1.5px 100%;
  background-position:
    var(--ml) 0,
    calc(var(--ml) + (var(--cw) - 109px) / 3 + 1.5px) 0,
    calc(var(--ml) + (var(--cw) - 109px) / 3 + 53px) 0,
    calc(var(--ml) + 2 * (var(--cw) - 109px) / 3 + 54.5px) 0,
    calc(var(--ml) + 2 * (var(--cw) - 109px) / 3 + 106px) 0,
    calc(var(--ml) + var(--cw) - 1.5px) 0;
  background-repeat: no-repeat;
}

.features-inner {
  display: grid;
  grid-template-columns: 45% 1fr;
  grid-template-areas: "left slider";
  column-gap: 8vw;
}

.features-left {
  grid-area: left;
  display: flex;
  flex-direction: column;
}

.features-content {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.features-slider-wrap {
  grid-area: slider;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.features-cta {
  align-self: start;
  gap: 8px;
  border-radius: 9999px;
  border: 1px solid #111111;
  font-size: 13px;
  font-weight: 500;
  padding: 14px 32px;
}


.features-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.features-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.8;
}

.features-desc strong {
  color: var(--text);
  font-weight: 700;
}

/* Slider row */
.features-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.slider-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f0f0;
  border: none;
  flex-shrink: 0;
  color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  transition: background 0.2s;
}

.slider-arrow:hover {
  background: #e0e0e0;
}

.features-slider {
  flex: 1;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  min-width: 0;
  text-align: center;
}

.slide-mockup {
  background: #F6F6F6;
  border-radius: 0;
  box-shadow: 0 5px 6px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  padding: 19px 23px;
}

.slide-img {
  width: 100%;
  height: auto;
  display: block;
}

.slide-info {
  padding: 16px 20px;
}

.slide-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.slide-url {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid #111;
  border-radius: 9999px;
  background-color: #fff;
  color: #111;
  font-size: 13px;
  margin-top: 2rem;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.slide-cta:hover {
  opacity: 0.65;
}

.slide-cta--pc {
  display: none;
}

@media (min-width: 769px) {
  .slide-cta--pc {
    display: inline-flex;
  }

  .slide-cta--sp {
    display: none;
  }
}

/* Dots */

/* ============================================================
   Responsive (PC: min-width 769px) — Slider overrides
   ============================================================ */
@media (min-width: 769px) {
  .slider-arrow {
    display: none;
  }

  .slide-info {
    padding: 19px 0 21px;
  }

  .slide-mockup {
    padding: 34px 40px 34px;
    box-shadow: none;
  }

  .slide-cta {
    width: fit-content;
  }

  .slide-url {
    text-decoration: underline;
  }

  .features {
    padding-bottom: 0rem;
  }

  .features-desc {
    font-size: 17px;
  }

  .features-cta {
    width: 200px;
    position: relative;
    margin-top: 50px;
  }

  .features-cta svg {
    position: absolute;
    right: 23px;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* ============================================================
   Responsive (SP: max-width 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Background Lines: SP は 1-2-2-1 の6本構成、ペア内ギャップ30px */
  /*
    gap = (100vw - 48px - 69px) / 3
    69px = 線6本(1.5px×6=9px) + ペア内ギャップ2箇所(30px×2=60px)
  */
  .bg-lines {
    background-image:
      linear-gradient(#f1f1f1, #f1f1f1),
      linear-gradient(#f1f1f1, #f1f1f1),
      linear-gradient(#f1f1f1, #f1f1f1),
      linear-gradient(#f1f1f1, #f1f1f1),
      linear-gradient(#f1f1f1, #f1f1f1),
      linear-gradient(#f1f1f1, #f1f1f1);
    background-size:
      1.5px 100%, 1.5px 100%, 1.5px 100%,
      1.5px 100%, 1.5px 100%, 1.5px 100%;
    background-position:
      24px 0,
      calc(24px + (100vw - 117px) / 3 + 1.5px) 0,
      calc(24px + (100vw - 117px) / 3 + 33px) 0,
      calc(24px + (100vw - 117px) * 2 / 3 + 34.5px) 0,
      calc(24px + (100vw - 117px) * 2 / 3 + 66px) 0,
      calc(100vw - 25.5px) 0;
  }

  /* Header: SP レイアウト */
  .header-inner {
    justify-content: flex-start;
    gap: 12px;
  }

  /* Header: SP は常に白・固定 */
  .header {
    height: auto !important;
    padding: 19px 20px !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08) !important;
  }

  .logo-img {
    width: 70px !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
  }

  .nav-desktop {
    display: none;
  }

  .sp-login-btn {
    display: inline-flex;
    font-weight: 400;
    border-radius: 9999px;
    padding: 4px 21px 5px;
    font-size: 11px;
    margin-left: auto;
    margin-right: 10px;
    color: #8e8e8e;
    border-color: #8e8e8e;
  }

  .hamburger-btn span {
    width: 30px;
    height: 1.5px;
  }

  .hamburger-btn {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  /* Hero: SP レイアウト */
  .hero {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    padding: var(--header-h-sp) 0 48px;
    overflow: visible;
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-gray);
    z-index: -2;
  }

  .hero-image-wrap {
    position: static;
    width: calc(100% - 48px);
    margin-left: 0;
    order: 1;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
  }

  /* SP: ブラウザ風モックアップ枠 */
  .hero-mockup {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 6px rgba(0, 0, 0, 0.10);
  }

  .mockup-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #ebebeb;
    border-bottom: 1px solid var(--border);
  }

  .mockup-logo {
    width: 56px;
    opacity: 0.6;
  }

  .mockup-url {
    font-size: 10px;
    color: var(--text-muted);
    margin-left: auto;
  }

  .hero-image-wrap::after {
    display: none;
  }

  .hero-artwork {
    height: auto;
  }

  .hero-content {
    position: static;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 28px 0 0;
  }

  .hero-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    width: 100%;
  }

  .hero-sub {
    display: none;
  }

  .hero-cta-wrap {
    margin-top: 19px;
    width: 71%;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
    flex-shrink: 0;
  }

  /* SP では features-left を解体し、子要素を features-inner の直接 flex 子にする */
  .features-left {
    display: contents;
  }

  /* Features Section: SP */
  .features {
    padding: 74px 0 72px;
  }

  .features::after {
    background-position:
      24px 0,
      calc(24px + (100vw - 117px) / 3 + 1.5px) 0,
      calc(24px + (100vw - 117px) / 3 + 33px) 0,
      calc(24px + (100vw - 117px) * 2 / 3 + 34.5px) 0,
      calc(24px + (100vw - 117px) * 2 / 3 + 66px) 0,
      calc(100vw - 25.5px) 0;
  }

  .features-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .features-content {
    order: 1;
    padding: 0 24px;
    gap: 21px;
  }

  .features-slider-wrap {
    order: 2;
    width: 100%;
    padding: 0 24px;
  }

  .features-slider-row {
    position: relative;
    gap: 0;
  }

  .slider-arrow {
    display: none;
  }

  .features-slider {
    flex: 1;
    width: 100%;
    border-radius: 0;
  }

  .features-cta {
    order: 3;
    margin-top: 0;
    width: 54%;
    align-self: center;
    justify-content: center;
    padding: 12px 32px;
    background-color: white;
    position: relative;
  }

  .features-cta svg {
    position: absolute;
    right: 23px;
    top: 18.5px;
  }

  .features-title {
    font-size: 23px;
    line-height: 1.3;
  }

  .slide-mockup {
    padding: 19px 23px;
    box-shadow: none;
    border-radius: 0;
  }

  .slide-name {
    font-size: 12px;
  }

  .slide-url {
    text-decoration: underline;
  }

  .slide-info {
    margin: 0 -12px;
    padding: 19px 12px 23px;
  }

  .features-desc {
    font-weight: 400;
  }

}

/* ============================================================
   Sticky Feature Section
   ============================================================ */
.sticky-feature {
  background: var(--bg-dark);
  color: #fff;
  position: relative;
}

.sticky-feature-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 20px;
}

.sticky-feature-title {
  font-size: clamp(24px, 3vw, 50px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.sticky-feature-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  line-height: 1.85;
}

.sticky-feature-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 36px;
  padding: 10px 33px;
  border: 1px solid transparent;
  border-radius: 9999px;
  background-color: #fff;
  color: #111111;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.25s ease;
}

.sticky-feature-cta svg {
  position: absolute;
  top: 14px;
  right: 15px;
}


/* PC */
@media (min-width: 769px) {
  .sticky-feature {
    margin-top: 6rem;
  }

  .sticky-feature-inner {
    display: flex;
    align-items: flex-start;
    padding: 46px calc(100% - var(--ml) - var(--cw)) 0 var(--ml);
    background-color: #222222;
    position: relative;
  }

  .sticky-feature-inner::before {
    content: '';
    position: absolute;
    top: 170px;
    left: var(--ml);
    right: calc(100% - var(--ml) - var(--cw));
    height: 1px;
    background: rgba(255,255,255,0.15);
  }

  .sticky-feature-visual {
    flex: 0 0 51%;
    position: sticky;
    top: var(--header-h-pc);
    height: calc(100vh - var(--header-h-pc));
    display: flex;
    align-items: center;
    padding-right: 8vw;
  }

  .sticky-feature-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 4px;
  }

  .sticky-feature-img--sp {
    display: none;
  }

  .sticky-feature-content {
    flex: 1;
  }

  .sticky-feature-item {
    min-height: calc(100vh - var(--header-h-pc));
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: 40px;
    align-content: center;
    padding: 80px 0;
  }

  .sticky-feature-item .sticky-feature-label {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
    margin-top: 8px;
    font-size: 16px;
  }

  .sticky-feature-item .sticky-feature-title,
  .sticky-feature-item .sticky-feature-desc,
  .sticky-feature-item .sticky-feature-cta {
    grid-column: 2;
  }

  .sticky-feature-item .sticky-feature-desc {
    font-size: 17px;
  }

  .sticky-feature-item .sticky-feature-title {
    white-space: nowrap;
    font-size: 34px;
  }

  a.sticky-feature-cta {
    width: 208px;
  }

  .sticky-feature-item + .sticky-feature-item {
    border-top: 1px solid rgba(255,255,255,0.12);
  }
}

/* SP */
@media (max-width: 768px) {
  .sticky-feature-inner {
    padding: 64px 24px 72px;
  }

  .sticky-feature-visual {
    display: none;
  }

  .sticky-feature-img--sp {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    margin-top: 32px;
    border-radius: 4px;
  }

  .sticky-feature-item + .sticky-feature-item {
    margin-top: 80px;
  }

  .sticky-feature-label {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 48px;
  }

  .sticky-feature-cta {
    margin-top: 32px;
  }
}

/* ============================================================
   Student Banner Section
   ============================================================ */
.student-banner {
  position: relative;
  isolation: isolate;
  padding: 100px calc(100% - var(--ml) - var(--cw)) 100px var(--ml);
}

.student-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(#f5f5f5, #f5f5f5),
    linear-gradient(#f5f5f5, #f5f5f5),
    linear-gradient(#f5f5f5, #f5f5f5),
    linear-gradient(#f5f5f5, #f5f5f5),
    linear-gradient(#f5f5f5, #f5f5f5),
    linear-gradient(#f5f5f5, #f5f5f5);
  background-size:
    1.5px 100%, 1.5px 100%, 1.5px 100%,
    1.5px 100%, 1.5px 100%, 1.5px 100%;
  background-position:
    var(--ml) 0,
    calc(var(--ml) + (var(--cw) - 109px) / 3 + 1.5px) 0,
    calc(var(--ml) + (var(--cw) - 109px) / 3 + 53px) 0,
    calc(var(--ml) + 2 * (var(--cw) - 109px) / 3 + 54.5px) 0,
    calc(var(--ml) + 2 * (var(--cw) - 109px) / 3 + 106px) 0,
    calc(var(--ml) + var(--cw) - 1.5px) 0;
  background-repeat: no-repeat;
}

.student-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: -2;
}

/* 共通カードベース */
.student-banner-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
}

.student-banner-card::before {
  content: '';
  position: absolute;
  inset: 0;
}

.student-banner-label,
.student-banner-body,
.student-banner-footer,
.student-banner-cta {
  position: relative;
  z-index: 1;
}

.student-banner-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.student-banner-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.student-banner-desc {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}

.student-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.2s;
}


/* PCカード */
.student-banner-card--pc {
  background-image: url('../img/student-artist-pc.webp');
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px;
  min-height: 320px;
}

.student-banner-card--pc::before {
  background: linear-gradient(to right, rgba(0,0,0,0.62) 45%, rgba(0,0,0,0.25) 100%);
}

.student-banner-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.student-banner-card--pc .student-banner-title {
  font-size: 25px;
  margin-bottom: 12px;
}

.student-banner-card--pc .student-banner-cta {
  background-color: #fff;
  color: #111111;
  border-color: transparent;
}

/* SPカード */
.student-banner-card--sp {
  background-image: url('../img/student-artist-sp.webp');
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 28px 32px;
  min-height: 400px;
}

.student-banner-card--sp::before {
  background: rgba(0,0,0,0.48);
}

.student-banner-card--sp .student-banner-label {
  margin-bottom: 16px;
}

.student-banner-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* PC */
@media (min-width: 769px) {
  .student-banner {
    padding: 100px calc(100% - var(--ml) - var(--cw)) 100px var(--ml);
    padding-top: 6rem;
    padding-bottom: 2rem;
  }

  .student-banner-card--sp {
    display: none;
  }
}

/* SP */
@media (max-width: 768px) {
  .student-banner {
    padding: 64px 24px;
  }

  .student-banner::after {
    background-position:
      24px 0,
      calc(24px + (100vw - 117px) / 3 + 1.5px) 0,
      calc(24px + (100vw - 117px) / 3 + 33px) 0,
      calc(24px + (100vw - 117px) * 2 / 3 + 34.5px) 0,
      calc(24px + (100vw - 117px) * 2 / 3 + 66px) 0,
      calc(100vw - 25.5px) 0;
  }

  .student-banner-card--pc {
    display: none;
  }

  .student-banner-desc br {
    display: none;
  }

  .student-banner-card--sp .student-banner-cta {
    width: 64%;
    justify-content: center;
    background-color: #fff;
    color: #111111;
    border-color: transparent;
    padding: 12px 40px;
  }

  .student-banner-card--sp .student-banner-cta svg {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    stroke: #111111;
  }

  .student-banner-title {
    font-size: 24px;
  }
}

/* ============================================================
   FAQ Section
   ============================================================ */
.faq {
  position: relative;
  isolation: isolate;
  padding: 80px calc(100% - var(--ml) - var(--cw)) 96px var(--ml);
}

.faq::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: -2;
}

.faq::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(#f5f5f5, #f5f5f5),
    linear-gradient(#f5f5f5, #f5f5f5),
    linear-gradient(#f5f5f5, #f5f5f5),
    linear-gradient(#f5f5f5, #f5f5f5),
    linear-gradient(#f5f5f5, #f5f5f5),
    linear-gradient(#f5f5f5, #f5f5f5);
  background-size:
    1.5px 100%, 1.5px 100%, 1.5px 100%,
    1.5px 100%, 1.5px 100%, 1.5px 100%;
  background-position:
    var(--ml) 0,
    calc(var(--ml) + (var(--cw) - 109px) / 3 + 1.5px) 0,
    calc(var(--ml) + (var(--cw) - 109px) / 3 + 53px) 0,
    calc(var(--ml) + 2 * (var(--cw) - 109px) / 3 + 54.5px) 0,
    calc(var(--ml) + 2 * (var(--cw) - 109px) / 3 + 106px) 0,
    calc(var(--ml) + var(--cw) - 1.5px) 0;
  background-repeat: no-repeat;
}

.faq-heading {
  margin-bottom: 40px;
}

.faq-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 16px;
}

.faq-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.faq-list {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.faq-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 24px;
}

.faq-q {
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding: 24px 32px 24px 28px;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::before {
  content: 'Q';
  position: absolute;
  left: 0;
  top: 24px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
}

.faq-q::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 30px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-q::after {
  transform: rotate(225deg);
  top: 34px;
}

.faq-a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.9;
  padding: 0 0 24px 28px;
}

/* SP */
@media (max-width: 768px) {
  .faq {
    padding: 74px 24px 80px;
  }

  .faq::after {
    background-position:
      24px 0,
      calc(24px + (100vw - 117px) / 3 + 1.5px) 0,
      calc(24px + (100vw - 117px) / 3 + 33px) 0,
      calc(24px + (100vw - 117px) * 2 / 3 + 34.5px) 0,
      calc(24px + (100vw - 117px) * 2 / 3 + 66px) 0,
      calc(100vw - 25.5px) 0;
  }

  .faq-list {
    flex-direction: column;
  }

  .faq-title {
    font-size: 28px;
  }

  .faq-q {
    font-size: 14px;
    padding: 20px 28px 20px 24px;
  }

  .faq-q::before {
    top: 20px;
    font-size: 13px;
  }

  .faq-q::after {
    top: 26px;
  }

  .faq-item[open] .faq-q::after {
    top: 30px;
  }

  .faq-a {
    font-size: 13px;
    padding-left: 24px;
  }
}

/* ===== Section 3.5: Template Pages ===== */

/* スクロール領域：5画面分の高さを確保 */
.tpages-scroll {
  position: relative;
  height: 650vh;
}

/* ステージ：画面に固定 */
.tpages-stage {
  position: sticky;
  top: 1rem;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 0 calc(100% - var(--ml) - var(--cw)) 0 var(--ml);
}

.tpages-stage-inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 56px;
}

/* 左：ラベル＋画像 */
.tpages-visual-col {
  flex: 1 1 52%;
  min-width: 0;
}

/* 右：見出し＋説明文 */
.tpages-text-col {
  flex: 1 1 48%;
  min-width: 0;
}

/* レイヤー：重ねてクロスフェード */
.tpages-layers {
  position: relative;
}

.tpages-slide,
.tpages-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease-in-out, transform 0.9s ease-in-out;
  pointer-events: none;
}

.tpages-slide {
  transform: translateX(-40px);
}

.tpages-text {
  transform: translateX(40px);
}

.tpages-slide.is-active,
.tpages-text.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

/* 1枚目を基準に高さを確保（absoluteで潰れないように） */
.tpages-slide:first-child,
.tpages-text:first-child {
  position: relative;
}

.tpages-slide-label {
  position: relative;
  display: flex;
  align-items: baseline;
  padding-left: 2rem;
  font-size: 27px;
  color: #000000;
  margin-bottom: 18px;
  font-weight: 700;
}

.tpages-slide-count {
  display: inline-flex;
  align-items: flex-end;
  margin-left: auto;
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  color: #e9e9e9;
  vertical-align: middle;
}

/* PC・iPad：番号を tpages-text-col の右上に配置 */
@media (min-width: 769px) {
  .tpages-stage-inner {
    position: relative;
  }

  .tpages-slide-label {
    position: static;
  }

  .tpages-slide-count {
    position: absolute;
    top: 0;
    right: 0;
    margin-left: 0;
  }
}

/* 見出しテキストの基準枠（::beforeの線をここに固定し、高さを見出しに揃える） */
.tpages-slide-label-track {
  position: relative;
  display: inline-block;
  height: 34px;
  vertical-align: bottom;
}

/* スロットアニメーション：見出しテキスト（Works/About/Exhibitionの入れ替え窓） */
.tpages-slide-label-mask {
  display: inline-grid;
  overflow: hidden;
  height: 34px;
}

.tpages-slide-label-text {
  grid-row: 1;
  grid-column: 1;
  white-space: nowrap;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.tpages-slide-label-text.is-active {
  transform: translateY(0);
}

.tpages-slide-label-text.is-prev {
  transform: translateY(-100%);
}

/* スロットアニメーション：番号（01/02/03の入れ替え窓） */
.tpages-slide-count-track {
  display: inline-grid;
  align-items: end;
  overflow: hidden;
  height: 40px;
  vertical-align: bottom;
}

.tpages-slide-count-num {
  grid-row: 1;
  grid-column: 1;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.tpages-slide-count-num.is-active {
  transform: translateY(0);
}

.tpages-slide-count-num.is-prev {
  transform: translateY(-100%);
}

/* 見出し左側：背景の縦線から伸びてくる線のあしらい（見出し自体を基準に配置） */
.tpages-slide-label-track::before {
  content: "";
  position: absolute;
  top: 62%;
  left: -2rem;
  width: 1.4rem;
  height: 0.5px;
  background-color: #000000;
  transform: translateY(-50%);
}

.tpages-slide-img {
  width: 100%;
  height: auto;
  display: block;
}

.tpages-text-title {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 8px;
}

.tpages-text-sub {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.tpages-text-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.tpages-cta-wrap {
  text-align: center;
  margin-top: 48px;
}

.tpages-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  border-radius: 5px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.tpages-cta:hover {
  opacity: 0.78;
}

@media (max-width: 768px) {
  .tpages-stage {
    padding: 0 24px;
  }


  .tpages-stage-inner {
    flex-direction: column;
    gap: 20px;
  }
  .tpages-visual-col,
  .tpages-text-col {
    flex: 1 1 100%;
    width: 100%;
  }
  .tpages-slide-img {
    max-width: 64vh;
    margin: 0 auto;
    margin-bottom: .8rem;
    padding: 0 1rem;
  }
  .tpages-text-title {
    font-size: 24px;
  }
  .tpages-text-sub {
    font-size: 17px;
  }
}

/* ============================================================
   User's Voice Section
   ============================================================ */
.voice {
  position: relative;
  padding: 30px calc(100% - var(--ml) - var(--cw)) 80px var(--ml);
  scroll-margin-top: 120px;
}

.voice::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #F9F9F9;
  z-index: -2;
}

.voice-heading {
  margin-bottom: 72px;
}

.voice-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #111111;
  margin-bottom: 19px;
}

.voice-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.voice-card {
  display: grid;
  grid-template-columns: calc((var(--cw) - 109px) / 3 + 112.5px) 1fr;
  align-items: start;
}

.voice-profile {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.voice-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.voice-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.voice-handle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.voice-quote {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  margin: 5px 0 0 0;
  width: 59px;
  user-select: none;
}

.voice-body {
  grid-column: 2;
  grid-row: 1;
  margin-left: 3rem;
}

.voice-text {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  color: gray;
}

.voice-text + .voice-text {
  margin-top: 1.5em;
}

.voice-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 19px;
}

/* ============================================================
   CTA Section
   ============================================================ */
.cta {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 53px calc(100% - var(--ml) - var(--cw)) 137px var(--ml);
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: -2;
}

.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(#f5f5f5, #f5f5f5),
    linear-gradient(#f5f5f5, #f5f5f5),
    linear-gradient(#f5f5f5, #f5f5f5),
    linear-gradient(#f5f5f5, #f5f5f5),
    linear-gradient(#f5f5f5, #f5f5f5),
    linear-gradient(#f5f5f5, #f5f5f5);
  background-size:
    1.5px 100%, 1.5px 100%, 1.5px 100%,
    1.5px 100%, 1.5px 100%, 1.5px 100%;
  background-position:
    var(--ml) 0,
    calc(var(--ml) + (var(--cw) - 109px) / 3 + 1.5px) 0,
    calc(var(--ml) + (var(--cw) - 109px) / 3 + 53px) 0,
    calc(var(--ml) + 2 * (var(--cw) - 109px) / 3 + 54.5px) 0,
    calc(var(--ml) + 2 * (var(--cw) - 109px) / 3 + 106px) 0,
    calc(var(--ml) + var(--cw) - 1.5px) 0;
  background-repeat: no-repeat;
}

.cta-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 56px;
  margin-left: 28px;
}

.cta-logo {
  width: 220px;
  margin-bottom: 56px;
}

.cta-btn {
  width: 360px;
  font-size: 15px;
  justify-content: center;
  gap: 10px;
}

.cta-btn-spacer {
  visibility: hidden;
}

.cta-btn-arrow {
  display: inline-block;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #2b2b2b;
  padding: 28px calc(100% - var(--ml) - var(--cw)) 28px var(--ml);
  text-align: center;
}

.footer-copy {
  font-size: 12px;
  color: #888;
  letter-spacing: 0.04em;
}

/* SP */
@media (max-width: 768px) {
  .cta {
    padding: 38px 24px 100px;
  }

  .cta::after {
    background-position:
      24px 0,
      calc(24px + (100vw - 117px) / 3 + 1.5px) 0,
      calc(24px + (100vw - 117px) / 3 + 33px) 0,
      calc(24px + (100vw - 117px) * 2 / 3 + 34.5px) 0,
      calc(24px + (100vw - 117px) * 2 / 3 + 66px) 0,
      calc(100vw - 25.5px) 0;
  }

  .cta-title {
    font-size: 24px;
    margin-bottom: 48px;
    margin-left: 14px;
  }

  .cta-logo {
    width: 167px;
    margin-bottom: 48px;
  }

  .cta-btn {
    width: 76%;
  }

  .footer {
    padding: 28px 24px;
  }
}

/* PC */
@media (min-width: 769px) {
  .voice {
    padding-top: 4rem;
  }
}

/* SP */
@media (max-width: 768px) {
  .voice {
    padding: 74px 24px 80px;
    scroll-margin-top: 60px;
  }

  .voice-heading {
    text-align: center;
    margin-bottom: 48px;
  }

  .voice-title {
    font-size: 24px;
  }

  .voice-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .voice-profile {
    grid-column: unset;
    grid-row: unset;
    order: 1;
    margin-bottom: 22px;
  }

  .voice-body {
    grid-column: unset;
    grid-row: unset;
    order: 2;
    width: 100%;
    margin-left: 0;
  }

  .voice-text {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 1px;
  }

  .voice-text + .voice-text {
    margin-top: 1em;
  }

  .br-pc {
    display: none;
  }

  .voice-quote {
    grid-column: unset;
    grid-row: unset;
    justify-self: unset;
    align-self: unset;
    order: 3;
    margin: 0;
    margin-top: 24px;
  }
}
