/* IGF 2026 Local Hub (Kyoto) — KCGI */
:root{
  --navy:#0d2a4a; --navy-2:#123a63; --ink:#16283d; --muted:#5a6b7e;
  --teal:#3fc1b5; --teal-d:#1f9a8f; --orange:#e26b2e; --orange-l:#fbe7dc;
  --sky:#eaf3fa; --line:#d9e3ec; --card:#ffffff; --bg:#f6f9fc;
  --p1:#3fc1b5; --p2:#e26b2e;
  --radius:14px; --shadow:0 6px 24px rgba(13,42,74,.08);
  --font:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic UI","Meiryo",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:76px}
body{margin:0;font-family:var(--font);color:var(--ink);background:var(--bg);line-height:1.7;-webkit-font-smoothing:antialiased}
.lang-en{line-height:1.6}
a{color:var(--teal-d)}
h1,h2,h3{line-height:1.3;margin:0 0 .5em}
h2{font-size:clamp(1.5rem,2.6vw,2rem);color:var(--navy)}
h2::after{content:"";display:block;width:56px;height:4px;border-radius:2px;background:var(--orange);margin-top:.45em}
.wrap{max-width:1120px;margin:0 auto;padding:0 20px}
.lead{color:var(--muted);max-width:760px;margin:0 0 1.6em}
section{padding:72px 0}
.skip{position:absolute;left:-999px;top:0;background:#fff;padding:8px 12px;z-index:100}
.skip:focus{left:8px}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:.4em;background:var(--orange);color:#fff;text-decoration:none;font-weight:700;padding:.8em 1.4em;border-radius:999px;border:2px solid var(--orange);transition:transform .15s,background .15s,box-shadow .15s;box-shadow:0 4px 14px rgba(226,107,46,.3)}
.btn:hover{background:#cc5a20;border-color:#cc5a20;transform:translateY(-1px)}
.btn:focus-visible,.tab:focus-visible,.lang a:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.btn-ghost{background:transparent;border-color:rgba(255,255,255,.55);box-shadow:none}
.btn-ghost:hover{background:rgba(255,255,255,.1);border-color:#fff}
.btn-small{padding:.45em 1em;font-size:.9rem}
.btn-big{font-size:1.1rem;padding:1em 1.8em}
.btn-outline{background:#fff;color:var(--navy);border-color:var(--navy);box-shadow:none}

/* top bar */
.topbar{position:sticky;top:0;z-index:50;background:rgba(13,42,74,.96);backdrop-filter:blur(8px);color:#fff}
.bar{display:flex;align-items:center;gap:20px;height:64px}
.brand{min-width:0;display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-size:.98rem;white-space:nowrap}
.brand b{color:var(--teal)}
.logo{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,var(--teal),#2a7fc9);font-weight:800}
.nav{display:flex;gap:4px;margin-left:auto}
.nav a{color:#cfe0f0;text-decoration:none;padding:6px 10px;border-radius:8px;font-size:.92rem}
.nav a:hover{color:#fff;background:rgba(255,255,255,.08)}
.bar-right{display:flex;align-items:center;gap:12px}
.lang{display:flex;border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:2px}
.lang a{white-space:nowrap;color:#cfe0f0;text-decoration:none;font-size:.82rem;padding:4px 11px;border-radius:999px;font-weight:600}
.lang a[aria-current]{background:#fff;color:var(--navy)}
.lang a:not([aria-current]):hover{color:#fff}

/* hero */
.hero{background:radial-gradient(1200px 500px at 85% 20%,#1c4f82 0%,transparent 60%),linear-gradient(180deg,var(--navy),#0b2340);color:#fff;padding:64px 0 80px;overflow:hidden}
.hero-in{display:grid;grid-template-columns:1.15fr .85fr;gap:32px;align-items:center}
.eyebrow{color:#f5a878;font-weight:700;margin:0 0 .6em;letter-spacing:.02em}
.hero h1{font-size:clamp(2rem,4.6vw,3.3rem);font-weight:800;margin-bottom:.4em;text-shadow:0 2px 12px rgba(0,0,0,.25)}
.hub{color:var(--teal);font-size:clamp(1.2rem,2.2vw,1.6rem);font-weight:700;margin:0}
.held{color:#c6d6e6;margin:.2em 0 1.4em}
.when{background:#fff;color:var(--navy);display:inline-block;padding:14px 22px;border-radius:var(--radius);border-bottom:5px solid var(--orange);margin-bottom:1.6em}
.when p{margin:0}
.dates{font-size:clamp(1.15rem,2.2vw,1.5rem);font-weight:800}
.hours{color:var(--orange);font-weight:700;font-size:.95rem}
.actions{display:flex;flex-wrap:wrap;gap:12px}
.listen{margin:1.4em 0 0;color:#ffd0b5;font-weight:600}
.hero-art{position:relative;aspect-ratio:1/1;max-width:440px;justify-self:center;width:100%}
.globe{width:100%;height:100%;filter:drop-shadow(0 0 40px rgba(63,193,181,.25))}
.globe .nodes circle{fill:#fff;stroke:var(--teal);stroke-width:3}
.globe .nodes .home{fill:var(--orange);stroke:#fff}
.globe .arcs path{stroke-dasharray:6 6;animation:dash 6s linear infinite}
@keyframes dash{to{stroke-dashoffset:-120}}
.chip{position:absolute;background:#fff;color:var(--navy);font-size:.82rem;font-weight:700;padding:8px 14px;border-radius:999px;box-shadow:0 8px 24px rgba(0,0,0,.25);display:flex;align-items:center;gap:8px;white-space:nowrap}
.chip.c1{left:-4%;top:14%}
.chip.c2{right:-2%;bottom:14%}
.pin{display:inline-block;width:11px;height:11px;border-radius:50%;flex:none}
.pin.p1{background:var(--p1)} .pin.p2{background:var(--p2)}
@media (prefers-reduced-motion:reduce){.globe .arcs path{animation:none}html{scroll-behavior:auto}}

/* about */
.about{background:#fff}
.about-in{display:grid;grid-template-columns:1.4fr 1fr;gap:48px}
.igf{background:var(--sky);border-left:5px solid var(--teal);padding:18px 22px;border-radius:0 var(--radius) var(--radius) 0;margin-top:1.4em}
.igf h3{color:var(--navy);font-size:1.05rem}
.igf p{margin:0 0 .6em}
.igf a{font-weight:700}
.themes{background:var(--navy);color:#fff;border-radius:var(--radius);padding:26px 28px;align-self:start}
.themes h3{color:var(--teal)}
.themes ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.themes li{padding:8px 12px;background:rgba(255,255,255,.07);border-radius:10px;display:flex;align-items:center;gap:10px}
.themes li::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--teal);flex:none}

/* venues */
.venue-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.venue{position:relative;background:var(--card);border-radius:var(--radius);padding:26px 26px 22px;box-shadow:var(--shadow);border-top:6px solid var(--p1)}
.venue.p2{border-top-color:var(--p2)}
.venue .pin{position:absolute;right:22px;top:24px;width:14px;height:14px}
.venue h3{font-size:1.35rem;color:var(--navy);margin-bottom:.2em}
.room{font-size:1.1rem;font-weight:700;color:var(--muted);margin:0 0 1em}
.maplink{font-weight:700;text-decoration:none}
.maplink:hover{text-decoration:underline}
.closes{display:flex;align-items:center;gap:8px;color:var(--muted);margin:1.4em 0 0}
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--orange)}

/* schedule */
.schedule{background:#fff}
.tabs{display:none;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.js .tabs{display:flex}
.tab{font:inherit;cursor:pointer;background:var(--sky);border:2px solid transparent;color:var(--navy);border-radius:12px;padding:10px 18px;display:flex;flex-direction:column;align-items:flex-start;line-height:1.3;min-width:120px}
.tab:hover{border-color:var(--line)}
.tab[aria-selected="true"]{background:var(--navy);color:#fff}
.tab-day{font-weight:800}
.tab-sub{font-size:.78rem;opacity:.75}
.tab.today .tab-sub::after{content:" ●";color:var(--orange)}
.legend{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:.86rem;color:var(--muted);margin:0 0 18px}
.legend>span{display:flex;align-items:center;gap:6px}
.day{margin-bottom:36px}
.js .day{display:none;margin-bottom:0}
.js .day.active{display:block}
.day-h{color:var(--navy);font-size:1.2rem}
.js .day-h{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.grid{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.row{display:grid;grid-template-columns:150px 1fr 1fr;border-top:1px solid var(--line);position:relative}
.row:first-child{border-top:0}
.row.head{background:var(--navy);color:#fff;font-weight:700;font-size:.9rem}
.row.head .c-sess{display:flex;align-items:center;gap:8px}
.c-time,.c-sess{padding:14px 16px}
.c-time{background:var(--sky);display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.row.head .c-time{background:transparent}
.t{font-weight:800;font-variant-numeric:tabular-nums;color:var(--navy);white-space:nowrap}
.c-sess+.c-sess{border-left:1px dashed var(--line)}
.row.head .c-sess+.c-sess{border-left-color:rgba(255,255,255,.2)}
.c-sess.span{grid-column:2/4;text-align:center;background:linear-gradient(90deg,rgba(63,193,181,.06),rgba(226,107,46,.06))}
.s-title{margin:0;font-weight:600}
.span .s-title{font-weight:700}
.note{display:inline-block;font-size:.76rem;font-weight:700;color:var(--orange);background:var(--orange-l);padding:1px 8px;border-radius:999px;margin-left:4px;white-space:nowrap}
.s-cont{margin:0;color:var(--muted);font-size:.86rem;font-style:italic}
.badge{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:6px;font-size:.8rem;font-weight:800}
.badge.b1{background:var(--orange-l);color:#b24b15}
.badge.b2{background:#e3e7ec;color:#56657a}
.row.flag2 .c-sess{color:#7a8797;background:repeating-linear-gradient(135deg,#fafbfc 0 10px,#f2f4f7 10px 20px)}
.row.flag2 .t{color:#7a8797}
.live{font-size:.72rem;font-weight:800;padding:2px 8px;border-radius:999px;background:var(--orange);color:#fff}
.row.is-next .live{background:var(--teal-d)}
.row.is-now{box-shadow:inset 5px 0 0 var(--orange)}
.row.is-now .c-time{background:var(--orange-l)}
.row.is-past{opacity:.55}

/* join */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:18px;counter-reset:s}
.steps li{background:#fff;border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:10px}
.num{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--navy);color:var(--teal);font-weight:800;font-size:1.1rem}
.steps h3{font-size:1.05rem;color:var(--navy);margin:0}
.steps p{margin:0;color:var(--muted);font-size:.93rem}

/* cta + feedback */
.cta{background:linear-gradient(120deg,var(--navy),var(--navy-2));color:#fff;padding:56px 0}
.cta h2{color:#fff}
.cta p{color:#c6d6e6;margin:0}
.cta-in,.fb-in{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.feedback{padding:48px 0;background:var(--sky)}
.feedback p{margin:0;color:var(--muted);max-width:640px}
.soon{display:inline-block;border:2px dashed #9fb3c6;color:var(--muted);padding:.7em 1.3em;border-radius:999px;font-weight:700}

/* footer */
.footer{background:#081c33;color:#9fb3c6;padding:36px 0;font-size:.9rem}
.footer p{margin:.3em 0}
.footer a{color:var(--teal)}
.footer .links{display:flex;flex-wrap:wrap;gap:8px 28px}
.org{opacity:.7;margin-top:1em!important}

/* responsive */
@media (max-width:960px){
  .nav{display:none}
  .bar-right{margin-left:auto}
  .hero-in,.about-in{grid-template-columns:1fr}
  .hero-art{max-width:320px;order:-1}
  .steps{grid-template-columns:1fr 1fr}
}
@media (max-width:720px){
  section{padding:52px 0}
  .brand span:last-child{font-size:.85rem}
  .btn-small{display:none}
  .venue-grid,.steps{grid-template-columns:1fr}
  .row.head{display:none}
  .row{grid-template-columns:1fr}
  .c-time{flex-direction:row;align-items:center;padding:10px 14px}
  .c-sess.span{grid-column:auto;text-align:left}
  .c-sess+.c-sess{border-left:0;border-top:1px dashed var(--line)}
  .c-sess::before{content:attr(data-label);display:flex;align-items:center;gap:6px;font-size:.74rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-bottom:4px}
  .row .c-sess:nth-child(2):not(.span)::before{color:var(--teal-d)}
  .row .c-sess:nth-child(3)::before{color:var(--orange)}
  .tab{min-width:0;flex:1 1 40%}
  .chip{font-size:.74rem}
}
@media print{
  .topbar,.hero-art,.tabs,.cta,.feedback{display:none}
  .js .day{display:block!important}
  .hero{background:#fff;color:#000}
}

/* ===== IGF 2026 additions ===== */
.notice{background:var(--orange-l);border-left:6px solid var(--orange);border-radius:0 var(--radius) var(--radius) 0;padding:20px 24px;margin:0 0 28px;color:var(--ink)}
.notice h3{margin:0 0 .4em;color:#a8481a;font-size:1.08rem}
.notice p{margin:0 0 .6em}
.notice p:last-child{margin:0}
.notice a{font-weight:700;color:#a8481a}
.hero .notice-mini{margin:1.2em 0 0;color:#c6d6e6;font-size:.92rem}
.hero .notice-mini a{color:var(--teal)}
.grid.single .row{grid-template-columns:170px 1fr}
.grid.single .row.head .c-sess{display:block}
.c-time .nbo{font-size:.76rem;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.s-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 4px}
.type{display:inline-block;font-size:.74rem;font-weight:800;padding:2px 9px;border-radius:999px;background:var(--sky);color:var(--navy)}
.type.t-plenary{background:var(--navy);color:#fff}
.type.t-workshop{background:#e2f5f2;color:#156e66}
.type.t-lightning{background:var(--orange-l);color:#a8481a}
.type.t-day0{background:#ece9f7;color:#4b3f8f}
.sid{font-size:.74rem;color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.s-orig{margin:2px 0 0;font-size:.86rem;color:var(--muted)}
.s-org{margin:4px 0 0;font-size:.84rem;color:var(--muted)}
.venue.single{max-width:560px}
.room.tba{font-weight:600;font-style:italic}
.links-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:1.2em}
.btn-outline-light{background:transparent;color:var(--navy);border:2px solid var(--navy);box-shadow:none}
.btn-outline-light:hover{background:var(--navy);color:#fff;border-color:var(--navy)}
@media (max-width:720px){
  .grid.single .row{grid-template-columns:1fr}
  .c-time .nbo{margin-left:auto}
}
.schedule .day{padding:0}
.lang-ja .hero h1{word-break:keep-all;overflow-wrap:anywhere}
.s-fn{margin:6px 0 0;font-size:.8rem;color:var(--muted);background:var(--sky);border-radius:8px;padding:5px 10px;display:inline-block}

/* Hero as a 2×2 grid:
   row 1 = headline (left, exactly two lines) | KCGI logo (right, centred, same height as the headline)
   row 2 = remaining text (left)             | globe (right, centred, same height as that text)
   Narrow screens: one column in source order → headline, logo, text, globe. */
.hero-in{--title-fs:clamp(1.8rem,3.35vw,2.75rem);grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);column-gap:40px;row-gap:24px;align-items:stretch}
.hero .hero-title{margin:0;align-self:center;font-size:var(--title-fs);line-height:1.18}
.hero-title br{display:block}
/* logo height is tied to the headline font size so the "kcg.edu" lettering matches the headline letters
   (the wordmark is 34% of the logo height; 2.86 × font size ≈ same ink height as the headline) */
.hero-logo{display:flex;justify-content:center;align-items:center;min-width:0;line-height:0}
.hero-logo img{height:calc(var(--title-fs) * 2.86);width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(0 2px 6px rgba(0,0,0,.6))}
.hero-logo:focus-visible{outline:3px solid var(--teal);outline-offset:4px;border-radius:6px}
.hero-text{min-width:0}
.hero-globe{container-type:size;display:flex;justify-content:center;align-items:center;min-width:0}
.hero-globe .hero-art{width:min(100cqw,100cqh);height:min(100cqw,100cqh);max-width:none;aspect-ratio:1/1;order:0}
@media (max-width:960px){
  .hero-in{grid-template-columns:minmax(0,1fr);row-gap:20px}
  .hero-logo{justify-content:center}
  .hero-in{--title-fs:clamp(1.8rem,7vw,2.6rem)}
  .hero .hero-title{align-self:auto;text-wrap:balance}
  .hero-globe{height:min(320px,86vw)}
}
