@charset "utf-8";

:root {
  --bg: #fbfaf7;
  --surface: #fff;
  --ink: #2a3733;
  --ink-sub: #56645f;
  --ink-faint: #7d8984;
  --line: #e5e0d6;
  --sage: #3d6c5c;
  --sage-deep: #2d5547;
  --sage-mid: #86a99b;
  --sage-pale: #ebf2ee;
  --sand: #f4efe6;
  --sand-deep: #e8dfcf;
  --clay: #b0603c;
  --clay-deep: #96502f;
  --clay-pale: #f9eee7;
  --round: 10px;
  --wrap: 1120px;
  --column: 720px;
  --gutter: 20px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "BIZ UDPGothic", Meiryo, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}

img,
svg { max-width: 100%; height: auto; vertical-align: middle; }

h1, h2, h3, .tile-title, .topic-name, .gist-points a { word-break: auto-phrase; }

a { color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--sage-deep); }

:focus-visible { outline: 3px solid var(--sage-mid); outline-offset: 2px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 8px 14px; border-radius: 6px; background: var(--ink); color: #fff;
}
.skip:focus { top: 12px; }

.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead-in {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gutter);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: .1em; text-decoration: none;
}
.brand img { width: 32px; height: 32px; }
.brand:hover { color: var(--ink); }
.menu ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.menu a {
  display: block; padding: 6px 12px; border-radius: 999px;
  color: var(--ink-sub); font-size: 14px; text-decoration: none; white-space: nowrap;
}
.menu a:hover,
.menu a[aria-current] { background: var(--sage-pale); color: var(--sage-deep); }

@media (max-width: 959px) {
  .masthead-in { display: block; padding: 12px 0 0; }
  .brand { margin: 0 var(--gutter); }
  .menu {
    overflow-x: auto; margin-top: 6px; padding: 0 14px 10px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
    mask-image: linear-gradient(to right, #000 82%, transparent);
  }
  .menu::-webkit-scrollbar { display: none; }
  .menu ul { width: max-content; padding-right: 40px; }
}

.intro { background: var(--sand); }
.intro-in {
  display: grid; gap: 20px; align-items: center;
  max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 36px;
}
.intro h1 { margin: 0 0 12px; font-size: clamp(26px, 1.6vw + 20px, 36px); line-height: 1.4; letter-spacing: .12em; }
.intro p { margin: 0; color: var(--ink-sub); }
.intro-art { justify-self: center; width: min(76%, 320px); }
@media (min-width: 900px) {
  .intro-in { grid-template-columns: 1fr 1fr; gap: 56px; padding: 60px var(--gutter); }
  .intro p { font-size: 17px; }
  .intro-art { justify-self: end; width: min(100%, 460px); }
}

.home-block { max-width: var(--wrap); margin: 0 auto; padding: 44px var(--gutter) 0; }
.block-title {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 18px; font-size: 20px; line-height: 1.5; letter-spacing: .06em;
}
.block-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.block-more { margin: 14px 0 0; text-align: right; font-size: 14px; }

.topics { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.topics li { border-bottom: 1px solid var(--line); }
.topic { display: flex; align-items: center; gap: 14px; padding: 14px 4px; color: var(--ink); text-decoration: none; }
.topic:hover { color: var(--ink); background: var(--surface); }
.topic-icon {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px;
  border-radius: 50%; background: var(--sage-pale); color: var(--sage);
}
.topic-icon svg { width: 26px; height: 26px; }
.topic-name { display: block; font-weight: 700; line-height: 1.5; }
.topic-desc { display: block; color: var(--ink-faint); font-size: 13px; line-height: 1.6; }
@media (min-width: 900px) {
  .topics { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 0; }
  .topics li { border-bottom: 0; border-left: 1px solid var(--line); }
  .topics li:first-child { border-left: 0; }
  .topic { flex-direction: column; align-items: flex-start; gap: 12px; height: 100%; padding: 6px 14px 10px 18px; border-radius: var(--round); }
  .topics li:first-child .topic { padding-left: 4px; }
  .topic-icon { width: 56px; height: 56px; }
  .topic-name { font-size: 16px; letter-spacing: 0; }
}

.tiles { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.tile { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tiles li:first-child .tile { padding-top: 0; }
.tile:hover { color: var(--ink); }
.tile:hover .tile-title { color: var(--sage-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.tile-thumb { flex: none; width: 112px; }
.tile-thumb img { width: 100%; border-radius: 6px; aspect-ratio: 3 / 2; object-fit: cover; }
.tile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile-cat { color: var(--sage); font-size: 12px; font-weight: 700; letter-spacing: .06em; line-height: 1.6; }
.tile-title { font-size: 15px; font-weight: 700; line-height: 1.6; }
.tile-date { color: var(--ink-faint); font-size: 12px; line-height: 1.6; }
@media (min-width: 900px) {
  .tiles { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .tiles li:nth-child(2) .tile { padding-top: 0; }
  .tile { gap: 18px; padding: 18px 0; }
  .tile-thumb { width: 168px; }
  .tile-title { font-size: 16px; }
}

.about-strip { max-width: var(--wrap); margin: 56px auto 0; padding: 0 var(--gutter); }
.about-strip-in { padding: 28px 24px; border-radius: var(--round); background: var(--sage-pale); }
.about-strip h2 { margin: 0 0 8px; font-size: 18px; }
.about-strip p { margin: 0 0 14px; color: var(--ink-sub); font-size: 15px; }
.about-strip a { margin-right: 18px; font-size: 14px; }

.page { max-width: calc(var(--column) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.crumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 14px 0 0; list-style: none; color: var(--ink-faint); font-size: 12px; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--sand-deep); }
.crumbs a { color: var(--ink-faint); }

.entry-head { padding: 22px 0 6px; }
.entry-title { margin: 0; font-size: clamp(23px, 1.4vw + 18px, 31px); line-height: 1.5; letter-spacing: .04em; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 14px 0 0; color: var(--ink-faint); font-size: 13px; }
.promo-note { margin: 6px 0 0; color: var(--ink-faint); font-size: 12px; }

.gist { margin: 24px 0 0; padding: 22px 20px 20px; border-radius: var(--round); background: var(--sand); }
.gist-label { margin: 0 0 8px; color: var(--sage-deep); font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.gist-lead { margin: 0; }
.gist-lead strong { font-weight: 700; }
.gist-points { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: gist; }
.gist-points li { position: relative; padding: 12px 0 0 34px; border-top: 1px solid var(--sand-deep); margin-top: 12px; counter-increment: gist; }
.gist-points li::before {
  content: counter(gist); position: absolute; left: 0; top: 14px;
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sage); color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
}
.gist-points a { display: block; font-weight: 700; line-height: 1.6; }
.gist-text { display: block; margin-top: 2px; color: var(--ink-sub); font-size: 15px; line-height: 1.8; }

.toc { margin: 20px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toc summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 2px; cursor: pointer; font-size: 15px; font-weight: 700; list-style: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: ""; width: 9px; height: 9px; margin-right: 6px;
  border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.toc[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.toc ol { margin: 0; padding: 0 0 14px 1.6em; font-size: 15px; }
.toc li { margin: 4px 0; }

.entry-body { padding-top: 8px; }
.entry-body > section > p,
.entry-body p { margin: 0 0 1.3em; }
.entry-body h2 {
  position: relative; margin: 60px 0 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(21px, .8vw + 17px, 25px); line-height: 1.55; letter-spacing: .04em;
}
.entry-body h2::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 48px; height: 3px; border-radius: 2px; background: var(--sage-mid);
}
.entry-body h3 { margin: 40px 0 12px; font-size: 18px; line-height: 1.6; }
.entry-body h3::before {
  content: ""; display: inline-block; width: .45em; height: .45em; margin-right: .55em;
  border-radius: 50%; background: var(--clay); vertical-align: .18em;
}
.entry-body h4 { margin: 28px 0 8px; font-size: 16px; }
.chapter-visual { margin: 0 0 20px; }
.chapter-visual img { width: 100%; border-radius: var(--round); }
.entry-body strong { font-weight: 700; }
.hl { background: linear-gradient(transparent 62%, #f3dfc9 62%); }

.entry-body ul,
.entry-body ol { margin: 0 0 1.4em; padding-left: 1.5em; }
.entry-body li { margin: .3em 0; }
.entry-body ul:not([class]) li::marker { color: var(--sage-mid); }

.checks { padding-left: 0 !important; list-style: none; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 18px; height: 18px;
  border-radius: 4px; background: var(--sage-pale);
}
.checks li::after {
  content: ""; position: absolute; left: 8px; top: calc(.5em + 3px); width: 6px; height: 10px;
  border-right: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(45deg);
}

.flow { padding-left: 0 !important; list-style: none; counter-reset: flow; }
.flow > li { position: relative; margin: 0; padding: 0 0 18px 46px; counter-increment: flow; }
.flow > li::before {
  content: counter(flow); position: absolute; left: 0; top: 2px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--sage); color: var(--sage); font-size: 14px; font-weight: 700; line-height: 1;
}
.flow > li:not(:last-child)::after {
  content: ""; position: absolute; left: 14px; top: 36px; bottom: 4px; width: 2px; background: var(--sage-pale);
}
.flow-title { margin: 0 0 2px !important; font-weight: 700; }
.flow > li p:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin: 0 0 1.6em; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; line-height: 1.7; }
.data-table:has(tr > :nth-child(3)) { min-width: 23.5em; }
.data-table:has(tr > :nth-child(4)) { min-width: 31em; }
.data-table:has(tr > :nth-child(5)) { min-width: 38.5em; }
.data-table caption { padding: 0 0 8px; color: var(--ink-sub); font-size: 13px; text-align: left; }
.data-table th,
.data-table td { min-width: 7em; padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { background: var(--sand); font-weight: 700; word-break: auto-phrase; }
.data-table tbody th { min-width: 7.5em; background: #fcfaf6; font-weight: 700; }
.table-note { margin: -1em 0 1.6em !important; color: var(--ink-faint); font-size: 13px; }

.memo,
.caution { margin: 0 0 1.6em; padding: 16px 18px; border-radius: var(--round); font-size: 15px; }
.memo { background: var(--sage-pale); }
.caution { background: var(--clay-pale); }
.memo-label { display: block; margin-bottom: 2px; color: var(--sage-deep); font-weight: 700; }
.caution .memo-label { color: var(--clay-deep); }
.memo p:last-child,
.caution p:last-child { margin-bottom: 0; }

blockquote { margin: 0 0 1.6em; padding: 4px 0 4px 18px; border-left: 3px solid var(--sand-deep); color: var(--ink-sub); }
blockquote cite { display: block; margin-top: 4px; font-size: 13px; font-style: normal; }

.go-area { display: none; margin: 28px 0 8px; padding: 22px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.go-area.is-live { display: block; }
.go-copy { margin: 0 0 12px !important; color: var(--ink-sub); font-size: 14px; }
.go-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: min(100%, 380px); min-height: 56px; padding: 12px 24px; border-radius: 8px;
  background: var(--clay); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 2px 0 var(--clay-deep);
}
.go-btn::after { content: ""; width: 8px; height: 8px; border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg); }
.go-btn:hover { background: var(--clay-deep); color: #fff; }
.go-link:not(.is-live) { color: inherit; text-decoration: none; pointer-events: none; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; padding: 14px 32px 14px 34px; cursor: pointer; font-weight: 700; line-height: 1.7; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 4px; top: 13px; color: var(--sage); font-weight: 700; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 11px; color: var(--ink-faint); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "-"; }
.faq-a { position: relative; padding: 0 4px 16px 34px; color: var(--ink-sub); }
.faq-a::before { content: "A"; position: absolute; left: 4px; top: 0; color: var(--clay); font-weight: 700; }
.faq-a p:last-child { margin-bottom: 0; }

.refs { padding-left: 1.4em !important; font-size: 14px; line-height: 1.8; }
.refs li { margin: .5em 0; }
.refs-date { display: block; color: var(--ink-faint); font-size: 12px; }

.writer { display: flex; gap: 16px; margin: 56px 0 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.writer-mark {
  display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: var(--sage-pale); color: var(--sage); font-size: 22px; font-weight: 700;
}
.writer-name { margin: 0; font-weight: 700; }
.writer-role { margin: 0; color: var(--ink-faint); font-size: 13px; }
.writer-bio { margin: 8px 0 0; color: var(--ink-sub); font-size: 14px; line-height: 1.8; }

.related { margin: 48px 0 0; }
.related .tiles,
.tiles.is-single { grid-template-columns: 1fr; }
.related .tiles li:nth-child(2) .tile,
.tiles.is-single li:nth-child(2) .tile { padding-top: 14px; }
@media (min-width: 900px) {
  .related .tiles li:nth-child(2) .tile,
  .tiles.is-single li:nth-child(2) .tile { padding-top: 18px; }
}

.cat-head { display: flex; align-items: center; gap: 14px; margin: 22px 0 10px; }
.cat-head .topic-icon { width: 52px; height: 52px; }
.doc-title,
.list-title { margin: 22px 0 8px; font-size: clamp(23px, 1.2vw + 19px, 30px); line-height: 1.5; letter-spacing: .04em; }
.cat-head .list-title { margin: 0; }
.list-lead { margin: 0 0 28px; color: var(--ink-sub); }
.empty-note { margin: 0; padding: 26px 20px; border: 1px dashed var(--sand-deep); border-radius: var(--round); color: var(--ink-sub); text-align: center; }
.doc-date { margin: 0 0 20px; color: var(--ink-faint); font-size: 13px; }
.doc-body { padding-top: 4px; }
.doc-body h2 { margin: 44px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 20px; line-height: 1.6; }
.doc-body h3 { margin: 28px 0 8px; font-size: 17px; }
.doc-body p,
.doc-body ul,
.doc-body ol { margin: 0 0 1.2em; }
.doc-body ul,
.doc-body ol { padding-left: 1.5em; }
.doc-body li { margin: .3em 0; }
.doc-body .data-table { min-width: 0; }
.doc-body .data-table th { width: 30%; }
.addr-img { display: block; max-width: 100%; height: auto; margin: 4px 0; }
.addr-note { display: block; margin-top: 4px; color: var(--ink-faint); font-size: 13px; line-height: 1.7; }
.addr-block { margin: 0 0 1.4em; }
.map-list { margin: 0 0 8px; padding-left: 1.4em; }
.map-list li { margin: .35em 0; }
.notfound { padding: 48px 0 24px; text-align: center; }
.notfound img { width: min(80%, 300px); margin: 0 auto 16px; }
.notfound h1 { margin: 0 0 8px; font-size: 24px; }
.notfound p { margin: 0 0 20px; color: var(--ink-sub); }
.pill-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill-links a { padding: 7px 16px; border-radius: 999px; background: var(--sage-pale); color: var(--sage-deep); font-size: 14px; text-decoration: none; }
.pill-links a:hover { background: var(--sand-deep); }

.site-foot { margin-top: 80px; background: var(--sand); color: var(--ink-sub); font-size: 14px; }
.site-foot-in { display: grid; gap: 28px; max-width: var(--wrap); margin: 0 auto; padding: 44px var(--gutter) 20px; }
.site-foot .brand { font-size: 17px; }
.foot-desc { margin: 10px 0 0; line-height: 1.8; }
.foot-title { margin: 0 0 6px; color: var(--ink); font-weight: 700; }
.site-foot ul { margin: 0; padding: 0; list-style: none; }
.site-foot li { margin: 4px 0; }
.site-foot a { color: var(--ink-sub); text-decoration: none; }
.site-foot a:hover { color: var(--sage-deep); text-decoration: underline; }
.copy { max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gutter) 28px; border-top: 1px solid var(--sand-deep); color: var(--ink-faint); font-size: 12px; }
@media (min-width: 900px) {
  .site-foot-in { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
}

@media (min-width: 900px) {
  body { font-size: 17px; }
  .entry-head { padding-top: 30px; }
  .gist { padding: 26px 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
