:root {
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --ink: #282724;
  --muted: #68645d;
  --line: #a9a398;
  --line-dark: #716b60;
  --paper: #fffefb;
  --paper-soft: #f4f1e9;
  --sky: #dceff6;
  --earth: #dcc9ad;
  --pink: #eaa3b3;
  --accent: #733b47;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: linear-gradient(180deg, var(--sky) 0 48%, var(--earth) 75% 100%); }
body, button, input, textarea, select { font-family: var(--font); }
body { min-width: 320px; min-height: 100svh; margin: 0; color: var(--ink); background: linear-gradient(180deg, var(--sky) 0 48%, var(--earth) 75% 100%) fixed; font-size: 14px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: #234e7b; text-underline-offset: 3px; }
img { max-width: 100%; }
button { color: inherit; }
[hidden] { display: none !important; }

.petal-canvas { position: fixed; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; }
.page-wrap { position: relative; z-index: 1; width: min(calc(100% - 28px), var(--max-width)); min-height: calc(100svh - 32px); margin: 16px auto; display: flex; flex-direction: column; background: rgba(255,254,251,.96); border: 1px solid var(--line-dark); box-shadow: 0 3px 14px rgba(63,51,38,.16); }

.site-header { background: var(--paper); }
.header-main { min-height: 82px; padding: 14px clamp(16px, 3vw, 34px); display: flex; justify-content: space-between; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.site-logo { display: inline-flex; flex-direction: column; color: var(--ink); font-size: clamp(21px, 2.2vw, 29px); font-weight: 700; line-height: 1.25; letter-spacing: .08em; text-decoration: none; white-space: nowrap; }
.site-logo small { color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: .16em; }
.header-note { margin: 0; color: var(--muted); font-size: 11px; text-align: right; }
.global-tabs { display: flex; min-height: 43px; padding: 0 clamp(10px, 2vw, 24px); border-bottom: 1px solid var(--line-dark); background: #e9e5dc; }
.global-tabs a { min-width: 120px; padding: 10px 22px 8px; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; }
.global-tabs a:first-child { border-left: 1px solid var(--line); }
.global-tabs a[aria-current="page"] { position: relative; margin-top: 5px; padding-top: 5px; border-top: 2px solid var(--accent); background: var(--paper); font-weight: 700; }
.global-tabs a[aria-current="page"]::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--paper); }

.content-area { flex: 1; padding: clamp(18px, 3vw, 34px); }
.breadcrumb { margin: 0 0 14px; color: var(--muted); font-size: 10px; }
.breadcrumb a { color: inherit; }
.page-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 13px; border-bottom: 3px double var(--line-dark); }
.page-title-row h1 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.35; font-weight: 700; letter-spacing: .03em; }
.page-title-row p { margin: 0; color: var(--muted); font-size: 11px; }

.home-grid { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 22px; }
.content-tabs { min-width: 0; border: 1px solid var(--line-dark); background: var(--paper); }
.tab-list { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line-dark); background: #e7e3da; }
.tab-list button { flex: 1; min-width: 110px; min-height: 42px; padding: 8px 13px; border: 0; border-right: 1px solid var(--line); background: transparent; font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.tab-list button:last-child { border-right: 0; }
.tab-list button[aria-selected="true"] { position: relative; background: var(--paper); color: var(--accent); font-weight: 700; }
.tab-list button[aria-selected="true"]::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--paper); }
.tab-panel { min-height: 390px; max-height: 52svh; padding: clamp(18px, 2.5vw, 28px); overflow: auto; }
.tab-panel h2 { margin: 0 0 15px; font-size: 20px; line-height: 1.5; }
.tab-panel > p { margin: 0 0 15px; }
.tab-panel .more-link { display: inline-block; margin-top: 8px; padding: 7px 14px; border: 1px solid var(--line-dark); color: var(--ink); background: var(--paper-soft); font-size: 11px; font-weight: 600; text-decoration: none; }
.compact-list { margin: 0; padding: 0; list-style: none; }
.compact-list li { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 9px 0; border-bottom: 1px dotted var(--line); font-size: 12px; }
.compact-list li:last-child { border-bottom: 0; }
.compact-list time, .compact-list strong { color: var(--accent); font-weight: 600; }
.profile-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.profile-table th, .profile-table td { padding: 9px 11px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.profile-table th { width: 9em; background: var(--paper-soft); white-space: nowrap; }

.side-column { display: flex; flex-direction: column; gap: 15px; }
.side-box { border: 1px solid var(--line-dark); background: var(--paper); }
.side-box h2 { margin: 0; padding: 8px 11px; border-bottom: 1px solid var(--line-dark); background: #e7e3da; font-size: 12px; }
.side-box ul { margin: 0; padding: 8px 11px; list-style: none; }
.side-box li + li { border-top: 1px dotted var(--line); }
.side-box a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 3px; color: var(--ink); font-size: 11px; text-decoration: none; }
.side-box p { margin: 0; padding: 12px 14px; color: var(--muted); font-size: 11px; }
.side-box .dream { color: var(--ink); font-size: 12px; line-height: 1.9; }

.sub-tabs { display: flex; flex-wrap: wrap; gap: 0; margin: 18px 0; border: 1px solid var(--line-dark); background: #e7e3da; }
.sub-tabs a { flex: 1; min-width: 112px; padding: 8px 12px; border-right: 1px solid var(--line); color: var(--ink); font-size: 11px; text-align: center; text-decoration: none; }
.sub-tabs a:last-child { border-right: 0; }
.sub-tabs a[aria-current="page"] { background: var(--paper); color: var(--accent); font-weight: 700; }

.article-box { padding: clamp(18px, 3vw, 34px); border: 1px solid var(--line-dark); background: var(--paper); }
.article-box h2 { margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 19px; }
.article-box h3 { margin: 24px 0 8px; font-size: 15px; }
.article-box p { margin: 0 0 14px; }
.article-box .lead { font-size: 16px; line-height: 2; }
.article-box ol, .article-box ul { margin: 10px 0; padding-left: 1.7em; }
.article-box li { margin: 5px 0; }
.business-list { counter-reset: business; margin: 0 !important; padding: 0 !important; list-style: none; }
.business-list li { counter-increment: business; display: grid; grid-template-columns: 2.3em 1fr; gap: 8px; margin: 0; padding: 8px 5px; border-bottom: 1px dotted var(--line); font-size: 12px; }
.business-list li::before { content: counter(business) "."; color: var(--accent); font-weight: 700; }
.history-list { margin: 0; padding: 0; list-style: none; }
.history-list li { display: grid; grid-template-columns: 8em 1fr; gap: 18px; margin: 0; padding: 10px 5px; border-bottom: 1px dotted var(--line); }
.history-list time { color: var(--accent); font-weight: 700; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.project-card { padding: 16px; border: 1px solid var(--line); background: var(--paper-soft); }
.project-card .year { margin: 0 0 5px; color: var(--accent); font-size: 10px; font-weight: 700; }
.project-card h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 15px; }
.project-card p { margin: 0; color: var(--muted); font-size: 11px; }
.notice { padding: 18px; border: 1px solid var(--line); background: var(--paper-soft); }
.policy-nav { columns: 2; column-gap: 40px; }
.policy-nav li { break-inside: avoid; }

.site-footer { padding: 15px clamp(16px, 3vw, 34px); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px 36px; border-top: 1px solid var(--line-dark); background: #e9e5dc; }
.site-footer p { margin: 0; color: var(--muted); font-size: 10px; }
.footer-nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px 20px; }
.footer-nav a { color: var(--ink); font-size: 10px; }
.footer-nav a.external::after { content: " ↗"; }

@media (max-width: 820px) {
  .page-wrap { width: min(calc(100% - 16px), var(--max-width)); margin: 8px auto; }
  .header-main { min-height: 70px; }
  .header-note { display: none; }
  .global-tabs { padding: 0; }
  .global-tabs a { min-width: 0; flex: 1; padding-inline: 8px; font-size: 11px; }
  .home-grid { grid-template-columns: 1fr; }
  .side-column { display: grid; grid-template-columns: repeat(2, 1fr); }
  .tab-panel { max-height: none; }
  .project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 13px; }
  .header-main { min-height: 62px; padding-block: 10px; }
  .site-logo { font-size: 19px; }
  .global-tabs a { font-size: 10px; }
  .content-area { padding: 14px; }
  .page-title-row { align-items: flex-start; flex-direction: column; gap: 5px; }
  .page-title-row h1 { font-size: 23px; }
  .tab-list button { min-width: 100px; }
  .tab-panel { min-height: 360px; padding: 17px; }
  .side-column { grid-template-columns: 1fr; }
  .compact-list li, .history-list li { grid-template-columns: 1fr; gap: 1px; }
  .sub-tabs a { min-width: 50%; border-bottom: 1px solid var(--line); }
  .profile-table th { width: 6.5em; }
  .site-footer { grid-template-columns: 1fr; gap: 9px; }
  .footer-nav { justify-content: flex-start; gap: 7px 14px; }
  .policy-nav { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .petal-canvas { opacity: .8; }
}
