:root {
  --ink: #10213d;
  --muted: #60728f;
  --line: #d3d8e2;
  --soft: #f4f7fb;
  --paper: #ffffff;
  --accent: #1557b0;
  --accent-deep: #0b3673;
  --blue-wash: #edf5ff;
  --purpose-blue: #0063b8;
  --article-blue: #1d56b8;
  --line-strong: #cfd8e6;
  --card-shadow: 0 8px 18px rgba(16, 33, 61, 0.045);
  --card-shadow-hover: 0 14px 28px rgba(16, 33, 61, 0.085);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", system-ui, sans-serif;
}

/* 01. Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(21, 87, 176, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 87, 176, 0.025) 1px, transparent 1px),
    #f5f8fc;
  background-size: 64px 64px, 64px 64px, auto;
  line-height: 1.75;
}

html {
  scroll-padding-top: 96px;
}

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

:is(a, button):focus-visible {
  outline: 3px solid rgba(21, 87, 176, 0.28);
  outline-offset: 3px;
}

/* 02. Header */
.wf-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 12px;
  padding-inline: max(20px, calc((100vw - 1280px) / 2));
  background:
    linear-gradient(90deg, #f7faff 0%, #ffffff 46%, #edf5ff 100%);
  border-top: 4px solid var(--accent-deep);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(20, 35, 63, 0.06);
  backdrop-filter: blur(12px);
}

.wf-logo-block,
.wf-nav-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wf-logo-block {
  flex: 0 0 auto;
  min-width: 0;
}

.wf-nav-block {
  flex: 0 0 auto;
  position: relative;
  justify-content: flex-end;
}

.wf-logo {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0;
}

.wf-logo img {
  display: block;
  width: 252px;
  max-width: 48vw;
  height: auto;
}

.wf-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.wf-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent-deep);
  font-weight: 700;
  line-height: 1.3;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.wf-nav a:hover {
  background: #fff;
  color: var(--accent-deep);
}

.wf-nav a.is-mega-active {
  border-color: var(--accent-deep);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(16, 33, 61, 0.1);
}

.wf-nav a.is-current,
.wf-nav a[aria-current] {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: #ffffff;
}

.wf-menu-toggle {
  display: none;
}

.page-top-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent-deep);
  border-radius: 6px;
  background: #ffffff;
  color: var(--accent-deep);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 14px 28px rgba(16, 33, 61, 0.18);
  cursor: pointer;
}

.page-top-button.is-visible {
  display: inline-flex;
}

.wf-mega-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 10;
  display: none;
  gap: 12px;
  width: min(760px, calc(100vw - 40px));
  padding: 0;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(16, 33, 61, 0.16);
  overflow: hidden;
}

.wf-desktop-mega {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 10;
  display: none;
  width: min(820px, calc(100vw - 40px));
  padding: 0;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 46px rgba(16, 33, 61, 0.18);
  overflow: hidden;
}

.wf-nav-block.is-desktop-mega-open .wf-desktop-mega {
  display: block;
}

.wf-desktop-mega-panel[hidden] {
  display: none;
}

.wf-desktop-mega-head {
  display: grid;
  gap: 5px;
  margin-bottom: 0;
  padding: 18px 22px 16px;
  background: linear-gradient(135deg, #0b3673 0%, #1557b0 100%);
}

.wf-desktop-mega-title {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.wf-desktop-mega-description,
.wf-mega-description {
  margin: 0;
  color: #5c6d86;
  font-size: 13px;
  line-height: 1.55;
}

.wf-desktop-mega-description {
  color: rgba(255, 255, 255, 0.82);
}

.wf-desktop-mega-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 14px;
  background:
    linear-gradient(rgba(21, 87, 176, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 87, 176, 0.045) 1px, transparent 1px),
    #ffffff;
  background-size: 48px 48px, 48px 48px, auto;
}

.wf-desktop-mega-panel.is-sample-list .wf-desktop-mega-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wf-mega-section {
  border: 0;
  border-bottom: 1px solid #d8e4f2;
  border-radius: 0;
  background: #ffffff;
  min-width: 0;
  overflow: hidden;
}

.wf-mega-section:last-child {
  border-bottom: 0;
}

.wf-mega-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 0;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.wf-mega-toggle:hover {
  background: #f4f8ff;
}

.wf-mega-plus {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid #bfd2ea;
  border-radius: 50%;
}

.wf-mega-plus::before,
.wf-mega-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-deep);
  transform: translate(-50%, -50%);
}

.wf-mega-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.wf-mega-section.is-open .wf-mega-plus::after {
  opacity: 0;
}

.wf-mega-panel {
  display: grid;
  gap: 0;
  margin-top: 0;
  padding: 12px;
  border-top: 1px solid #e7eef8;
  background: #f7faff;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wf-mega-description {
  grid-column: 1 / -1;
  padding: 0 2px 10px;
}

.wf-mega-panel[hidden] {
  display: none;
}

.wf-mega-section a,
.wf-desktop-mega-links a {
  position: relative;
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 44px;
  margin: 5px;
  padding: 10px 13px 10px 15px;
  border: 1px solid #d8e4f2;
  border-radius: 6px;
  background: rgba(237, 245, 255, 0.72);
  color: #213552;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wf-mega-link-type,
.wf-mega-link-title {
  display: block;
  min-width: 0;
}

.wf-mega-link-type {
  color: #4c6790;
  font-size: 12px;
  line-height: 1.25;
}

.wf-mega-link-title {
  color: #10213d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.wf-mega-section a::before,
.wf-desktop-mega-links a::before {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 7px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #9abde9;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.wf-mega-section a:hover,
.wf-desktop-mega-links a:hover {
  border-color: #9fc0e9;
  background: #dfeeff;
  color: var(--accent-deep);
}

.wf-mega-section a:hover::before,
.wf-desktop-mega-links a:hover::before {
  opacity: 1;
  transform: translateX(3px);
}

.wf-mega-section a.wf-mega-index-link,
.wf-desktop-mega-links a.wf-mega-index-link {
  grid-column: 1 / -1;
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: #ffffff;
}

.wf-mega-section a.wf-mega-index-link .wf-mega-link-title,
.wf-desktop-mega-links a.wf-mega-index-link .wf-mega-link-title {
  color: #ffffff;
}

.wf-mega-section a.wf-mega-index-link::before,
.wf-desktop-mega-links a.wf-mega-index-link::before {
  display: none;
}

.wf-mega-section a.wf-mega-index-link:hover,
.wf-desktop-mega-links a.wf-mega-index-link:hover {
  background: #0b3673;
  color: #ffffff;
}

.wf-mega-section.is-sample-list .wf-mega-panel {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

/* 03. Page Shell */
main {
  width: min(1280px, calc(100% - 40px));
  margin: 30px auto 72px;
}

.wf-hero,
.wf-section {
  scroll-margin-top: 96px;
  margin-bottom: 30px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--paper);
  border: 1px solid #d8e1ed;
  border-radius: 8px;
}

/* 04. Hero */
.wf-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: clamp(24px, 3vw, 36px);
  min-height: 460px;
  align-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #0b3673 0%, #104a92 56%, #1557b0 100%);
  background-size: 64px 64px, 64px 64px, auto;
  border-color: var(--accent-deep);
  box-shadow: 0 16px 38px rgba(16, 33, 61, 0.12);
}

.wf-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.wf-hero .wf-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.wf-hero .wf-label::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.74);
}

.wf-hero h1 {
  max-width: none;
  color: #ffffff;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: normal;
}

.wf-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
}

.wf-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  overflow-wrap: normal;
  word-break: keep-all;
  line-break: strict;
  text-wrap: normal;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(29px, 3.1vw, 38px);
  line-height: 1.14;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.34;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(20px, 1.9vw, 23px);
  line-height: 1.36;
}

p,
li {
  color: #42516b;
}

.wf-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.wf-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid var(--accent-deep);
  border-radius: 6px;
  background: var(--paper);
  color: var(--accent-deep);
  font-weight: 700;
}

.wf-buttons a:first-child {
  background: var(--accent-deep);
  color: #fff;
}

.wf-hero .wf-buttons a {
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.wf-hero .wf-buttons a:first-child {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--accent-deep);
}

.wf-hero-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 390px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.wf-hero-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.wf-hero-visual img,
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.wf-hero-visual img {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 18px 38px rgba(0, 16, 45, 0.22);
}

/* 05. Cards */
.wf-card-grid,
.route-guide-grid,
.diagram-type-grid,
.sample-grid,
.sample-tags,
.sample-tag-guide-grid,
.purpose-card-grid,
.purpose-link-grid,
.sample-page-list,
.operator-grid {
  display: grid;
}

.wf-card-grid {
  gap: 16px;
}

.route-guide-grid a,
.diagram-type-card,
.sample-card,
.purpose-card-grid a,
.purpose-link-grid a,
.operator-card {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.route-guide-grid a:hover,
.diagram-type-card:hover,
.sample-card:hover,
.purpose-card-grid a:hover,
.purpose-link-grid a:hover {
  border-color: var(--accent);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-1px);
}

.route-guide-grid a,
.sample-card,
.purpose-card-grid a,
.purpose-link-grid a {
  box-shadow: var(--card-shadow);
}

.wf-card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-index-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.wf-card-grid article {
  min-width: 0;
  min-height: 120px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}

.wf-card-grid article h3 {
  margin-bottom: 12px;
  font-size: clamp(20px, 1.7vw, 23px);
  line-height: 1.38;
  word-break: normal;
  overflow-wrap: anywhere;
}

.wf-card-grid article h3 a {
  overflow-wrap: anywhere;
}

.wf-card-meta {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.route-guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.route-guide-grid a {
  --route-color: var(--accent-deep);
  position: relative;
  display: grid;
  align-content: start;
  min-height: 158px;
  padding: 22px 68px 22px 22px;
  border-width: 2px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f6faff 54%, #eaf3ff 100%);
  cursor: pointer;
}

.route-guide-grid a:nth-child(2) {
  --route-color: var(--purpose-blue);
}

.route-guide-grid a:nth-child(3) {
  --route-color: var(--article-blue);
}

.route-guide-grid a::after {
  content: ">";
  position: absolute;
  right: 22px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--route-color);
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 10px 22px rgba(11, 54, 115, 0.22);
}

.route-guide-grid span {
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 12px;
  border: 1px solid var(--route-color);
  border-radius: 6px;
  background: var(--route-color);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.route-guide-grid strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.route-guide-grid em {
  margin-top: 10px;
  color: #42516b;
  font-size: 14px;
  font-style: normal;
  line-height: 1.75;
}

.wf-article-thumb {
  display: block;
  margin: -8px -8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
}

.wf-article-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #ffffff;
}

.article-index-grid article {
  padding: 20px;
}

.article-index-grid .wf-article-thumb {
  margin: -10px -10px 16px;
}

.article-index-grid article p:not(.wf-card-meta) {
  font-size: 16px;
  line-height: 1.85;
}

/* 06. Article Layout */
.article-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 28px;
  align-items: start;
  width: min(1280px, calc(100% - 40px));
  margin: 32px auto 64px;
}

.article-header {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(21, 87, 176, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 87, 176, 0.026) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #f7faff 52%, #edf5ff 100%);
  background-size: 56px 56px, 56px 56px, auto;
  box-shadow: 0 18px 44px rgba(16, 33, 61, 0.08);
}

.article-header h1 {
  max-width: none;
  font-size: clamp(30px, 3.5vw, 40px);
  line-height: 1.24;
  overflow-wrap: anywhere;
  text-wrap: normal;
}

.article-header p:not(.wf-label) {
  max-width: 980px;
  color: #2f405c;
  font-size: 18px;
}

.article-body {
  min-width: 0;
  margin-top: 28px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 16px 38px rgba(16, 33, 61, 0.06);
}

.article-side {
  position: sticky;
  top: 96px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #f7faff 0%, #ffffff 58%, #edf5ff 100%);
  box-shadow: 0 14px 30px rgba(16, 33, 61, 0.06);
}

.article-side h2 {
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-size: 20px;
  line-height: 1.45;
}

.article-side nav,
.article-side ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-side a {
  display: block;
  padding: 10px 11px;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: #243956;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.article-side a:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: #ffffff;
}

.article-side a[aria-current="page"],
.article-side a.is-current {
  border-color: var(--article-blue);
  background: var(--article-blue);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(29, 86, 184, 0.18);
}

.article-side a[aria-current="page"]:hover,
.article-side a.is-current:hover {
  color: #ffffff;
  background: var(--article-blue);
}

.article-side .purpose-side a[aria-current="page"],
.article-side .purpose-side a.is-current {
  border-color: var(--purpose-blue);
  background: var(--purpose-blue);
  box-shadow: 0 10px 20px rgba(0, 99, 184, 0.18);
}

.article-side .purpose-side a[aria-current="page"]:hover,
.article-side .purpose-side a.is-current:hover {
  background: var(--purpose-blue);
}

.article-side .side-group + .side-group {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #dbe3ef;
}

/* 07. Article Typography */
.article-body h2 {
  margin-top: 52px;
  margin-bottom: 18px;
  padding: 12px 16px 13px;
  border-left: 6px solid var(--accent-deep);
  border-radius: 6px;
  background: linear-gradient(90deg, #eef5ff 0%, #ffffff 100%);
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 29px);
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h2.purpose-article-title {
  margin: 0 0 22px;
  padding: 0;
  border-left: 0;
  background: transparent;
  color: var(--accent-deep);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.25;
}

.article-body h3 {
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d8e4f2;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.article-body p,
.article-body li {
  color: #2d3d58;
  font-size: 18px;
  line-height: 1.95;
}

.article-figure {
  margin: 34px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #edf5ff 0%, #ffffff 54%, #f7faff 100%);
  box-shadow: 0 16px 34px rgba(16, 33, 61, 0.08);
}

.article-figure img {
  border: 1px solid #cbd7e7;
  border-radius: 6px;
  background: #fff;
}

.purpose-document-figure {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.purpose-document-figure img {
  border: 0;
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(16, 33, 61, 0.08);
}

.article-figure figcaption {
  margin-top: 12px;
  color: #42516b;
  font-size: 15px;
  line-height: 1.7;
}

.keep-word {
  white-space: nowrap;
}

/* 08. Utility Sections */
.article-back {
  display: inline-flex;
  margin-top: 14px;
  color: #42516b;
  font-size: 14px;
  font-weight: 700;
}

.article-back::before {
  content: "<";
  margin-right: 8px;
  color: var(--accent);
}

.wf-footer {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin-top: 48px;
  padding: 32px 28px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.wf-footer strong {
  display: none;
  color: var(--ink);
  font-size: 16px;
}

.wf-footer-main,
.wf-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
}

.wf-footer-main {
  width: min(100%, 1180px);
  justify-content: center;
  padding: 14px 18px;
  border: 1px solid #d7e1ef;
  border-radius: 8px;
  background: rgba(255,255,255,0.78);
}

.wf-footer-links {
  width: min(100%, 1180px);
  font-size: 11px;
  line-height: 1.7;
}

.wf-footer-logo-links {
  display: flex;
  width: min(100%, 1180px);
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.wf-footer-logo-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 44px;
  padding: 7px 14px;
  border: 1px solid #dce4ef;
  border-radius: 6px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 8px 16px rgba(16, 33, 61, 0.05);
}

.wf-footer-logo-links img {
  display: block;
  max-width: 136px;
  max-height: 30px;
  object-fit: contain;
}

.wf-footer-links a {
  color: #59677d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 28px 32px;
  background: rgba(5, 18, 38, 0.84);
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox img {
  display: block;
  max-width: min(1180px, 96vw);
  max-height: 82vh;
  border: 1px solid rgba(255,255,255,0.36);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0,0,0,0.32);
  object-fit: contain;
}

.image-lightbox-close {
  position: fixed;
  top: 22px;
  right: 28px;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,0.56);
  border-radius: 6px;
  background: #ffffff;
  color: var(--accent-deep);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.image-lightbox-caption {
  position: fixed;
  left: 28px;
  right: 120px;
  bottom: 18px;
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

body.has-lightbox {
  overflow: hidden;
}

/* 09. Diagram Samples */
.section-lead {
  max-width: none;
  margin-bottom: 22px;
  color: #2f405c;
  font-size: 17px;
}

.sample-gallery {
  background:
    linear-gradient(rgba(21, 87, 176, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 87, 176, 0.028) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, #f7faff 52%, #edf5ff 100%);
  background-size: 56px 56px, 56px 56px, auto;
}

.diagram-type-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.diagram-type-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 132px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(16, 33, 61, 0.055);
}

.diagram-type-card:hover {
  box-shadow: 0 14px 28px rgba(16, 33, 61, 0.095);
}

.diagram-type-card strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 52px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--accent-deep);
  color: #ffffff;
  font-size: 16px;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: normal;
}

.diagram-type-card span {
  color: #59677d;
  font-size: 13px;
  line-height: 1.65;
}

.sample-choice-guide {
  display: grid;
  gap: 8px;
  margin: 0 0 30px;
  padding: 18px 20px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.sample-choice-guide strong {
  color: var(--accent-deep);
  font-size: 17px;
}

.sample-choice-guide p {
  margin: 0;
  color: #2f405c;
  font-size: 15px;
  line-height: 1.85;
}

.sample-type-section {
  scroll-margin-top: 24px;
  margin-top: 46px;
}

.sample-section-heading {
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
  padding: 13px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(21, 87, 176, 0.055) 0%, rgba(255, 255, 255, 0.92) 54%, rgba(255, 255, 255, 0) 100%);
}

.sample-section-heading .wf-label {
  margin: 0;
  color: var(--accent-deep);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0;
}

.sample-section-heading h3 {
  margin: 0;
  color: #42516b;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.45;
}

.sample-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sample-card {
  display: grid;
  gap: 9px;
  align-content: start;
  min-width: 0;
  min-height: 245px;
  padding: 12px;
}

.sample-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
}

.sample-purpose {
  order: -1;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 8px 11px;
  border-radius: 6px;
  background: var(--accent-deep);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sample-card strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.sample-card-note {
  color: #59677d;
  font-size: 13px;
  line-height: 1.65;
}

.sample-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: end;
  min-width: 0;
  margin-top: 2px;
}

.sample-tags span {
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sample-tags .tag-use {
  background: #0063b8;
  border-radius: 999px;
}

.sample-tags .tag-theme {
  background: #2c6372;
  border-radius: 2px;
}

.sample-detail-tags {
  margin: 16px 0 0;
}

.sample-tag-guide {
  margin-top: 38px;
  padding: 24px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(16, 33, 61, 0.055);
}

.sample-tag-guide .wf-label {
  display: block;
  margin: 0 0 6px;
  color: var(--accent-deep);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
}

.sample-tag-guide h2 {
  margin: 0 0 10px;
  color: #42516b;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

.sample-tag-guide p {
  margin: 0;
  color: #2f405c;
  font-size: 15px;
  line-height: 1.85;
}

.sample-tag-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.sample-tag-guide-grid div {
  min-width: 0;
  padding: 18px;
  border: 1px solid #d4deeb;
  border-radius: 8px;
  background: #f7faff;
}

.sample-tag-guide-grid h3 {
  margin: 0 0 6px;
  color: var(--accent-deep);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.sample-tag-guide-grid ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.sample-tag-guide-grid li {
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sample-tag-guide-grid div:nth-child(1) li {
  background: #103a73;
  border-radius: 8px;
}

.sample-tag-guide-grid div:nth-child(2) li {
  background: #0063b8;
  border-radius: 999px;
}

.sample-tag-guide-grid div:nth-child(3) li {
  background: #2c6372;
  border-radius: 2px;
}

.purpose-card-grid,
.purpose-link-grid {
  gap: 16px;
}

.purpose-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.purpose-two-column .purpose-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.purpose-link-grid a {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 214px;
  padding: 24px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f7faff 58%, #edf5ff 100%);
}

.purpose-card-grid a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  align-content: start;
  min-width: 0;
  min-height: 236px;
  padding: 12px;
  border-color: #cfd8e6;
  background: #ffffff;
  overflow: hidden;
}

.purpose-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid #cfd8e6;
  border-radius: 5px;
  background: #ffffff;
  object-fit: cover;
}

.purpose-link-grid span {
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--blue-wash);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
}

.purpose-card-grid strong,
.purpose-link-grid strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.48;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: normal;
}

.purpose-card-grid strong {
  display: block;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.purpose-card-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.purpose-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 10px 18px 10px 10px;
  border: 1px solid #b8cbe5;
  border-radius: 20px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  color: var(--accent-deep);
  box-shadow: 0 12px 24px rgba(16, 33, 61, 0.08);
}

.purpose-card-grid .purpose-tag {
  order: -1;
  justify-content: center;
  gap: 0;
  width: 100%;
  min-width: 0;
  margin-bottom: 0;
  padding: 8px 12px;
  border-color: var(--purpose-blue);
  border-radius: 6px;
  background: var(--purpose-blue);
  color: #ffffff;
  text-align: center;
  box-shadow: none;
}

.purpose-tag img {
  display: block;
  width: 64px;
  height: 64px;
  padding: 8px;
  border: 1px solid #d8e4f2;
  border-radius: 14px;
  background: #edf5ff;
  object-fit: contain;
}

.purpose-card-grid .purpose-tag img {
  display: none;
}

.purpose-tag span {
  color: var(--accent-deep);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.purpose-card-grid .purpose-tag span {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.purpose-link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0 42px;
}

.purpose-link-grid a {
  position: relative;
  min-height: 166px;
}

.purpose-link-grid a::after {
  content: "見本を見る";
  position: absolute;
  top: 36px;
  right: 36px;
  z-index: 1;
  padding: 6px 10px;
  border: 1px solid var(--accent-deep);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(16, 33, 61, 0.16);
}

.purpose-link-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 12px;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  background: #ffffff;
  object-fit: contain;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.purpose-link-grid a:hover .purpose-link-thumb {
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(16, 33, 61, 0.12);
  transform: translateY(-1px);
}

.purpose-link-grid em {
  margin-top: 8px;
  color: #42516b;
  font-size: 15px;
  font-style: normal;
  line-height: 1.75;
}

.sample-detail-main,
.sample-page-main {
  width: min(1280px, calc(100% - 40px));
  max-width: 100%;
  min-width: 0;
}

.sample-detail-header {
  margin-bottom: 28px;
}

.sample-detail-header h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sample-title-type {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--accent-deep);
  color: #ffffff;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.25;
  box-shadow: 0 12px 22px rgba(11, 54, 115, 0.16);
}

.sample-title-divider {
  color: #8aa0bc;
  font-weight: 700;
}

.sample-title-text {
  min-width: 0;
}

.sample-single figure {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  padding: clamp(12px, 2.2vw, 22px);
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #edf5ff 0%, #ffffff 55%, #f7faff 100%);
}

.sample-single .sample-pattern-figure {
  border-color: #bdd1ee;
  background:
    linear-gradient(180deg, #e7f1ff 0%, #f4f9ff 48%, #ffffff 100%);
}

.sample-single .sample-example-figure {
  border-color: #b9dacd;
  background:
    linear-gradient(180deg, #eaf8f1 0%, #f7fcfa 48%, #ffffff 100%);
}

.sample-single figcaption {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 8px 18px;
  border: 1px solid var(--accent-deep);
  border-radius: 4px;
  background: #ffffff;
  color: var(--accent-deep);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
}

.sample-single .sample-pattern-figure figcaption {
  background: #ffffff;
  color: var(--accent-deep);
}

.sample-single .sample-example-figure figcaption {
  background: #ffffff;
  color: var(--accent-deep);
}

.sample-single img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-width: 0;
  border: 1px solid #cbd7e7;
  border-radius: 6px;
  background: #ffffff;
}

.sample-explanation h2 {
  margin: 10px 0 16px;
  font-size: clamp(24px, 3vw, 34px);
}

.sample-explanation dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 0;
  margin: 0;
}

.sample-explanation dt {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 15px 16px 0;
  border: 1px solid #d4dfef;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #ffffff;
  color: var(--accent-deep);
  font-size: 15px;
  font-weight: 700;
}

.sample-explanation dt::before {
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-deep);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.sample-explanation dt:nth-of-type(1)::before {
  content: "場";
}

.sample-explanation dt:nth-of-type(2)::before {
  content: "伝";
}

.sample-explanation dt:nth-of-type(3)::before {
  content: "見";
}

.sample-explanation dt:nth-of-type(4)::before {
  content: "近";
}

.sample-explanation dd {
  min-height: 110px;
  margin: 0 0 14px;
  padding: 12px 16px 16px 55px;
  border: 1px solid #d4dfef;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #ffffff;
  color: #2d3d58;
  font-size: 17px;
  line-height: 1.8;
}

@media (min-width: 981px) {
  .sample-explanation dt:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .sample-explanation dd:nth-of-type(1) {
    grid-column: 1;
    grid-row: 2;
  }

  .sample-explanation dt:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .sample-explanation dd:nth-of-type(2) {
    grid-column: 2;
    grid-row: 2;
  }

  .sample-explanation dt:nth-of-type(3) {
    grid-column: 1;
    grid-row: 3;
  }

  .sample-explanation dd:nth-of-type(3) {
    grid-column: 1;
    grid-row: 4;
  }

  .sample-explanation dt:nth-of-type(4) {
    grid-column: 2;
    grid-row: 3;
  }

  .sample-explanation dd:nth-of-type(4) {
    grid-column: 2;
    grid-row: 4;
  }
}

.sample-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.sample-page-actions .article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  min-height: 46px;
  padding: 9px 14px;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  background: #ffffff;
  color: var(--accent-deep);
  font-weight: 700;
  line-height: 1.35;
}

.sample-page-actions .article-back::before {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent-deep);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.sample-page-actions .sample-action-list::before {
  content: "↑";
}

.sample-page-actions .sample-action-prev::before {
  content: "←";
}

.sample-page-actions .sample-action-next::before {
  content: "→";
}

.sample-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 24px;
  align-items: start;
  max-width: 100%;
  min-width: 0;
}

.sample-single,
.sample-side-nav {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 16px 36px rgba(16, 33, 61, 0.06);
}

.sample-single {
  display: grid;
  gap: 24px;
  min-width: 0;
  padding: clamp(18px, 3vw, 34px);
}

.sample-single img {
  cursor: zoom-in;
}

.sample-hero-figure img {
  box-shadow: 0 16px 30px rgba(16, 33, 61, 0.08);
}

.sample-explanation {
  max-width: 100%;
  min-width: 0;
  padding: 2px 4px;
}

.sample-side-nav {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.sample-side-nav h2 {
  margin: 8px 0 14px;
  font-size: 20px;
}

.sample-page-list {
  gap: 8px;
}

.sample-page-list a {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid #d6e0ee;
  border-radius: 6px;
  background: #ffffff;
  color: var(--accent-deep);
  font-weight: 700;
  line-height: 1.35;
}

.sample-page-list a[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent-deep);
  color: #ffffff;
}

.sample-page-list a.is-group-start {
  margin-top: 8px;
}

.sample-list-number {
  color: inherit;
  opacity: 0.72;
  font-size: 11px;
}

.sample-page-list .sample-list-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.sample-page-list .sample-list-type,
.sample-page-list .sample-list-title {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
}

.sample-page-list .sample-list-type {
  color: inherit;
  font-size: 12px;
  letter-spacing: 0;
  opacity: 0.78;
}

.sample-page-list .sample-list-title {
  color: var(--ink);
  font-size: 13px;
}

.sample-page-list a[aria-current="page"] .sample-list-title {
  color: #ffffff;
}

.sample-prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sample-prev-next a {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 16px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #ffffff;
}

.sample-prev-next a:hover,
.sample-page-actions a:hover {
  border-color: var(--accent);
  background: var(--blue-wash);
}

.operator-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  max-width: 1060px;
  margin-inline: auto;
}

.operator-section {
  padding: 28px 34px 44px;
  border-color: var(--line);
  background:
    linear-gradient(rgba(21, 87, 176, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 87, 176, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

.operator-lead {
  max-width: 1060px;
  margin: 0 auto 28px;
  color: #263247;
  font-size: 16px;
  line-height: 1.85;
}

.operator-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  align-content: start;
  min-height: 100%;
  padding: 34px 34px 28px;
  box-shadow: 0 18px 38px rgba(16, 33, 61, 0.08);
}

.operator-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.operator-card-logo img {
  display: block;
  max-width: 88%;
  max-height: 106px;
  object-fit: contain;
}

.operator-card-logo img[src*="logo-arctangent"] {
  max-width: 72%;
  max-height: 112px;
}

.operator-card-logo img[src*="logo-bzlog"] {
  max-width: 92%;
  max-height: 96px;
}

.operator-card-logo img[src*="logo-arcx"] {
  max-width: 68%;
  max-height: 72px;
}

.operator-card-logo img[src*="logo-btob-zukai"] {
  max-width: 88%;
  max-height: 92px;
}

.operator-card h2 {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.45;
}

.operator-card h2::after {
  content: "";
  display: block;
  width: 82px;
  height: 1px;
  margin-top: 14px;
  background: #cfd8e6;
}

.operator-card p {
  margin: 0;
  color: #2f3d54;
  font-size: 15px;
  line-height: 2;
}

.operator-card .operator-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--accent-deep);
  color: #ffffff;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.operator-card .operator-card-link::after {
  content: "↗";
  margin-left: 8px;
  font-size: 12px;
}

.operator-card .operator-card-link:hover {
  background: var(--accent-deep);
  color: #ffffff;
}

.sample-prev-next span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sample-prev-next strong {
  color: var(--accent-deep);
  font-size: 17px;
}

/* 10. Responsive */
@media (max-width: 980px) {
  .wf-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .wf-logo-block,
  .wf-nav-block {
    width: 100%;
    justify-items: start;
  }

  .wf-nav {
    justify-content: flex-start;
  }

  .wf-hero,
  .article-main,
  .sample-page-layout,
  .sample-single {
    grid-template-columns: 1fr;
  }

  .sample-grid,
  .diagram-type-grid,
  .sample-tag-guide-grid,
  .purpose-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sample-explanation dl {
    grid-template-columns: 1fr;
  }

  .sample-detail-main,
  .sample-page-main {
    max-width: calc(100% - 24px);
    min-width: 0;
    overflow-x: hidden;
  }

  :is(
    .sample-page-layout,
    .sample-single,
    .sample-single figure,
    .sample-single img,
    .sample-explanation,
    .sample-explanation h2,
    .sample-explanation dl,
    .sample-explanation dt,
    .sample-explanation dd,
    .sample-prev-next,
    .sample-prev-next a,
    .sample-side-nav
  ) {
    max-width: 100%;
    min-width: 0;
  }

  .sample-single {
    overflow-x: hidden;
  }

  :is(.sample-explanation h2, .sample-explanation dt, .sample-explanation dd) {
    overflow-wrap: anywhere;
    word-break: normal;
    line-break: auto;
  }

  .sample-explanation dd {
    padding-left: 16px;
  }

  .purpose-card-grid,
  .purpose-two-column .purpose-card-grid {
    grid-template-columns: 1fr;
  }

  .purpose-card-grid strong,
  .purpose-link-grid strong {
    word-break: normal;
    overflow-wrap: break-word;
  }

  .article-header {
    grid-column: auto;
    order: 1;
  }

  .article-body {
    order: 2;
  }

  .article-side {
    position: static;
    order: 3;
    margin-top: 0;
  }

  .wf-card-grid.three {
    grid-template-columns: 1fr;
  }

  .operator-grid {
    grid-template-columns: 1fr;
  }

  .sample-side-nav {
    position: static;
  }

  .sample-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wf-hero {
    min-height: auto;
  }

  .wf-hero-visual {
    min-height: 300px;
    padding: 20px;
  }

}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .wf-header,
  main,
  .article-main,
  .sample-page-main,
  .wf-footer {
    max-width: 100%;
    overflow-x: hidden;
  }

  .wf-header {
    width: 100%;
    padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right));
  }

  main,
  .article-main,
  .sample-page-main {
    width: calc(100% - 24px);
    margin-right: auto;
    margin-left: auto;
  }

  :is(
    .article-header,
    .article-body,
    .sample-page-layout,
    .sample-single,
    .sample-single figure,
    .sample-single img,
    .sample-explanation,
    .sample-explanation dl,
    .sample-explanation dt,
    .sample-explanation dd,
    .sample-prev-next,
    .sample-prev-next a,
    .sample-side-nav
  ) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  :is(.article-header, .article-body, .sample-single, .sample-single figure, .sample-side-nav) {
    overflow-x: hidden;
  }

  .sample-single img {
    height: auto;
    object-fit: contain;
  }

  :is(
    .sample-detail-header h1,
    .sample-detail-header p,
    .sample-explanation h2,
    .sample-explanation dt,
    .sample-explanation dd,
    .sample-title-type,
    .sample-title-text
  ) {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    line-break: auto;
  }
}

@media (max-width: 560px) {
  html {
    --mobile-header-height: 76px;
    scroll-padding-top: calc(var(--mobile-header-height) + 12px);
  }

  body {
    padding-top: var(--mobile-header-height);
  }

  .wf-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 30;
    min-height: var(--mobile-header-height);
    max-height: 100dvh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
  }

  .wf-logo-block {
    min-width: 0;
    width: 100%;
  }

  .wf-logo img {
    width: 168px;
    max-width: 100%;
  }

  .wf-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 36px;
    padding: 0;
    border: 1px solid #cfd8e6;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
  }

  .wf-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-deep);
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .wf-header.is-nav-open .wf-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .wf-header.is-nav-open .wf-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .wf-header.is-nav-open .wf-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .wf-nav-block {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    justify-content: stretch;
  }

  .wf-header.is-nav-open .wf-nav-block {
    display: flex;
  }

  .wf-nav {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    font-size: 12px;
  }

  .wf-nav a {
    justify-content: center;
    min-width: 0;
    padding: 6px 8px;
    text-align: center;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .wf-desktop-mega {
    display: none !important;
  }

  .wf-nav-block:hover .wf-mega-menu,
  .wf-nav-block:focus-within .wf-mega-menu,
  .wf-nav-block.is-mega-open .wf-mega-menu,
  .wf-mega-menu {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    padding: 0;
    border-radius: 6px;
    box-shadow: none;
  }

  .wf-mega-toggle {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .wf-mega-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-top: 0;
    padding: 8px 7px 9px;
  }

  .wf-mega-section a {
    min-height: 38px;
    margin: 3px;
    padding: 7px 8px 7px 10px;
    border: 1px solid #d8e4f2;
    background: rgba(237, 245, 255, 0.72);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
  }

  .wf-mega-link-type {
    font-size: 10px;
    line-height: 1.14;
  }

  .wf-mega-link-title {
    font-size: 11px;
    line-height: 1.16;
  }

  .page-top-button {
    right: 14px;
    bottom: 14px;
  }

  main {
    width: min(1160px, calc(100% - 24px));
    margin-top: 16px;
  }

  .wf-header,
  .wf-hero,
  .wf-section {
    padding: 16px;
  }

  .wf-header {
    padding: 10px 14px;
  }

  h1 {
    font-size: 30px;
    line-height: 1.22;
  }

  .wf-hero h1 {
    font-size: 31px;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  .wf-hero p {
    overflow-wrap: anywhere;
  }

  .wf-hero-visual {
    grid-template-columns: 1fr;
    min-width: 0;
    min-height: 0;
    padding: 18px;
  }

  .wf-hero-visual::before {
    inset: 10px;
  }

  .article-main {
    width: min(1160px, calc(100% - 24px));
    margin-top: 16px;
  }

  .sample-detail-main,
  .sample-page-main {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    min-width: 0;
    margin-top: 16px;
    overflow-x: hidden;
  }

  .article-header,
  .article-body {
    padding: 18px;
  }

  .sample-grid,
  .diagram-type-grid,
  .sample-tag-guide-grid,
  .sample-page-list,
  .article-index-grid,
  .purpose-card-grid,
  .purpose-link-grid,
  .route-guide-grid {
    grid-template-columns: 1fr;
  }

  .diagram-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .diagram-type-card {
    gap: 6px;
    min-height: 0;
    padding: 10px;
  }

  .diagram-type-card strong {
    min-height: 42px;
    height: auto;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.18;
  }

  .diagram-type-card span {
    font-size: 11px;
    line-height: 1.45;
  }

  .purpose-link-grid a::after {
    top: 22px;
    right: 22px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .purpose-tag {
    width: 100%;
  }

  .purpose-tag span {
    white-space: normal;
  }

  .sample-prev-next {
    grid-template-columns: 1fr;
  }

  .sample-single figure {
    padding: 10px;
  }

  .sample-detail-header h1 {
    align-items: flex-start;
    flex-direction: column;
  }

  .sample-title-divider {
    display: none;
  }

  .sample-page-actions .article-back {
    width: 100%;
  }

  .wf-footer-main,
  .wf-footer-links,
  .wf-footer-logo-links {
    flex-direction: column;
    gap: 4px;
  }

}

@media (max-width: 420px) {
  .wf-nav {
    grid-template-columns: 1fr;
  }

  .wf-buttons a {
    width: 100%;
  }
}
