:root {
  color-scheme: light;
  --ink: #202b24;
  --muted: #536157;
  --green: #234535;
  --forest: #17372a;
  --lime: #e3edac;
  --line: #dce2d7;
  --canvas: #f8f8f2;
  --paper: #fff;
  font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: .2em; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #187987; outline-offset: 4px; }
h1, h2, h3, p { margin-block: 0; }
h1, h2, h3, a, p { overflow-wrap: anywhere; }
.wrap { width: min(100% - 80px, 1200px); margin-inline: auto; }
.sr-only, .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: absolute; z-index: 2; top: 12px; left: 12px; padding: 8px 14px; background: white; }

.site-header { background: var(--canvas); border-bottom: 1px solid var(--line); }
.header-inner, .brand, .main-nav { display: flex; align-items: center; }
.header-inner { min-height: 74px; justify-content: space-between; gap: 20px; }
.brand { gap: 12px; color: var(--forest); line-height: 1.35; text-decoration: none; }
.brand small, .brand strong { display: block; }
.brand small { font-size: .68rem; font-weight: 700; letter-spacing: .08em; margin-bottom: 2px; }
.brand strong { font-size: 1rem; font-weight: 800; }
.main-nav { gap: 30px; }
.main-nav a { display: flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.main-nav a[aria-current], .main-nav a:hover { color: var(--forest); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .55em; }

.hero { background: var(--forest); color: var(--paper); }
.hero-inner { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(30px, 7vw, 100px); align-items: center; min-height: 450px; padding-block: 45px; }
.hero-copy { max-width: 500px; }
.hero-subtitle { color: var(--lime); font-weight: 700; font-size: 1rem; letter-spacing: .16em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 4.15rem); font-weight: 800; line-height: 1.17; letter-spacing: .015em; }
.hero-description { margin-top: 24px; max-width: 380px; color: #e1e9e0; line-height: 1.85; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 46px; padding: 9px 17px; border: 1px solid transparent; border-radius: 6px; color: var(--paper); background: var(--green); text-decoration: none; font-weight: 700; font-size: .9rem; }
.button:hover { background: var(--forest); }
.hero .button { margin-top: 26px; background: var(--lime); color: var(--forest); }
.hero .button:hover { background: #f1f7cc; }
.hero-visual { border: 1px solid #6f8574; padding: 8px; border-radius: 14px; }
.hero-visual img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 7px; }

.category-bar { background: #edf0e1; border-bottom: 1px solid var(--line); }
.category-inner { display: flex; align-items: baseline; gap: 24px; padding-block: 19px; }
.category-inner h2 { font-size: .875rem; white-space: nowrap; color: var(--forest); }
.category-list { display: flex; list-style: none; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.category-list a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 12px; border: 1px solid #cbd4c5; border-radius: 6px; background: var(--paper); text-decoration: none; font-size: .8125rem; font-weight: 700; }
.category-list a:hover, .category-list a[aria-current] { background: #e8efd9; border-color: #7e9b76; }
.category-count { display: inline-grid; min-width: 21px; padding-inline: 3px; place-items: center; border-radius: 4px; background: #eff1e9; color: var(--green); font-size: .6875rem; font-variant-numeric: tabular-nums; }

.listing { padding-block: 44px 72px; }
.section-title { margin-bottom: 22px; }
.section-title h1, .section-title h2 { font-size: clamp(1.65rem, 3vw, 2.375rem); font-weight: 800; line-height: 1.35; color: var(--forest); }
.search-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block: 0 20px; }
.search-form { display: flex; width: min(100%, 420px); min-width: 0; border: 1px solid #c9d2c7; border-radius: 6px; background: var(--paper); }
.search-form:focus-within { outline: 2px solid #187987; outline-offset: 2px; }
.search-form input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 0; outline: none; background: transparent; border-radius: 6px; color: var(--ink); }
.search-form input::placeholder { color: #59685c; }
.search-form button { display: grid; min-width: 46px; place-items: center; border: 0; border-radius: 0 5px 5px 0; background: transparent; color: var(--forest); }
.search-form button:hover { background: #eef1e5; }
.search-icon { width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; position: relative; margin: 0 3px 3px 0; }
.search-icon::after { content: ""; width: 7px; height: 2px; border-radius: 2px; position: absolute; left: 8px; top: 11px; background: currentColor; transform: rotate(45deg); }
.result-info { color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.article-card { display: flex; min-width: 0; }
.article-card > a { display: flex; width: 100%; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: inherit; text-decoration: none; }
.article-card > a:hover { border-color: #819e85; }
.article-card > a:hover h3 { text-decoration: underline; text-underline-offset: .22em; }
.card-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e5e9e0; }
.card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 16px 17px 13px; }
.category-label { display: inline-block; max-width: 100%; padding: 3px 8px; border-radius: 4px; background: #edf2e4; color: var(--forest); font-size: .75rem; font-weight: 700; text-decoration: none; }
a.category-label:hover { background: #dae6cc; }
.card-body h3 { margin: 10px 0 8px; font-size: 1.0625rem; font-weight: 800; line-height: 1.65; }
.card-arrow { margin: auto 0 0 auto; color: var(--green); font-weight: 700; }
.empty-state { text-align: center; padding: 32px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.empty-state .button { margin-top: 12px; }
.category-nav { margin-bottom: 24px; }

.breadcrumb { margin-block: 22px; color: var(--muted); font-size: .75rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; gap: 3px 8px; margin: 0; padding: 0; }
.breadcrumb li { display: flex; min-width: 0; gap: 8px; }
.breadcrumb li + li::before { content: "›"; flex: none; }
.breadcrumb a { color: inherit; }
.category-page { padding-top: 0; }
.article-page, .simple-page { padding-bottom: 60px; }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 254px; gap: 26px; align-items: start; }
.article-column { min-width: 0; }
.article-paper, .article-sidebar, .simple-paper, .related { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.article-header { padding: 30px clamp(24px, 4vw, 52px) 24px; }
.article-header h1 { margin-top: 13px; font-size: clamp(1.65rem, 3.15vw, 2.5rem); line-height: 1.43; font-weight: 800; letter-spacing: .01em; }
.article-image { width: calc(100% - 2 * clamp(24px, 4vw, 52px)); margin-inline: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 7px; background: #e5e9e0; }
.article-content { padding: 26px clamp(24px, 4vw, 52px) 40px; line-height: 1.95; overflow-wrap: anywhere; }
.article-content p { margin-block: 0 1.1em; }
.article-content > :last-child { margin-bottom: 0; }
.article-content h2 { margin: 2.25em 0 .9em; padding: .52em .72em; border-left: 4px solid #487954; border-radius: 0 5px 5px 0; background: #edf2e6; color: var(--forest); font-size: 1.45rem; line-height: 1.55; scroll-margin-top: 16px; }
.article-content h3 { margin: 1.55em 0 .6em; color: var(--forest); font-size: 1.16rem; line-height: 1.6; }
.article-content h4 { margin: 1.2em 0 .6em; }
.article-content ul, .article-content ol { padding-inline-start: 1.45em; }
.article-content li + li { margin-top: .35em; }
.article-content blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 4px solid #8ca181; background: #f4f5ee; }
.article-content blockquote p:last-child { margin-bottom: 0; }
.toc { margin-block: 24px 32px; padding: 14px 18px; border: 1px solid #dce4d6; border-radius: 7px; background: #f7f9f1; }
.toc summary { cursor: pointer; font-weight: 800; color: var(--forest); }
.toc ol { margin: 10px 0 0; font-size: .875rem; line-height: 1.7; }
.table-scroll { max-width: 100%; overflow-x: auto; margin-block: 1.4em; }
.article-content table { width: 100%; min-width: 480px; border-collapse: collapse; text-align: left; font-size: .875rem; line-height: 1.65; }
.article-content th, .article-content td { padding: 10px 12px; vertical-align: top; border: 1px solid #d8dfd3; }
.article-content th { background: #edf2e6; color: var(--forest); }
.article-sidebar { padding: 16px; }
.article-sidebar h2 { font-size: .875rem; margin-bottom: 12px; color: var(--forest); }
.article-sidebar .category-list { flex-direction: column; }
.article-sidebar .category-list a { justify-content: space-between; }
.related { padding: 20px 24px; margin-top: 20px; }
.related h2 { font-size: 1.125rem; }
.related ul { padding: 0; margin: 8px 0 0; list-style: none; }
.related li { padding-block: 8px; }
.related li + li { border-top: 1px solid var(--line); }
.article-navigation { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; text-align: center; margin-top: 22px; font-size: .875rem; }
.article-navigation a { padding-block: 8px; }

.simple-paper { max-width: 840px; padding: clamp(20px, 4vw, 50px); line-height: 1.85; }
.simple-paper > h2 { margin: 1.5em 0 .45em; font-size: 1.2rem; color: var(--forest); }
.simple-paper p + p, .simple-paper .button + p, .simple-paper p + .button { margin-top: 16px; }
.external-links { list-style: none; padding: 0; margin: 0; }
.external-links li { padding-block: 14px; }
.external-links li + li { border-top: 1px solid var(--line); }
.external-links h2 { font-size: 1.15rem; margin-bottom: 4px; }

.site-footer { background: #ecf0e5; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px 22px; align-items: center; padding-block: 27px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .8125rem; }
.footer-inner > small { color: var(--muted); font-size: .72rem; }

@media (max-width: 980px) {
  .wrap { width: calc(100% - 48px); }
  .hero-inner { min-height: 365px; }
  .article-layout { grid-template-columns: minmax(0,1fr) 205px; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 770px) {
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { margin-top: 12px; }
  .article-sidebar .category-list { flex-direction: row; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { gap: 3px; flex-wrap: wrap; padding-top: 10px; }
  .brand img { width: 34px; height: 34px; }
  .brand { gap: 8px; }
  .main-nav { gap: 18px; }
  .main-nav a { min-height: 40px; font-size: .8125rem; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 20px; padding-block: 29px 22px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3.1rem); }
  .hero-subtitle { margin-bottom: 8px; font-size: .875rem; }
  .hero-description { margin-top: 12px; font-size: .875rem; }
  .hero .button { margin-top: 15px; }
  .hero-visual { padding: 5px; border-radius: 9px; }
  .hero-visual img { aspect-ratio: 2 / 1; border-radius: 5px; }
  .category-inner { display: block; padding-block: 12px 14px; }
  .category-inner h2 { margin-bottom: 6px; }
  .category-list a { padding-inline: 8px; gap: 6px; }
  .listing { padding-block: 28px 44px; }
  .category-page { padding-top: 0; }
  .section-title { margin-bottom: 14px; }
  .article-page { width: 100%; }
  .article-page > .breadcrumb { padding-inline: 16px; }
  .article-layout { gap: 8px; }
  .article-paper { border-radius: 0; border-inline: 0; }
  .article-header { padding: 18px 16px 16px; }
  .article-header h1 { font-size: clamp(1.45rem, 6vw, 1.85rem); }
  .article-image { width: calc(100% - 32px); }
  .article-content { padding: 20px 16px 28px; }
  .article-content h2 { font-size: 1.25rem; }
  .article-content h3 { font-size: 1.07rem; }
  .related, .article-sidebar, .article-navigation { margin-inline: 16px; }
}
@media (max-width: 420px) {
  .card-grid { grid-template-columns: 1fr; }
  .article-card > a { display: grid; grid-template-columns: minmax(100px, 34%) 1fr; min-height: 134px; }
  .card-image { height: 100%; min-height: 0; aspect-ratio: unset; }
  .card-body { padding: 10px 11px 7px; }
  .card-body h3 { font-size: .925rem; margin: 6px 0 4px; }
}


/* 記事内の共通囲みボックス */
.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;
  }
}
