:root {
  color-scheme: light;
  --bg: #f7f8f4;
  --paper: #fffefa;
  --ink: #2c3930;
  --muted: #65715f;
  --line: #dfe5db;
  --green: #345941;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.9 "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid #70966d; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.site-header { height: 104px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 21px; font-weight: 600; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 38px; background: var(--green); color: var(--paper); border-radius: 10px 3px 3px 10px; font: 20px Georgia, serif; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border: 0; border-radius: 8px; background: var(--green); color: white; text-decoration: none; font: inherit; font-weight: 600; line-height: 1.6; cursor: pointer; }
.button:hover { background: #264831; text-decoration: none; }
.button-small { padding: 10px 23px; font-size: 13px; }
.eyebrow { color: #63775c; font-size: 11px; letter-spacing: .15em; font-weight: 600; }

/* ログイン前の入口は、利用区分を意識せず使える共通の案内にする。 */
.entry-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.entry-page .site-header { width: min(980px, calc(100% - 80px)); flex-shrink: 0; }
.entry-main { flex: 1; display: grid; place-items: center; padding-block: 26px 48px; }
.entry-card { width: min(540px, 100%); padding: 45px 48px 42px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 36px #354b3206; }
.entry-accent { display: block; width: 30px; height: 3px; margin-bottom: 26px; background: #90a183; }
.entry-card h1 { font-size: 32px; line-height: 1.8; letter-spacing: -.035em; }
.entry-description { margin-top: 20px; color: var(--muted); font-size: 14px; line-height: 2; }
.entry-card form { margin: 0; }
.entry-button { width: 100%; margin-top: 31px; padding: 15px 18px; font-size: 14px; }
.entry-hint { margin-top: 15px; color: var(--muted); font-size: 12px; text-align: center; }
.entry-error { margin-top: 18px; color: #963d32; font-size: 13px; }
.entry-footer { padding-block: 15px 29px; text-align: center; color: var(--muted); font-size: 11px; }
.entry-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 12px; }
.entry-footer a { color: var(--muted); text-decoration: none; }
.entry-footer a:hover { text-decoration: underline; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0; display: grid; grid-template-columns: 1fr auto; gap: 20px; font-size: 12px; color: var(--muted); }
.site-footer strong { font-size: 15px; color: var(--ink); }
.site-footer p { margin-top: 8px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; align-content: start; }
.site-footer small { grid-column: 1/-1; font-size: 11px; }
.policy { max-width: 790px; margin: 35px auto 65px; }
.policy header { padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 35px; }
.policy h1 { font-size: 32px; margin: 14px 0 10px; }
.policy-date { color: var(--muted); font-size: 12px; margin-bottom: 26px; }
.policy section { margin: 30px 0; }
.policy h2 { font-size: 20px; margin-bottom: 13px; }
.policy p, .policy li { font-size: 14px; line-height: 2.05; }
.policy p + p { margin-top: 12px; }
.policy ul { padding-left: 1.5em; margin: 12px 0; }
.policy li + li { margin-top: 8px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 8px 20px; background: var(--paper); }
.skip-link:focus { top: 12px; }
@media (max-width: 760px) {
  .wrap, .entry-page .site-header { width: calc(100% - 40px); }
  .site-header { height: 80px; }
  .entry-main { padding-block: 14px 32px; }
  .entry-card { padding: 32px 26px; }
  .entry-card h1 { font-size: 28px; }
  .entry-description { font-size: 13px; }
  .entry-hint { font-size: 11px; }
  .entry-footer nav { gap: 8px 18px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { gap: 12px 20px; }
  .policy { margin: 22px auto 40px; }
  .policy h1 { font-size: 26px; }
  .policy h2 { font-size: 19px; }
}
@media (max-width: 400px) { .wide-break { display: none; } }
@media (prefers-reduced-motion: no-preference) { a, button { transition: background-color .15s ease; } }
