:root {
  --ink: #18211d;
  --muted: #5d665f;
  --paper: #fffdf8;
  --surface: #f6f3eb;
  --line: #ded8ca;
  --green: #2d5f4c;
  --teal: #2f6f73;
  --rust: #bd5b2c;
  --gold: #c79a39;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(24, 33, 29, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 216, 202, 0.9);
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(16px);
}

.header-inner,
.container,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--rust));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: min(620px, 72vh);
  background-image: linear-gradient(90deg, rgba(24, 33, 29, 0.84), rgba(24, 33, 29, 0.48), rgba(24, 33, 29, 0.12)), url("/assets/images/hero.png");
  background-size: cover;
  background-position: center;
  color: var(--white);
  display: flex;
  align-items: center;
}

.hero-content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #f4d27a;
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.hero p {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 20px);
  overflow-wrap: anywhere;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  border-color: rgba(255, 253, 248, 0.92);
}

.section {
  padding: 72px 0;
}

.section.compact {
  padding-top: 24px;
}

.section.alt {
  background: var(--surface);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}

.section-header h2,
.page-header h1,
.article-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.article-title {
  font-size: clamp(28px, 3.4vw, 42px);
}

.section-header p,
.page-header p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card,
.article-card,
.category-card,
.cta-box,
.notice,
.check-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(24, 33, 29, 0.04);
}

.article-card,
.category-card {
  overflow: hidden;
}

.card-body {
  padding: 20px;
}

.article-card img,
.category-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface);
}

.category-card .card-body {
  padding: 16px;
}

.category-card h3,
.article-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.category-card p,
.article-card p,
.meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f0ec;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.notice {
  padding: 18px 20px;
  border-left: 5px solid var(--rust);
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

.page-header {
  padding: 64px 0 34px;
}

.article-header {
  padding: 52px 0 28px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.article-hero {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.content {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 80px;
}

.content h2 {
  margin: 48px 0 14px;
  font-size: 24px;
  line-height: 1.35;
}

.content h3 {
  margin: 36px 0 12px;
  font-size: 19px;
}

.content p {
  margin: 0 0 18px;
}

.content ul,
.content ol {
  padding-left: 1.4em;
  margin: 0 0 24px;
}

.content li + li {
  margin-top: 8px;
}

.content blockquote {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-left: 5px solid var(--teal);
  background: #eef5f2;
}

.pr-note {
  margin: 0 0 24px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.content th,
.content td {
  border: 1px solid var(--line);
  padding: 10px;
  vertical-align: top;
}

.content th {
  background: var(--surface);
  text-align: left;
}

.cta-box {
  margin: 34px 0;
  padding: 20px;
  border-left: 5px solid var(--green);
}

.cta-box h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.cta-actions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.cta-placeholder,
.cta-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.cta-link {
  background: var(--green);
  color: var(--white);
}

.cta-placeholder {
  border: 1px dashed #9fa89f;
  background: #f6f7f3;
  color: var(--muted);
}

.related-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.related-list a {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  background: var(--white);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 34px 0;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 900px) {
  .section-header,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .header-inner {
    gap: 14px;
  }

  .site-nav {
    flex: 1;
    justify-content: flex-start;
    gap: 14px;
  }

  .grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 560px;
  }
}

@media (max-width: 620px) {
  .grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    min-height: 58px;
  }

  .brand {
    gap: 8px;
    font-size: 14px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    font-size: 16px;
  }

  .site-nav {
    font-size: 13px;
  }

  .site-nav a:nth-child(3) {
    display: none;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    padding: 64px 0 74px;
  }

  .article-hero img {
    aspect-ratio: 4 / 3;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 18px;
  }
}
