@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&family=Noto+Serif+JP:wght@500;600&display=swap");

:root {
  --ink: #171717;
  --muted: #707070;
  --line: #dedbd5;
  --paper: #ffffff;
  --soft: #f4f2ed;
  --accent: #9c3f55;
  --gold: #b4945c;
  --header-height: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
}

body.panel-open,
body.toc-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.reading-progress {
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.article-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  display: grid;
  grid-template-columns: 92px 1fr 92px;
  align-items: center;
  height: var(--header-height);
  color: #fff;
  background: #111;
  transition: box-shadow 0.3s ease;
}

.article-header.is-scrolled {
  box-shadow: 0 8px 30px rgb(0 0 0 / 16%);
}

.article-brand {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.article-brand img {
  width: 210px;
  height: 35px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.article-brand span {
  font-size: 9px;
  letter-spacing: 0.21em;
  opacity: 0.7;
}

.header-icon {
  display: grid;
  place-items: center;
  align-self: stretch;
  width: 92px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header-icon:hover {
  background: #1f1f1f;
}

.search-toggle svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.menu-toggle {
  gap: 6px;
  align-content: center;
}

.menu-toggle span {
  width: 27px;
  height: 1px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.panel-open .menu-toggle span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.panel-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.panel-open .menu-toggle span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.header-search {
  position: absolute;
  top: 100%;
  left: 0;
  display: grid;
  grid-template-columns: auto minmax(200px, 620px) auto;
  justify-content: center;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-height: 0;
  padding: 0 30px;
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 35px rgb(0 0 0 / 10%);
  opacity: 0;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

.header-search.is-open {
  max-height: 130px;
  padding-top: 28px;
  padding-bottom: 28px;
  opacity: 1;
}

.header-search label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.header-search input {
  width: 100%;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid #999;
  outline: none;
}

.header-search input:focus {
  border-color: var(--accent);
}

.header-search button {
  padding: 11px 22px;
  color: #fff;
  border: 0;
  background: #111;
  cursor: pointer;
}

.menu-panel,
.toc-drawer {
  position: fixed;
  z-index: 1200;
  top: 0;
  right: 0;
  width: min(480px, 90vw);
  height: 100dvh;
  padding: 46px 52px;
  overflow-y: auto;
  color: #fff;
  background: #141414;
  transform: translateX(102%);
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.panel-open .menu-panel,
.toc-open .toc-drawer {
  transform: translateX(0);
}

.panel-head,
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 30px;
  border-bottom: 1px solid #383838;
}

.panel-head p,
.drawer-head small {
  margin: 0;
  font: 600 11px/1.4 "DM Sans", sans-serif;
  letter-spacing: 0.24em;
  color: #a8a8a8;
}

.panel-head button,
.drawer-head button {
  padding: 0;
  color: #fff;
  border: 0;
  background: none;
  font: 300 36px/0.8 "DM Sans", sans-serif;
  cursor: pointer;
}

.menu-panel nav {
  display: grid;
}

.menu-panel nav > a {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: baseline;
  padding: 21px 0;
  border-bottom: 1px solid #383838;
}

.menu-panel nav span {
  font: 500 10px/1 "DM Sans", sans-serif;
  color: var(--gold);
}

.menu-panel nav b {
  font: 500 24px/1.2 "DM Sans", sans-serif;
}

.menu-panel nav small {
  font-size: 10px;
  color: #9a9a9a;
}

.panel-hobbies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 28px;
}

.panel-hobbies p {
  width: 100%;
  margin: 0 0 8px;
  font: 600 10px/1 "DM Sans", sans-serif;
  letter-spacing: 0.2em;
  color: #888;
}

.panel-hobbies a {
  padding: 5px 12px;
  border: 1px solid #444;
  font-size: 11px;
}

.page-backdrop {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: none;
  border: 0;
  background: rgb(0 0 0 / 55%);
  cursor: default;
}

.panel-open .page-backdrop,
.toc-open .page-backdrop {
  display: block;
}

.article-shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 120px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 44px;
  color: #999;
  font: 500 10px/1.5 "DM Sans", "Noto Sans JP", sans-serif;
  letter-spacing: 0.09em;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 845px) 305px;
  justify-content: space-between;
  gap: 50px;
}

.post {
  min-width: 0;
}

.post-header {
  margin-bottom: 36px;
}

.post-kicker {
  margin: 0 0 15px;
  color: var(--accent);
  font: 600 11px/1.5 "DM Sans", sans-serif;
  letter-spacing: 0.18em;
}

.post-header h1 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(27px, 3.1vw, 39px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.025em;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 15px;
  margin-top: 25px;
  color: #8b8b8b;
  font: 500 10px/1.5 "DM Sans", "Noto Sans JP", sans-serif;
  letter-spacing: 0.06em;
}

.post-meta a {
  padding: 5px 10px;
  color: #fff;
  background: #1a1a1a;
}

.post-meta .ad-label {
  padding: 3px 7px;
  border: 1px solid #bbb;
  color: #777;
  font-size: 8px;
}

.post-hero {
  margin: 0 0 44px;
}

.post-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

figcaption {
  margin-top: 8px;
  color: #929292;
  font-size: 10px;
  line-height: 1.7;
}

.takeaway-box {
  margin: 42px 0;
  border: 1px solid #222;
  background: #fff;
}

.takeaway-box h2 {
  margin: 0;
  padding: 13px 22px;
  color: #fff;
  background: #181818;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.takeaway-box ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 24px 28px 25px;
  list-style: none;
}

.takeaway-box li {
  position: relative;
  padding-left: 27px;
  line-height: 1.7;
}

.takeaway-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.author-greeting {
  display: flex;
  align-items: center;
  gap: 19px;
  margin: 48px 0 28px;
}

.author-greeting img {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
}

.author-greeting p {
  position: relative;
  margin: 0;
  padding: 14px 20px;
  border: 1px solid #d7d7d7;
  border-radius: 3px;
  background: #fff;
  line-height: 1.6;
}

.author-greeting p::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -7px;
  width: 12px;
  height: 12px;
  border-bottom: 1px solid #d7d7d7;
  border-left: 1px solid #d7d7d7;
  background: #fff;
  transform: rotate(45deg);
}

.article-lead p {
  margin: 0 0 1.5em;
}

mark {
  padding: 0 0.16em;
  background: linear-gradient(transparent 63%, #eed8de 63%);
}

.table-of-contents {
  margin: 58px 0 82px;
  padding: 36px 40px 38px;
  border-top: 4px solid #1d1d1d;
  background-color: #f4f2ed;
  background-image: radial-gradient(#d9d6cf 0.75px, transparent 0.75px);
  background-size: 7px 7px;
}

.toc-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.toc-heading span {
  color: var(--accent);
  font: 600 9px/1 "DM Sans", sans-serif;
  letter-spacing: 0.2em;
}

.toc-heading h2 {
  margin: 0;
  font: 600 20px/1.3 "Noto Serif JP", serif;
}

.table-of-contents ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.table-of-contents > ol > li {
  border-top: 1px solid #d4d0c8;
}

.table-of-contents > ol > li:last-child {
  border-bottom: 1px solid #d4d0c8;
}

.table-of-contents a {
  display: flex;
  gap: 15px;
  padding: 10px 4px;
  line-height: 1.55;
}

.table-of-contents a:hover {
  color: var(--accent);
}

.table-of-contents a span {
  color: var(--accent);
  font: 600 11px/2.1 "DM Sans", sans-serif;
}

.table-of-contents li ol {
  padding: 0 0 8px 43px;
}

.table-of-contents li ol a {
  padding: 4px 0;
  font-size: 12px;
}

.table-of-contents li ol a::before {
  content: "—";
  color: #aaa;
}

.post-section {
  margin-top: 86px;
}

.post-section > h2 {
  margin: 0 0 34px;
  padding: 0 0 18px;
  border-bottom: 1px solid #bbb;
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.03em;
}

.post-section > h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin-bottom: -20px;
  background: #1b1b1b;
}

.post-section h3 {
  margin: 52px 0 24px;
  padding: 5px 0 5px 18px;
  border-left: 4px solid #1c1c1c;
  font-size: 18px;
  line-height: 1.6;
}

.post-section > p {
  margin: 0 0 1.8em;
}

.note-box {
  margin: 35px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--gold);
  background: var(--soft);
}

.note-box b {
  display: block;
  margin-bottom: 5px;
  color: #8b6b38;
  font: 700 10px/1.4 "DM Sans", sans-serif;
  letter-spacing: 0.2em;
}

.note-box p {
  margin: 0;
}

.check-list,
.summary-list {
  display: grid;
  gap: 12px;
  margin: 30px 0;
  padding: 25px 30px;
  list-style: none;
  background: var(--soft);
}

.check-list li,
.summary-list li {
  position: relative;
  padding-left: 28px;
  line-height: 1.7;
}

.check-list li::before,
.summary-list li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 1px;
  width: 12px;
  height: 6px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.content-image {
  margin: 44px 0;
}

.content-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.comparison-wrap {
  margin: 35px 0;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 590px;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.65;
}

th,
td {
  padding: 14px 15px;
  border: 1px solid #d2d2d2;
  text-align: left;
  vertical-align: top;
}

thead th {
  color: #fff;
  background: #1b1b1b;
  font-weight: 600;
}

tbody th {
  width: 24%;
  background: #f1efeb;
  font-weight: 600;
}

.warning-box {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 18px;
  margin: 36px 0;
  padding: 25px 27px;
  border: 1px solid #e4c9cf;
  background: #fbf3f5;
}

.warning-box > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font: 700 18px/1 "DM Sans", sans-serif;
}

.warning-box b {
  display: block;
  margin-bottom: 4px;
}

.warning-box p {
  margin: 0;
}

.number-steps {
  display: grid;
  gap: 2px;
  margin: 35px 0;
}

.number-steps > div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  background: var(--soft);
}

.number-steps span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: #1a1a1a;
  font: 600 13px/1 "DM Sans", sans-serif;
}

.number-steps p {
  margin: 0;
}

.number-steps b {
  display: block;
  margin-bottom: 2px;
}

.faq-section details {
  border-bottom: 1px solid var(--line);
}

.faq-section details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq-section summary {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 13px;
  padding: 20px 7px;
  font-weight: 600;
  line-height: 1.65;
  list-style: none;
  cursor: pointer;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: "+";
  grid-column: 3;
  color: #999;
  font: 400 23px/1 "DM Sans", sans-serif;
}

.faq-section details[open] summary::after {
  content: "−";
}

.faq-section summary span,
.faq-section details > div > span {
  font: 600 19px/1 "DM Sans", sans-serif;
  color: var(--accent);
}

.faq-section details > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 0 7px 24px;
}

.faq-section details > div > span {
  color: var(--gold);
}

.faq-section details p {
  margin: 0;
}

.summary-section {
  padding: 42px 46px 45px;
  background: var(--soft);
}

.summary-section > h2 {
  border-color: #c9c5bd;
}

.summary-section > p:last-child {
  margin-bottom: 0;
}

.summary-list {
  padding: 22px 25px;
  background: #fff;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 44px 0;
}

.article-tags span {
  margin-right: 5px;
  color: #999;
  font: 600 9px/1 "DM Sans", sans-serif;
  letter-spacing: 0.18em;
}

.article-tags a {
  padding: 6px 13px;
  border: 1px solid #ddd;
  font-size: 11px;
}

.article-tags a:hover {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.author-card {
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 28px;
  align-items: center;
  margin: 65px 0 80px;
  padding: 32px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.author-card img {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  object-fit: cover;
}

.author-card small {
  color: var(--accent);
  font: 600 9px/1 "DM Sans", sans-serif;
  letter-spacing: 0.2em;
}

.author-card h2 {
  margin: 5px 0 8px;
  font-size: 17px;
}

.author-card p {
  margin: 0;
  color: #555;
  font-size: 12px;
  line-height: 1.8;
}

.related-heading {
  margin-bottom: 26px;
  padding-left: 17px;
  border-left: 3px solid var(--ink);
}

.related-heading p {
  margin: 0 0 1px;
  color: var(--accent);
  font: 600 9px/1.4 "DM Sans", sans-serif;
  letter-spacing: 0.2em;
}

.related-heading h2 {
  margin: 0;
  font: 600 22px/1.4 "Noto Serif JP", serif;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.related-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.related-grid a {
  overflow: hidden;
}

.related-grid a:hover img {
  transform: scale(1.035);
}

.related-grid small {
  display: block;
  margin: 12px 0 4px;
  color: var(--accent);
  font-size: 9px;
}

.related-grid h3 {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
}

.article-sidebar {
  position: relative;
}

.sidebar-inner {
  height: 100%;
  min-width: 0;
}

.sidebar-section {
  margin: 0 0 40px;
}

.sidebar-section > h2 {
  margin: 0 0 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid #dedede;
  font: 700 17px/1.4 "DM Sans", "Noto Sans JP", sans-serif;
}

.sidebar-search form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
}

.sidebar-search input {
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: #f3f3f3;
  color: var(--ink);
  font: inherit;
}

.sidebar-search button {
  height: 44px;
  border: 0;
  color: #fff;
  background: #171717;
  font-size: 18px;
  cursor: pointer;
}

.sidebar-categories nav {
  display: grid;
}

.sidebar-categories nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 8px;
  border-bottom: 1px solid #e4e4e4;
  color: #242424;
  font-size: 12px;
  font-weight: 600;
}

.sidebar-categories nav a span::before {
  content: "▰";
  margin-right: 8px;
  font-size: 8px;
}

.sidebar-categories nav small {
  color: #777;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.sidebar-keywords nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.sidebar-keywords nav a {
  color: #505050;
  font-size: 11px;
  line-height: 1.6;
}

.sidebar-keywords nav a:hover,
.sidebar-categories nav a:hover {
  color: var(--accent);
}

.fld-sidebar-ad {
  width: 100%;
  min-height: 275px;
  margin: 0 0 40px;
  overflow: hidden;
  text-align: center;
}

.fld-sidebar-ad > .freel-entity-placement {
  width: 100% !important;
}

.sidebar-sticky-toc {
  position: sticky;
  top: calc(var(--header-height) + var(--fld-admin-bar-height) + 12px);
  max-height: calc(100dvh - var(--header-height) - var(--fld-admin-bar-height) - 28px);
  margin-bottom: 0;
  padding-right: 10px;
  padding-bottom: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.sidebar-sticky-toc nav {
  display: grid;
}

.sidebar-sticky-toc > h2 {
  margin: 0 0 19px;
  padding: 0;
  border: 0;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.sidebar-sticky-toc > h2::after {
  content: "";
  display: block;
  width: 20px;
  height: 1px;
  margin-top: 10px;
  background: var(--accent);
}

.sidebar-sticky-toc nav a {
  display: block;
  padding: 11px 5px;
  border: 0;
  color: #6d7477;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.6;
  transition: color 0.2s ease;
}

.sidebar-sticky-toc nav a span {
  display: inline-block;
  width: 30px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 700;
}

.sidebar-sticky-toc nav a:hover,
.sidebar-sticky-toc nav a.is-active {
  color: var(--accent);
}

.sidebar-sticky-toc .fld-sidebar-ad {
  margin: 28px 0 0;
}

.article-footer {
  padding: 75px max(40px, calc((100vw - 1120px) / 2)) 25px;
  color: #fff;
  background: #111;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 55px;
}

.footer-logo img {
  width: 220px;
  filter: brightness(0) invert(1);
}

.footer-logo span {
  display: block;
  margin-top: 7px;
  color: #8e8e8e;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.footer-top nav {
  display: flex;
  gap: 28px;
}

.footer-top nav a {
  font: 600 10px/1 "DM Sans", sans-serif;
  letter-spacing: 0.12em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #717171;
  font: 500 9px/1.5 "DM Sans", sans-serif;
  letter-spacing: 0.12em;
}

.footer-bottom p {
  margin: 0;
}

.floating-actions {
  position: fixed;
  z-index: 900;
  right: 25px;
  bottom: 25px;
  display: grid;
  gap: 10px;
}

.floating-actions button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid #e1e1e1;
  border-radius: 50%;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 6px 20px rgb(0 0 0 / 10%);
  cursor: pointer;
}

#floatingToc {
  align-content: center;
  gap: 3px;
}

#floatingToc span {
  width: 15px;
  height: 1px;
  background: #222;
}

#floatingToc small {
  margin-top: 2px;
  font-size: 8px;
}

#backToTop {
  color: #fff;
  border-color: #171717;
  background: #171717;
  font: 400 19px/1 "DM Sans", sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#backToTop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toc-drawer {
  color: var(--ink);
  background: #fff;
}

.drawer-head {
  border-color: #d5d5d5;
}

.drawer-head h2 {
  margin: 5px 0 0;
  font: 600 24px/1.3 "Noto Serif JP", serif;
}

.drawer-head button {
  color: var(--ink);
}

.toc-drawer nav {
  display: grid;
  padding-top: 18px;
}

.toc-drawer nav a {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #e4e4e4;
  font-size: 13px;
  line-height: 1.6;
}

.toc-drawer nav span {
  color: var(--accent);
  font: 600 10px/2.1 "DM Sans", sans-serif;
}

@media (max-width: 980px) {
  :root {
    --header-height: 82px;
  }

  .article-layout {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
  }

  .article-sidebar {
    display: none;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 70px;
  }

  body {
    font-size: 14px;
    line-height: 1.95;
  }

  .article-header {
    grid-template-columns: 70px 1fr 70px;
  }

  .header-icon {
    width: 70px;
  }

  .article-brand img {
    width: 157px;
    height: 29px;
  }

  .article-brand span {
    display: none;
  }

  .header-search {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding-right: 17px;
    padding-left: 17px;
  }

  .header-search label {
    display: none;
  }

  .header-search.is-open {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .header-search button {
    padding-right: 16px;
    padding-left: 16px;
  }

  .article-shell {
    width: min(100% - 34px, 720px);
    padding-top: 24px;
    padding-bottom: 80px;
  }

  .breadcrumb {
    margin-bottom: 31px;
    white-space: nowrap;
    overflow: hidden;
  }

  .post-kicker {
    font-size: 9px;
  }

  .post-header h1 {
    font-size: 24px;
    line-height: 1.55;
  }

  .post-meta {
    gap: 8px 10px;
    margin-top: 20px;
    font-size: 9px;
  }

  .post-hero {
    width: calc(100% + 34px);
    margin-left: -17px;
  }

  .post-hero figcaption {
    padding: 0 17px;
  }

  .takeaway-box {
    margin: 34px 0;
  }

  .takeaway-box h2 {
    padding: 11px 17px;
    font-size: 14px;
  }

  .takeaway-box ul {
    padding: 20px 19px;
  }

  .author-greeting {
    gap: 14px;
    margin-top: 38px;
  }

  .author-greeting img {
    width: 55px;
    height: 55px;
  }

  .author-greeting p {
    padding: 11px 14px;
    font-size: 12px;
  }

  .table-of-contents {
    margin: 48px 0 68px;
    padding: 27px 21px 28px;
  }

  .table-of-contents a {
    gap: 10px;
    font-size: 12px;
  }

  .table-of-contents li ol {
    padding-left: 33px;
  }

  .post-section {
    margin-top: 72px;
  }

  .post-section > h2 {
    margin-bottom: 29px;
    font-size: 20px;
  }

  .post-section h3 {
    margin-top: 43px;
    font-size: 16px;
  }

  .note-box,
  .check-list,
  .warning-box {
    padding: 20px;
  }

  .warning-box {
    grid-template-columns: 34px 1fr;
    gap: 13px;
  }

  .warning-box > span {
    width: 32px;
    height: 32px;
  }

  .number-steps > div {
    grid-template-columns: 38px 1fr;
    gap: 13px;
    padding: 19px 17px;
  }

  .number-steps span {
    width: 34px;
    height: 34px;
  }

  .summary-section {
    width: calc(100% + 34px);
    margin-left: -17px;
    padding: 35px 17px 38px;
  }

  .author-card {
    grid-template-columns: 75px 1fr;
    gap: 18px;
    padding: 25px 0;
  }

  .author-card img {
    width: 75px;
    height: 75px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .related-grid a {
    display: grid;
    grid-template-columns: 128px 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 15px;
  }

  .related-grid img {
    grid-row: 1 / 3;
    aspect-ratio: 4 / 3;
  }

  .related-grid small {
    align-self: end;
    margin: 0 0 3px;
  }

  .menu-panel,
  .toc-drawer {
    width: min(100%, 420px);
    padding: 30px 25px;
  }

  .article-footer {
    padding: 58px 24px 22px;
  }

  .footer-top {
    display: grid;
    gap: 35px;
  }

  .footer-top nav {
    flex-wrap: wrap;
    gap: 15px 22px;
  }

  .footer-bottom {
    gap: 12px;
  }

  .floating-actions {
    right: 14px;
    bottom: 14px;
  }

  .floating-actions button {
    width: 47px;
    height: 47px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* WordPress production integration */
body.fld-article-page {
  min-width: 0;
  overflow-x: hidden;
  --fld-admin-bar-height: 0px;
}

body.fld-article-page #wpadminbar {
  z-index: 1400;
}

body.admin-bar.fld-article-page .article-header {
  top: 32px;
}

body.admin-bar.fld-article-page {
  --fld-admin-bar-height: 32px;
}

body.fld-article-page > .freel-entity-placement {
  display: none !important;
}

body.fld-article-page .article-header {
  display: grid !important;
}

body.fld-article-page .article-header .header-icon {
  height: 100% !important;
}

body.fld-article-page .article-header .menu-toggle {
  position: static !important;
  inset: auto !important;
  grid-column: 3;
  justify-self: stretch;
  transform: none;
}

body.fld-article-page .post-content {
  line-height: 2;
}

body.fld-article-page .post-content > *:first-child {
  margin-top: 0;
}

body.fld-article-page .post-content p {
  margin: 0 0 1.8em;
}

body.fld-article-page .post-content h2 {
  margin: 86px 0 34px;
  padding: 0 0 18px;
  border-bottom: 1px solid #bbb;
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.03em;
}

body.fld-article-page .post-content h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin-bottom: -20px;
  background: #1b1b1b;
}

body.fld-article-page .post-content h3 {
  margin: 52px 0 24px;
  padding: 5px 0 5px 18px;
  border-left: 4px solid #1c1c1c;
  font-size: 18px;
  line-height: 1.6;
}

body.fld-article-page .post-content h4 {
  margin: 40px 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #bbb;
  font-size: 16px;
}

body.fld-article-page .post-content ul,
body.fld-article-page .post-content ol {
  margin: 28px 0;
  padding: 22px 28px 22px 48px;
  background: var(--soft);
}

body.fld-article-page .post-content li + li {
  margin-top: 8px;
}

body.fld-article-page .post-content blockquote {
  margin: 34px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--gold);
  background: var(--soft);
}

body.fld-article-page .post-content blockquote p:last-child {
  margin-bottom: 0;
}

body.fld-article-page .post-content img {
  height: auto;
}

body.fld-article-page .post-content figure {
  max-width: 100%;
  margin: 38px 0;
}

body.fld-article-page .post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.fld-article-page .post-content table {
  margin: 32px 0;
}

body.fld-article-page .post-content .author-greeting {
  margin-top: 42px;
}

body.fld-article-page .post-content .toc,
body.fld-article-page .post-content .toc-widget-box {
  margin: 58px 0 72px;
  padding: 34px 38px;
  border-top: 4px solid #1d1d1d;
  background-color: #f4f2ed;
  background-image: radial-gradient(#d9d6cf 0.75px, transparent 0.75px);
  background-size: 7px 7px;
}

.toc-drawer nav .toc-sub,
.sidebar-sticky-toc nav .toc-sub {
  padding: 11px 5px;
  color: #6d7477;
  font-size: 10px;
}

.sidebar-sticky-toc nav .toc-sub.is-active {
  color: var(--accent);
}

@media (max-width: 1248px) {
  .article-layout {
    grid-template-columns: minmax(0, 845px);
    justify-content: center;
  }

  .article-sidebar {
    display: none;
  }
}

body.fld-article-page .article-header a,
body.fld-article-page .article-footer a {
  text-decoration: none;
}

.fld-footer-ads {
  padding: 42px max(24px, calc((100vw - 1320px) / 2)) 48px;
  color: #171717;
  background: #f4f2ed;
}

.fld-footer-ad-heading {
  margin: 0 0 20px;
  text-align: center;
  font: 600 10px/1.4 "DM Sans", sans-serif;
  letter-spacing: .2em;
  color: #777;
}

.fld-footer-ad-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 300px));
  justify-content: center;
  gap: 24px;
}

.fld-footer-ad-item {
  display: flex;
  min-width: 0;
  justify-content: center;
  overflow: hidden;
}

.fld-footer-ad-item > .freel-entity-placement,
.fld-footer-ad-item .freel-adlabel {
  width: 100% !important;
}

body.fld-article-page .freel-adlabel {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

@media (max-width: 1280px) {
  .fld-footer-ad-grid {
    grid-template-columns: repeat(2, minmax(0, 300px));
  }
}

@media (max-width: 680px) {
  .fld-footer-ad-grid {
    grid-template-columns: minmax(0, 300px);
  }
}

@media (max-width: 782px) {
  body.admin-bar.fld-article-page {
    --fld-admin-bar-height: 46px;
  }

  body.admin-bar.fld-article-page .article-header {
    top: 46px;
  }
}

@media (max-width: 700px) {
  body.fld-article-page .post-content h2 {
    margin-top: 72px;
    font-size: 20px;
  }

  body.fld-article-page .post-content h3 {
    margin-top: 43px;
    font-size: 16px;
  }

  body.fld-article-page .post-content .toc,
  body.fld-article-page .post-content .toc-widget-box {
    padding: 27px 21px;
  }
}
