/* site.css — ibs-travel.com 固有の見た目（サイト所有）。
   ヘッダー・ヒーロー・学会タイル・要点ボックス・フッター。トークンは /theme.css。 */

/* ── ヘッダー ─────────────────────────── */
.site-header { background: var(--ibs-ink); border-bottom: 0; position: sticky; top: 0; z-index: 30; box-shadow: 0 3px 0 var(--ibs-gold); }
.site-logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.4rem; color: #fff; text-decoration: none; letter-spacing: .01em; }
.site-logo:hover { text-decoration: none; }
.site-logo__mark { transition: transform .4s cubic-bezier(.3,1.5,.5,1); }
.site-logo:hover .site-logo__mark { transform: rotate(-8deg) scale(1.06); }
.site-logo__text span { color: var(--ibs-gold); font-weight: 600; margin-left: .15em; }
.site-nav__item > a { font-weight: 700; border-radius: 999px; padding: .4rem .9rem; color: #e6eefc; }
.site-nav__item > a:hover { background: rgba(255,255,255,.14); color: #fff; }
.site-nav__item.is-active > a { background: var(--ibs-gold); color: var(--ibs-ink); }
.breadcrumb { background: transparent; border: 0; padding-top: 1rem; }

/* ── ホーム: ヒーロー ─────────────────── */
.page--home .page__header { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.page--home .page__body { margin-top: 0; }
.hero { position: relative; overflow: hidden; color: #fff; padding: clamp(3rem, 9vw, 6rem) 1.2rem clamp(4.5rem, 10vw, 7rem);
  background: radial-gradient(900px 420px at 85% 0%, rgba(47,128,237,.55), transparent 60%), linear-gradient(160deg, #0a1f45 0%, var(--ibs-ink) 45%, var(--ibs-ink-2) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none;
  background-image: radial-gradient(circle at 70% 55%, transparent 0 190px, rgba(255,255,255,.7) 191px 192px, transparent 193px),
    radial-gradient(circle at 70% 55%, transparent 0 250px, rgba(255,255,255,.5) 251px 252px, transparent 253px),
    radial-gradient(circle at 70% 55%, transparent 0 310px, rgba(255,255,255,.35) 311px 312px, transparent 313px); }
.hero__arc { position: absolute; right: -2%; top: 8%; width: min(620px, 78%); opacity: .95; pointer-events: none; }
.hero__arc path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: ibs-draw 3.2s .3s ease-out forwards; }
.hero__arc .tip { opacity: 0; animation: ibs-fade .6s 3.2s forwards; }
@keyframes ibs-draw { to { stroke-dashoffset: 0; } }
@keyframes ibs-fade { to { opacity: 1; } }
.hero__inner { position: relative; max-width: var(--container-width-wide); margin: 0 auto; }
.hero__eyebrow { display: inline-block; font-weight: 800; letter-spacing: .12em; font-size: .85rem; color: var(--ibs-gold); border: 1px solid rgba(242,177,52,.6); border-radius: 999px; padding: .25rem .85rem; margin: 0 0 1.1rem; }
.hero__title { font-size: clamp(2rem, 6.2vw, 3.6rem); line-height: 1.25; font-weight: 900; margin: 0 0 1.1rem; max-width: 16em; }
.hero__title em { font-style: normal; color: var(--ibs-gold); }
.hero__lead { font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 34em; color: #dbe6fb; margin: 0 0 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.pill { display: inline-block; padding: .75rem 1.5rem; border-radius: 999px; font-weight: 800; text-decoration: none; background: var(--ibs-gold); color: var(--ibs-ink); box-shadow: 0 6px 16px rgba(0,0,0,.25); transition: transform .2s; }
.pill:hover { transform: translateY(-2px); text-decoration: none; }
.pill--line { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); box-shadow: none; }
.hero__wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 46px; }
@media (prefers-reduced-motion: reduce) { .hero__arc path { animation: none; stroke-dashoffset: 0; } .hero__arc .tip { animation: none; opacity: 1; } }

/* ── セクション見出し・タイル ─────────── */
.page__body h2.section-title { display: block; text-align: center; font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 3.2rem 0 .4rem; border: 0; padding: 0; background: none; color: var(--ibs-ink); }
.section-sub { text-align: center; color: var(--color-text-muted); margin: 0 auto 1.8rem; max-width: 36em; }
.tiles { list-style: none; margin: 0 auto; padding: 0 1rem; max-width: var(--container-width-wide); display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.3rem; }
.tile { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; border-top: 5px solid var(--ibs-gold); transition: transform .2s, box-shadow .2s; }
.tile:nth-child(3n+2) { border-top-color: var(--ibs-sky); } .tile:nth-child(3n) { border-top-color: var(--ibs-teal); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile a { display: block; padding: 1.3rem 1.4rem 1.2rem; color: inherit; text-decoration: none; height: 100%; }
.tile__badge { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--ibs-ink); border-radius: 999px; padding: .15rem .75rem; margin-bottom: .7rem; }
.tile__title { display: block; font-size: 1.12rem; font-weight: 800; line-height: 1.5; color: var(--ibs-ink); margin-bottom: .45rem; }
.tile__text { display: block; color: var(--color-text-muted); font-size: .94rem; line-height: 1.7; }
.tile__go { display: block; margin-top: .8rem; font-weight: 800; color: var(--color-link); }
.tile__go::after { content: " →"; transition: margin .2s; }
.tile:hover .tile__go::after { margin-left: .3rem; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; max-width: var(--container-width-wide); margin: 0 auto; padding: 0 1rem; }
.fact { background: #fff; border-radius: var(--radius-md); padding: 1.2rem 1.1rem; text-align: center; box-shadow: var(--shadow-sm); }
.fact__icon { display: block; font-size: 2rem; margin-bottom: .3rem; }
.fact__title { display: block; font-weight: 800; color: var(--ibs-ink); }
.fact__text { display: block; color: var(--color-text-muted); font-size: .92rem; margin-top: .25rem; }

.cta-band { max-width: var(--container-width-wide); margin: 3.2rem auto 0; padding: 2rem 1.6rem; border-radius: var(--radius-lg); text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--ibs-ink), var(--ibs-ink-2)); box-shadow: var(--shadow-md); }
.cta-band p { margin: 0 0 1rem; color: #dbe6fb; }
.cta-band strong { display: block; font-size: 1.4rem; color: #fff; margin-bottom: .5rem; }

/* ── 記事ページ ───────────────────────── */
.page__hero { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-bottom: 1.2rem; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.page__header h1 { font-size: clamp(1.6rem, 4.2vw, 2.3rem); line-height: 1.35; font-weight: 900; color: var(--ibs-ink); }
.child-list { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.child-list a { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.2rem 1.3rem; background: #fff; border-left: 7px solid var(--ibs-gold); }
.child-list a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.child-list__title { color: var(--ibs-ink); font-size: 1.1rem; }
.page__body h2 { color: var(--ibs-ink); border-bottom: 3px solid var(--ibs-gold); padding-bottom: .3rem; margin-top: 2.8rem; }
.page__body h3 { color: var(--ibs-ink-2); }
.page__body img { border-radius: var(--radius-md); }
.page__body blockquote { border-left: 6px solid var(--ibs-sky); background: #fff; border-radius: 0 var(--radius-md) var(--radius-md) 0; box-shadow: var(--shadow-sm); }
.page__body table { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.page__body th { background: var(--ibs-ink); color: #fff; }
.toc { background: #fff; border: 2px dashed var(--ibs-gold); border-radius: var(--radius-md); }

.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin: 1.4rem 0 2rem; }
.glance__item { background: #fff; border-radius: var(--radius-md); padding: .9rem 1rem; box-shadow: var(--shadow-sm); border-left: 6px solid var(--ibs-sky); }
.glance__item:nth-child(2) { border-color: var(--ibs-teal); } .glance__item:nth-child(3) { border-color: var(--ibs-gold); } .glance__item:nth-child(4) { border-color: var(--ibs-ink-2); }
.glance__label { display: block; font-size: .76rem; font-weight: 800; color: var(--color-text-muted); letter-spacing: .06em; }
.glance__value { display: block; font-weight: 800; color: var(--ibs-ink); line-height: 1.5; }

/* ── フッター ─────────────────────────── */
.site-footer { background: var(--ibs-ink); color: #cfdcf5; margin-top: 4rem; border-top: 4px solid var(--ibs-gold); }
.site-footer a { color: #fff; }
.site-footer__logo { color: var(--ibs-gold); font-weight: 800; font-size: 1.3rem; }
.site-footer__heading a { color: var(--ibs-gold); }
.site-footer__tag { font-weight: 700; color: var(--ibs-gold); }
.site-footer__disclaimer { font-size: .82rem; color: #a9bbdd; max-width: 46em; }

.to-top { position: fixed; right: 1rem; bottom: 1rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ibs-gold); color: var(--ibs-ink); font-size: 1.3rem; box-shadow: var(--shadow-md); cursor: pointer; opacity: 0; transform: translateY(16px); transition: .3s; z-index: 40; }
.to-top.is-visible { opacity: 1; transform: none; }

/* IBS の頭字語の表記（トップページ） */
.ibs-mean { display: flex; align-items: center; justify-content: center; gap: 1.6rem; max-width: 560px; margin: 2.2rem auto 0; padding: 1.2rem 1.6rem; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border-left: 6px solid var(--ibs-gold); }
.ibs-mean__abbr { font-size: clamp(2.6rem, 9vw, 3.6rem); font-weight: 800; letter-spacing: .04em; color: var(--ibs-ink); line-height: 1; }
.ibs-mean__list { list-style: none; margin: 0; padding: 0; font-weight: 600; color: var(--ibs-ink-2); line-height: 1.7; font-size: clamp(1rem, 3.6vw, 1.2rem); }
.ibs-mean__list li { margin: 0; padding: 0; }
.ibs-mean__list b { color: var(--ibs-ink); font-size: 1.25em; font-weight: 800; background: linear-gradient(transparent 58%, var(--ibs-gold) 58%); padding: 0 .06em; }

/* 【暫定】自動生成の目次（.toc）を全ページで非表示にする。
   コア側の対応版を適用したら、この規則を削除して既定の設定に戻す（README「目次の扱い」）。 */
.toc { display: none !important; }

/* ── 見やすさの修正（コントラスト比を計算して確認） ───────────
   表の見出し: コアの `table.data-table thead th`（薄い水色）に負けて白文字が読めなかった（1.16:1）→ 紺地・白文字（14.1:1）。
   スマホのメニュー: パネルが明るい背景なのに文字が淡色だった（1.09:1）→ 紺文字（約13:1）。
   ハンバーガーボタン: 線が紺のヘッダーに溶けていた（1.03:1）→ 白線。 */
.page__body table.data-table thead th,
.page__body table.data-table th { background: var(--ibs-ink); color: #fff; border-color: var(--ibs-ink-2); font-weight: 800; }
.page__body table.data-table td { color: var(--color-text); border-color: #c9d4e6; }
.page__body table.data-table tbody tr:nth-child(odd) { background: #fff; }
.page__body table.data-table tbody tr:nth-child(even) { background: #eef3fb; }
.page__body table.data-table td:first-child { font-weight: 700; color: var(--ibs-ink); }
.nav-toggle { background: transparent; border-color: rgba(255,255,255,.55); }
.nav-toggle__bar { background: #fff; }
@media (max-width: 820px) {
  .site-nav__item > a { color: var(--ibs-ink); }
  .site-nav__item > a:hover { background: var(--color-surface-alt); color: var(--ibs-ink); }
  .site-nav__item.is-active > a { background: var(--ibs-gold); color: var(--ibs-ink); }
  .site-nav__submenu a { color: var(--ibs-ink-2); }
}

/* ── トップ: 世界地図（国から探す） ───────────────────
   travelerz.jp の {{world-map}} と同じ地図。色は IBS のトークンに合わせ、文字のコントラストを確認済み。 */
.wmap { background: #e6eef9; padding: 8px max(20px, calc((100% - 1200px) / 2)) 56px; margin-top: 1.5rem; }
.wmap__stage { position: relative; width: 100%; max-width: 1100px; margin: 0 auto; color: #9db4d6; }
.wmap__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wmap__pin { position: absolute; width: 0; height: 0; text-decoration: none; }
.wmap__dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--ibs-gold); box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(14,42,87,.35); }
.wmap__dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--ibs-gold); opacity: 0; animation: wmap-ping 2.6s ease-out infinite; }
@keyframes wmap-ping { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(3); opacity: 0; } }
.wmap__label { position: absolute; top: 0; transform: translateY(-50%); display: inline-flex; align-items: baseline; gap: .4em; white-space: nowrap; padding: .3em .85em; border-radius: 999px; background: #fff; color: var(--ibs-ink); font-size: 13px; font-weight: 700; line-height: 1.4; box-shadow: 0 3px 12px rgba(14,42,87,.22); transition: background .2s, color .2s; }
.wmap__label small { font-size: 11px; font-weight: 600; color: #4d5a6d; }
.wmap__pin--r .wmap__label { left: 16px; }
.wmap__pin--l .wmap__label { right: 16px; }
.wmap__pin:hover .wmap__label, .wmap__pin:focus-visible .wmap__label { background: var(--ibs-ink); color: #fff; }
.wmap__pin:hover .wmap__label small, .wmap__pin:focus-visible .wmap__label small { color: #dbe6fb; }
.wmap__pin:focus-visible { outline: none; }
.wmap__pin:focus-visible .wmap__dot { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ibs-ink); }
.page__body .wmap__cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; max-width: 1200px; margin: 36px auto 0; padding: 0; }
.page__body .wmap__cards > li { margin: 0; padding: 0; }
.wmap__card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.wmap__card-img { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--ibs-ink); overflow: hidden; }
.wmap__card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; border-radius: 0; }
.wmap__card:hover .wmap__card-img img { transform: scale(1.05); }
.wmap__card-none { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; font-weight: 800; letter-spacing: .06em; background: linear-gradient(150deg, var(--ibs-ink), var(--ibs-ink-2)); }
.wmap__card-body { padding: 14px 16px 16px; }
.page__body .wmap__card-body h3 { margin: 0 0 .4rem; padding: 0; border: 0; font-size: 1.1rem; }
.page__body .wmap__card-body h3 a { color: var(--ibs-ink); text-decoration: none; }
.wmap__card-body h3 small { margin-left: .5em; font-size: .72em; font-weight: 600; color: #4d5a6d; }
.page--home .page__body .wmap__card-body p { margin: 0 0 .7rem; padding: 0; font-size: 13.5px; line-height: 1.7; color: #3f4b5e; }
.page__body .wmap__cities { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.page__body .wmap__cities li { margin: 0; padding: 0; }
.page--home .page__body .wmap__cities a:not(#_) { display: inline-block; padding: .15em .75em; border-radius: 999px; background: #e6eef9; color: #0f4a9a; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.page--home .page__body .wmap__venue a:not(#_) { background: #fff3d6; color: #6b4500; }
.page--home .page__body .wmap__cities a:not(#_):hover { background: var(--ibs-ink); color: #fff; }
@media (max-width: 640px) {
  .wmap__label { font-size: 11.5px; padding: .22em .6em; }
  .wmap__label small { display: none; }
  .wmap__pin--r .wmap__label { left: 12px; }
  .wmap__pin--l .wmap__label { right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .wmap__dot::after { animation: none; opacity: .5; } }
