/* ============================================================
   韓国短期留学 個別ページ共通（ryugaku_yonsei / ryugaku_easykorean / ryugaku_kanata）
   ============================================================ */

/* ---------- breadcrumb ---------- */
.sc-crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.sc-crumb a { color: var(--ink-2); text-decoration: none; }
.sc-crumb a:hover { text-decoration: underline; }
.sc-crumb span { margin: 0 6px; }

/* ---------- hero ---------- */
.sc-hero {
  padding: 112px 0 56px;
  background: linear-gradient(135deg, var(--terra-soft) 0%, var(--yellow-soft) 100%);
  position: relative; overflow: hidden;
}
.sc-hero::before {
  content: attr(data-kr); position: absolute; right: -20px; top: 70px;
  font-family: 'Noto Serif KR', serif; font-size: 200px; font-weight: 700;
  opacity: 0.07; color: var(--terra); pointer-events: none; white-space: nowrap;
}
.sc-hero .container { position: relative; z-index: 1; }
.sc-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
@media (max-width: 900px) { .sc-hero-grid { grid-template-columns: 1fr; gap: 28px; } }
.sc-hero .kr-label {
  font-family: 'Noto Sans KR', sans-serif; font-size: 12px; letter-spacing: 0.18em; color: var(--terra);
}
.sc-hero h1 { font-size: clamp(30px, 4.4vw, 48px); margin: 10px 0 16px; line-height: 1.3; }
.sc-hero .lead { font-size: 15.5px; line-height: 2; color: var(--ink-2); margin: 0 0 24px; }
.sc-hero-photo {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; background: var(--bg-2);
}
.sc-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.sc-tags li {
  font-size: 12.5px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.75); border: 1px solid var(--line); color: var(--ink-2);
}
.sc-hero .btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- key facts ---------- */
.sc-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px;
}
@media (max-width: 800px) { .sc-facts { grid-template-columns: 1fr 1fr; } }
.sc-fact {
  background: var(--bg-paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px; text-align: center;
}
.sc-fact .k { font-size: 11.5px; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 6px; }
.sc-fact .v { font-family: var(--f-head); font-size: 20px; color: var(--ink); line-height: 1.35; }
.sc-fact .s { font-size: 12px; color: var(--terra); margin-top: 4px; }

/* ---------- page nav (in-page) ---------- */
.sc-toc {
  background: var(--bg-paper);
  border-bottom: 1px solid var(--line);
}
.sc-toc .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.sc-toc .container::-webkit-scrollbar { display: none; }
.sc-toc a {
  flex: 0 0 auto; font-size: 13px; padding: 7px 14px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; border: 1px solid transparent;
}
.sc-toc a:hover { border-color: var(--line); background: var(--bg); }

/* ---------- sections ---------- */
.sc-sec { padding: 64px 0; scroll-margin-top: 130px; }
.sc-sec.alt { background: var(--bg-2); }
.sc-narrow { max-width: 920px; margin: 0 auto; }

/* recommend */
.sc-reco { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .sc-reco { grid-template-columns: 1fr; } }
.sc-reco li {
  list-style: none; background: var(--bg-paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 20px; font-size: 14px; line-height: 1.85; color: var(--ink-2);
}
.sc-reco li b { display: block; font-family: var(--f-head); font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.sc-reco li .ico { font-size: 26px; display: block; margin-bottom: 8px; }
.sc-reco { padding: 0; margin: 0; }

/* spec list */
.sc-spec {
  background: var(--bg-paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.sc-spec dl { margin: 0; }
.sc-spec .row {
  display: grid; grid-template-columns: 200px 1fr; gap: 0;
  border-bottom: 1px solid var(--line);
}
.sc-spec .row:last-child { border-bottom: 0; }
.sc-spec dt {
  background: var(--bg); padding: 16px 22px; font-weight: 500; font-size: 14px; color: var(--ink);
}
.sc-spec dd { margin: 0; padding: 16px 22px; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
@media (max-width: 640px) {
  .sc-spec .row { grid-template-columns: 1fr; }
  .sc-spec dt { padding: 12px 18px 4px; background: transparent; font-size: 12.5px; color: var(--terra); }
  .sc-spec dd { padding: 0 18px 14px; }
}

/* timeline (1日 / 1週間の流れ) */
.sc-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.sc-timeline::before {
  content: ""; position: absolute; left: 92px; top: 8px; bottom: 8px; width: 2px; background: var(--line);
}
.sc-timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 28px; padding: 10px 0; position: relative; }
.sc-timeline li::before {
  content: ""; position: absolute; left: 87px; top: 20px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg-paper); border: 3px solid var(--terra);
}
.sc-timeline li.culture::before { border-color: var(--green-deep); background: var(--green-soft); }
.sc-timeline .t { font-family: var(--f-head); font-size: 14px; color: var(--ink); text-align: right; padding-top: 6px; }
.sc-timeline .c {
  background: var(--bg-paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; font-size: 14px; line-height: 1.8; color: var(--ink-2);
}
.sc-timeline .c b { color: var(--ink); font-weight: 500; display: block; }
.sc-timeline li.culture .c { background: var(--sky-pale); }
@media (max-width: 560px) {
  .sc-timeline::before { left: 66px; }
  .sc-timeline li { grid-template-columns: 56px 1fr; gap: 24px; }
  .sc-timeline li::before { left: 61px; }
  .sc-timeline .t { font-size: 12.5px; }
}

/* price */
.sc-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.sc-price {
  background: var(--bg-paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 26px 22px; position: relative;
}
.sc-price.featured { border: 2px solid var(--terra); }
.sc-price .ribbon {
  position: absolute; top: -12px; left: 22px; font-size: 11.5px; padding: 4px 12px; border-radius: 999px;
  background: var(--terra); color: #fff; letter-spacing: 0.08em;
}
.sc-price h3 { font-size: 17px; margin: 0 0 4px; }
.sc-price .sub { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.sc-price .krw { font-family: var(--f-head); font-size: 26px; color: var(--terra); line-height: 1.2; }
.sc-price .jpy { font-size: 14px; color: var(--ink); margin-top: 4px; }
.sc-price .jpy b { font-family: var(--f-head); font-size: 17px; }
.sc-price ul { margin: 14px 0 0; padding: 12px 0 0 18px; border-top: 1px dashed var(--line); font-size: 13px; line-height: 1.9; color: var(--ink-2); }

.sc-rate-note { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.8; }

/* estimate */
.sc-estimate {
  margin-top: 36px; background: linear-gradient(135deg, var(--bg-paper) 0%, var(--sky-pale) 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 34px;
}
@media (max-width: 600px) { .sc-estimate { padding: 24px 20px; } }
.sc-estimate h3 { font-size: 19px; margin: 0 0 4px; }
.sc-estimate .cap { font-size: 12.5px; color: var(--muted); margin: 0 0 16px; }
.sc-estimate .line {
  display: flex; justify-content: space-between; gap: 16px; padding: 10px 0;
  border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--ink-2);
}
.sc-estimate .line .amt { font-family: var(--f-head); color: var(--ink); white-space: nowrap; }
.sc-estimate .total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-top: 14px; margin-top: 4px; border-top: 2px solid var(--ink);
}
.sc-estimate .total strong { font-size: 15px; }
.sc-estimate .total .amt { font-family: var(--f-head); font-size: 26px; color: var(--terra); white-space: nowrap; }
.sc-estimate .foot { font-size: 12.5px; color: var(--ink-2); line-height: 1.9; margin: 14px 0 0; padding-left: 18px; }

/* schedule table */
.sc-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-paper); }
.sc-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.sc-table th, .sc-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.sc-table tr:last-child td { border-bottom: 0; }
.sc-table th { background: var(--terra-soft); color: #9e2a33; font-weight: 700; font-size: 13px; white-space: nowrap; }
.sc-table td.num { font-family: var(--f-head); white-space: nowrap; }
.sc-table .pill {
  display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 999px; margin-left: 6px;
  background: var(--yellow-soft); color: #7a5a00; vertical-align: 1px;
}
.sc-table .pill.open { background: var(--green-soft); color: var(--green-deep); }

/* steps */
.sc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: st; }
.sc-steps li {
  counter-increment: st; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start;
  background: var(--bg-paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px;
}
.sc-steps li::before {
  content: counter(st); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-deep); color: #fff;
  font-family: var(--f-head); font-size: 18px;
}
.sc-steps b { display: block; font-size: 15.5px; color: var(--ink); margin-bottom: 4px; font-weight: 500; }
.sc-steps p { margin: 0; font-size: 13.5px; line-height: 1.85; }
.sc-steps .who { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--terra-soft); color: #9e2a33; margin-left: 8px; vertical-align: 2px; }

/* notes / caution */
.sc-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .sc-notes { grid-template-columns: 1fr; } }
.sc-note {
  background: var(--bg-paper); border: 1px solid var(--line); border-left: 4px solid var(--yellow);
  border-radius: var(--radius-sm); padding: 16px 20px;
}
.sc-note b { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 4px; font-weight: 500; }
.sc-note p { margin: 0; font-size: 13.5px; line-height: 1.85; }

/* area */
.sc-area { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 800px) { .sc-area { grid-template-columns: 1fr; } }
.sc-area .map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.sc-area .map iframe { width: 100%; height: 100%; border: 0; display: block; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; list-style: none; }
.sc-chips li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--bg-paper); border: 1px solid var(--line); }

/* faq (details) */
.sc-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.sc-faq details {
  background: var(--bg-paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0;
}
.sc-faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; position: relative;
  font-weight: 500; font-size: 15px; color: var(--ink);
}
.sc-faq summary::-webkit-details-marker { display: none; }
.sc-faq summary::before { content: "Q."; color: var(--terra); font-family: var(--f-head); margin-right: 8px; }
.sc-faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--muted); transition: transform 0.2s;
}
.sc-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.sc-faq details p { margin: 0; padding: 0 22px 20px 48px; font-size: 14px; line-height: 1.95; }

/* other courses */
.sc-others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .sc-others { grid-template-columns: 1fr; } }
.sc-other {
  display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit;
  background: var(--bg-paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.sc-other:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sc-other img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); flex: 0 0 auto; }
.sc-other b { display: block; font-size: 14.5px; color: var(--ink); font-weight: 500; }
.sc-other span { font-size: 12.5px; color: var(--ink-2); }

.sc-source { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 30px; text-align: center; }
.sc-source a { color: var(--muted); }

/* ---------- ryugaku.html: 短期コース比較表 ---------- */
.short-compare { margin-top: 40px; }
.short-compare .sc-table { min-width: 760px; }
.short-compare .sc-table td a { color: var(--terra); font-weight: 500; text-decoration: none; white-space: nowrap; }
.short-compare .sc-table td a:hover { text-decoration: underline; }
.short-compare .sc-table .jp { display: block; font-size: 12px; color: var(--ink-2); font-family: var(--f-body); }
.short-card .jpy { font-size: 13px; color: var(--ink); margin: -6px 0 8px; }
.short-card .more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13.5px; font-weight: 500;
  color: #fff; background: var(--green-deep); padding: 9px 16px; border-radius: 999px; text-decoration: none;
}
.short-card .more:hover { opacity: 0.88; }
.short-card { display: flex; flex-direction: column; }
.short-card-body { flex: 1; display: flex; flex-direction: column; }
.short-card-body .more { align-self: flex-start; margin-top: auto; }
.short-card-body ul { margin-bottom: 16px !important; }

/* ---------- ポイント ---------- */
.sc-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.sc-point {
  background: var(--bg-paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 24px 20px; position: relative; overflow: hidden;
}
.sc-point .no {
  font-family: var(--f-head); font-size: 11px; letter-spacing: 0.2em; color: var(--terra); margin-bottom: 8px;
}
.sc-point .no b { font-size: 22px; letter-spacing: 0.05em; margin-left: 4px; }
.sc-point h3 { font-size: 16.5px; margin: 0 0 6px; line-height: 1.5; }
.sc-point p { margin: 0; font-size: 13.5px; line-height: 1.85; }

/* お申込み前に知っておきたいこと */
.sc-know {
  margin-top: 28px; background: var(--sky-pale); border-radius: var(--radius-lg); padding: 24px 28px;
}
.sc-know h3 { font-size: 16px; margin: 0 0 10px; }
.sc-know ul { margin: 0; padding-left: 20px; }
.sc-know li { font-size: 13.5px; line-height: 1.85; color: var(--ink-2); padding: 3px 0; }
.sc-know li b { color: var(--ink); font-weight: 500; }

/* ---------- ryugaku.html: 目的から選ぶ ---------- */
.purpose { margin: 0 0 44px; }
.purpose h3 { font-size: 20px; margin: 0 0 16px; text-align: center; }
.purpose-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .purpose-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .purpose-grid { grid-template-columns: 1fr; } }
.purpose-item {
  background: var(--bg-paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px;
}
.purpose-item .q { font-size: 14.5px; font-weight: 500; color: var(--ink); line-height: 1.6; }
.purpose-item .a { font-size: 13px; color: var(--ink-2); line-height: 1.75; margin: 0; }
.purpose-item .a a { color: var(--terra); font-weight: 500; text-decoration: none; }
.purpose-item .a a:hover { text-decoration: underline; }
.purpose-item .a a::after { content: " →"; }

/* 比較表（項目×学校） */
.short-compare .sc-table th:first-child, .short-compare .sc-table td:first-child {
  background: var(--bg); font-weight: 500; color: var(--ink); white-space: nowrap; position: sticky; left: 0;
}
.short-compare .sc-table thead th:first-child { background: var(--terra-soft); }
.short-compare .sc-table td { font-size: 13px; line-height: 1.7; }
.short-compare .sc-table .na { color: var(--muted); }

/* 表の小見出し（日程表など） */
.sc-sub { font-family: var(--f-head); font-size: 18px; font-weight: 700; color: var(--ink); margin: 36px 0 14px; padding-left: 12px; border-left: 4px solid var(--green); line-height: 1.5; }

/* ---------- スマホ：短期コース欄を短くする ---------- */
.purpose-item > summary { list-style: none; cursor: default; }
.purpose-item > summary::-webkit-details-marker { display: none; }
.swipe-hint { display: none; }
@media (max-width: 600px) {
  /* 目的から選ぶ：質問の一覧＋タップで開閉 */
  .purpose-grid { gap: 8px; }
  .purpose-item { padding: 0; gap: 0; border-radius: 14px; }
  .purpose-item > summary {
    cursor: pointer; padding: 14px 44px 14px 16px; position: relative; font-size: 14.5px;
  }
  .purpose-item > summary::after {
    content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px;
    border-right: 2px solid var(--terra); border-bottom: 2px solid var(--terra);
    transform: translateY(-70%) rotate(45deg); transition: transform .2s;
  }
  .purpose-item[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
  .purpose-item .a { padding: 0 16px 14px; }

  /* 4校のカード：横スワイプ */
  .swipe-hint { display: block; text-align: center; font-size: 12px; color: var(--muted); letter-spacing: .06em; margin: 0 0 10px; }
  .short-grid {
    display: flex !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -28px; padding: 4px 28px 14px; scroll-padding: 0 28px; -webkit-overflow-scrolling: touch;
  }
  .short-grid > .short-card { flex: 0 0 82%; scroll-snap-align: start; }
  .short-grid > .short-card.reveal { opacity: 1; transform: none; }

  /* 長期コース（語学堂）のカード：横スワイプ */
  .uni-grid {
    display: flex !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -28px; padding: 4px 28px 14px; scroll-padding: 0 28px; -webkit-overflow-scrolling: touch;
  }
  .uni-grid > .uni-card { flex: 0 0 84%; scroll-snap-align: start; }
  .uni-grid > .uni-card.reveal { opacity: 1; transform: none; }
  .uni-grid > .uni-card:hover { transform: none; }
}
.short-card-body .badge { align-self: flex-start; }

/* ---------- スマホ：個別ページの詰め ---------- */
@media (max-width: 600px) {
  /* 日程表などは画面幅に収める（横スクロールさせない） */
  .sc-table { min-width: 0; font-size: 13px; }
  .sc-table th, .sc-table td { padding: 10px 10px; }
  .sc-table td.num { white-space: normal; }
  .sc-table th, .sc-table td { font-size: 12.5px; padding: 10px 8px; word-break: keep-all; overflow-wrap: anywhere; }
  .sc-table td:first-child, .sc-table th { white-space: nowrap; }
  /* ポイント：余白を詰める */
  .sc-points { gap: 10px; }
  .sc-point { padding: 16px 18px; border-radius: 18px; }
  .sc-point .no { margin-bottom: 4px; }
  .sc-point h3 { font-size: 15.5px; margin-bottom: 2px; }
  .sc-point p { font-size: 13px; line-height: 1.7; }
}
