@charset "UTF-8";

/* SANGOの本文には触れず、共通ヘッダー・サイトフッター・通常サイドバーだけを整える。 */
body.dm-site-shell {
  --dm-paper: #fff;
  --dm-tint: #f4f6f8;
  --dm-ink: #0d141b;
  --dm-ink-2: #46535f;
  --dm-ink-3: #6c7a86;
  --dm-line: #dde3e9;
  --dm-line-2: #c3ccd4;
  --dm-blue: #009ef3;
  --dm-blue-dk: #0071c8;
  --dm-void: #0b1219;
  --dm-onvoid-2: #94a3ae;
  --dm-mono: "JetBrains Mono", "SFMono-Regular", Consolas, Menlo, monospace;
  --dm-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", YuGothic, "Yu Gothic", Meiryo, sans-serif;
  --dm-shell: 1240px;
}

body.dm-site-shell .dm-head *,
body.dm-site-shell .dm-foot *,
body.dm-site-shell .dm-site-sidebar * { box-sizing: border-box; }

body.dm-site-shell .dm-shell { width: min(var(--dm-shell), calc(100% - 48px)); margin-inline: auto; }
body.dm-site-shell .dm-skip { position: absolute; left: -9999px; }
body.dm-site-shell .dm-skip:focus { left: 20px; top: 12px; z-index: 100000; padding: 10px 18px; background: #fff; color: var(--dm-ink); border: 1px solid var(--dm-ink); }

body.dm-site-shell .dm-site-shell-notice { position: relative; z-index: 80; display: flex; justify-content: center; gap: 12px; padding: 8px 24px; background: #fff6e2; border-bottom: 1px solid #ecd7a8; color: #6d5322; font-size: 12px; line-height: 1.6; }

body.dm-site-shell .dm-head { position: sticky; top: 0; z-index: 9998; background: #fff; border-bottom: 1px solid var(--dm-line); -webkit-backdrop-filter: none; backdrop-filter: none; transition: background-color .2s ease, backdrop-filter .2s ease, -webkit-backdrop-filter .2s ease; }
body.dm-site-shell.admin-bar .dm-head { top: 32px; }
body.dm-site-shell .dm-head.is-scrolled { background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(1.15) blur(14px); backdrop-filter: saturate(1.15) blur(14px); }
body.dm-site-shell .dm-head__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
body.dm-site-shell .dm-head__logo { display: flex; flex: none; align-items: center; padding: 0; }
body.dm-site-shell .dm-head__logo img { display: block; width: 164px; max-width: 100%; height: auto; margin: 0; }
body.dm-site-shell .dm-head__nav { display: flex; flex-wrap: wrap; gap: 26px; margin-left: auto; }
body.dm-site-shell .dm-head__nav a { position: relative; padding: 6px 0; color: var(--dm-ink-2); font-family: var(--dm-mono); font-size: 11.5px; font-weight: 500; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: color .2s ease, letter-spacing .25s ease; }
body.dm-site-shell .dm-head__nav a::after { content: ""; position: absolute; right: 100%; bottom: 0; left: 0; height: 2px; background: var(--dm-blue); transition: right .22s ease; }
body.dm-site-shell .dm-head__nav a:hover,
body.dm-site-shell .dm-head__nav a:focus-visible,
body.dm-site-shell .dm-head__nav a[aria-current="page"] { color: var(--dm-ink); letter-spacing: .2em; }
body.dm-site-shell .dm-head__nav a:hover::after,
body.dm-site-shell .dm-head__nav a:focus-visible::after,
body.dm-site-shell .dm-head__nav a[aria-current="page"]::after { right: 0; }
body.dm-site-shell .dm-head__cta { position: relative; overflow: hidden; padding: 10px 18px; border-radius: 2px; background: var(--dm-ink); color: #fff; font-family: var(--dm-mono); font-size: 11.5px; font-weight: 700; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: transform .2s ease, background .2s ease; }
body.dm-site-shell .dm-head__cta:hover,
body.dm-site-shell .dm-head__cta:focus-visible { background: var(--dm-blue-dk); color: #fff; transform: translateY(-2px); }
body.dm-site-shell .dm-mobile-nav { display: none; position: relative; margin-left: auto; }
body.dm-site-shell .dm-mobile-nav summary { cursor: pointer; list-style: none; padding: 8px 10px; border: 1px solid var(--dm-line-2); color: var(--dm-ink); font-family: var(--dm-mono); font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .08em; }
body.dm-site-shell .dm-mobile-nav summary::-webkit-details-marker { display: none; }
body.dm-site-shell .dm-mobile-nav nav { position: absolute; top: calc(100% + 10px); right: 0; z-index: 9999; display: grid; min-width: 230px; padding: 10px; background: #fff; border: 1px solid var(--dm-line-2); box-shadow: 0 14px 34px rgba(13, 20, 27, .14); }
body.dm-site-shell .dm-mobile-nav nav a { padding: 10px 12px; color: var(--dm-ink); font-size: 13px; line-height: 1.6; text-decoration: none; }
body.dm-site-shell .dm-mobile-nav nav a + a { border-top: 1px solid var(--dm-line); }
body.dm-site-shell .dm-prog { position: fixed; top: 0; left: 0; z-index: 100001; width: 0; height: 3px; background: var(--dm-blue); pointer-events: none; }

body.dm-site-shell .dm-site-sidebar { display: grid; gap: 30px; align-content: start; color: var(--dm-ink); font-family: var(--dm-sans); }
body.dm-site-shell .dm-site-sidebar section { margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
body.dm-site-shell .dm-widget__h { margin: 0 0 14px; padding: 0 0 10px; border-bottom: 1px solid var(--dm-line); color: var(--dm-ink-3); font-family: var(--dm-mono); font-size: 10.5px; font-weight: 700; line-height: 1.5; letter-spacing: .18em; text-transform: uppercase; }
body.dm-site-shell .dm-profile.dm-profile--side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
body.dm-site-shell .dm-profile--side .dm-profile__face--photo { display: block; width: 100%; max-width: 300px; height: auto; margin: 0; aspect-ratio: 4 / 3; border-radius: 0; object-fit: cover; }
body.dm-site-shell .dm-profile__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; }
body.dm-site-shell .dm-profile__name b { color: var(--dm-ink); font-size: 17px; font-weight: 700; }
body.dm-site-shell .dm-profile__name span { color: var(--dm-ink-3); font-family: var(--dm-mono); font-size: 11px; letter-spacing: .1em; }
body.dm-site-shell .dm-profile--side p { margin: 10px 0 0; color: var(--dm-ink-2); font-size: 13.5px; line-height: 1.9; }
body.dm-site-shell .dm-profile--side .dm-profile__name { margin-top: 0; }
body.dm-site-shell .dm-profile--side .dm-profile__foot { margin-top: 16px; }
body.dm-site-shell .dm-btn--line { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 9px 18px; border: 1px solid var(--dm-line-2); border-radius: 2px; background: #fff; color: var(--dm-ink); font-size: 13px; font-weight: 700; line-height: 1.5; text-decoration: none; }
body.dm-site-shell .dm-btn--line:hover,
body.dm-site-shell .dm-btn--line:focus-visible { border-color: var(--dm-ink); background: var(--dm-ink); color: #fff; }
body.dm-site-shell .dm-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; list-style: none; }
body.dm-site-shell .dm-cats li { margin: 0; padding: 0; }
body.dm-site-shell .dm-cats a { display: inline-block; padding: 5px 13px; border: 1px solid var(--dm-line-2); border-radius: 2px; color: var(--dm-ink-2); font-size: 12.5px; line-height: 1.6; text-decoration: none; transition: background .18s ease, border-color .18s ease, color .18s ease; }
body.dm-site-shell .dm-cats a:hover,
body.dm-site-shell .dm-cats a:focus-visible { border-color: var(--dm-ink); background: var(--dm-ink); color: #fff; }
body.dm-site-shell .dm-cats i { margin-left: 6px; font-family: var(--dm-mono); font-size: 10.5px; font-style: normal; opacity: .7; }

body.dm-site-shell .dm-foot { clear: both; padding: 40px 0 46px; background: var(--dm-void); border-top: 1px solid rgba(255, 255, 255, .1); color: var(--dm-onvoid-2); font-family: var(--dm-sans); }
body.dm-site-shell .dm-foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px 40px; }
body.dm-site-shell .dm-foot nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
body.dm-site-shell .dm-foot a { color: var(--dm-onvoid-2); font-size: 13px; line-height: 1.7; text-decoration: none; }
body.dm-site-shell .dm-foot a:hover,
body.dm-site-shell .dm-foot a:focus-visible { color: #fff; }
body.dm-site-shell .dm-foot__copy { margin: 0; color: var(--dm-onvoid-2); font-family: var(--dm-mono); font-size: 11px; line-height: 1.7; letter-spacing: .08em; }

@media (max-width: 782px) {
  body.dm-site-shell.admin-bar .dm-head { top: 46px; }
}

@media (max-width: 700px) {
  body.dm-site-shell .dm-shell { width: calc(100% - 32px); }
  body.dm-site-shell .dm-site-shell-notice { display: grid; gap: 0; padding-inline: 18px; }
  body.dm-site-shell .dm-head__nav { display: none; }
  body.dm-site-shell .dm-head__inner { min-height: 58px; gap: 12px; }
  body.dm-site-shell .dm-head__logo img { width: 132px; }
  body.dm-site-shell .dm-mobile-nav { display: block; }
  body.dm-site-shell .dm-head__cta { margin-left: 0; padding: 8px 13px; font-size: 10.5px; }
  body.dm-site-shell .dm-site-sidebar { grid-template-columns: minmax(0, 1fr); }
  body.dm-site-shell .dm-foot__inner { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  body.dm-site-shell .dm-head,
  body.dm-site-shell .dm-head * { transition: none !important; }
}

/* SANGOの追従サイドバー目次をサイト共通でコンパクトにする。 */
@media (min-width: 783px) {
  #fixed_sidebar {
    top: 78px;
    max-height: calc(100vh - 88px);
  }

  body.admin-bar #fixed_sidebar {
    top: 110px;
    max-height: calc(100vh - 120px);
  }
}

#fixed_sidebar #toc_container {
  margin: 0;
  padding: 10px 12px;
}

#fixed_sidebar #toc_container .toc_title {
  display: flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 0 0 0 36px;
  font-size: 16px;
  font-weight: 700;
  line-height: 28px;
}

#fixed_sidebar #toc_container .toc_title::before {
  width: 28px;
  height: 28px;
  font-size: 12px;
  line-height: 28px;
}

#fixed_sidebar #toc_container .toc_list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

#fixed_sidebar #toc_container .toc_list > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#fixed_sidebar #toc_container .toc_list > li > a {
  position: relative;
  display: block;
  padding: 4px 4px 4px 12px;
  color: #555;
  font-size: 12.75px;
  font-weight: 400;
  line-height: 1.5;
}

#fixed_sidebar #toc_container .dm-toc-source {
  display: block;
  margin-top: 1px;
  color: #718090;
  font-family: monospace;
  font-size: 9.75px;
  font-weight: 400;
  letter-spacing: .025em;
  line-height: 1.35;
}

#fixed_sidebar #toc_container .toc_list > li > a::before {
  position: absolute;
  top: 50%;
  left: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--wp--preset--color--sango-main, #009ef3);
  content: "";
  transform: translateY(-50%);
}

#fixed_sidebar #toc_container .toc_list > li + li > a {
  border-top: 1px solid rgba(0, 0, 0, .055);
}

#fixed_sidebar #toc_container .toc_list li ul {
  margin: 1px 0 4px 7px;
  padding: 0 0 0 8px;
  border-left: 1px solid rgba(0, 158, 243, .18);
  list-style: none;
}

#fixed_sidebar #toc_container .toc_list li ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#fixed_sidebar #toc_container .toc_list li ul a {
  display: block;
  padding: 3px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
}

#fixed_sidebar #toc_container a:hover,
#fixed_sidebar #toc_container a:focus-visible {
  background: rgba(0, 158, 243, .06);
  color: var(--wp--preset--color--sango-main, #009ef3);
  text-decoration: none;
}

#fixed_sidebar #toc_container a:focus-visible {
  outline: 2px solid var(--wp--preset--color--sango-main, #009ef3);
  outline-offset: 1px;
}
