/* Home全体のCSSを読み込まず、共通tokensとAuthのtopbarを再利用する。 */
.community-page *,.community-page *::before,.community-page *::after { box-sizing:border-box; }
:where(.community-page #community-root) button,:where(.community-page #community-root) input,:where(.community-page #community-root) select { font:inherit; }
.community-page a { color:inherit; }
.community-page .kanau-visually-hidden { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
/* 共有tokens、既存topbarとbottom navigationを利用し、変更をCommunity内に限定する。 */
body.community-page { text-align:initial; margin:0; padding:0; color:var(--kanau-text-body); font-family:var(--kanau-font-body); background-color:#f7f4eb; background-image:linear-gradient(#7f9a820b 1px,transparent 1px),linear-gradient(90deg,#7f9a820b 1px,transparent 1px); background-size:28px 28px;
 /* z0 背景grid / z1 globe / z2 orbit / z3 map nodes / z4 text / z5 cards / z6 drawer / z7 global nav */
 --kanau-z-globe:1; --kanau-z-orbit:2; --kanau-z-nodes:3; --kanau-z-text:4; --kanau-z-cards:5; --kanau-z-drawer:6; --kanau-z-nav:7; }
.community-page #community-root { max-width:1700px; margin:0 auto; padding:calc(var(--kanau-topbar-height,64px) + 10px) 44px 108px; }
.community-page button,.community-page a,.community-page input,.community-page select { -webkit-tap-highlight-color:transparent; }
.community-page button { cursor:pointer; }
.community-page [hidden] { display:none!important; }
.community-page :focus-visible { outline:2px solid var(--kanau-brand-deep); outline-offset:4px; }
.community-page .skip-link { position:fixed;top:-100px;left:16px;z-index:200;background:#fffdf7;padding:12px; }
.community-page .skip-link:focus { top:8px; }
.community-toolbar { display:flex;align-items:center;gap:24px;min-height:40px;position:relative;z-index:5; }
.section-label { font-size:9px;letter-spacing:.16em;color:#637464;white-space:nowrap; }
.section-label span { padding:0 10px;color:#b6bdae; }
.search-wrap { position:relative;width:min(440px,42vw);margin-left:auto; }
.search-wrap input { width:100%;border:1px solid #d9dfd2;border-radius:99px;background:#fffdf780;padding:13px 18px 13px 38px;font-size:11px;color:var(--kanau-brand-deep); }
.search-icon { position:absolute;top:6px;left:15px;font-size:24px;color:#798974; }
.search-results { position:absolute;top:calc(100% + 8px);left:0;right:0;padding:8px;border:1px solid var(--kanau-border-soft);border-radius:16px;background:#fffdf7;box-shadow:var(--kanau-shadow-soft);max-height:360px;overflow:auto; }
.search-results button { width:100%;text-align:left;border:0;background:transparent;padding:12px;border-radius:8px;color:var(--kanau-brand-deep); }
.search-results button:hover { background:#edf0e5; }
.search-results small { display:block;color:#677361;margin-top:4px;font-size:11px; }
.search-results p { font-size:12px;padding:8px;line-height:1.6; }
.my-university { border:1px solid #c8d6c5;background:#ecf1e5;color:#436143;border-radius:99px;padding:10px 14px;font-size:11px;max-width:240px; }
/* Earthをmain visualにする。左右のcopy列は球へ被せて読ませる（text > globeのlayer順）。 */
.world-view { position:relative;display:grid;grid-template-columns:minmax(180px,.92fr) minmax(0,3.6fr) minmax(168px,.86fr);align-items:center;min-height:0;gap:0;transition:grid-template-columns 640ms cubic-bezier(.65,0,.35,1); }
.world-copy { position:relative;z-index:var(--kanau-z-text);padding:0 0 20px 5px; }
.eyebrow { font-size:9px;line-height:1.8;font-weight:600;letter-spacing:.19em;color:#687b60; }
.world-copy h1 { color:var(--kanau-brand-deep);font-family:Georgia,'Times New Roman',serif;font-size:clamp(30px,3vw,48px);font-weight:400;line-height:1.15;letter-spacing:-.045em;margin:26px 0 24px; }
.world-copy h1 em { font-weight:400;color:#657e56; }
.world-description { color:#64715f;font-size:13px;line-height:1.8; }
.tiny-rule { width:32px;height:1px;background:#afbaa2;margin:28px 0 18px; }
.map-invitation { color:#7c866f;font-size:11px;line-height:1.7; }
/* overflow-x:clipはcanvasと同じ境界なので球体を切らない。公転中の惑星が横スクロールを生むのを防ぐだけ。 */
.globe-wrap { position:relative;min-width:0;z-index:var(--kanau-z-globe);overflow-x:clip; }
/* canvasの矩形境界を残さない。四辺を等しく溶かし、球体が背景空間へ続いて見えるようにする。 */
#worldGlobe { width:100%;height:clamp(420px,calc(100vh - 220px),940px);display:block;touch-action:none;cursor:grab;--globe-edge:5%;
 -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 var(--globe-edge),#000 calc(100% - var(--globe-edge)),transparent 100%),linear-gradient(180deg,transparent 0,#000 var(--globe-edge),#000 calc(100% - var(--globe-edge)),transparent 100%);
 mask-image:linear-gradient(90deg,transparent 0,#000 var(--globe-edge),#000 calc(100% - var(--globe-edge)),transparent 100%),linear-gradient(180deg,transparent 0,#000 var(--globe-edge),#000 calc(100% - var(--globe-edge)),transparent 100%);
 -webkit-mask-composite:source-in;mask-composite:intersect; }
.globe-status { position:absolute;top:48%;width:100%;text-align:center;font-size:12px;color:#64715f;pointer-events:none; }
.globe-hover { position:absolute;top:8%;left:50%;transform:translateX(-50%);font-size:12px;color:#4f6547;pointer-events:none; }
/* 操作系は球の上へ重ねる。縦の余白を消して、その分をEarthへ回す。 */
.globe-help { position:absolute;left:50%;bottom:34px;transform:translateX(-50%);z-index:var(--kanau-z-text);width:100%;text-align:center;font-size:9px;letter-spacing:.03em;color:#78856e;margin:0;pointer-events:none; }
.featured { position:relative;z-index:var(--kanau-z-text);padding-left:12px; }
.featured h2 { font-family:Georgia,serif;font-weight:400;font-size:26px;color:var(--kanau-brand-deep);line-height:1.2;margin:12px 0 22px; }
.featured-card { width:100%;display:flex;gap:12px;align-items:center;text-align:left;padding:16px 0;background:transparent;border:0;border-bottom:1px solid #d9dfd0;color:#344e32; }
.university-monogram { width:36px;height:42px;flex-shrink:0;display:grid;place-items:center;background:#e7eadb;border-radius:14px 14px 18px 18px;border:1px solid #d3d9c3;font:17px Georgia,serif;color:#697852; }
.featured-card:nth-child(2) .university-monogram { background:#ebe6d6;color:#8f805c; }
.featured-card strong { display:block;font-size:12px;font-weight:500;line-height:1.4; }
.featured-card small { display:block;font-size:10px;color:#7c846f;margin-top:6px; }
.featured-card .card-arrow { margin-left:auto;color:#778b63;font-size:14px; }
.demo-note,.map-legend { font-size:10px;color:#76826a;line-height:1.5; }
.demo-note { margin-top:22px; }
.glow-dot { display:inline-block;width:6px;height:6px;border-radius:50%;background:#b2a16b;box-shadow:0 0 10px 4px #e4d49955;margin-right:6px; }
.country-picker { display:flex;align-items:center;gap:22px;max-width:940px;margin:24px auto 0;justify-content:center;position:relative;z-index:2; }
.country-shortcuts { display:flex;flex-wrap:wrap;gap:8px; }
.country-shortcuts button,.country-select button { background:#fffdf7a8;border:1px solid #d6ddcd;color:#4c6542;border-radius:99px;padding:11px 17px;font-size:12px;min-height:42px; }
.country-picker summary { cursor:pointer;font-size:11px;color:#627554;white-space:nowrap;padding:12px; }
.country-select { display:flex;flex-wrap:wrap;gap:12px;position:absolute;right:0;top:100%;background:#fffdf7;border:1px solid #d6ddcd;border-radius:16px;padding:16px;box-shadow:var(--kanau-shadow-soft);max-width:380px; }
.country-select label { width:100%;font-size:12px; }
.country-select select { min-width:0;flex:1;border:1px solid #d6ddcd;border-radius:8px;padding:10px;font-size:12px;max-width:100%; }
.community-footer { display:flex;justify-content:space-between;border-top:1px solid #d9dfd05e;padding-top:20px;margin-top:34px;font-size:8px;letter-spacing:.12em;color:#87907d; }
.breadcrumbs { display:flex;gap:10px;align-items:center;margin:25px 0 10px;font-size:12px;color:#6f7e63; }
.breadcrumbs button { border:0;background:none;color:#4c6943;padding:8px 0; }
.country-view { display:grid;grid-template-columns:3fr 2fr;gap:36px;min-height:600px; }
.country-map-panel { position:relative;min-width:0; }
.country-heading { position:absolute;top:18px;left:12px;z-index:var(--kanau-z-text); }
.country-heading h1 { font-size:21px;font-family:Georgia,serif;color:var(--kanau-brand-deep);font-weight:400;margin:0 0 8px; }
.country-heading p { color:#738068;font-size:11px; }
#countryMap { display:block;width:100%;height:570px;margin-top:70px; }
.map-legend { text-align:center; }
.demo-label { padding-left:8px;color:#8b8f7f; }
.country-panel { min-width:0;padding:18px 0; }
.country-tabs { display:flex;border-bottom:1px solid #d1dbc7;gap:8px;margin-bottom:26px; }
.country-tabs button { flex:1;padding:14px 6px;border:0;background:none;color:#718266;font-size:13px;border-bottom:2px solid transparent; }
.country-tabs button[aria-selected=true] { color:#345b36;border-bottom-color:#7f9a82;font-weight:600; }
.panel-heading { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px; }
.panel-heading h2 { margin:0;font-family:Georgia,serif;color:var(--kanau-brand-deep);font-size:24px;font-weight:400; }
.panel-heading small { font-size:10px;color:#849077; }
.event-card,.university-card,.group-card { width:100%;background:#fffdf7de;border:1px solid #d7dfca;border-radius:var(--kanau-radius-card);padding:20px;margin:0 0 12px;text-align:left;color:#3e5937;box-shadow:var(--kanau-shadow-soft); }
.event-card { display:flex;gap:18px;align-items:flex-start; }
.event-date { padding:10px 12px;background:#edf0e2;border-radius:12px;text-align:center;min-width:54px;font-size:10px;text-transform:uppercase; }
.event-date strong { display:block;font:26px Georgia,serif;margin-top:3px; }
.event-card h3,.university-card h3,.group-card h3 { font-size:14px;font-weight:500;margin:6px 0 8px; }
#countryContent .event-card p,.university-card p,.group-card p { margin:5px 0;font-size:11px;color:#76806b;line-height:1.6; }
.event-category { display:inline-block;font-size:9px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:#5f6b52;background:color-mix(in srgb,var(--event-accent,#dfe6d6) 62%,#fdfbf3);border-radius:99px;padding:4px 9px;margin-bottom:2px; }
.event-card:hover,.university-card:hover,.group-card:hover,.featured-card:hover { border-color:#a9bc9a;background:#f0f3e8; }
.university-card .university-top { display:flex;align-items:center;gap:12px; }
.university-card .badge { font-size:9px;background:#e6eddb;padding:4px 7px;border-radius:9px;color:#537041; }
.text-button { border:0;background:none;color:#597c46;font-size:12px;padding:12px 0; }
.explore-button { width:100%;background:#eef1e5;border:1px solid #ced9c1;color:#4e6f3b;border-radius:12px;padding:14px;margin-top:10px;font-size:12px; }
.empty-state { font-size:13px;color:#738068;line-height:1.8;padding:24px 0; }
.small-notice { font-size:11px;color:#8a8168;line-height:1.5; }
.university-view { max-width:920px;margin:50px auto;min-height:480px; }
.university-view h1 { color:var(--kanau-brand-deep);font:400 clamp(28px,4vw,46px)/1.15 Georgia,serif; }
.university-view .university-meta { color:#79866c;font-size:13px; }
.university-view .country-tabs { margin-top:36px; }
.university-placeholder { border:1px solid #dbe1d1;border-radius:20px;background:#fffdf780;padding:32px;margin-top:24px; }
.university-placeholder h2 { font:24px Georgia,serif;color:#48663c; }
.university-placeholder p { font-size:13px;line-height:1.8;color:#738167; }
/* 旧Communityの4項目ナビゲーションの位置・アイコン・淡色表現を維持する。 */
.community-page .bottom-nav { position:fixed;left:50%;bottom:24px;transform:translateX(-50%);display:grid;grid-template-columns:repeat(4,minmax(74px,1fr));gap:4px;padding:8px;width:auto;max-width:calc(100vw - 24px);background:#fffdf7ed;border:1px solid #ffffffdb;border-radius:999px;box-shadow:0 5px 20px #4b443a14;z-index:95;backdrop-filter:blur(18px); }
.community-page .nav-btn { display:flex;align-items:center;flex-direction:column;gap:3px;padding:8px 12px;border:0;border-radius:99px;color:#52665d;font-size:11px;font-weight:500;text-decoration:none; }
.community-page .nav-btn.active,.community-page .nav-btn:hover { background:#82a89a33;color:#244d39; }
.community-page .nav-icon svg { width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round; }
@media(min-width:1500px) { .world-view { grid-template-columns:minmax(200px,.85fr) minmax(0,4.2fr) minmax(170px,.72fr); } }
@media(max-width:1050px) { .community-page #community-root { padding-left:24px;padding-right:24px; } .world-view { grid-template-columns:168px minmax(0,1fr) 142px; } .world-copy h1 { font-size:31px; } .featured h2 { font-size:22px; } .featured-card { gap:8px; } .university-monogram { width:30px; } .section-label { display:none; } .search-wrap { margin-left:0;width:min(500px,65vw); } .country-view { gap:20px; } }
@media(max-width:760px) {
 .community-page #community-root { padding:calc(var(--kanau-topbar-height,64px) + 18px) 20px 120px; }
 .community-toolbar { flex-wrap:wrap;gap:10px; } .search-wrap { width:100%; } .my-university { max-width:100%; }
 .world-view { display:grid;grid-template-columns:1fr;min-height:0; }
 .world-copy { padding:28px 4px 0; } .world-copy .eyebrow { font-size:8px; } .world-copy h1 { font-size:36px;max-width:360px;margin:15px 0; }
 .world-description { font-size:11px;line-height:1.7; } .world-description br { display:initial; }
 .tiny-rule,.map-invitation { display:none; } .globe-wrap { margin:0 -15px; } #worldGlobe { height:380px; }
 .globe-help { font-size:8px; }
 .featured { padding:30px 0 0; } .featured h2 br { display:none; } .featured h2 { font-size:24px; } .featured-card { padding:12px 0; } .featured-card strong { font-size:13px; }
 .country-picker { flex-wrap:wrap;gap:10px;margin-top:24px;justify-content:flex-start; } .country-picker>.eyebrow { width:100%; } .country-shortcuts { gap:6px; } .country-shortcuts button { padding:10px 12px;font-size:11px; }
 .country-view { grid-template-columns:1fr;gap:10px; } .country-heading { top:14px; } #countryMap { height:410px;margin-top:68px; } .country-panel { padding:0; }
 .country-select { left:0;right:auto;max-width:100%; } .community-footer { line-height:1.7;gap:14px;font-size:7px; } .university-view { margin:28px 0; } .university-view .country-tabs { flex-wrap:wrap; } .university-view .country-tabs button { flex-basis:40%; }
 .community-page .bottom-nav { bottom:16px;width:calc(100vw - 24px);grid-template-columns:repeat(4,minmax(0,1fr)); }
 .community-page .nav-btn { padding:8px 6px;min-width:0; }
 .community-page .nav-label { max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
}
@media(prefers-reduced-motion:reduce) { .community-page { scroll-behavior:auto; } }

@media(max-width:760px) {
 .community-page .kanau-login-pill { max-width:100%;font-size:11px;white-space:normal;min-height:28px; }
 .community-page .kanau-topbar-actions { overflow:visible; }
 .community-page .country-view,.community-page .university-view { scroll-margin-top:128px; }
}

/* C1: Planetは静的SVGと短いCSS transitionだけで描画する。追加の描画loopは持たない。 */
.planet-entrance { position:absolute;right:-4%;top:10%;width:142px;z-index:var(--kanau-z-orbit); }
/* 公転中はtransformだけで位置を更新する（layout・paintを起こさない）。 */
.planet-entrance.is-orbiting { left:0;top:0;right:auto;transform-origin:0 0;will-change:transform;opacity:var(--orbit-depth,1); }
.planet-entrance.is-orbiting[data-behind=true] .planet-art { filter:drop-shadow(0 6px 9px #657b4b12) saturate(.88); }
.planet-trigger { display:flex;flex-direction:column;align-items:center;gap:0;width:100%;padding:0 0 10px;border:0;border-radius:50%;background:transparent;color:var(--kanau-brand-deep); }
.planet-trigger>span { font:12px Georgia,serif;letter-spacing:.03em;margin-top:-9px; }
.planet-art { display:block;width:142px;height:142px;overflow:visible;filter:drop-shadow(0 8px 10px #657b4b16);transition:transform 180ms ease,filter 180ms ease; }
.planet-orbit { fill:none;stroke:#a7b192;stroke-width:.85;opacity:.7; }
.planet-entrance:not(.hint-dismissed):hover .planet-art,.planet-trigger:focus-visible .planet-art { transform:scale(1.04);filter:drop-shadow(0 0 16px #e7ce9570); }
.planet-hint { position:absolute;top:100%;right:0;width:210px;padding:17px 20px;border:1px solid #d7dfcc;border-radius:16px;background:#fffdf7f5;box-shadow:0 6px 20px #566f4410;color:#647659;opacity:0;visibility:hidden;transition:opacity 150ms ease,visibility 150ms;pointer-events:none; }
.planet-hint strong { display:block;margin-bottom:10px;font:18px Georgia,serif;color:var(--kanau-brand-deep); }
.planet-hint span { display:block;font-size:11px;line-height:1.9; }
.planet-entrance:not(.hint-dismissed):hover .planet-hint,.planet-entrance:not(.hint-dismissed):focus-within .planet-hint { opacity:1;visibility:visible;pointer-events:auto; }
.planet-confirmation { position:fixed;inset:auto;margin:0;width:min(308px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #cdd9c3;border-radius:20px;background:#fffdf7;color:var(--kanau-brand-deep);box-shadow:0 14px 45px #41573424;font-family:var(--kanau-font-body); }
.planet-confirmation::backdrop { background:#f7f4eb26; }
.planet-popover-mark { color:#a99b6e;font-size:21px; }
.planet-confirmation h2 { font:25px Georgia,serif;margin:10px 0; }
.planet-confirmation p { font-size:13px;line-height:1.7;color:#718064;margin:0 0 22px; }
.planet-confirmation-actions { display:flex;flex-wrap:wrap;gap:8px; }
.planet-confirmation-actions button { min-height:44px;border-radius:99px;padding:10px 14px;font-size:12px;border:1px solid #cad6be;cursor:pointer; }
#planetEnter { background:#708866;color:#fffdf7;border-color:#708866; }
#planetLater { background:transparent;color:#57714c; }
@media(max-width:1050px) { .planet-entrance { right:-8%;top:4%;width:118px; } .planet-art { width:118px;height:118px; } }
@media(max-width:760px) {
 .planet-entrance { right:4px;top:0;width:106px; }
 .planet-art { width:106px;height:106px; }
 .planet-trigger>span { font-size:11px;margin-top:-5px; }
 .planet-hint { width:190px;padding:14px 16px; }
}
@media(prefers-reduced-motion:reduce) { .planet-art,.planet-hint { transition:none; } .planet-entrance:hover .planet-art,.planet-trigger:focus-visible .planet-art { transform:none; } }

/* C2/C6: WorldとCountryで同じCanvasと球面を保持し、列幅の変化だけでcameraを広げる。 */
.community-scene { position:relative; }
.breadcrumbs { position:absolute;z-index:var(--kanau-z-drawer);margin:0; }
.world-copy,.featured,#planetEntrance,.globe-help { transition:opacity 200ms ease; }
.country-context .world-copy,.country-context .featured,.country-context #planetEntrance,.country-context .globe-help { opacity:0;pointer-events:none; }
/* Country表示では左右の説明列を畳み、globeへ画面幅を明け渡す。矩形fadeも少し深くする。 */
.country-context .world-view { grid-template-columns:minmax(0px,0fr) minmax(0,1fr) minmax(0px,0fr); }
.country-context .world-copy,.country-context .featured { overflow:hidden; }
.country-context #worldGlobe { --globe-edge:11%; }
.community-scene .country-view { position:absolute;inset:0;z-index:var(--kanau-z-text);grid-template-columns:minmax(0,1fr) minmax(300px,35%);gap:22px;pointer-events:none;min-height:0; }
/* tabletは55/45。mapを主役にしたまま、右panelが潰れない幅を残す。 */
@media(max-width:1200px) and (min-width:761px) { .community-scene .country-view { grid-template-columns:minmax(0,1fr) minmax(280px,45%);gap:16px; } }
.community-scene .country-panel { position:relative;z-index:var(--kanau-z-cards);pointer-events:auto;align-self:center;max-height:min(680px,78vh);overflow:auto;padding:16px 16px 20px;background:#f8f5ecf2;border:1px solid #e2e7d8;border-radius:20px;box-shadow:0 10px 34px #4c5f3c0f; }
.community-scene .country-heading { top:40px;left:2px;max-width:60%; }
.community-scene #countryMap { display:none; }
.community-scene .map-legend { position:absolute;left:4px;bottom:14px; }
.country-context #worldGlobe { cursor:default; }
@media(max-width:760px) {
 .community-scene .country-view { position:relative;display:block; }
 .community-scene .country-map-panel { min-height:105px; }
 .community-scene .country-heading { position:relative;top:auto;left:auto;padding-top:12px; }
 .community-scene .map-legend { position:static; }
 .community-scene .country-panel { max-height:none;padding:12px 0;background:transparent; }
 .world-copy { max-height:370px;overflow:hidden;transition:opacity 200ms ease,max-height 640ms cubic-bezier(.65,0,.35,1),padding 640ms cubic-bezier(.65,0,.35,1); }
 .country-context .world-copy { max-height:0;padding-top:0;padding-bottom:0; }
 .country-context .featured { display:none; }
 .globe-wrap { transition:padding 640ms cubic-bezier(.65,0,.35,1); }
 .country-context .globe-wrap { padding-top:32px; }
}
@media(prefers-reduced-motion:reduce) {
 .world-copy,.featured,#planetEntrance,.globe-help,.globe-wrap,.world-view { transition:none; }
}

/* C3/C6: Countryの地域・大学・イベントを同じselectionに結びつける。
   hover（1件だけ光る）とselected（絞り込み）は別々のclassで表現する。 */
.country-node-layer { position:absolute;left:0;top:0;width:100%;pointer-events:none;z-index:var(--kanau-z-nodes); }
.region-node { position:absolute;transform:translate(-50%,-50%);pointer-events:auto;border:1px solid #ccd7bd;background:#fffdf7ee;border-radius:99px;padding:7px 13px;min-height:38px;font-size:11px;color:#54684b;white-space:nowrap;transition:transform 160ms ease,background-color 160ms ease,border-color 160ms ease; }
.region-node[data-partner=true] { border-color:#d9c79a;color:#6d6337; }
.region-node.is-linked { background:#f5e8c8;border-color:#c6ad74;color:#5d5227; }
.region-node[aria-pressed=true] { background:#f0e5c4;border-color:#bba263;color:#544a22;font-weight:600; }
.region-node:hover { transform:translate(-50%,-50%) scale(1.04); }
.university-node { position:absolute;transform:translate(-50%,-50%);pointer-events:auto;display:flex;flex-direction:column;align-items:center;gap:4px;border:1px solid #d5ddca;border-radius:14px;padding:6px 7px 5px;background:#fffdf7f2;color:#4f6449;font-size:9.5px;line-height:1.3;min-width:58px;text-align:center;transition:transform 160ms ease,background-color 160ms ease,border-color 160ms ease; }
.university-node[data-affiliate=true] { background:#fdfbf2d9;border-color:#dde2d3;color:#74836c;font-size:9px;min-width:54px; }
.university-node:hover { transform:translate(-50%,-50%) translateY(-2px);border-color:#b7c7aa; }
.university-node.is-linked { background:#fbf1d8;border-color:var(--brand-color,#bca365);box-shadow:0 0 0 3px #e8ce8d3d; }
.university-node[aria-pressed=true] { background:#f7edd4;border-color:var(--brand-color,#ab9257);box-shadow:0 0 0 3px #e2c68e55; }
.university-brand { display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:34px;height:38px;border-radius:9px 9px 14px 14px;border:1px solid color-mix(in srgb,var(--brand-color,#8a9a7c) 28%,#ffffff);background:color-mix(in srgb,var(--brand-color,#8a9a7c) 9%,#fdfbf3);color:var(--brand-color,#587044);font:600 14px Georgia,serif;overflow:hidden; }
.university-brand-lg { width:44px;height:49px;font-size:18px; }
.university-brand img { width:100%;height:100%;object-fit:contain;display:block;image-rendering:auto; }
.university-brand:has(img) { border-color:transparent;background:transparent;border-radius:0; }
/* 開催中のeventだけ、ごく弱い呼吸glow。透明度のみを動かす。 */
@media(prefers-reduced-motion:no-preference) {
 .university-node[data-live=true]::after,.region-node[data-live=true]::after { content:'';position:absolute;inset:-7px;border-radius:20px;background:radial-gradient(circle,#e9cd8945,#e9cd8900 72%);pointer-events:none;animation:kanau-breathe 4.6s ease-in-out infinite; }
 @keyframes kanau-breathe { 0%,100% { opacity:.3; } 50% { opacity:.85; } }
}
#countryContent .event-card { position:relative;display:grid;grid-template-columns:46px 104px minmax(0,1fr) auto;gap:11px;padding:12px;border:1px solid #cfd9c3;border-left:4px solid var(--event-accent,#c2cfb6);background:#fffdf7;align-items:start;box-shadow:0 2px 10px #4c5f3c0e;transition:transform 160ms ease,border-color 160ms ease,background-color 160ms ease,box-shadow 160ms ease; }
#countryContent .event-card[data-category=language] { --event-accent:#bcd0e2; }
#countryContent .event-card[data-category=culture] { --event-accent:#dfc3d0; }
#countryContent .event-card[data-category=study] { --event-accent:#c9d4ae; }
#countryContent .event-card[data-category=social] { --event-accent:#e9cca8; }
#countryContent .event-card[data-category=online] { --event-accent:#cfc5e4; }
#countryContent .event-card:hover { transform:translateY(-2px);border-color:#a9bd97;box-shadow:0 6px 18px #4c5f3c1a; }
/* hoverでlinkされたcardだけを強調する。兄弟cardへは一切波及させない。 */
#countryContent .event-card.is-linked { border-color:#c3ae72;background:#faf2de; }
#countryContent .event-card.is-active { border-color:#b09550;background:#f9efd6;box-shadow:0 0 0 2px #e2c68e4d; }
#countryContent .event-date { min-width:0;padding:9px 4px;background:color-mix(in srgb,var(--event-accent,#edf0e2) 70%,#fdfbf3);border-radius:11px;color:#4c5b41;font-weight:600; }
#countryContent .event-date strong { font-size:23px; }
.event-thumb { position:relative;align-self:start;width:104px;height:80px;border-radius:12px;overflow:hidden;background:linear-gradient(160deg,color-mix(in srgb,var(--event-accent,#dfe6d6) 46%,#fdfbf3),#f6f3e6); }
.event-thumb img { width:100%;height:100%;object-fit:cover;display:block; }
.event-thumb.is-fallback::after { content:'';position:absolute;inset:18% 16%;border-radius:8px;background:radial-gradient(circle at 34% 34%,#fff8e2,transparent 62%),linear-gradient(#ffffff59,#ffffff00); }
.event-body { min-width:0;overflow-wrap:anywhere; }
.event-body h3 { font-size:15.5px;line-height:1.35;color:#2f4a2e;margin:7px 0 6px; }
.event-university { display:flex;gap:6px;align-items:center;font-size:11px;line-height:1.4;color:#5d6b55;margin-top:2px; }
.event-university .university-brand { width:26px;height:29px;font-size:10px;border-radius:7px 7px 10px 10px; }
.event-aside { display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:8px;padding-left:2px; }
.event-avatars { display:flex;flex-direction:row-reverse; }
.event-avatar { width:21px;height:21px;margin-left:-7px;border-radius:50%;border:1.5px solid #fffdf7;background:#e8ead9;color:#66765d;font-size:9px;display:grid;place-items:center; }
.event-action { display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11px;font-weight:600;color:#6c7a58; }
.event-action>span:last-child { font-size:19px;line-height:1; }
.event-demo { display:block;margin-top:6px;font-size:9px;color:#93987f; }
.region-filters { display:flex;align-items:center;gap:8px;margin:-8px 0 14px;font-size:11px;flex-wrap:wrap; }
.region-reset { min-height:38px;border:1px solid #d3dcc7;border-radius:99px;background:#fffdf7;padding:6px 12px;color:#5c7250;font-size:11px; }
.university-arrow { margin-left:auto; }
.community-scene .country-heading h1 { font-size:19px;margin:0;letter-spacing:-.01em; }
.community-scene .country-heading p { max-width:none;font-size:11px;line-height:1.5;margin:4px 0 0;color:#78876c;letter-spacing:.02em;white-space:nowrap; }
@media(max-width:900px) {
 #countryContent .event-card { grid-template-columns:42px minmax(0,1fr) auto;gap:9px; }
 .event-thumb { display:none; }
}
@media(max-width:760px) {
 .region-node { min-height:40px;font-size:10px;padding:6px 10px; }
 .country-context #worldGlobe { touch-action:pan-y; }
 .university-node { min-width:52px;font-size:9px; }
 .community-scene .country-heading p { max-width:none;white-space:normal; }
}

.node-connections { position:absolute;inset:0;stroke:#899d7852;stroke-width:1;pointer-events:none; }
@media(max-width:760px) { .country-context .country-node-layer { top:32px; } }
@media(max-width:760px) {
 .community-scene .country-view,.community-scene .country-map-panel { position:static; }
 .community-scene .country-map-panel { min-height:0; }
 .community-scene .country-heading { position:absolute;top:36px;left:0;padding-top:0; }
 .country-context .globe-wrap { padding-top:105px; }
 .country-context .country-node-layer { top:105px; }
}
.country-node-layer { transition:top 640ms cubic-bezier(.65,0,.35,1); }
@media(prefers-reduced-motion:reduce) { .country-node-layer { transition:none; } }

/* 極小幅ではevent cardのavatar列を詰め、cardのmin-contentがviewportを超えないようにする。 */
@media(max-width:480px) {
 #countryContent .event-card { padding:10px;gap:8px;grid-template-columns:40px minmax(0,1fr) auto; }
 .event-avatars .event-avatar:nth-child(n+4) { display:none; }
 .event-avatar { width:19px;height:19px;margin-left:-6px; }
}
