@charset "UTF-8";

:root {
  color-scheme: light;
  font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #26382f;
  background: #f8f7f2;
  --ink: #26382f;
  --forest: #183f35;
  --muted: #53645b;
  --line: #dedfd4;
  --paper: #fffefb;
  --tint: #eaf0e7;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
h1, h2, h3 { line-height: 1.5; }
a { color: var(--forest); text-underline-offset: .2em; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #a65b39; outline-offset: 3px; }
[id] { scroll-margin-top: 20px; }

.wrap { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 5;
  inset: 8px auto auto 8px;
  padding: 8px 12px;
  color: white;
  background: var(--forest);
}

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--forest);
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: .025em;
  text-decoration: none;
}
.brand img { border-radius: 10px; flex: none; }
.main-nav, .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.main-nav a, .footer-links a {
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}
.main-nav a:hover, .footer-links a:hover, .main-nav [aria-current] { text-decoration: underline; }

.home { padding-top: 35px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 43%) minmax(0, 57%);
  border: 1px solid #d9dbcc;
  border-radius: 21px;
  overflow: hidden;
  background: #edf0e5;
}
.hero-copy {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(27px, 4.2vw, 63px);
}
.hero h1 {
  font-size: clamp(2.35rem, 4.2vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.035em;
  color: var(--forest);
}
.hero h1 span { display: block; }
.hero p { margin-top: 20px; max-width: 26em; color: var(--muted); line-height: 1.8; }
.hero-image { width: 100%; height: 100%; min-height: 365px; object-fit: cover; object-position: 53% 50%; }
.button {
  gap: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 19px;
  border: 1px solid var(--forest);
  border-radius: 8px;
  color: white;
  background: var(--forest);
  font-weight: 700;
  font-size: .875rem;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #2c5645; }
.hero .button { margin-top: 24px; }

.archive-layout, .reader-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 292px);
  align-items: start;
  gap: clamp(20px, 2.8vw, 38px);
}
.archive-layout { margin-block: 39px 62px; }
.inner-archive { margin-top: 20px; }
.archive, .reader-main { min-width: 0; }
.archive-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.archive-top h2 { font-size: 1.55rem; color: var(--forest); }
.result-count { margin-top: 3px; color: var(--muted); font-size: .84rem; }
.search-form {
  width: min(100%, 310px);
  display: flex;
  align-items: stretch;
  min-width: 0;
  min-height: 45px;
  border: 1px solid #c9d1c4;
  border-radius: 9px;
  background: var(--paper);
}
.search-form:focus-within { outline: 2px solid var(--forest); outline-offset: 2px; }
.search-form input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 8px 11px 8px 13px;
  border: 0;
  border-radius: 9px 0 0 9px;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}
.search-form input::placeholder { color: #63756a; font-size: .875rem; }
.search-form input:focus { outline: none; }
.search-form button {
  display: grid;
  flex: 0 0 45px;
  place-items: center;
  border: 0;
  border-radius: 0 8px 8px 0;
  color: white;
  background: var(--forest);
  cursor: pointer;
}
.search-form button:hover { background: #2c5645; }
.search-icon {
  position: relative;
  width: 13px;
  height: 13px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}
.search-icon::after {
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  transform: rotate(45deg);
  background: currentColor;
  content: "";
}
.stories, .category-panel ul, .related ul, .external-links { padding: 0; list-style: none; }
.stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.story-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.story-card > a { display: block; height: 100%; color: var(--ink); text-decoration: none; }
.story-card > a:focus-visible { outline-offset: -4px; }
.story-card:hover { border-color: #90a491; }
.story-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.card-copy { position: relative; padding: 16px 43px 19px 18px; }
.story-category { display: block; margin-bottom: 6px; color: #3b6755; font-size: .77rem; font-weight: 700; }
.story-card h3 { font-size: 1.02rem; overflow-wrap: anywhere; }
.card-arrow { position: absolute; right: 15px; bottom: 16px; color: #3b6755; font-size: 1.12rem; }
.story-card a:hover h3, .external-links a:hover h2 { text-decoration: underline; }
.empty-results { padding: 24px; border: 1px dashed var(--line); border-radius: 10px; }
.empty-results p { margin-bottom: 12px; }

.category-panel { border: 1px solid #d9dfd2; border-radius: var(--radius); background: var(--tint); padding: 18px; }
.category-panel h2 { margin: 0 4px 11px; color: var(--forest); font-size: 1.02rem; }
.category-panel li + li { border-top: 1px solid #d4ded2; }
.category-panel li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-height: 44px;
  padding: 8px 4px;
  border-radius: 4px;
  font-size: .87rem;
  text-decoration: none;
}
.category-panel li a:hover, .category-panel [aria-current] { background: #dfebdd; }
.category-panel [aria-current] { font-weight: 700; }
.category-count { display: inline-flex; gap: 12px; align-items: center; font-size: .78rem; color: var(--muted); }
.category-chevron { font-size: 1.15rem; line-height: 1; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 11px;
  padding-block: 19px;
  color: var(--muted);
  font-size: .82rem;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-title { margin-block: 8px 19px; }
.page-title h1 { color: var(--forest); font-size: clamp(1.8rem, 3vw, 2.55rem); overflow-wrap: anywhere; }
.reader-layout { margin-bottom: 58px; }
.article-paper { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.article-header { padding: clamp(21px, 3.6vw, 47px); padding-bottom: 25px; }
.category-badge {
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid #d6e2d5;
  border-radius: 7px;
  color: var(--forest);
  background: var(--tint);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}
.category-badge:hover { text-decoration: underline; }
.article-header h1 {
  margin-top: 13px;
  font-size: clamp(1.72rem, 3vw, 2.55rem);
  line-height: 1.43;
  color: var(--forest);
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.article-meta { margin-top: 12px; color: var(--muted); font-size: .84rem; }
.article-cover { width: 100%; height: auto; }
.article-body, .simple-paper {
  padding: clamp(21px, 3.6vw, 47px);
  overflow-wrap: anywhere;
  line-height: 1.95;
}
.article-body p, .article-body ul, .article-body ol, .simple-paper p { margin: 0 0 1.15em; }
.article-body > :last-child, .simple-paper > :last-child { margin-bottom: 0; }
.article-body h2 {
  margin-block: 1.8em .7em;
  padding: .52em .72em;
  border-left: 4px solid #5e806a;
  background: var(--tint);
  color: var(--forest);
  font-size: clamp(1.25rem, 2.3vw, 1.55rem);
}
.article-body h3, .article-body h4, .simple-paper h2 {
  margin-block: 1.45em .6em;
  color: var(--forest);
  font-size: 1.15rem;
}
.simple-paper h2:first-child { margin-top: 0; }
.article-body ol, .article-body ul { padding-inline-start: 1.5em; }
.article-body a:hover, .simple-paper a:not(.button):hover { color: #815133; }
.toc { margin-block: 22px 25px; padding: 15px 19px; border: 1px solid #d6e2d5; border-radius: 10px; background: #f3f6ef; }
.toc summary { font-weight: 700; color: var(--forest); cursor: pointer; }
.toc ol { margin: 8px 0 0; }
.toc li { padding-block: 2px; }
.table-scroll {
  max-width: 100%;
  margin-block: 1.15em;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid #d9dfd2;
  border-radius: 8px;
}
.article-body table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: .94rem; }
.article-body th, .article-body td { padding: .62em .72em; text-align: start; vertical-align: top; border-bottom: 1px solid #d9dfd2; }
.article-body tr > * + * { border-left: 1px solid #d9dfd2; }
.article-body th { background: var(--tint); font-weight: 700; }
.article-body tbody tr:last-child > * { border-bottom: 0; }
.related, .simple-paper { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.related { padding: 18px 23px; margin-top: 19px; }
.related h2 { margin-bottom: 7px; font-size: 1.15rem; }
.related a { display: inline-block; padding: 5px 0; }
.article-navigation { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 19px; }
.article-navigation a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); font-size: .87rem; text-decoration: none; }
.article-navigation a:hover { background: var(--tint); }
.simple-layout { width: min(100%, 790px); margin: 0 auto 62px; }
.external-links { display: grid; gap: 13px; }
.external-links a { display: block; position: relative; padding: 19px 52px 19px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; }
.external-links h2 { font-size: 1.15rem; margin-bottom: 5px; }
.external-links p { color: var(--muted); }
.external-arrow { position: absolute; top: 20px; right: 20px; }
.site-footer { border-top: 1px solid var(--line); background: #eef0e8; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding-block: 23px; font-size: .81rem; }
.back-top { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 7px; border: 1px solid #cbd6c8; text-decoration: none; }
.back-top:hover { background: var(--paper); }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 52px); }
  .archive-layout, .reader-layout { grid-template-columns: minmax(0, 1fr) minmax(217px, 27%); gap: 19px; }
  .hero-image { min-height: 305px; }
}

@media (max-width: 730px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 63px; gap: 10px; }
  .brand { gap: 8px; font-size: .94rem; }
  .brand img { width: 33px; height: 33px; border-radius: 8px; }
  .main-nav { gap: 12px; }
  .main-nav a { font-size: .77rem; }
  .home { padding-top: 18px; }
  .hero { grid-template-columns: minmax(0, 1fr); border-radius: var(--radius); }
  .hero-copy { padding: 24px; }
  .hero h1 { font-size: clamp(1.95rem, 7.8vw, 3rem); }
  .hero h1 span { display: inline; }
  .hero p { margin-top: 11px; }
  .hero .button { margin-top: 16px; }
  .hero-image { height: auto; min-height: 0; aspect-ratio: 1200 / 630; }
  .archive-layout, .reader-layout { grid-template-columns: minmax(0, 1fr); }
  .archive-layout { margin-top: 27px; margin-bottom: 42px; }
  .archive-top { gap: 10px; }
  .archive-top h2 { font-size: 1.31rem; }
  .search-form { width: min(53%, 252px); }
  .stories { gap: 11px; }
  .card-copy { padding: 11px 12px 14px; }
  .story-card { border-radius: 11px; }
  .story-card h3 { font-size: .92rem; }
  .story-category { font-size: .7rem; }
  .card-arrow { display: none; }
  .article-header { padding: 20px 17px 18px; }
  .article-body, .simple-paper { padding: 19px 17px; }
  .footer-links { gap: 8px 15px; }
}

@media (max-width: 355px) {
  .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .main-nav { flex-basis: 100%; }
  .hero-copy { padding: 20px; }
  .stories { grid-template-columns: minmax(0, 1fr); }
}

/* 記事内の共通囲みボックス */
.article-box {
  box-sizing: border-box;
  margin: 1.8em 0;
  padding: 1.2em 1.4em;
  border: 2px solid;
  border-radius: 8px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* ポイント */
.article-box--point {
  background-color: #eff8f7;
  border-color: #178a95;
}

/* 注意 */
.article-box--caution {
  background-color: #fff7ee;
  border-color: #d48735;
}

/* 補足 */
.article-box--note {
  background-color: #f2f6fc;
  border-color: #7393bd;
}

/* 囲みボックスの見出し */
.article-box .article-box__title {
  margin: 0 0 0.6em;
  font-weight: 700;
  font-size: 1em;
}

.article-box--point .article-box__title {
  color: #176a72;
}

.article-box--caution .article-box__title {
  color: #a35c20;
}

.article-box--note .article-box__title {
  color: #45678d;
}

/* ボックス内の最後の段落 */
.article-box p:last-child {
  margin-bottom: 0;
}

/* 黄色マーカー */
.article-marker {
  background: linear-gradient(
    transparent 55%,
    #fff0a6 55%
  );
  padding: 0 0.1em;
}

/* スマートフォン対応 */
@media (max-width: 600px) {
  .article-box {
    padding: 1em 1.1em;
    margin: 1.5em 0;
  }
}

