/* ==========================================================
   米国高校留学説明会（seminar.html）＋ 各ページの告知パーツ
   既存の styles.css のトーン（オレンジ／ミンチョ見出し）に合わせています
   ========================================================== */

/* ---------- 言語切り替え：表示中の言語だけを出す ---------- */
html[data-lang="ja"] .page-seminar [lang="zh-Hans"],
html[data-lang="ja"] .page-seminar [lang="en"],
html[data-lang="zh"] .page-seminar [lang="ja"],
html[data-lang="zh"] .page-seminar [lang="en"],
html[data-lang="en"] .page-seminar [lang="ja"],
html[data-lang="en"] .page-seminar [lang="zh-Hans"] { display: none !important; }
html[data-lang="zh"] body.page-seminar { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans JP", sans-serif; }

/* 終了後の表示切り替え */
.sm-ended-note, .sm-ended-only { display: none; }
html.sm-ended .sm-open-only { display: none !important; }
html.sm-ended .sm-ended-note, html.sm-ended .sm-ended-only { display: block; }

/* ---------- HERO ---------- */
.sm-hero { position: relative; overflow: hidden; padding: 160px 0 96px; color: var(--white);
  background: linear-gradient(158deg, #2f3a34 0%, #1e2624 52%, #161c1a 100%); }
.sm-hero-photo { position: absolute; inset: 0; pointer-events: none; }
.sm-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; opacity: .55; transform: scale(1.04); }
.sm-hero-photo::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(22,28,26,.85) 0%, rgba(22,28,26,0) 24%),
    linear-gradient(100deg, rgba(22,28,26,.97) 0%, rgba(22,28,26,.88) 40%, rgba(22,28,26,.4) 78%, rgba(22,28,26,.25) 100%),
    linear-gradient(0deg, rgba(22,28,26,.92) 0%, rgba(22,28,26,0) 50%); }
.sm-hero-inner { position: relative; }
.sm-hero .breadcrumb a { color: rgba(255,255,255,.45); }

.sm-lang { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 34px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; }
.sm-lang button { padding: 6px 16px; color: rgba(255,255,255,.7); background: transparent; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .05em; cursor: pointer; transition: background .2s, color .2s; }
.sm-lang button:hover { color: var(--white); }
.sm-lang button[aria-pressed="true"] { color: var(--ink); background: var(--white); }

.sm-kicker { display: flex; align-items: center; gap: 15px; margin: 0; color: var(--orange); font-family: Georgia, serif; font-size: 11px; letter-spacing: .24em; }
.sm-kicker::before { content: ""; width: 40px; height: 1px; background: var(--orange); }
.sm-hero h1 { margin: 22px 0 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif; font-weight: 500;
  font-size: clamp(38px, 5.2vw, 72px); line-height: 1.2; letter-spacing: .04em; }
html[data-lang="en"] .sm-hero h1 { font-family: Georgia, "Times New Roman", serif; letter-spacing: 0; font-size: clamp(34px, 4.4vw, 60px); }
.sm-lead { max-width: 640px; margin: 26px 0 0; color: rgba(255,255,255,.74); font-size: 15px; line-height: 1.95; }

.sm-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; max-width: 1000px; margin: 46px 0 0; padding: 0; list-style: none;
  border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.sm-facts li { display: flex; align-items: center; gap: 14px; padding: 22px 18px 22px 0; }
.sm-facts li + li { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.12); }
.sm-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(237,149,99,.16); }
.sm-ico svg { width: 19px; height: 19px; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sm-fact { display: grid; gap: 2px; line-height: 1.45; }
.sm-fact strong { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.sm-fact small { color: rgba(255,255,255,.6); font-size: 11px; }

.sm-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 42px; }
.sm-left { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.sm-left::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(237,149,99,.6); animation: sm-pulse 1.8s ease-out infinite; }
@keyframes sm-pulse { to { box-shadow: 0 0 0 12px rgba(237,149,99,0); } }
.sm-hero-link { color: rgba(255,255,255,.85); }
.sm-ended-note { max-width: 640px; margin: 36px 0 0; padding: 18px 22px; border-left: 3px solid var(--orange); background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); font-size: 14px; }
.sm-ended-note a { display: inline-block; margin-top: 6px; color: var(--orange); font-weight: 700; }

/* ---------- 共通セクション ---------- */
.sm-section { padding: 110px 0; }
.sm-section h2 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif; font-weight: 500; font-size: clamp(30px, 3vw, 42px); line-height: 1.35; letter-spacing: .04em; }
html[data-lang="en"] .sm-section h2 { font-family: Georgia, serif; letter-spacing: 0; }
.sm-head > p:not(.eyebrow) { margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.sm-head-center { text-align: center; }
.sm-head-center .eyebrow { justify-content: center; }
.sm-two { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }

/* 概要 */
.sm-overview { background: var(--white); }
.sm-table { margin: 0; border-top: 1px solid var(--ink); }
.sm-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.sm-row dt { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; padding-top: 2px; }
.sm-row dd { margin: 0; font-size: 15px; line-height: 1.75; }
.sm-row dd small { color: var(--muted); font-size: 12px; }
.sm-tag { display: inline-block; margin-left: 10px; padding: 2px 10px; color: var(--white); background: var(--orange); border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 700; vertical-align: 2px; }
.sm-partners { display: flex; gap: 26px; margin-top: 46px; }
.sm-partners figure { display: grid; justify-items: center; gap: 10px; margin: 0; }
.sm-partners img { width: auto; height: 56px; object-fit: contain; }
.sm-partners figcaption { color: var(--muted); font-size: 10px; letter-spacing: .12em; }

/* 当日の流れ */
.sm-program { background: var(--sand); }
.sm-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.sm-timeline::before { content: ""; position: absolute; left: 76px; top: 14px; bottom: 14px; width: 1px; background: rgba(237,149,99,.45); }
.sm-timeline li { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 34px; align-items: baseline; padding: 15px 0; }
.sm-timeline li::after { content: ""; position: absolute; left: 71px; top: 26px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--orange); }
.sm-timeline li:nth-child(5)::after { background: var(--orange); }
.sm-timeline time { font-family: Georgia, serif; font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.sm-timeline span { font-size: 16px; font-weight: 700; }
.sm-timeline small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; }

/* 当日お話しすること */
.sm-topics { background: var(--paper); }
.sm-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 56px; }
.sm-card { overflow: hidden; background: var(--white); border-radius: 18px; box-shadow: 0 18px 50px rgba(48,42,35,.08); }
.sm-card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.sm-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.sm-card:hover .sm-card-img img { transform: scale(1.05); }
.sm-card-body { padding: 22px 22px 26px; }
.sm-num { color: var(--orange-dark); font-family: Georgia, serif; font-size: 13px; letter-spacing: .1em; }
.sm-card h3 { margin: 6px 0 10px; font-size: 17px; line-height: 1.5; }
.sm-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.sm-more { margin-top: 44px; text-align: center; }

/* アクセス */
.sm-access { background: var(--white); }
.sm-access h2 { margin-bottom: 28px; }
.sm-venue { margin: 0 0 22px; font-size: 14px; line-height: 1.85; }
.sm-venue strong { font-size: 18px; }
.sm-access-list { margin: 0; padding: 0; list-style: none; }
.sm-access-list li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.sm-access-list li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.sm-access-list b { color: var(--orange-dark); }
.sm-alert { margin: 26px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--orange-soft); color: #8a4a22; font-size: 13px; }
.sm-map { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--sand); }
.sm-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 予約 */
.page-seminar .contact-form label span[lang] { width: auto; padding: 0; color: inherit; background: none; border-radius: 0; font-size: inherit; }
.page-seminar .contact-form .req { width: fit-content; padding: 1px 5px; color: var(--orange-dark); background: var(--orange-soft); border-radius: 3px; font-size: 8px; font-style: normal; }
.page-seminar .contact-form input[type="number"] { -moz-appearance: textfield; }
.sm-wechat { display: flex; align-items: center; gap: 18px; width: fit-content; margin-top: 34px; padding: 12px 22px 12px 12px; background: rgba(255,255,255,.12); border-radius: 18px; }
.sm-wechat img { width: 112px; height: 112px; padding: 6px; background: var(--white); border-radius: 10px; }
.sm-wechat div { display: grid; gap: 4px; }
.sm-wechat strong { font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.sm-wechat small { color: rgba(255,255,255,.75); font-size: 11px; }
.sm-reserve .direct-contact { margin-top: 30px; }

.sm-notes { padding: 34px 0 60px; background: var(--paper); }
.sm-notes ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.sm-notes li::before { content: "※ "; }

/* ---------- 他ページの告知パーツ ---------- */
.sm-chip { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; margin: 0 0 26px; padding: 7px 16px 7px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .03em; line-height: 1.4; transition: transform .25s ease, box-shadow .25s ease; }
.sm-chip:hover { transform: translateY(-2px); }
.sm-chip b { flex: none; padding: 4px 10px; color: var(--white); background: var(--orange); border-radius: 999px; font-size: 10px; letter-spacing: .1em; }
.sm-chip i { font-style: normal; color: var(--orange-dark); }
.sm-chip-light { color: var(--ink); background: var(--white); box-shadow: 0 10px 30px rgba(48,42,35,.1); }
.sm-chip-dark { color: var(--white); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); }
.sm-chip-dark i { color: var(--orange); }

.sm-promo { padding: 64px 0; background: var(--sand); }
.sm-promo-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.sm-promo-img { min-height: 300px; }
.sm-promo-img img { width: 100%; height: 100%; object-fit: cover; }
.sm-promo-body { padding: 44px 48px; }
.sm-promo-body h2 { margin: 12px 0 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif; font-weight: 500; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.35; }
.sm-promo-meta { display: grid; gap: 6px; margin: 22px 0 28px; padding: 0; list-style: none; font-size: 14px; }
.sm-promo-meta li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
.sm-promo-meta li span { color: var(--muted); font-size: 12px; font-weight: 700; padding-top: 2px; }
.sm-promo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1020px) {
  .sm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .sm-facts li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .sm-two { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .sm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sm-hero { padding: calc(110px + env(safe-area-inset-top)) 0 70px; }
  .sm-lang { margin-bottom: 26px; }
  .sm-lang button { padding: 6px 12px; }
  .sm-lead { font-size: 14px; }
  .sm-facts { grid-template-columns: minmax(0, 1fr); }
  .sm-facts li, .sm-facts li + li { padding: 16px 0; border-left: 0; }
  .sm-facts li + li { border-top: 1px solid rgba(255,255,255,.12); }
  .sm-hero-actions .button { width: 100%; }
  .sm-section { padding: 76px 0; }
  .sm-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 2px; }
  .sm-cards { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 40px; }
  .sm-timeline::before { left: 62px; }
  .sm-timeline li { grid-template-columns: 62px minmax(0, 1fr); gap: 26px; }
  .sm-timeline li::after { left: 57px; }
  .sm-timeline time { font-size: 17px; }
  .sm-timeline span { font-size: 15px; }
  .sm-wechat img { width: 96px; height: 96px; }
  .sm-promo-card { grid-template-columns: minmax(0, 1fr); }
  .sm-promo-img { min-height: 200px; aspect-ratio: 16 / 9; }
  .sm-promo-body { padding: 28px 24px 32px; }
  .sm-promo-actions .button { width: 100%; }
  .sm-chip { font-size: 11px; }
  .mobile-cta[data-block="1"] { opacity: 0 !important; pointer-events: none !important; transform: translateY(140%) !important; }
}

/* ---------- ヘッダー：濃い色のヒーローの上では白抜き（留学ページと同じ扱い） ---------- */
.page-seminar:not(.menu-open) .site-header:not(.scrolled) .brand-text strong,
.page-seminar:not(.menu-open) .site-header:not(.scrolled) .main-nav > a:not(.nav-contact) { color: rgba(255, 255, 255, 0.88); }
.page-seminar:not(.menu-open) .site-header:not(.scrolled) .brand-text small { color: rgba(255, 255, 255, 0.5); }
.page-seminar:not(.menu-open) .site-header:not(.scrolled) .main-nav .is-current { color: var(--orange); }
.page-seminar:not(.menu-open) .site-header:not(.scrolled) .main-nav > a:not(.nav-contact)::after { background: var(--orange); }
.page-seminar:not(.menu-open) .site-header:not(.scrolled) .nav-contact { color: var(--ink); background: var(--white); }
.page-seminar:not(.menu-open) .site-header:not(.scrolled) .nav-contact:hover { color: var(--white); background: var(--orange-dark); }
.page-seminar:not(.menu-open) .site-header:not(.scrolled) .menu-toggle span { background: var(--white); }
.page-seminar:not(.menu-open) .site-header:not(.scrolled) .brand img { filter: brightness(0) invert(1); opacity: 0.9; }
.page-seminar { background: var(--paper); }

/* チップ：折り返し防止 */
.sm-chip span, .sm-chip i { white-space: nowrap; }
.sm-chip i em { font-style: normal; }
@media (max-width: 760px) {
  .sm-chip { gap: 10px; font-size: 12px; }
  .sm-chip i em { display: none; }
}
@media (max-width: 360px) {
  .sm-chip span { white-space: normal; }
}

/* WeChat 予約 QR（ヒーロー・告知カード） */
.sm-hero-qr { display: flex; align-items: center; gap: 16px; width: fit-content; margin-top: 30px; padding: 10px 22px 10px 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; }
.sm-hero-qr img, .sm-promo-qr img { flex: none; width: 96px; height: 96px; padding: 5px; background: var(--white); border-radius: 10px; }
.sm-hero-qr div, .sm-promo-qr div { display: grid; gap: 4px; }
.sm-hero-qr strong { font-size: 15px; }
.sm-hero-qr small { color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.6; }
.sm-wechat img { width: 132px; height: 132px; }
.sm-wechat strong { font-size: 18px; }
.sm-wechat small { font-size: 12px; line-height: 1.6; }
.sm-promo-qr { display: flex; align-items: center; gap: 16px; margin: -6px 0 26px; padding: 10px 18px 10px 10px; background: var(--paper); border: 1px solid rgba(48,42,35,.08); border-radius: 14px; }
.sm-promo-qr img { border: 1px solid rgba(48,42,35,.08); }
.sm-promo-qr strong { font-size: 14px; }
.sm-promo-qr small { color: var(--muted); font-size: 12px; line-height: 1.6; }
@media (max-width: 760px) {
  .sm-hero-qr { width: 100%; }
  .sm-wechat img { width: 112px; height: 112px; }
}

/* 予約欄：WeChat QR カード（フォームの代わり） */
.sm-qr-card { justify-self: end; width: 100%; max-width: 440px; padding: 40px 40px 34px; text-align: center; color: var(--ink); background: var(--white); border-radius: var(--radius); box-shadow: 0 30px 70px rgba(48,42,35,.18); }
.sm-qr-kicker { margin: 0 0 18px; color: var(--orange-dark); font-family: Georgia, serif; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; }
.sm-qr-card img { display: block; width: 240px; height: 240px; margin: 0 auto; padding: 8px; border: 1px solid rgba(48,42,35,.1); border-radius: 14px; }
.sm-qr-card h3 { margin: 24px 0 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif; font-weight: 500; font-size: 24px; }
.sm-qr-steps { display: grid; gap: 10px; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(48,42,35,.1); list-style: none; counter-reset: st; text-align: left; font-size: 14px; line-height: 1.6; }
.sm-qr-steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; counter-increment: st; }
.sm-qr-steps li:before { content: counter(st); display: grid; place-items: center; width: 24px; height: 24px; color: var(--white); background: var(--orange); border-radius: 50%; font-size: 12px; font-weight: 700; }
.sm-qr-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .sm-qr-card { justify-self: stretch; max-width: none; padding: 30px 22px 26px; }
  .sm-qr-card img { width: 220px; height: 220px; }
}
