:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #17212c;
  --muted: #66717b;
  --paper: #ffffff;
  --soft: #f5f6f5;
  --line: #e2e5e5;
  --accent: #286a67;
  --accent-strong: #174d4a;
  --accent-soft: #e8f1ef;
  --warm: #d49a48;
}

[data-theme="education"] {
  --accent: #16736b;
  --accent-strong: #0d4c48;
  --accent-soft: #e7f2ed;
  --warm: #d79a48;
  --soft: #f5f6f0;
}

[data-theme="publishing"] {
  --accent: #27679a;
  --accent-strong: #183957;
  --accent-soft: #e9f0f6;
  --warm: #bd8b49;
  --soft: #f5f5f2;
}

[data-theme="ukm"] {
  --accent: #bd3044;
  --accent-strong: #143456;
  --accent-soft: #f8ecee;
  --warm: #d1a64c;
  --soft: #f2f5f8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: relative; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { width: min(1380px, calc(100% - 56px)); min-height: 88px; margin-inline: auto; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; background: var(--accent-strong); color: #fff; border-radius: 50%; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
[data-theme="ukm"] .brand-mark { border-radius: 12px 12px 12px 3px; background: var(--accent); }
.brand-text { display: grid; gap: 1px; }
.brand-text strong { font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: .02em; }
.brand-text small { color: var(--muted); font-size: 9px; letter-spacing: .18em; line-height: 1.3; }
.desktop-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(13px, 2vw, 30px); margin-left: auto; }
.nav-link, .nav-menu > summary { min-height: 88px; display: inline-flex; align-items: center; position: relative; cursor: pointer; color: #27323c; font-size: 15px; white-space: nowrap; list-style: none; }
.nav-menu > summary::-webkit-details-marker, .mobile-nav summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after, .nav-link::after { content: ""; position: absolute; height: 3px; width: 0; left: 0; bottom: 23px; background: var(--accent); transition: width .18s ease; }
.nav-menu[open] > summary::after, .nav-menu.active > summary::after, .nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-menu { position: relative; }
.nav-panel { position: absolute; top: 72px; left: -14px; min-width: 190px; padding: 9px; display: grid; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 32px #15283a1a; }
.nav-panel a { padding: 10px 12px; border-radius: 5px; color: #34414a; font-size: 14px; }
.nav-panel a:hover { background: var(--accent-soft); color: var(--accent-strong); }
.mobile-nav { display: none; margin-left: auto; }

.site-notice { padding: 9px 24px; text-align: center; color: #fff; background: var(--accent-strong); font-size: 13px; letter-spacing: .03em; }
.hero { padding: clamp(46px, 6vw, 78px) 0; background: linear-gradient(115deg, var(--soft), #fff 72%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr); gap: clamp(38px, 6vw, 88px); align-items: center; }
.hero-copy { padding-block: 12px; }
.eyebrow { margin: 0 0 15px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 640px; margin-bottom: 22px; color: var(--accent-strong); font-size: clamp(37px, 4.3vw, 60px); line-height: 1.22; letter-spacing: -.035em; }
.hero-lead { max-width: 590px; margin-bottom: 29px; color: #52616b; font-size: 16px; line-height: 1.95; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 4px; font-weight: 650; font-size: 14px; transition: background .18s ease, transform .18s ease; }
.button:hover { background: var(--accent-strong); transform: translateY(-1px); }
.button-secondary { color: var(--accent-strong); background: #fff; border-color: #cbd3d4; }
.button-secondary:hover { color: #fff; border-color: var(--accent-strong); }
.hero-visual { position: relative; margin: 0; padding: 0; }
.hero-visual img { width: 100%; height: clamp(330px, 37vw, 490px); object-fit: cover; border-radius: 5px; box-shadow: 0 22px 60px #182f3a20; }
[data-theme="education"] .hero-visual img { object-position: center 38%; }
[data-theme="ukm"] .hero-visual img { object-position: center; }
.hero-visual figcaption { position: absolute; right: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 7px 10px; color: #fff; background: #132a39d9; border-radius: 3px; font-size: 11px; }

.home-section { padding-block: 76px; }
.section-heading { margin-bottom: 28px; }
.section-heading h2, .statement h2 { margin-bottom: 10px; color: var(--accent-strong); font-size: clamp(28px, 3vw, 40px); line-height: 1.3; letter-spacing: -.025em; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.info-card { min-height: 220px; padding: 25px 25px 21px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); box-shadow: 0 10px 28px #1d2a3310; }
.card-number { display: inline-block; margin-bottom: 23px; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.info-card h3, .news-card h3 { margin-bottom: 10px; color: #26333c; font-size: 19px; line-height: 1.5; }
.info-card p, .news-card p { margin-bottom: 18px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.card-title:hover, .card-more:hover, .text-link:hover { color: var(--accent); }
.card-more, .text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-strong); font-size: 13px; font-weight: 700; }
.card-more::after, .text-link::after { content: "↗"; color: var(--accent); }
.statement { padding: 65px 0; color: #fff; background: var(--accent-strong); }
.statement-inner { max-width: 1180px; }
.statement .eyebrow { color: #d5e5e7; }
.statement h2 { max-width: 760px; color: #fff; }
.statement p:not(.eyebrow) { max-width: 780px; margin-bottom: 18px; color: #e2e9ea; line-height: 1.9; }
.statement .text-link { color: #fff; }
.statement .text-link::after { color: var(--warm); }
.row-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-card { min-height: 210px; padding: 23px; background: var(--soft); border: 1px solid var(--line); }
.news-card time { display: inline-block; margin-bottom: 12px; color: var(--accent); font-size: 12px; font-weight: 650; }

.page-main { padding-top: 25px; padding-bottom: 82px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 34px; color: #7b858b; font-size: 12px; }
.breadcrumb a:hover { color: var(--accent); }
.page-heading { max-width: 850px; margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.page-heading h1 { margin-bottom: 13px; color: var(--accent-strong); font-size: clamp(34px, 4vw, 52px); line-height: 1.25; letter-spacing: -.03em; }
.page-heading > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.content-section { max-width: 920px; margin-bottom: 48px; scroll-margin-top: 28px; }
.content-section h2 { margin-bottom: 16px; color: var(--accent-strong); font-size: 25px; line-height: 1.4; }
.content-section > p { margin-bottom: 15px; color: #515f68; font-size: 15px; line-height: 1.95; }
.content-section .card-grid { margin-top: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-section .info-card { min-height: 185px; }
.check-list { display: grid; gap: 10px; padding-left: 22px; color: #515f68; line-height: 1.8; }
.check-list li::marker { color: var(--accent); }
.steps { display: grid; gap: 0; margin: 22px 0 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 15px; align-items: start; padding: 17px 0; border-bottom: 1px solid var(--line); color: #4b5962; line-height: 1.8; }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li span { color: var(--accent); font-size: 13px; font-weight: 750; }
.notice { margin-top: 19px; padding: 17px 20px; background: var(--accent-soft); border-left: 4px solid var(--accent); }
.notice span { display: block; margin-bottom: 6px; color: var(--accent-strong); font-size: 12px; font-weight: 750; }
.notice p { margin: 0; color: #4e5d64; font-size: 14px; line-height: 1.8; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 18px; }
.download-list { display: grid; border-top: 1px solid var(--line); }
.download-list a { display: flex; justify-content: space-between; gap: 20px; padding: 15px 2px; border-bottom: 1px solid var(--line); color: var(--accent-strong); }
.download-list a:hover { color: var(--accent); }
.download-list span { color: var(--accent); font-size: 19px; }
.content-photo { margin: 20px 0 8px; }
.content-photo img { width: min(100%, 800px); max-height: 470px; object-fit: cover; border-radius: 4px; }
.article-main { max-width: 920px; }
.article-body { max-width: 780px; margin-inline: auto; }
.article-body > p { color: #4e5c64; font-size: 16px; line-height: 2; }
.article-body .notice { margin-bottom: 27px; }
.article-back { margin-top: 36px; }

.site-footer { padding: 38px 0 17px; color: #dfe6e8; background: #122533; }
.footer-inner, .footer-bottom { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: start; padding-bottom: 25px; }
.footer-brand { color: #fff; font-size: 17px; font-weight: 700; }
.footer-inner p { max-width: 690px; margin: 8px 0 0; color: #c2cdd0; font-size: 12px; line-height: 1.8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: #eef2f2; font-size: 13px; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 13px; border-top: 1px solid #ffffff2b; color: #aebdc1; font-size: 11px; }

@media (max-width: 1040px) {
  .header-inner { width: min(100% - 36px, 1380px); gap: 18px; }
  .desktop-nav { gap: 13px; }
  .brand-text strong { font-size: 17px; }
  .nav-link, .nav-menu > summary { font-size: 13px; }
}

@media (max-width: 820px) {
  .wrap { width: min(100% - 36px, 680px); }
  .header-inner { min-height: 75px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav > summary { display: flex; align-items: center; gap: 9px; padding: 11px 0 11px 10px; color: var(--accent-strong); cursor: pointer; list-style: none; font-size: 14px; }
  .mobile-nav nav { position: absolute; top: calc(100% + 12px); right: -2px; width: min(88vw, 360px); max-height: min(75vh, 620px); overflow: auto; padding: 10px; display: grid; gap: 1px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 36px #14293a24; }
  .mobile-nav .nav-link, .mobile-nav .nav-menu > summary { min-height: 45px; width: 100%; padding: 10px 12px; border-radius: 4px; font-size: 14px; }
  .mobile-nav .nav-menu > summary::after, .mobile-nav .nav-link::after { display: none; }
  .mobile-nav .nav-menu[open] > summary, .mobile-nav .nav-link:hover { background: var(--accent-soft); }
  .mobile-nav .nav-panel { position: static; min-width: 0; padding: 0 0 5px 13px; border: 0; box-shadow: none; }
  .mobile-nav .nav-panel a { display: block; }
  .hero { padding: 38px 0 45px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual img { height: min(62vw, 430px); min-height: 260px; }
  .hero h1 { max-width: 700px; font-size: clamp(34px, 8vw, 52px); }
  .home-section { padding-block: 54px; }
  .card-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .info-card { min-height: 190px; }
  .page-main { padding-bottom: 58px; }
}

@media (max-width: 560px) {
  .header-inner { width: calc(100% - 28px); }
  .brand { gap: 9px; }
  .brand-mark { width: 37px; height: 37px; font-size: 10px; }
  .brand-text strong { max-width: 220px; font-size: 15px; }
  .brand-text small { font-size: 8px; }
  .wrap, .footer-inner, .footer-bottom { width: calc(100% - 32px); }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: 35px; }
  .hero-lead { font-size: 14px; }
  .hero-visual img { min-height: 235px; border-radius: 3px; }
  .action-row { align-items: stretch; }
  .action-row .button { flex: 1 1 170px; }
  .card-grid, .news-grid, .content-section .card-grid { grid-template-columns: 1fr; }
  .info-card { min-height: 0; padding: 21px; }
  .card-number { margin-bottom: 13px; }
  .statement { padding: 48px 0; }
  .statement h2, .section-heading h2 { font-size: 29px; }
  .row-heading { align-items: start; flex-direction: column; }
  .page-main { padding-top: 18px; }
  .breadcrumb { margin-bottom: 25px; }
  .page-heading { margin-bottom: 34px; padding-bottom: 25px; }
  .page-heading h1 { font-size: 36px; }
  .page-heading > p:last-child { font-size: 14px; }
  .content-section { margin-bottom: 38px; }
  .content-section h2 { font-size: 22px; }
  .footer-inner, .footer-bottom { flex-direction: column; }
  .footer-links { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
