/* ── admission.html 専用スタイル ── */

/* ページ内メニュー：ヘッダーと揃えた横長ピル型バー */
.admission-page .page-quicknav {
  padding: 24px 32px;
}

.admission-page .page-quicknav-inner {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 28px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: #FAF9F8;
  box-shadow: none;
}

.admission-page .page-quicknav-inner a {
  /* アイコンと文字の天地を揃える（inline-flex + align-items:center） */
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--color-ink);
  font-size: 16px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.admission-page .page-quicknav-inner a:hover {
  color: #0874C7;
  background: transparent !important;
}

.admission-page .page-quicknav-inner a .material-symbols-outlined {
  display: block !important;
  flex: 0 0 auto;
  line-height: 1;
  color: #D98345;
  font-size: 24px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* 入園の流れ */
.admission-page .adm-midyear-section {
  padding-top: 0;
  padding-bottom: 0;
}

.adm-steps {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 8px 0 0;
}

.adm-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 28px;
  border: 1px solid #D5DEE7;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-subtle);
}

.adm-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0874C7;
  color: #fff;
  font-size: var(--font-label);
  font-weight: 900;
}

.adm-step-content {
  min-width: 0;
}

/* 全ステップを「数字＋内容」の2列・上揃えに統一（数字を見出しと同じ高さに揃える） */
.adm-step:first-child {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
}

.adm-step-title {
  margin: 0 0 8px;
  color: var(--color-ink);
  font-size: var(--font-subsection-title);
  font-weight: 900;
  line-height: 1.6;
}

.adm-step-body {
  margin: 0;
  color: var(--color-text);
  font-size: var(--font-body);
  line-height: 1.8;
}

/* microCMSから差し込む日付：全幅の水色帯（見出しの直下に置く）
   フォントはコンポーネント集の「本文」ルール（15px / line-height 1.9）に合わせる */
.adm-step-date {
  margin: 10px 0 0 -8px;
  padding: 1em 8px;
  background: #EFF7FD;
  border-radius: 4px;
  color: #0874C7;
  font-size: var(--font-body);
  font-weight: 700;
  line-height: 1.9;
}

/* microCMSから差し込む本文（コンポーネント集の「本文」ルール＝15px / #555 / line-height 1.9） */
.adm-step-note {
  margin: 8px 0 0;
  color: var(--color-text);
  font-size: var(--font-body);
  line-height: 1.9;
}

.adm-step-date[hidden],
.adm-step-note[hidden] {
  display: none;
}

.adm-flow-arrow {
  align-self: center;
  height: 42px;
  color: #0874C7;
  font-size: 30px;
  line-height: 42px;
}

/* 施設見学：文章の右横にリンクを並べる（下の段に置かない） */
.adm-step-content--with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.adm-step-text {
  flex: 1 1 auto;
  min-width: 0;
}

/* リンクパーツ（.link-pill は style.css の共通部品）の配置調整 */
.adm-step .link-pill {
  margin: 24px 0 0 auto;
}

.adm-step-content--with-action .link-pill {
  flex: 0 0 auto;
  margin: 0;
}

/* 情報パネル：各項目を全幅で配置 */
.adm-two-pane-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.adm-info-panel {
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lower-page-blue .adm-detail-section--pale {
  background: var(--lower-pale, #EFF7FD);
}

.lower-page-blue .adm-detail-section--white {
  background: #fff;
}

.adm-info-panel .ip-section-title,
.adm-info-panel .ip-section-lead {
  margin-bottom: 24px;
}

/* 募集要項テーブル */
.adm-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.adm-table {
  width: 100%;
  min-width: 520px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: var(--font-body);
  margin-top: 8px;
}
.adm-table th {
  background: #1A1A1A;
  color: #fff;
  border: 1px solid #1A1A1A;
  padding: 14px 16px;
  text-align: center;
  font-weight: 700;
  font-size: var(--font-body);
}
.adm-table td {
  background: #fff;
  border: 1px solid #D1D1D1;
  padding: 16px;
  color: var(--color-text);
  line-height: 1.7;
  vertical-align: middle;
}
.adm-class-label {
  font-weight: 900;
  color: var(--color-ink);
  font-size: var(--font-card-title);
}

.adm-class-sub {
  color: var(--color-muted);
  font-size: 14px;
}

/* 費用テーブル */
.adm-cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-body);
  margin-top: 8px;
}
.adm-cost-table th {
  background: #E6EDF5;
  border: 1px solid #D1D1D1;
  padding: 13px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--color-ink);
  width: 160px;
  font-size: var(--font-body);
}
.adm-cost-table td {
  border: 1px solid #D1D1D1;
  padding: 14px 16px;
  color: var(--color-text);
  line-height: 1.8;
}
.adm-cost-amount {
  font-size: var(--font-card-title);
  font-weight: 900;
  color: var(--color-ink);
}
.adm-cost-note {
  font-size: 16px;
  color: var(--color-text);
  margin-top: 4px;
  display: block;
}
.adm-class-col { width: 28%; }
.adm-capacity-col { width: 18%; }
/* 注記 */
.adm-note {
  width: 100%;
  max-width: none;
  margin-top: 24px;
  padding: 22px 24px;
  box-sizing: border-box;
  border: 3px solid #F0D0A0;
  border-radius: 16px;
  background: var(--surface-caution, #FFF8E7);
  color: var(--color-text, #3F4852);
  font-size: 16px;
  line-height: 1.8;
}

.adm-note p {
  margin: 0;
}

.adm-note-title {
  margin-bottom: 4px !important;
  color: var(--color-ink, #1A1A1A);
  font-weight: 700;
}

.lower-page-blue .adm-note .adm-note-resource-link {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0 auto;
  min-height: 72px;
  padding: 14px 20px;
  box-sizing: border-box;
}

.lower-page-blue .adm-note .adm-note-resource-link .sg-resource-copy {
  flex-direction: row;
  gap: 10px;
  align-items: baseline;
  white-space: nowrap;
}

.adm-cost-note-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 24px;
  align-items: center;
}

.adm-cost-note-box > :not(.adm-note-resource-link) {
  grid-column: 1;
}

.adm-cost-note-box .adm-note-resource-link {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.adm-midyear-note {
  width: min(100%, 920px);
  margin: 0 auto;
}

.adm-footnote {
  margin-top: 16px;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.8;
}

/* ユニホーム */
.adm-uniform-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 32px;
  align-items: start;
}

.adm-uniform-content {
  min-width: 0;
}

.adm-uniform-copy {
  margin: 0;
  color: var(--color-text);
  font-size: var(--font-form);
  line-height: 1.9;
}

.adm-subsection-title {
  margin: 0 0 12px;
  color: var(--color-ink);
  font-size: var(--font-subsection-title);
  font-weight: 900;
  line-height: 1.5;
}

.adm-uniform-photo {
  margin: 0;
}

.adm-uniform-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-subtle);
}

.adm-uniform-note {
  margin-top: 24px;
}

/* 入園準備品（統一テーブル ip-table を使用） */
.adm-items-table-wrap {
  margin-top: 8px;
}

.adm-items-table th[scope="row"] {
  white-space: normal;
  width: 220px;
}

.adm-faq-more {
  margin-top: 24px;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.8;
}

.adm-faq-more a {
  color: #0874C7;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.adm-inline-link {
  margin-left: 4px;
  color: #0874C7;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.lower-page-blue .ip-faq-q,
.lower-page-blue .ip-faq-a {
  font-size: var(--font-body);
}

/* 電話CTA */
.adm-cta {
  background: #1A1A1A;
  padding: 64px 32px;
  text-align: center;
}
.adm-cta-title {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}
.adm-cta-lead {
  font-size: 16px;
  color: var(--color-muted);
  line-height: 1.9;
  margin-bottom: 32px;
}
.adm-cta-tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--color-ink);
  padding: 18px 36px;
  border-radius: 100px;
  font-size: var(--font-subsection-title);
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  text-decoration: none;
}
.adm-cta-tel .material-symbols-outlined {
  font-size: 28px;
  color: #0874C7;
}
.adm-cta-hours {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 24px;
}
.adm-cta-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  border: 1px solid #555;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s;
}
.adm-cta-form:hover { border-color: #fff; }

/* レスポンシブ */
@media (max-width: 768px) {
  .admission-page .page-quicknav {
    padding: 16px 20px;
  }
  .admission-page .page-quicknav-inner {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 6px 10px;
    scrollbar-width: none;
  }
  .admission-page .page-quicknav-inner::-webkit-scrollbar {
    display: none;
  }
  .admission-page .page-quicknav-inner a {
    flex: 0 0 auto;
  }
  .adm-quicknav { padding: 0 16px; }
  .adm-step {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 18px;
    border-radius: 16px;
  }
  .adm-step-num {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
  .adm-step-title { font-size: var(--font-card-title); }
  .adm-step:first-child { grid-template-columns: 46px minmax(0, 1fr); }
  .adm-step .link-pill {
    margin-top: 20px;
    margin-left: auto;
    /* 1カラムでは全幅でよい */
    width: 100%;
    max-width: 100%;
  }
  .adm-flow-arrow { height: 36px; line-height: 36px; }
  /* 1カラムでは文章の下に置く（横並びをやめる） */
  .adm-step-content--with-action {
    display: block;
  }
  .adm-step-content--with-action .link-pill {
    margin: 20px 0 0;
  }
  .adm-info-panel { padding: 0; border-radius: 0; }
  .adm-two-pane-grid { gap: 24px; }
  .adm-uniform-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .adm-cost-table th { width: 120px; }
  .adm-note { padding: 18px 20px; }
  .adm-cost-note-box {
    grid-template-columns: 1fr;
  }
  .lower-page-blue .adm-cost-note-box .adm-note-resource-link {
    grid-column: 1;
    grid-row: auto;
    min-height: 64px;
    margin-top: 16px;
    margin-right: auto;
    margin-left: auto;
    padding: 12px 18px;
  }
  .lower-page-blue .adm-note .adm-note-resource-link .sg-resource-title,
  .lower-page-blue .adm-note .adm-note-resource-link .sg-resource-type {
    font-size: 14px;
  }
  .adm-items-table th[scope="row"] {
    width: 120px;
    font-size: var(--font-meta);
  }
  .adm-cta { padding: 48px 20px; }
  .adm-cta-tel { font-size: var(--font-card-title); padding: 16px 24px; }
}
