/* ============================================================
   KOTO FASHION SCHOOL — admission.css
   admission/index.html 固有スタイル
   共通スタイルは /css/common.css 参照
   ============================================================ */

/* ===== ADMISSION PAGE ===== */

/* サブナビ */
.sub-nav {
  position: relative;
  width: 100%;
  z-index: auto;
  background: var(--cream);
  border-bottom: 1px solid rgba(0,91,187,0.1);
  overflow: hidden;               /* フォールバック（古いSafari用） */
  overflow: clip;                 /* overflow:clip はスクロールコンテキスト非生成でiOS安全（Safari 15.4+） */
}

.sub-nav-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.sub-nav-link {
  padding: 18px 28px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--mid);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}
.sub-nav-link:hover,
.sub-nav-link.active {
  color: var(--blue-dark);
  border-bottom-color: var(--gold);
}

/* 概要バナー */
.admission-overview {
  background: var(--blue-dark);
  padding: 64px 0;
}
.overview-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(245,200,0,0.15);
}
.overview-card {
  background: rgba(0,30,80,0.6);
  padding: 36px 28px;
  text-align: center;
}
.overview-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.overview-label {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
}

/* 入試区分 */
.exam-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 48px;
}
.exam-tab {
  flex: 1;
  padding: 18px 16px;
  text-align: center;
  background: var(--cream);
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: 0.05em;
  transition: all 0.3s;
  position: relative;
}
.exam-tab::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.exam-tab.active {
  background: var(--blue-dark);
  color: var(--white);
}
.exam-tab.active::after { transform: scaleX(1); }
.exam-panel { display: none; }
.exam-panel.active { display: block; }

/* 要件テーブル */
.req-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.req-table th {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  padding: 14px 20px;
  text-align: left;
}
.req-table td {
  padding: 20px;
  border-bottom: 1px solid rgba(0,91,187,0.08);
  color: var(--dark);
  font-weight: 300;
  line-height: 1.8;
  vertical-align: top;
}
.req-table tr:last-child td { border-bottom: none; }
.req-table tr:hover td { background: var(--cream); }
.req-table .label-cell {
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.05em;
  width: 140px;
  white-space: nowrap;
}
.date-highlight {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
}

/* 出願方法 */
.apply-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
}
.apply-step {
  background: var(--cream);
  padding: 40px 32px;
  position: relative;
}
.apply-step::after {
  content: '›';
  position: absolute;
  right: -16px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 20px;
  z-index: 1;
}
.apply-step:last-child::after { display: none; }
.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}
.step-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 12px;
}
.step-body {
  font-size: 13px;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.8;
}

/* CTAバナー */
.admission-cta-bar {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 64px 0;
  margin-top: 80px;
}
.cta-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-bar-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-bar-text p {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}
.cta-bar-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .overview-inner { grid-template-columns: repeat(2, 1fr); }
  .apply-steps { grid-template-columns: 1fr; }
  .apply-step::after { display: none; }
}
@media (max-width: 768px) {
  .exam-tabs { flex-direction: column; }
  .cta-bar-inner { flex-direction: column; text-align: center; }
  .cta-bar-actions { flex-direction: column; width: 100%; }
  .overview-inner { grid-template-columns: repeat(2, 1fr); }
}

/* 要件表 */
.req-table--overview th,
.req-table--overview td { text-align: center; width: 25%; }

/* テーブルラッパー（縦スクロール対応） */
.req-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   出願書類ダウンロード
   ============================================================ */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.download-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid rgba(0,61,128,0.12);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
}
.download-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(0,61,128,0.1);
  transform: translateY(-2px);
}
.download-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-dark);
}
.download-label {
  font-family: 'Outfit', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.download-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--blue-dark);
  margin-bottom: 4px;
}
.download-note {
  font-size: 10px;
  font-weight: 300;
  color: var(--mid);
  letter-spacing: 0.02em;
}
.download-notes {
  padding: 24px 32px;
  background: var(--cream);
  border-radius: 4px;
}
.download-notes p {
  font-size: 12px;
  font-weight: 300;
  color: var(--mid);
  line-height: 2;
  margin-bottom: 4px;
}
.download-notes p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .download-grid { grid-template-columns: 1fr; }
}
