:root {
  --bg: #ffffff;
  --ink: #333333;
  --muted: #777777;
  --line: #d7d7d7;
  --line-dark: #111111;
  --accent: #f06a00;
  --accent-dark: #bd4b00;
  --main: #25899a;
  --soft: #f7f5ef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  line-height: 1.9;
}

a {
  color: inherit;
}

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

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

.site-header {
  background: #ffffff;
}

.logo-area {
  padding: 22px 18px 16px;
  text-align: center;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.05;
  text-decoration: none;
}

.site-logo svg {
  width: 72px;
  height: auto;
}

.site-logo small {
  display: block;
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 0;
}

.global-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 18px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
}

.global-nav a {
  text-decoration: none;
}

.global-nav a:hover {
  color: var(--accent);
}

.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 18px 0;
}

.breadcrumb {
  margin: 0 0 18px;
  color: #777777;
  font-size: 12px;
}

.breadcrumb a {
  color: #555555;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.content-frame {
  display: grid;
  grid-template-columns: minmax(0, 770px) 300px;
  gap: 42px;
  align-items: start;
}

.article {
  min-width: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 0 0 8px;
  color: #777777;
  font-size: 13px;
  font-weight: 800;
}

.article-meta a {
  color: var(--accent-dark);
  text-decoration: none;
}

.article-meta a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
p,
li,
dt,
dd,
th,
td,
summary {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 3px double var(--line);
  color: #333333;
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
}

.main-visual {
  margin: 18px 0 36px;
}

.main-visual svg,
.side-visual svg,
.latest-item svg {
  display: block;
  width: 100%;
  height: auto;
}

p {
  margin: 0 0 22px;
}

.chapter {
  margin: 40px 0 0;
}

.chapter h2 {
  margin: 0 0 22px;
  padding-left: 16px;
  border-left: 5px solid var(--accent);
  color: #333333;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0;
}

.check-lines,
.step-lines {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.check-lines li,
.step-lines li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.check-lines li:last-child,
.step-lines li:last-child {
  border-bottom: 1px solid var(--line);
}

.check-lines b,
.step-lines b,
.definition-lines dt {
  color: var(--accent-dark);
  font-weight: 900;
}

.check-lines span,
.step-lines span {
  display: block;
}

.table-scroll {
  overflow-x: auto;
  margin: 14px 0 28px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

th,
td {
  padding: 13px 12px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  border-top: 2px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: #f7f7f7;
}

tbody th {
  color: var(--accent-dark);
}

.cta-band {
  margin: 42px 0;
  padding: 28px;
  background: var(--main);
  color: #ffffff;
}

.cta-band .tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.cta-band h2 {
  margin: 0 0 14px;
  padding-left: 0;
  border-left: 0;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 32px);
}

.button-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  margin-top: 8px;
  padding: 12px 18px;
  background: #ffffff;
  color: #111111;
  font-weight: 900;
  line-height: 1.45;
  text-decoration: none;
}

.button-link:hover {
  background: #eeeeee;
}

.definition-lines {
  margin: 0 0 24px;
}

.definition-lines div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.definition-lines div:last-child {
  border-bottom: 1px solid var(--line);
}

.definition-lines dd {
  margin: 0;
}

.source-note {
  margin: -6px 0 24px;
  color: #666666;
  font-size: 12px;
  line-height: 1.7;
}

.source-note a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

details {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  color: #333333;
  font-weight: 900;
}

details p {
  margin: 12px 0 0;
}

.side-area {
  min-width: 0;
}

.side-visual {
  margin-bottom: 28px;
}

.side-section {
  margin: 0 0 30px;
}

.side-section h2 {
  margin: 0 0 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 900;
}

.columnist-side a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.columnist-side b,
.columnist-side span {
  display: block;
}

.columnist-side b {
  color: var(--accent-dark);
  font-size: 16px;
}

.columnist-side span {
  margin-top: 6px;
  color: #555555;
  font-size: 13px;
  line-height: 1.65;
}

.latest-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: #555555;
  font-size: 13px;
  line-height: 1.55;
  text-decoration: none;
}

.latest-item:hover {
  color: var(--accent);
}

.latest-item b,
.latest-item small {
  display: block;
}

.latest-item b {
  color: #444444;
  font-size: 13px;
  font-weight: 800;
}

.latest-item small {
  margin-top: 2px;
  color: #888888;
  font-size: 11px;
}

.site-footer {
  margin-top: 40px;
  padding: 28px 18px;
  background: #111111;
  color: #ffffff;
  text-align: center;
}

.site-footer p {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 13px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
  font-size: 13px;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.author-page {
  max-width: 900px;
}

.author-article {
  padding-top: 26px;
}

.author-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.author-title {
  margin: -2px 0 34px;
  color: #555555;
  font-size: 18px;
  font-weight: 800;
}

.author-article .chapter {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.home-page {
  max-width: 1180px;
}

.r7g-hero {
  padding: 34px 0 40px;
}

.domain-mark,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.r7g-hero h1 {
  margin-bottom: 18px;
  padding-bottom: 18px;
  font-size: clamp(48px, 9vw, 116px);
  line-height: .96;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 28px;
  color: #333333;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 800;
  line-height: 1.65;
}

.hero-grid {
  display: block;
  width: 100%;
  height: auto;
}

.home-section {
  margin: 54px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.home-section h2 {
  margin: 0 0 24px;
  padding: 0;
  border-left: 0;
  color: #111111;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.15;
}

.grid-axis {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1.1fr .9fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.grid-axis li {
  min-height: 178px;
  padding: 20px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid-axis li:nth-child(2),
.grid-axis li:nth-child(6) {
  background: var(--soft);
}

.grid-axis li:nth-child(4),
.grid-axis li:nth-child(7) {
  background: #111111;
  color: #ffffff;
}

.grid-axis span,
.category-entry span,
.article-row span,
.mini-directory span {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.grid-axis b,
.grid-axis small,
.category-entry b,
.category-entry em,
.category-entry small,
.article-row b,
.article-row small {
  display: block;
}

.grid-axis b {
  margin: 10px 0 12px;
  font-size: 25px;
  font-weight: 900;
}

.grid-axis small {
  color: inherit;
  font-size: 14px;
  line-height: 1.75;
}

.category-map {
  display: grid;
  grid-template-columns: 1.35fr .75fr 1fr .9fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.category-entry {
  min-height: 170px;
  padding: 20px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #333333;
  text-decoration: none;
}

.category-entry:hover,
.article-row:hover,
.mini-directory a:hover {
  color: var(--accent-dark);
}

.category-entry:nth-child(3),
.category-entry:nth-child(6) {
  background: var(--soft);
}

.category-entry:nth-child(4),
.category-entry:nth-child(8) {
  background: #111111;
  color: #ffffff;
}

.category-entry b {
  margin: 10px 0 8px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.45;
}

.category-entry em {
  margin-bottom: 10px;
  color: var(--accent);
  font-style: normal;
  font-weight: 900;
}

.category-entry small {
  color: inherit;
  font-size: 13px;
  line-height: 1.7;
}

.article-list {
  border-top: 1px solid var(--line);
}

.article-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: #333333;
  text-decoration: none;
}

.article-row b {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
}

.article-row small {
  grid-column: 2;
  color: #666666;
  font-size: 13px;
  line-height: 1.6;
}

.category-page {
  max-width: 980px;
}

.mini-directory {
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  border-top: 1px solid var(--line);
}

.mini-directory a {
  padding: 14px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #333333;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .content-frame {
    display: block;
  }

  .side-area {
    margin-top: 44px;
  }

  .grid-axis,
  .category-map,
  .mini-directory {
    grid-template-columns: 1fr 1fr;
  }

  .article-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .article-row small {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .global-nav {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .site-logo {
    align-items: flex-start;
    font-size: 25px;
    text-align: left;
  }

  .site-logo svg {
    width: 58px;
  }

  .logo-area {
    text-align: left;
  }

  .check-lines li,
  .step-lines li,
  .definition-lines div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cta-band {
    padding: 24px 18px;
  }

  .button-link {
    width: 100%;
    text-align: center;
  }

  .r7g-hero h1 {
    font-size: 48px;
  }

  .grid-axis,
  .category-map,
  .mini-directory,
  .article-row {
    grid-template-columns: 1fr;
  }

  .grid-axis li,
  .category-entry {
    min-height: 0;
  }

  .article-row small {
    grid-column: auto;
  }
}
