﻿:root {
  color-scheme: light;
  --ink: #15231d;
  --muted: #5f6f68;
  --soft: #faf4ea;
  --line: #e4d8c9;
  --green: #2f6f57;
  --green-dark: #163d2e;
  --red: #c94135;
  --gold: #c6923a;
  --paper: #ffffff;
  --shadow: 0 18px 44px rgba(26, 55, 43, 0.12);
  font-family: "Noto Sans SC", "Noto Sans JP", "Hiragino Sans", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(42, 127, 98, 0.12), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, #f5faf7 46%, #ffffff 100%);
  color: var(--ink);
}

body.publish-page {
  background:
    radial-gradient(circle at 80% 0%, rgba(42, 127, 98, 0.1), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, #eef7f2 48%, #ffffff 100%);
}

body.publish-page .topbar nav a.cta,
body.publish-page .topbar .nav a.cta {
  background: var(--green) !important;
  color: #fff !important;
  border-color: var(--green) !important;
  box-shadow: 0 8px 18px rgba(47, 111, 87, 0.2) !important;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 231, 224, 0.85);
}

.topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 8px 22px rgba(27, 88, 65, 0.12);
}

.brand strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.brand span span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #334940;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nav .cta,
.button.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 8px 18px rgba(47, 111, 87, 0.2);
}

.article-hero {
  padding: 30px 0 16px;
}

.article-hero .site-shell {
  width: min(900px, calc(100% - 32px));
}

.hero-card,
.content-card,
.side-card,
.list-card,
.publish-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  border-radius: 22px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero-card {
  padding: clamp(24px, 3.2vw, 34px);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.crumb .button {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--green);
  font-size: 14px;
}

.crumb .button + .button {
  display: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(47, 111, 87, 0.2);
  border-radius: 999px;
  color: var(--green-dark);
  background: #f7fbf8;
  font-size: 13px;
  font-weight: 800;
}

h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: balance;
  word-break: keep-all;
}

.date {
  display: inline-flex;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
  align-items: start;
  padding-bottom: 46px;
}

.page-grid .side-card {
  display: none;
}

.content-card {
  padding: clamp(24px, 4vw, 44px);
}

.article-body {
  font-size: 18px;
  line-height: 2;
  color: #263b33;
}

.article-body p {
  margin: 0 0 1.2em;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.side-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.side-card h2,
.publish-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.side-card p,
.publish-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.side-actions {
  display: grid;
  gap: 10px;
}

.list-hero {
  padding: 46px 0 18px;
}

.list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(26px, 4vw, 40px);
}

.list-head p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.article-list {
  display: grid;
  gap: 12px;
  padding-bottom: 48px;
}

.list-card {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.list-card:hover,
.list-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(26, 55, 43, 0.16);
  outline: none;
}

.list-card time {
  color: var(--green);
  font-weight: 800;
}

.list-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.35;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.list-card span {
  color: #0c63d4;
  font-weight: 800;
  white-space: nowrap;
}

.publish-layout {
  padding: 46px 0 56px;
}

.publish-card {
  padding: clamp(26px, 4vw, 42px);
}

.publish-steps {
  display: grid;
  gap: 14px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.publish-steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbf9;
}

.publish-steps b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
}

.publish-steps strong {
  display: block;
  margin-bottom: 4px;
}

.publish-steps span {
  color: var(--muted);
  line-height: 1.7;
}

footer {
  padding: 28px 0 34px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 820px) {
  .topbar {
    position: static;
    padding-top: 12px;
  }

  .topbar-inner {
    min-height: auto;
    padding: 0 0 12px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .brand {
    width: auto;
    height: auto;
    max-width: 100%;
    min-width: 0;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .brand strong {
    font-size: 20px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 6px;
    padding-bottom: 0;
  }

  .page-grid {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }

  .list-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-shell {
    width: calc(100vw - 22px);
    max-width: calc(100vw - 22px);
  }

  .nav a,
  .button {
    min-height: 36px;
    padding: 0 8px;
    font-size: 12px;
  }

  .article-hero,
  .list-hero,
  .publish-layout {
    padding-top: 20px;
  }

  .hero-card,
  .content-card,
  .side-card,
  .list-card,
  .list-head,
  .publish-card {
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
    padding: 20px;
  }

  .page-grid,
  .article-list {
    width: calc(100vw - 22px);
    max-width: calc(100vw - 22px);
  }

  h1 {
    font-size: 29px;
    line-height: 1.16;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .article-body {
    font-size: 16px;
    line-height: 1.9;
  }

  .article-body p,
  .list-head p,
  .list-card strong {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .publish-steps li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .nav {
    gap: 5px;
  }

  .nav a,
  .button {
    min-height: 34px;
    padding: 0 6px;
    font-size: 11px;
  }
}
