:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-soft: #fbfaf7;
  --ink: #21201c;
  --muted: #666055;
  --line: #e6e0d7;
  --primary: #166534;
  --primary-dark: #14532d;
  --accent-soft: #eef6f0;
  --active-border: #cfe3d4;
  --active-ink: #14532d;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(33, 32, 28, 0.04);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #faf9f6 0%, var(--bg) 100%);
  line-height: 1.9;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #d2e3fc;
  outline-offset: 2px;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(230, 224, 215, 0.72);
  background: rgba(246, 245, 242, 0.88);
  backdrop-filter: blur(14px);
  padding-top: env(safe-area-inset-top);
}

.topnav .shell {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-top: 0;
  padding: 12px 20px;
}

.logo {
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.navlinks a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.navlinks a .bi {
  font-size: 12px;
  color: var(--muted);
  transition: color 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .navlinks a:hover,
  .navlinks a:focus-visible,
  .navlinks a:active {
    border-color: var(--active-border);
    background: var(--accent-soft);
    color: var(--active-ink);
  }

  .navlinks a:hover .bi,
  .navlinks a:focus-visible .bi,
  .navlinks a:active .bi {
    color: var(--active-ink);
  }
}

.hero {
  padding: 52px 0 28px;
}

.heroBox {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 100%);
  box-shadow: var(--shadow);
  padding: 34px;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 800;
}

h1 {
  margin: 12px 0 14px;
  font-size: clamp(32px, 5.2vw, 54px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  max-width: 60ch;
  color: #444036;
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.95;
}

.ctaRow {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ctaRow .btn.primary {
  min-width: 180px;
  padding: 12px 22px;
  box-shadow: 0 8px 18px rgba(20, 83, 45, 0.12);
}

.ctaRow .btn.ghost {
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn .bi {
  font-size: 14px;
  line-height: 1;
}

.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.page-home .btn.primary {
  background: var(--primary);
  border-color: var(--primary);
}

.page-home .btn.primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
  color: #3f3a31;
}

.btn.ghost:hover {
  background: #fff;
  transform: translateY(-1px);
}

.helper {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.helper a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.helper a:hover {
  text-decoration: underline;
}

.metrics {
  margin-top: 20px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.metric {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px;
}

.metric b {
  display: block;
  color: var(--ink);
  font-size: 19px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding: 34px 0;
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.sectionLead {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.9;
}

.grid3 {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.5;
}

.card p,
.card li {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.checkList {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.checkList a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.checkList a:hover {
  text-decoration: underline;
}

.articlesHero {
  margin-bottom: 14px;
}

.articlesHero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.2;
}

.articlesHero .sectionLead {
  margin-bottom: 0;
}

.articleGuideCard {
  margin-bottom: 14px;
}

.articleGuideCard h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.articleList {
  display: grid;
  gap: 12px;
}

.articleItem {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
}

.articleItem:hover {
  background: #fffdf9;
}

.articleMeta {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  border: 1px solid var(--active-border);
  background: var(--accent-soft);
  color: var(--active-ink);
  font-size: 11px;
  font-weight: 700;
  padding: 0 9px;
}

.articleItem h3 {
  margin: 10px 0 8px;
  font-size: 21px;
  line-height: 1.6;
  color: var(--ink);
}

.articleItem p {
  margin: 0;
  color: var(--muted);
}

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

.techniqueCard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
}

.techniqueMeta {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--active-ink);
}

.techniqueCard h3 {
  margin: 6px 0 8px;
  font-size: 20px;
  line-height: 1.4;
}

.techniqueCard h3 span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.techniqueCard p {
  margin: 0;
  color: var(--muted);
}

.flowGrid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flowCard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #fcfbf8 100%);
  box-shadow: var(--shadow);
  padding: 20px;
}

.flowNo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--active-border);
  background: var(--accent-soft);
  color: var(--active-ink);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.flowCard h3 {
  margin: 10px 0 6px;
  font-size: 18px;
}

.flowCard p {
  margin: 0;
  color: var(--muted);
}

.ctaBand {
  border: 1px solid var(--active-border);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8f4 100%);
  padding: 28px;
}

.faq {
  display: grid;
  gap: 10px;
}

.compareCard {
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compareTable {
  min-width: 620px;
}

.compareTable table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.compareTable th,
.compareTable td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.compareTable thead th {
  background: #f8f9fa;
  font-size: 12px;
  font-weight: 800;
  color: #5f6368;
}

.compareTable th:first-child,
.compareTable td:first-child {
  width: 26%;
}

.compareTable tbody tr:last-child td {
  border-bottom: 0;
}

.compareTable tbody td:first-child {
  color: #5f6368;
  font-weight: 700;
}

.compareTable tbody td:not(:first-child) {
  color: #3c4043;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  margin: 8px 0 0;
  color: var(--muted);
}

.footer {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 13px;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

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

/* Article */
.breadcrumb {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 72px;
}

.articleHead {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 28px;
}

.article h1 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.35;
}

.articleMeta {
  margin: 0;
  color: var(--active-ink);
  font-weight: 700;
  font-size: 13px;
}

.article section {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-top: 34px;
}

.article h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.45;
}

.article p,
.article ul,
.article ol {
  margin: 0;
  color: #3e3a33;
  line-height: 2;
  font-size: 17px;
}

.article p + p {
  margin-top: 10px;
}

.article ul,
.article ol {
  margin-top: 8px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.article .ctaBox {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8f4 100%);
}

.editorNote {
  border-color: var(--active-border) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f6faf7 100%) !important;
}

.appDiffCard {
  border-color: var(--active-border) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f6faf7 100%) !important;
}

.article .appDiffCard,
.article .editorNote,
.article .seoIntentCard,
.article .ctaBox,
.article .seoInternalLinks,
.article .nextRead,
.article .tocSection {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 22px;
}

.inlineLink,
.article a:not(.btn):not(.tocLink):not(.chip) {
  color: var(--primary);
  text-decoration: none;
}

.inlineLink:hover,
.article a:not(.btn):not(.tocLink):not(.chip):hover {
  text-decoration: underline;
}

.appDiffCard h2 {
  margin: 0 0 6px;
}

.appDiffCard p {
  margin: 6px 0;
}

.tocGrid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tocLink {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 700;
  color: #3f3a31;
  background: #faf8f4;
}

.tocLink:hover {
  background: #f5f2eb;
}

.miniCta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

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

.techInsightCard {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.techInsightCard h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.insightCols {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.insightCols div {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f9fa;
  padding: 8px;
}

.insightCols strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: #5f6368;
}

.nextRead ol a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.nextRead ol a:hover {
  text-decoration: underline;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  text-decoration: none;
  background: #faf8f4;
  color: #3f3a31;
  font-size: 12px;
  font-weight: 700;
}

.chip:hover {
  background: #f5f2eb;
}

@media (hover: none) and (pointer: coarse) {
  .navlinks a:hover {
    border-color: transparent;
    background: transparent;
    color: #3c4043;
  }

  .navlinks a:hover .bi {
    color: #5f6368;
  }

  .navlinks a:active,
  .navlinks a:focus-visible {
    border-color: transparent;
    background: transparent;
    color: #3c4043;
  }

  .navlinks a:active .bi,
  .navlinks a:focus-visible .bi {
    color: #5f6368;
  }

  .btn.primary:hover,
  .page-home .btn.primary:hover {
    background: var(--primary);
    border-color: var(--primary);
  }

  .btn.ghost:hover {
    background: var(--surface-soft);
  }

  .articleItem:hover {
    background: #fff;
  }

  .checkList a:hover,
  .footer a:hover,
  .nextRead ol a:hover {
    text-decoration: none;
  }

  .chip:hover,
  .tocLink:hover {
    background: #f8f9fa;
  }
}

.techPageHero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
}

.techStatGrid {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.techStat {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.techStat b {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.techStat span {
  color: var(--muted);
  font-size: 12px;
}

.techUpdatedAt {
  margin-top: 10px !important;
}

.techFilterLead {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.techFilterGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.techFilterField {
  display: grid;
  gap: 6px;
}

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

.techFilterField input,
.techFilterField select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #3c4043;
  padding: 0 12px;
  font-size: 14px;
}

.techCategoryChips {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.techCategoryChip {
  border: 1px solid var(--line);
  background: #f8f9fa;
  color: #3c4043;
  min-height: 32px;
  padding: 0 10px;
}

.techCategoryChip.is-active {
  border-color: var(--active-border);
  background: var(--accent-soft);
  color: var(--active-ink);
}

.techFilterResult {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.techQuickChips {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.techListSection h2 {
  margin: 0 0 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: clamp(24px, 3.4vw, 32px);
}

.techListSection h2 span {
  font-size: 14px;
  color: var(--muted);
}

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

.techListItem {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 13px;
}

.techListItem h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.45;
}

.techListItem p {
  margin: 0;
  color: #3c4043;
  line-height: 1.8;
  font-size: 14px;
}

.techListItem .point {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: #3c4043;
}

.techListItem .point strong {
  color: #5f6368;
}

.pointDetail {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.pointDetail summary {
  cursor: pointer;
  color: var(--active-ink);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

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

.pointDetail summary::before {
  content: "▸ ";
  color: #5f6368;
}

.pointDetail[open] summary::before {
  content: "▾ ";
}

.pointBody {
  margin: 8px 0 0;
  color: #3c4043;
  line-height: 1.8;
  font-size: 14px;
}

.techRelated {
  margin-top: 8px !important;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 13px !important;
  line-height: 1.7 !important;
}

.techRelated strong {
  color: #5f6368;
}

.techSearchLink {
  margin-top: 6px !important;
  font-size: 13px !important;
}

.techBottomCta {
  margin-top: 12px;
  background: linear-gradient(135deg, #fbfcfe 0%, #f5f7fa 100%);
}

@media (max-width: 880px) {
  .grid3,
  .flowGrid {
    grid-template-columns: 1fr;
  }

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

  .techListGrid,
  .techStatGrid {
    grid-template-columns: 1fr;
  }

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

  .techFilterGrid .btn {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .topnav {
    position: static;
  }

  .shell {
    padding: 0 12px;
  }

  .topnav .shell {
    min-height: 56px;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .logo {
    font-size: 16px;
  }

  .navlinks {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .navlinks::-webkit-scrollbar {
    display: none;
  }

  .navlinks a {
    padding: 6px 10px;
    font-size: 12px;
  }

  .hero {
    padding: 24px 0 16px;
  }

  .heroBox {
    padding: 16px;
    border-radius: 16px;
  }

  h1 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .hero .ctaRow .btn {
    width: 100%;
  }

  .section {
    padding: 22px 0;
  }

  .card,
  .techniqueCard,
  .flowCard {
    padding: 14px;
  }

  .articleItem {
    padding: 14px;
  }

  .articleItem h3 {
    font-size: 18px;
  }

  .ctaBand {
    padding: 16px;
    border-radius: 14px;
  }

  .compareTable {
    min-width: 560px;
  }

  .article {
    padding: 10px 12px 32px;
  }

  .articleHead,
  .article .appDiffCard,
  .article .editorNote,
  .article .seoIntentCard,
  .article .ctaBox,
  .article .seoInternalLinks,
  .article .nextRead,
  .article .tocSection {
    padding: 14px;
    border-radius: 12px;
  }

  .article section {
    padding: 0;
    border-radius: 0;
  }

  .article p,
  .article ul,
  .article ol {
    font-size: 15px;
  }

  .tocGrid,
  .techInsightGrid,
  .insightCols {
    grid-template-columns: 1fr;
  }
}
