/* MRLAB site theme (resources/views/site/*) */
:root {
    --blue: #0e4a84;
    --blue-dark: #0a3764;
    --blue-soft: #eef3f9;
    --ink: #222;
    --text: #444;
    --muted: #777;
    --line: #ddd;
    --line-soft: #e9e9e9;
    --soft: #f6f6f6;
    --foot: #1b2337;
    --header-h: 80px;
    --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; color: var(--ink); font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 46px; height: 38px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text small { font-size: 12.5px; color: var(--muted); font-weight: 500; order: -1; }
.brand-text strong { font-size: 21px; font-weight: 700; color: var(--blue); letter-spacing: .01em; }

.nav { display: flex; align-items: stretch; height: 100%; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; }
.nav > ul > li { position: relative; display: flex; }
.nav a.nav-link {
    display: flex; align-items: center; padding: 0 22px; height: 100%;
    font-size: 17px; font-weight: 600; color: var(--ink);
    border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.nav a.nav-link:hover, .nav li.is-active > .nav-link { color: var(--blue); border-bottom-color: var(--blue); }
.nav .chev { display: none; }
.nav .sub {
    list-style: none; margin: 0; padding: 8px 0;
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 180px;
    background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--blue);
    display: none; text-align: center;
}
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
.nav .sub a { display: block; padding: 8px 18px; color: var(--text); font-size: 15px; white-space: nowrap; }
.nav .sub a:hover, .nav .sub a.is-active { color: var(--blue); font-weight: 600; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
    :root { --header-h: 64px; }
    .nav-toggle { display: block; }
    .nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; height: auto;
        background: #fff; display: none; overflow-y: auto; border-top: 1px solid var(--line);
    }
    body.nav-open .nav { display: block; }
    body.nav-open { overflow: hidden; }
    .nav > ul { flex-direction: column; height: auto; }
    .nav > ul > li { display: block; border-bottom: 1px solid var(--line-soft); }
    .nav a.nav-link { height: auto; padding: 16px 20px; border-bottom: 0; font-size: 17px; }
    .nav li.is-active > .nav-link { border-bottom: 0; }
    .nav .sub { display: block; position: static; transform: none; border: 0; padding: 0 0 10px; text-align: left; background: var(--soft); }
    .nav .sub a { padding: 10px 32px; }
}

/* ---------- Sub page top ---------- */
.sub-visual {
    position: relative; height: 220px; color: #fff;
    background: var(--blue) center 35% / cover no-repeat;
    display: flex; align-items: center;
}
.sub-visual::before { content: ""; position: absolute; inset: 0; background: rgba(10, 35, 70, .62); }
.sub-visual .wrap { position: relative; width: 100%; }
.sub-visual h1 { color: #fff; font-size: 38px; font-weight: 700; }
.sub-visual p { margin: 8px 0 0; font-size: 16px; color: rgba(255, 255, 255, .85); }
@media (max-width: 640px) { .sub-visual { height: 150px; } .sub-visual h1 { font-size: 28px; } .sub-visual p { font-size: 14px; } }

.location { border-bottom: 1px solid var(--line); background: #fff; }
.location .wrap { display: flex; align-items: center; height: 54px; gap: 4px; font-size: 14px; color: var(--muted); }
.location .home { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; margin-right: 8px; }
.location .home svg { width: 15px; height: 15px; }
.location .sep { margin: 0 8px; color: #bbb; }
.location .cur { color: var(--blue); font-weight: 600; }

.page-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 56px 0 28px; flex-wrap: wrap; }
.page-title-row h2 { font-size: 34px; font-weight: 700; }
.page-title-row .note { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .page-title-row { padding: 32px 0 20px; } .page-title-row h2 { font-size: 26px; } }

.tabs { display: flex; border-bottom: 2px solid var(--blue); margin-bottom: 40px; flex-wrap: wrap; }
.tabs a {
    min-width: 150px; text-align: center; padding: 13px 20px; font-size: 16px; color: var(--text);
    background: var(--soft); border: 1px solid var(--line); border-bottom: 0; margin-right: -1px;
}
.tabs a:hover { color: var(--blue); }
.tabs a.is-active { background: #fff; color: var(--blue); font-weight: 700; border: 2px solid var(--blue); border-bottom: 0; margin-bottom: -2px; padding-bottom: 15px; position: relative; z-index: 1; }
@media (max-width: 640px) { .tabs a { min-width: 0; flex: 1; padding: 11px 8px; font-size: 14.5px; } }

.page-body { padding-bottom: 96px; }
.section { padding: 72px 0; }
.section.alt { background: var(--soft); }
main { min-height: 50vh; }

/* Section title with short bar */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { font-size: 28px; font-weight: 700; position: relative; padding-top: 18px; }
.sec-head h2::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 3px; background: var(--blue); }
.plus {
    width: 36px; height: 36px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); flex: none; background: #fff;
}
.plus:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
.plus svg { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 26px; height: 48px;
    font-weight: 600; font-size: 15px; border: 1px solid transparent; border-radius: 0; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { border-color: #bbb; color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.tag { display: inline-block; font-size: 12.5px; padding: 1px 8px; border: 1px solid var(--line); color: var(--muted); line-height: 1.6; }
.tag.blue { border-color: var(--blue); color: var(--blue); }
.tag.major { border-color: var(--blue); background: var(--blue); color: #fff; }

/* ---------- Boxes ---------- */
.box { background: #fff; border: 1px solid var(--line); padding: 32px; }
.box > h3 { font-size: 20px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .box { padding: 24px 20px; } }

/* ---------- Home ---------- */
.carousel { position: relative; overflow: hidden; background: #111; aspect-ratio: 3 / 1; max-height: 560px; width: 100%; }
.carousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.carousel .slide.is-active { opacity: 1; z-index: 1; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel .ctrl {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 48px; height: 48px; border: 0; cursor: pointer;
    background: rgba(0, 0, 0, .35); color: #fff; display: grid; place-items: center;
}
.carousel .ctrl:hover { background: rgba(0, 0, 0, .6); }
.carousel .ctrl.prev { left: 0; } .carousel .ctrl.next { right: 0; }
.carousel .ctrl svg { width: 22px; height: 22px; }
.carousel .dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.carousel .dots button { width: 40px; height: 3px; border: 0; padding: 0; background: rgba(255, 255, 255, .45); cursor: pointer; }
.carousel .dots button.is-active { background: #fff; }
@media (max-width: 640px) { .carousel { aspect-ratio: 2 / 1; } .carousel .ctrl { width: 36px; height: 36px; } .carousel .dots button { width: 24px; } }

.intro { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.intro .wrap { display: grid; grid-template-columns: 340px 1fr; gap: 56px; }
.intro .kicker { font-size: 15px; color: var(--blue); font-weight: 600; margin-bottom: 10px; }
.intro h1 { font-size: 34px; font-weight: 700; line-height: 1.35; }
.intro .lead p { margin: 0 0 14px; font-size: 16.5px; }
.intro .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 900px) { .intro { padding: 48px 0; } .intro .wrap { grid-template-columns: 1fr; gap: 20px; } .intro h1 { font-size: 27px; } }

.news { color: var(--text); font-size: 15.5px; }
.news b, .news strong { color: var(--ink); }

.r-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-left: 1px solid var(--line); }
.r-item { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; color: var(--text); transition: background .15s; }
.r-item:hover { background: var(--blue); color: rgba(255, 255, 255, .85); }
.r-item:hover h3, .r-item:hover .num { color: #fff; }
.r-item .num { font-size: 14px; font-weight: 700; color: var(--blue); }
.r-item h3 { font-size: 18px; }
.r-item p { margin: 0; font-size: 14px; line-height: 1.6; }
@media (max-width: 1000px) { .r-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .r-grid { grid-template-columns: 1fr; } }

/* Board-style lists */
.board { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.board li { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.board .row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.board .t { color: var(--ink); font-weight: 500; }
.board .s { font-size: 14px; color: var(--muted); margin-top: 2px; }
.board .date { flex: none; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) { .board .row { flex-direction: column; gap: 2px; } }

/* ---------- Publications ---------- */
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub { padding: 18px 4px; border-bottom: 1px solid var(--line); }
.pub h4 { font-size: 16.5px; font-weight: 600; margin-bottom: 4px; }
.pub .venue { color: var(--blue); font-size: 15px; font-weight: 500; }
.pub .authors { font-size: 15px; color: var(--text); }
.pub .meta { font-size: 14px; color: var(--muted); }
.pub .tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

.filters { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; padding: 20px; background: var(--soft); border: 1px solid var(--line); }
.search { flex: 1; min-width: 220px; position: relative; }
.search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border: 1px solid #ccc; border-radius: 0; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--blue); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.seg { display: inline-flex; }
.seg button { border: 1px solid #ccc; margin-left: -1px; background: #fff; font: inherit; font-size: 14.5px; padding: 0 16px; height: 44px; color: var(--text); cursor: pointer; }
.seg button:first-child { margin-left: 0; }
.seg button.is-active { background: var(--blue); border-color: var(--blue); color: #fff; position: relative; z-index: 1; }
.result-count { font-size: 14.5px; color: var(--muted); margin: 18px 0 30px; }
.result-count b, .result-count span { color: var(--blue); font-weight: 700; }
.year-block { margin-bottom: 48px; }
.year-block > h2 { font-size: 26px; color: var(--ink); padding-bottom: 12px; border-bottom: 2px solid var(--ink); display: flex; align-items: baseline; gap: 10px; }
.year-block > h2 small { font-size: 14px; color: var(--muted); font-weight: 500; }
.cat-title { font-size: 15px; font-weight: 700; color: var(--blue); margin: 22px 0 0; padding: 8px 12px; background: var(--blue-soft); }
.empty { padding: 48px; text-align: center; color: var(--muted); border: 1px solid var(--line); background: var(--soft); }
@media (max-width: 640px) { .filters { padding: 14px; } .seg { width: 100%; } .seg button { flex: 1; padding: 0 6px; } }

/* ---------- Side TOC (research / publications) ---------- */
.with-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; border: 1px solid var(--line); }
.toc-title { font-size: 16px; font-weight: 700; color: #fff; background: var(--blue); padding: 14px 18px; }
.toc ul { list-style: none; margin: 0; padding: 6px 0; }
.toc a { display: block; padding: 9px 18px; color: var(--text); font-size: 15px; line-height: 1.45; }
.toc a:hover { color: var(--blue); }
.toc a.is-active { color: var(--blue); font-weight: 700; background: var(--blue-soft); }
.toc.years ul { display: grid; grid-template-columns: 1fr 1fr; }
.toc.years a { padding: 6px 18px; font-variant-numeric: tabular-nums; }
.toc.years a.is-empty { color: #ccc; pointer-events: none; }
@media (max-width: 900px) {
    .with-toc { grid-template-columns: 1fr; gap: 24px; }
    .toc { position: static; max-height: none; }
    .toc ul, .toc.years ul { display: flex; flex-wrap: wrap; padding: 10px; gap: 4px; }
    .toc a, .toc.years a { padding: 5px 10px; border: 1px solid var(--line); font-size: 14px; }
}

.topic { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.topic:last-child { border-bottom: 0; margin-bottom: 0; }
.topic h2 { font-size: 26px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); display: flex; gap: 12px; align-items: baseline; }
.topic h2 .num { font-size: 18px; color: var(--blue); }

/* Rich text from the admin editor (TinyMCE) */
.prose { color: var(--text); font-size: 16px; }
.prose p { margin: 0 0 12px; }
.prose img { max-width: 100% !important; height: auto !important; }
.prose iframe, .prose video { max-width: 100%; border: 0; }
.prose iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.prose table { max-width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.prose h1, .prose h2, .prose h3 { margin: 24px 0 12px; }
.prose * { font-family: inherit !important; }
.prose [style*="background-color"] { background-color: transparent !important; }

/* ---------- Members ---------- */
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.groups > .group { grid-column: 1 / -1; }
.groups > .group.solo { grid-column: auto; }
.groups > .group.solo .people { grid-template-columns: 1fr; }
@media (max-width: 900px) { .groups { grid-template-columns: 1fr; } }
.group { margin-bottom: 56px; }
.group:last-child { margin-bottom: 0; }
.group-title { font-size: 22px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.group-title::before { content: ""; width: 4px; height: 20px; background: var(--blue); }
.group-title small { font-size: 14px; color: var(--muted); font-weight: 500; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.person { display: flex; gap: 28px; padding: 22px; border: 1px solid var(--line); background: #fff; transition: border-color .15s; }
.person.is-link { cursor: pointer; }
.person:hover { border-color: #aaa; }
.person.is-link:hover { border-color: var(--blue); }
.person .photo { width: 140px; flex: none; aspect-ratio: 3 / 4; background: var(--soft); overflow: hidden; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.person .photo .initials { width: 100%; height: 100%; display: grid; place-items: center; font-size: 36px; font-weight: 700; color: #b5c2d3; background: #f0f3f7; }
.person .info { flex: 1; min-width: 0; padding-top: 4px; }
.person .name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.person h3 { font-size: 21px; color: var(--blue); }
.person .role { font-size: 14px; color: var(--blue); font-weight: 600; }
.person dl { margin: 0; display: grid; grid-template-columns: 64px 1fr; gap: 6px 12px; font-size: 14.5px; }
.person dt { color: var(--ink); font-weight: 600; }
.person dd { margin: 0; color: var(--text); min-width: 0; }
.person dd a:hover { text-decoration: underline; }
.person .desc { font-size: 14px; color: var(--muted); margin-top: 10px; }
.person .more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--blue); border: 1px solid var(--blue); padding: 4px 14px; }
.person .more:hover { background: var(--blue); color: #fff; }
.links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.links a { color: var(--blue); }
.links a:hover { text-decoration: underline; }
@media (max-width: 900px) { .people { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .person { gap: 16px; padding: 16px; } .person .photo { width: 96px; } .person h3 { font-size: 18px; } .person dl { grid-template-columns: 52px 1fr; font-size: 13.5px; } }

.alumni { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.alum { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.alum h4 { font-size: 16px; font-weight: 600; }
.alum .d { font-size: 14px; color: var(--muted); margin-top: 2px; }
.alum .contact { font-size: 14px; margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; color: var(--text); }
.alum .links { font-size: 14px; margin-top: 4px; }
@media (max-width: 900px) { .alumni { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .alumni { grid-template-columns: 1fr; } }

/* ---------- Patents / projects ---------- */
.table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 15px; }
.table th { background: var(--soft); color: var(--ink); font-weight: 600; padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.table td { padding: 15px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td.c { text-align: center; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .t { color: var(--ink); font-weight: 500; }
.table .s { font-size: 14px; color: var(--muted); margin-top: 2px; }
@media (max-width: 720px) {
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
    .table td { border: 0; padding: 2px 4px; }
    .table td.c { text-align: left; }
    .table td.no { display: none; }
}

/* ---------- About ---------- */
.info-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.info-table th { width: 200px; background: var(--soft); color: var(--ink); font-weight: 600; text-align: left; padding: 22px 24px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 16px; }
.info-table td { padding: 22px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table td a { color: var(--blue); }
.info-table td a:hover { text-decoration: underline; }
.contact-row + .contact-row { margin-top: 10px; }
.contact-row strong { color: var(--ink); margin-right: 10px; }
@media (max-width: 640px) {
    .info-table th, .info-table td { display: block; width: 100%; padding: 14px 16px; }
    .info-table th { border-bottom: 0; }
}
.link-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.link-list a { display: block; padding: 10px 14px; border: 1px solid var(--line); color: var(--ink) !important; text-decoration: none !important; }
.link-list a:hover { border-color: var(--blue); color: var(--blue) !important; }
@media (max-width: 640px) { .link-list { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--foot); color: #a5adbd; padding: 48px 0 40px; font-size: 14.5px; }
.site-footer a { color: #d5dae3; }
.site-footer a:hover { color: #fff; }
.foot-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot-name { color: #fff; font-size: 18px; font-weight: 700; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-info { line-height: 1.9; }
.foot-info span + span::before { content: "|"; margin: 0 12px; color: rgba(255, 255, 255, .25); }
.foot-copy { margin-top: 16px; font-size: 13px; color: #7d8699; }

.to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 52px; height: 52px;
    background: #fff; color: var(--ink); border: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center;
    font: inherit; font-size: 11px; font-weight: 700; line-height: 1;
    opacity: 0; visibility: hidden; transition: opacity .2s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top svg { width: 16px; height: 16px; margin-bottom: 2px; }
.to-top:hover { border-color: var(--blue); color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .carousel .slide { transition: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- News ---------- */
.box > h3 .plus { width: 30px; height: 30px; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.news-list li:first-child { padding-top: 0; }
.news-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.news-board { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.news-board li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 26px 8px; border-bottom: 1px solid var(--line); }
.news-board .no { text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-board .news { font-size: 16px; line-height: 1.8; }
.news-date { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
@media (max-width: 640px) { .news-board li { grid-template-columns: 1fr; gap: 4px; } .news-board .no { text-align: left; } }

/* ---------- Introduction ---------- */
.greeting { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.greeting-photo img { width: 100%; display: block; }
.greeting-body h3 { font-size: 26px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.greeting-body p { margin: 0 0 16px; font-size: 17px; line-height: 1.85; }
.sign { margin-top: 40px; text-align: right; }
.sign span { display: block; font-size: 15px; color: var(--muted); }
.sign strong { display: block; font-size: 24px; color: var(--ink); margin-top: 4px; letter-spacing: .02em; }
@media (max-width: 800px) { .greeting { grid-template-columns: 1fr; gap: 28px; } .greeting-photo { max-width: 200px; } }

.map-embed { margin-top: 16px; aspect-ratio: 16 / 9; max-height: 420px; width: 100%; border: 1px solid var(--line); background: var(--soft); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
