:root {
  color-scheme: light;
  --green: #205545;
  --ink: #23352f;
  --muted: #4d6359;
  --line: #dce5dd;
  --paper: #f6f8f3;
  font-family: "Yu Gothic UI", "Hiragino Sans", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--green); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #9a5726;
  outline-offset: 3px;
}
button, select, input, textarea { font: inherit; }
.wrap { width: min(100% - 40px, 940px); margin-inline: auto; }
.skip { position: absolute; left: -1000px; }
.skip:focus { left: 10px; top: 8px; background: white; padding: 8px; z-index: 3; }
.demo-strip {
  display: flex; justify-content: center; gap: 12px; align-items: center;
  padding: 6px 12px; background: #173d33; color: #fff; font-size: .8rem;
}
.demo-strip span:first-child { font-weight: 700; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 78px; gap: 16px; }
.head-actions { display: flex; justify-content: flex-end; gap: 7px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 750; line-height: 1.37; }
.brand small { display: block; color: var(--muted); font-size: .77rem; }
.mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--green); color: white; font-weight: 750;
}
.status { padding: 9px 15px; border: 1px solid #b4c9bc; border-radius: 8px; text-decoration: none; font-weight: 650; text-align: center; }
main { padding-block: 30px 48px; min-height: 64vh; }
.hero {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  min-height: 200px; overflow: hidden; border: 1px solid #d7e7d9;
  padding: clamp(22px, 5vw, 45px); border-radius: 19px; background: linear-gradient(115deg,#e4efe4,#edf4e9);
}
.hero > div:first-child { z-index: 1; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.55rem, 4vw, 2.25rem); line-height: 1.35; margin-bottom: 12px; }
h2 { font-size: 1.21rem; line-height: 1.4; margin-bottom: 12px; }
.hero p:last-child { margin-bottom: 0; color: var(--muted); }
.eyebrow { font-size: .82rem; font-weight: 750; color: var(--green); margin-bottom: 8px; }
.paper-art { position: relative; width: 105px; height: 112px; flex: 0 0 auto; margin-inline: 20px 12px; transform: rotate(9deg); }
.paper-art::before, .paper-art::after {
  content: ""; position: absolute; inset: 0; border: 1px solid #8cad97; border-radius: 12px;
}
.paper-art::before { transform: rotate(-19deg) translate(-12px, 3px); background: #c9ddcb; }
.paper-art::after { background: #f5faf4; }
.paper-art i { display: block; position: relative; z-index: 1; height: 3px; margin: 11px 20px; background: #a5bfab; border-radius: 8px; }
.paper-art i:first-child { margin-top: 32px; width: 34px; background: #52836a; }
.tabs { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0; }
.tabs a { padding: 9px 15px; border: 1px solid var(--line); border-radius: 9px; background: white; text-decoration: none; font-weight: 650; }
.tabs a[aria-current] { background: var(--green); color: white; border-color: var(--green); }
.list-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-block: 24px 12px; }
.list-heading h2 { margin: 0; }
.list-heading label { font-size: .9rem; }
.list-heading select { margin-left: 5px; min-width: 115px; }
.bulletin, .panel { margin-bottom: 13px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 21px 24px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 7px; color: var(--muted); font-size: .83rem; }
.meta span { border-radius: 5px; padding: 1px 7px; background: #eaf1eb; }
.meta .important { background: #f9ecda; color: #7c451c; }
.bulletin h3 { margin: 0 0 3px; font-size: 1.07rem; }
.bulletin h3 a { display: flex; justify-content: space-between; align-items: center; min-height: 30px; gap: 12px; }
.bulletin h3 a span { font-size: 1.6rem; line-height: 1; }
.bulletin p, .muted { margin-bottom: 0; color: var(--muted); font-size: .94rem; }
.muted { margin-bottom: 10px; }
.restricted { padding: 26px; }
.button, button:not(.text-button) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 8px 17px; border: 1px solid var(--green); border-radius: 8px;
  background: var(--green); color: white; font-weight: 700; text-decoration: none; cursor: pointer;
}
button:not(.text-button):disabled { opacity: .55; cursor: default; }
button.secondary:not(.text-button) { background: white; color: var(--green); }
.back { display: inline-block; margin-bottom: 14px; }
.detail { padding: clamp(20px, 5vw, 36px); }
.file { margin-top: 25px; background: var(--paper); padding: 13px; border-radius: 8px; }
.file span { display: block; font-size: .85rem; color: var(--muted); }
.form-panel { max-width: 620px; padding: clamp(20px, 5vw, 34px); }
form label { display: block; margin: 13px 0 4px; font-weight: 650; }
input, select, textarea { min-height: 44px; border: 1px solid #aabfb1; border-radius: 7px; background: #fff; color: var(--ink); padding: 7px 10px; }
form select, form input, form textarea { width: 100%; }
.sample-check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.sample-check input { width: 1.1rem; min-height: 0; height: 1.1rem; accent-color: var(--green); }
textarea { resize: vertical; }
textarea:focus-visible { outline: 3px solid #9a5726; outline-offset: 3px; }
select:disabled { background: #f3f5f1; color: var(--muted); }
.hint { color: var(--muted); margin: 8px 0 12px; }
.text-button { color: var(--green); background: none; border: 0; padding: 7px; text-decoration: underline; cursor: pointer; }
.error { color: #93291d; font-weight: 650; margin-block: 13px 8px; }
.error:empty { min-height: 0; }
.board-hero { margin-bottom: 20px; }
.demo-role form { max-width: 440px; }
.board-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 36%); gap: 17px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.post-card h3, .replies h4 { margin: 8px 0; }
.replies { border-top: 1px solid var(--line); padding-top: 7px; margin-top: 18px; }
.reply { border-left: 3px solid var(--line); padding-left: 10px; margin: 10px 0; }
.confirmed { color: var(--green); font-weight: 700; margin: 12px 0 0; }
.roster { list-style: none; padding: 0; margin: 12px 0 0; }
.roster li { padding: 5px 0; border-top: 1px solid var(--line); }
.roster strong { display: inline-block; min-width: 3em; }
.assignment { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; align-items: end; }
.assignment label, .assignment p { grid-column: 1 / -1; margin-bottom: 0; }
.assignment .error:empty { display: none; }
footer { border-top: 1px solid var(--line); color: var(--muted); padding-block: 17px 27px; font-size: .84rem; }
footer span { margin-left: 8px; }
footer a { margin-left: 16px; }
.invite-card { padding: 16px; margin-top: 16px; background: #f6f8f3; border: 1px solid var(--line); border-radius: 9px; }
.invite-card img { display: block; max-width: 100%; height: auto; margin-bottom: 12px; background: #fff; }
.invite-card code { overflow-wrap: anywhere; }
@media (max-width: 530px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { min-height: 67px; }
  .status { padding-inline: 10px; }
  .head-actions .status { padding-inline: 6px; font-size: .81rem; }
  .hero { min-height: 0; }
  .paper-art { display: none; }
  .bulletin, .panel { padding-inline: 16px; }
}
@media (max-width: 690px) {
  .board-grid, .admin-grid { grid-template-columns: 1fr; }
}
