/* Entrance Exam page styles (Figma: 222:4135) */

.ng-eeHero{
  width:100%;
  height:560px;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}

.ng-eeMainPad{padding:160px 0}

.ng-eeLayout{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:94px;
  align-items:start;
}

/* Index */
.ng-eeIndexBox{
  position:sticky;
  top:160px;
  align-self:start;
}
.ng-eeIndexBox__title{
  margin:0 0 24px;
  font-family:"Open Sans",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  font-weight:700;
  font-size:18px;
  line-height:1.2;
  color:var(--accent);
}
.ng-eeIndexBox__list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:0}
.ng-eeIndexBox__item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:10px;
  text-decoration:none;
}
.ng-eeIndexBox__label{
  margin:0;
  color:var(--text);
  font-weight:500;
  font-size:16px;
  line-height:1.4;
}
.ng-eeIndexBox__arrow{
  width:18px;
  height:18px;
  background-image:url("../images/icon/under-arrow.svg");
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center;
  flex:0 0 auto;
}
.ng-eeIndexBox__rule{height:1px;background:var(--border)}

/* Sections */
.ng-eeSection{display:flex;flex-direction:column;gap:48px}
.ng-eeSection + .ng-eeSection{margin-top:120px}

.ng-eeH2{display:flex;flex-direction:column;gap:20px}
.ng-eeH2__title{
  margin:0;
  font-weight:500;
  font-size:32px;
  line-height:1.2;
  color:var(--accent);
}
.ng-eeH2__title--multi{line-height:1.3}
.ng-eeH2__rule{height:1px;background:var(--border)}

/* Link cards */
.ng-eeLinkGrid{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  width:100%;
}
.ng-eeLinkCard{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  border:1px solid var(--border);
  background:var(--white);
  padding:20px;
  min-height:64px;
  text-decoration:none;
}
.ng-eeLinkCard.is-span2{width:100%}
.ng-eeLinkGrid .ng-eeLinkCard:not(.is-span2){width:calc((100% - 12px) / 2)}
.ng-eeLinkCard__text{
  color:var(--text);
  font-weight:500;
  font-size:18px;
  line-height:1.2;
}
.ng-eeLinkCard__icon{
  width:20px;
  height:20px;
  color:var(--accent);
  flex:0 0 auto;
}
.ng-eeLinkCard__icon svg,
.ng-eeLinkCard__icon img{width:100%;height:100%;object-fit:contain}

.ng-eeNote{
  margin:0;
  color:var(--text);
  font-size:16px;
  line-height:1.6;
}
.ng-eeInlineLink{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-left:18px;
  color:var(--accent);
  font-size:16px;
  line-height:1.6;
  text-decoration:underline;
}
.ng-eeInlineLink svg{width:20px;height:20px;display:block}

/* Video */
.ng-eeVideo{margin:0;display:flex;flex-direction:column;gap:20px;align-items:center}
.ng-eeVideo__frame{
  width:100%;
  max-width:1000px;
  aspect-ratio:1000 / 547;
  position:relative;
  overflow:hidden;
  background:#d0d0d0;
}
.ng-eeVideo__frame img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.ng-eeVideo__play{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:120px;
  height:120px;
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
}
.ng-eeVideo__play img{width:100%;height:100%;object-fit:contain}
.ng-eeVideo__caption{
  margin:0;
  color:var(--text);
  font-size:16px;
  line-height:1.4;
}

/* FAQ */
.ng-eeFaqList{
  display:flex;
  flex-direction:column;
  gap: 0;
}
.ng-eeFaqItem{
  border-bottom:1px solid var(--border);
  padding: 32px 0;
}
.ng-eeFaqSummary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:20px;
  padding:0;
  min-height:48px;
}
.ng-eeFaqSummary::-webkit-details-marker{display:none}
.ng-eeFaqBadge{
  width:48px;
  min-width:48px;
  aspect-ratio:1 / 1;
  background:var(--bg);
  display:grid;
  place-items:center;
  color:var(--accent);
  font-family:"Open Sans",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  font-size:24px;
  line-height:1;
  font-weight:400;
}
.ng-eeFaqBadge.is-a{
  border:1px solid var(--border);
  background:var(--white);
}
.ng-eeFaqQuestion{
  color:var(--text);
  font-size:18px;
  line-height:1.4;
  font-weight:500;
  flex:1;
  min-width:0;
}
.ng-eeFaqToggle{
  width:24px;
  height:24px;
  position:relative;
  flex:0 0 auto;
}
.ng-eeFaqToggle::before,
.ng-eeFaqToggle::after{
  content:"";
  position:absolute;
  left:0;
  top:11px;
  width:24px;
  height:2px;
  background:var(--accent);
}
.ng-eeFaqToggle::after{transform:rotate(90deg)}
.ng-eeFaqItem[open] .ng-eeFaqToggle::after{opacity:0}
.ng-eeFaqAnswer{
  display:flex;
  align-items:flex-start;
  gap:20px;
  padding: 0;
  margin-top: 32px;
}
.ng-eeFaqText{
  margin:0;
  color:var(--text);
  font-size:16px;
  line-height:1.6;
  max-width:932px;
}

@media (max-width: 1024px){
  .ng-eeHero{height:420px}
  .ng-eeMainPad{padding:80px 0 120px}
  .ng-eeLayout{grid-template-columns:1fr;gap:40px}
  .ng-eeIndexBox{position:relative;top:auto}
  .ng-eeSection{gap:32px}
  .ng-eeSection + .ng-eeSection{margin-top:72px}
}

/* SP (640px以下) - Figma 入学希望者の方へ_sp */
@media (max-width: 640px){
  .ng-eeHero{height:200px}
  .ng-eeMainPad{padding:64px 0 80px}
  .ng-eeSection + .ng-eeSection{margin-top:64px}
  .ng-eeSection{gap:24px}

  /* ページタイトル */
  .ng-ee .ng-pageTitle{padding:128px 0 32px;gap:8px}
  .ng-ee .ng-pageTitle__title{font-size:48px}
  .ng-ee .ng-pageTitle__kickerText{font-size:14px}
  .ng-ee .ng-pageTitle__dot{width:6px;height:6px}
  .ng-ee .ng-pageTitle__desc{font-size:16px;line-height:1.6;max-width:none}

  /* 目次: 横スライド形式 */
  .ng-eeIndexBox{overflow-x:scroll}
  .ng-eeIndexBox__title{display:none}
  .ng-eeIndexBox__list{
    display:flex;
    flex-direction:row;
    flex-wrap:nowrap;
    gap:8px;
    margin:0;
    padding:0;
    list-style:none;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  .ng-eeIndexBox__list li{flex:0 0 auto;min-width:0}
  .ng-eeIndexBox__rule{display:none}
  .ng-eeIndexBox__item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:10px;
    border:1px solid var(--border);
    border-radius:4px;
    background:var(--white);
    text-decoration:none;
  }
  .ng-eeIndexBox__item:hover{opacity:.9}
  .ng-eeIndexBox__item{white-space:nowrap}
  .ng-eeIndexBox__label{margin:0;font-size:14px;font-weight:500;color:var(--text)}
  .ng-eeIndexBox__arrow{
    width:16px;height:16px;
    transform:rotate(-90deg);
  }

  /* セクション見出し */
  .ng-eeH2{gap:12px}
  .ng-eeH2__title{font-size:24px}
  .ng-eeH2__title--multi{font-size:24px;line-height:1.3}
  .ng-eeH2__rule{width:100%;max-width:335px}

  /* リンクカード */
  .ng-eeLinkGrid{flex-direction:column;gap:12px}
  .ng-eeLinkCard,
  .ng-eeLinkGrid .ng-eeLinkCard:not(.is-span2){width:100%}
  .ng-eeLinkCard{padding:16px 20px;min-height:56px}
  .ng-eeLinkCard__text{font-size:16px}

  /* 注釈・リンク */
  .ng-eeNote{font-size:14px;line-height:1.6}
  .ng-eeInlineLink{margin-left:0;margin-top:12px;display:inline-flex;font-size:14px}

  /* 動画 */
  .ng-eeVideo{gap:16px}
  .ng-eeVideo__frame{aspect-ratio:16/9}
  .ng-eeVideo__play{width:88px;height:88px}
  .ng-eeVideo__caption{font-size:14px}

  /* FAQ */
  .ng-eeFaqItem{padding:24px 0}
  .ng-eeFaqSummary{gap:12px;min-height:44px}
  .ng-eeFaqQuestion{font-size:16px}
  .ng-eeFaqBadge{width:40px;min-width:40px;font-size:20px}
  .ng-eeFaqAnswer{margin-top:24px;gap:16px}
  .ng-eeFaqText{font-size:14px;line-height:1.6}
}
