:root { --ink: #29392e; --paper: #f7f7f2; --line: #dce0d4; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.8 -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; }
a { color: inherit; text-underline-offset: 5px; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid #698151; outline-offset: 4px; }
.base-header, .base-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1240px; width: calc(100% - 80px); margin: auto; padding-block: 25px; }
.base-header { border-bottom: 1px solid var(--line); }
.base-header nav { display: flex; gap: 30px; font-size: 12px; }
.base-header a, .base-footer a { text-decoration: none; }
.base-logo { font-weight: 700; font-size: 25px; letter-spacing: -.04em; }
.base-logo span { font-size: 11px; vertical-align: top; padding-left: 5px; }
.base-main { max-width: 1160px; width: calc(100% - 80px); margin: 60px auto 90px; min-height: 55vh; }
.base-title { margin-bottom: 35px; }
.base-title h1 { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 500; font-size: clamp(28px, 4.5vw, 53px); line-height: 1.5; }
.eyebrow { font-size: 10px; letter-spacing: .16em; color: #697a60; }
.base-footer { border-top: 1px solid var(--line); font-size: 12px; }
.base-footer small { color: #65715f; }
.skip-link { position: absolute; left: 20px; top: -80px; padding: 15px; background: var(--ink); color: white; }
.skip-link:focus { top: 10px; }
.portal-intro { font-size: 15px; color: #62705c; margin-bottom: 45px; }
.portal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.portal-card { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); text-decoration: none; min-height: 260px; background: #eef0e5; }
.portal-card:first-child { background: #354735; color: #f2f4e8; }
.portal-card .eyebrow { color: inherit; opacity: .7; }
.portal-card h2 { font-family: "Yu Mincho", serif; font-weight: 500; font-size: 26px; margin: 20px 0 14px; }
.portal-card p:not(.eyebrow) { font-size: 12px; opacity: .8; }
.portal-card > span { margin-top: auto; padding-top: 25px; font-size: 20px; text-align: right; }
.portal-card:hover { border-color: #667b4b; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { border-bottom: 1px solid var(--line); padding: 15px 12px; text-align: left; }
th { background: #edf0e3; white-space: nowrap; }
td a { white-space: nowrap; }
form label { display: block; }
input:not([type="checkbox"]):not([type="hidden"]), textarea { width: 100%; max-width: 850px; padding: 12px 14px; border: 1px solid #cdd5c3; background: white; color: var(--ink); }
textarea { resize: vertical; line-height: 1.8; }
button, .button { display: inline-block; border: 1px solid var(--ink); background: var(--ink); color: white; padding: 12px 25px; text-decoration: none; cursor: pointer; }
[role="alert"] { border-left: 3px solid #ad563e; background: #f7e7de; padding: 18px; }
.error-page { padding-block: 30px; }
.error-page a { margin-right: 25px; }
.admin-pagination { display: flex; gap: 25px; align-items: center; margin-top: 30px; }
@media(max-width: 760px) { .base-header, .base-footer, .base-main { width: calc(100% - 40px); } .base-header { flex-wrap: wrap; gap: 10px; } .base-header nav { font-size: 11px; gap: 20px; } .base-main { margin-block: 35px 60px; } .portal-grid { grid-template-columns: 1fr; } .portal-card { min-height: 225px; } .admin-article-list { overflow-x: auto; } input, textarea { font-size: 16px; } td, th { min-width: 80px; } td:first-child { min-width: 240px; } }
