:root {
  --bg: #eef4f1;
  --panel: #ffffff;
  --panel-hover: #e4f0eb;
  --border: #cfe0d8;
  --text: #1a2b24;
  --muted: #5a7268;
  --accent: #2f8f72;
  --accent-dim: #247a61;
  --accent-soft: #dff0ea;
  --danger: #c44d4d;
  --warn: #c98a20;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(26, 43, 36, 0.06);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo,
    -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --header-h: 64px;
  --aside-w: 300px;
  --max-w: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  overflow-x: auto;
  padding: 0.25rem 0;
}

.header-nav a {
  color: var(--muted);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.header-nav a:hover,
.header-nav a.is-active {
  background: var(--accent-soft);
  color: var(--accent-dim);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.contact-pill {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-wrap {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
}

.page-head {
  margin-bottom: 1.25rem;
}

.page-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.page-head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 52rem;
}

.hero-panel {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
  position: relative;
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 2.4 / 1;
  object-fit: cover;
  min-height: 220px;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(transparent, rgba(26, 43, 36, 0.72));
  color: #fff;
}

.hero-caption h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.hero-caption p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.92;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
}

.kpi-card .kpi-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-card .kpi-value {
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 0.3rem;
  letter-spacing: -0.03em;
}

.kpi-card .kpi-hint {
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 0.25rem;
}

.dashboard-columns {
  display: grid;
  grid-template-columns: 1fr var(--aside-w);
  gap: 1.25rem;
  align-items: start;
}

.column-primary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.column-aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
}

.panel h3 {
  margin: 1rem 0 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.panel p {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.panel p:last-child {
  margin-bottom: 0;
}

.panel ul.prose {
  list-style: disc;
  margin: 0 0 0.75rem 1.1rem;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.panel ul.prose li {
  margin: 0.35rem 0;
}

.panel ol.prose {
  list-style: decimal;
  margin: 0 0 0.75rem 1.15rem;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.panel ol.prose li {
  margin: 0.35rem 0;
}

.note-box {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 0.85rem 0 0;
}

.media-row figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.media-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-row figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.45rem 0.6rem;
  background: var(--bg);
}

.bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.bento figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.bento img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento .bento-large {
  grid-row: span 2;
}

.media-feature {
  margin: 0.85rem 0 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.media-feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  display: flex;
  gap: 0.55rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}

.checklist li:last-child {
  border-bottom: 0;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.dot.ok {
  background: var(--accent);
}

.dot.wait {
  background: var(--warn);
}

.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.topic-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.topic-list li:last-child {
  border-bottom: 0;
}

.topic-list .badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-dim);
}

.aside-photo {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.aside-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.aside-photo p {
  margin: 0;
  padding: 0.55rem 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--bg);
}

.quick-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.quick-stat:last-child {
  border-bottom: 0;
}

.quick-stat strong {
  color: var(--text);
}

.privacy-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--panel);
  padding: 1rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .dashboard-columns {
    grid-template-columns: 1fr;
  }

  .column-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .column-aside .aside-photo {
    grid-column: span 2;
  }

  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .bento .bento-large {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 1rem;
  }

  .header-nav {
    order: 3;
    width: 100%;
  }

  .kpi-strip {
    grid-template-columns: 1fr;
  }

  .media-row {
    grid-template-columns: 1fr;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento .bento-large {
    grid-column: span 1;
  }

  .column-aside {
    grid-template-columns: 1fr;
  }

  .privacy-columns {
    grid-template-columns: 1fr;
  }

  .hero-panel img {
    aspect-ratio: 16 / 10;
  }
}
