@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #20312e;
  --muted: #526760;
  --teal: #14584e;
  --deep-teal: #103e37;
  --pale: #e9f1eb;
  --cream: #f7f5ec;
  --line: #d7e3da;
  --paper: #fff;
  --radius: 12px;
  font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: .22em; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.45; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b45e25; outline-offset: 4px; }
.wrap { width: min(calc(100% - 4rem), 74rem); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 2; top: .5rem; left: .5rem; background: white; padding: .45rem .8rem; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.header-inner { min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--deep-teal); font-weight: 800; text-decoration: none; }
.brand img { flex: 0 0 auto; }
.main-nav, .footer-links { display: flex; flex-wrap: wrap; gap: .55rem 1.65rem; }
.main-nav a, .footer-links a { color: var(--ink); font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .footer-links a:hover, .main-nav a[aria-current] { color: var(--teal); text-decoration: underline; }
.site-footer { background: var(--pale); border-top: 1px solid var(--line); padding: 2rem 0 1rem; margin-top: 4.5rem; }
.copyright { border-top: 1px solid #cbd9cf; margin-top: 1.5rem; padding-top: .85rem; color: var(--muted); font-size: .75rem; }

.hero { background: var(--cream); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5.5fr);
  align-items: center;
  gap: clamp(1.75rem, 4.1vw, 4.75rem);
  padding-block: clamp(2rem, 4.5vw, 4.75rem);
}
.hero-copy h1 {
  color: var(--deep-teal);
  font-size: clamp(1.95rem, 3.65vw, 3.45rem);
  line-height: 1.27;
  letter-spacing: -.055em;
  margin-bottom: 1.2rem;
}
.hero-copy h1 span { display: block; }
.hero-copy p { color: var(--muted); max-width: 24rem; line-height: 1.9; margin-bottom: 1.45rem; }
.hero-photo { width: 100%; aspect-ratio: 1.75; object-fit: cover; border-radius: var(--radius); }
.button {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  padding: .6rem 1.15rem;
  border: 1px solid var(--teal);
  border-radius: 7px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--deep-teal); }

.category-section { padding: 1.85rem 0 2.05rem; background: var(--pale); }
.category-section h2, .archive-section > h2 { color: var(--deep-teal); font-size: clamp(1.35rem, 2.2vw, 1.8rem); letter-spacing: -.035em; }
.category-grid, .side-categories, .resource-list, .related ul { list-style: none; padding: 0; margin: 0; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: .85rem; }
.category-grid a, .side-categories a {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: .7rem;
  min-height: 3.1rem;
  padding: .55rem .85rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  text-decoration: none;
  font-weight: 700;
  color: var(--deep-teal);
}
.category-grid a:hover, .side-categories a:hover, .side-categories a[aria-current] { background: #f6faf7; border-color: #86a89b; }
.category-count { font-size: .75rem; color: var(--muted); font-weight: 500; white-space: nowrap; }

.archive-section { padding-top: 2.75rem; }
.archive-tools { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: .95rem 0 1.2rem; }
.archive-tools > p { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.search-form { display: flex; width: min(100%, 27rem); min-width: 0; height: 2.8rem; }
.search-form input { min-width: 0; flex: 1; padding: .45rem .75rem; border: 1px solid #91aa9e; border-radius: 7px 0 0 7px; color: var(--ink); background: white; }
.search-form input::placeholder { color: var(--muted); }
.search-form button { display: grid; place-items: center; width: 3rem; border: 0; background: var(--teal); color: white; border-radius: 0 7px 7px 0; }
.search-form button:hover { background: var(--deep-teal); }
.search-icon { position: relative; width: .8rem; height: .8rem; border: 2px solid currentColor; border-radius: 50%; transform: translate(-2px, -2px); }
.search-icon::after { content: ""; position: absolute; top: .52rem; left: .53rem; width: .42rem; height: 2px; background: currentColor; transform: rotate(45deg); transform-origin: left; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { min-width: 0; }
.card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}
.card > a:hover { border-color: #759e90; }
.card > a:hover h3 { text-decoration: underline; }
.card img { width: 100%; aspect-ratio: 1.91; object-fit: cover; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .55rem; padding: 1rem 1.05rem .8rem; }
.card h3 { font-size: 1.06rem; font-weight: 700; }
.category-label { display: inline-block; align-self: flex-start; padding: .15rem .55rem; background: var(--pale); color: var(--teal); border-radius: 4px; font-weight: 700; font-size: .78rem; text-decoration: none; }
a.category-label:hover { text-decoration: underline; }
.card-arrow { margin-top: auto; align-self: flex-end; font-size: 1.15rem; color: var(--teal); }
.empty-state { padding: 2rem 0; }
.empty-state p { margin-bottom: .8rem; }

.breadcrumb { margin: 1.2rem 0 1.55rem; font-size: .83rem; color: var(--muted); }
.breadcrumb ol { margin: 0; padding: 0; list-style: none; display: flex; align-items: baseline; gap: .4rem .65rem; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "›"; margin-right: .65rem; color: #668476; }
.page-heading { margin-bottom: 1.65rem; }
.page-heading h1, .article-heading h1 { font-size: clamp(1.65rem, 3vw, 2.65rem); letter-spacing: -.035em; color: var(--deep-teal); }
.category-layout, .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 25%); align-items: start; gap: clamp(1.55rem, 3.5vw, 3.3rem); }
.category-layout .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-layout .archive-tools { margin-top: 0; }
.sidebar { padding: 1.05rem; background: var(--pale); border-radius: var(--radius); }
.sidebar h2 { margin-bottom: .75rem; font-size: 1rem; color: var(--deep-teal); }
.side-categories { display: grid; gap: .42rem; }
.side-categories a { font-size: .86rem; padding: .45rem .6rem; gap: .4rem; min-height: 2.6rem; }
.side-all { display: inline-flex; gap: .5rem; align-items: center; margin-top: .8rem; font-size: .85rem; font-weight: 600; }
.article-heading { margin-bottom: 1.25rem; }
.article-heading h1 { margin-top: .65rem; }
.article-image { width: 100%; object-fit: cover; aspect-ratio: 2.18; border-radius: var(--radius); }
.article-body { min-width: 0; margin-top: 1.65rem; line-height: 1.92; overflow-wrap: anywhere; }
.article-body p { margin: 0 0 1.15em; }
.article-body h2 {
  margin: 2em 0 .85em;
  padding: .55em .65em;
  border-left: 4px solid var(--teal);
  background: var(--pale);
  border-radius: 0 6px 6px 0;
  color: var(--deep-teal);
  font-size: 1.42rem;
}
.article-body h3 { margin: 1.6em 0 .65em; color: var(--deep-teal); font-size: 1.15rem; }
.article-body :is(ol, ul) { padding-left: 1.65em; }
.article-body li + li { margin-top: .35em; }
.article-body blockquote { margin: 1rem 0; padding: .5rem 1rem; border-left: 3px solid var(--line); }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.toc { margin: 1.65rem 0; border: 1px solid var(--line); background: #f8faf7; border-radius: 9px; padding: .8rem 1.15rem; }
.toc summary { cursor: pointer; font-weight: 800; color: var(--deep-teal); }
.toc ol { margin: .55rem 0 .2rem; font-size: .92rem; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; margin: 1.25em 0; border: 1px solid var(--line); border-radius: 8px; }
.article-body table { width: 100%; min-width: 30rem; border-collapse: collapse; text-align: left; font-size: .94rem; line-height: 1.7; }
.article-body :is(td, th) { padding: .66em .8em; vertical-align: top; border-bottom: 1px solid var(--line); }
.article-body tr > * + * { border-left: 1px solid var(--line); }
.article-body thead th { background: var(--pale); color: var(--deep-teal); }
.article-body tbody tr:nth-child(even) { background: #f8faf7; }
.article-body tbody tr:last-child > * { border-bottom: 0; }
.related { margin-top: 2.5rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); }
.related h2 { margin-bottom: .65rem; font-size: 1.18rem; color: var(--deep-teal); }
.related li + li { margin-top: .55rem; }
.article-navigation { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; text-align: center; margin-top: 1.5rem; border-block: 1px solid var(--line); padding: .8rem 0; font-size: .86rem; }

.simple-page { max-width: 52rem; }
.simple-content { line-height: 1.85; }
.simple-content > p { margin-bottom: 1rem; }
.simple-content > h2 { margin: 1.6rem 0 .55rem; font-size: 1.2rem; color: var(--deep-teal); }
.simple-content > .button { margin: .3rem 0 1rem; }
.resource-list { display: grid; gap: .8rem; }
.resource-list a { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.resource-list a:hover { background: #f6faf7; border-color: #86a89b; }
.resource-list h2 { font-size: 1.12rem; margin-bottom: .35rem; }
.resource-list p { color: var(--ink); }

@media (max-width: 860px) {
  .wrap { width: min(calc(100% - 2.5rem), 74rem); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-layout, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: 0; padding-top: .6rem; }
  .brand { font-size: .92rem; }
  .brand img { width: 34px; height: 34px; }
  .main-nav { flex-basis: 100%; gap: .25rem .9rem; margin-top: .3rem; }
  .main-nav a { padding: .48rem 0 .6rem; font-size: .78rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-block: 1.85rem; gap: 1.3rem; }
  .hero-copy h1 { font-size: clamp(1.9rem, 8vw, 2.65rem); margin-bottom: .7rem; }
  .hero-copy p { margin-bottom: .9rem; font-size: .94rem; }
  .hero-photo { aspect-ratio: 1.85; }
  .category-section { padding-block: 1.25rem 1.4rem; }
  .category-grid { grid-template-columns: minmax(0, 1fr); gap: .42rem; }
  .category-grid a { min-height: 2.65rem; font-size: .9rem; }
  .archive-section { padding-top: 1.8rem; }
  .article-heading h1, .page-heading h1 { font-size: clamp(1.5rem, 5.6vw, 2rem); }
  .breadcrumb { margin: 1rem 0; }
  .article-body { margin-top: 1.1rem; }
  .article-body h2 { font-size: 1.2rem; }
  .site-footer { margin-top: 3rem; padding-top: 1.25rem; }
}

@media (max-width: 480px) {
  .card-grid, .category-layout .card-grid { grid-template-columns: minmax(0, 1fr); }
  .card > a { display: grid; grid-template-columns: minmax(5rem, .85fr) minmax(0, 1.45fr); }
  .card img { height: 100%; aspect-ratio: auto; border-radius: calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px); }
  .card-copy { padding: .65rem .7rem .55rem; min-width: 0; gap: .35rem; }
  .card h3 { font-size: .92rem; }
  .card .category-label { font-size: .7rem; }
  .card-arrow { line-height: 1; }
}

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