:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #22252b;
  --muted: #62656d;
  --border: #e5e3dd;
  --navy: #1f2a44;
  --gold: #b89b5e;
  --brown: #7a6551;
  --shadow: 0 12px 30px rgba(25, 30, 40, 0.08);
  --radius: 16px;
  /* 100% + padding で親を突き破らない（92vw はスクロールバー込みと干渉しやすい） */
  --container-max: 1120px;
  --container-pad-x: clamp(14px, 4.5vw, 24px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  overflow-wrap: break-word;
  word-break: normal;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad-x);
  box-sizing: border-box;
}

main,
section,
.site-header,
.site-footer,
.hero,
.hero-inner,
.hero-content,
.hero-cv,
.section-head,
.feature-grid,
.article-grid,
.agent-grid,
.agent-list-grid,
.footer-inner {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.narrow {
  max-width: 820px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: #f1f2f4;
}

#articles.section {
  padding-bottom: 44px;
}

#categories.section {
  padding-top: 44px;
}

.section-title {
  margin: 0 0 28px;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 247, 245, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  position: relative;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  row-gap: 10px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.site-brand > div {
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  border: 1px solid #e6dbc0;
  background: #f4efe3;
}

.brand-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.brand-title {
  margin: 2px 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.global-nav a {
  color: #3f4350;
  font-size: 0.95rem;
}

@media (min-width: 761px) {
  .global-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 8px;
    max-width: min(100%, 52rem);
  }

  .global-nav a {
    white-space: nowrap;
  }
}

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

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  width: 42px;
  height: 40px;
  padding: 0;
  flex-shrink: 0;
  margin-left: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #343844;
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}

.hero {
  padding: 92px 0 72px;
  background: radial-gradient(circle at 85% 20%, #e9ecf3 0%, transparent 35%),
    radial-gradient(circle at 12% 15%, #f2ebde 0%, transparent 30%), var(--bg);
}

.hero + .section {
  padding-top: 42px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, min(430px, 100%)) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  margin-inline: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-media {
  margin: 0;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(30, 34, 45, 0.14);
  max-width: 100%;
  min-width: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-content {
  max-width: 760px;
  min-width: 0;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 420px minmax(0, 620px);
    gap: 56px;
    justify-content: center;
    max-width: 1096px;
    margin-inline: auto;
  }

  .hero-content {
    max-width: 620px;
  }
}

.eyebrow {
  margin: 0;
  color: var(--brown);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.hero-copy {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.hero-cv {
  margin-top: 28px;
  padding: 28px 20px;
  min-height: auto;
  border-radius: 14px;
  border: 1px solid #e9dfca;
  background: #fff;
  box-shadow: 0 6px 20px rgba(30, 34, 45, 0.06);
}

.hero-cv-text {
  margin: 0 0 28px;
  color: #3c404c;
  font-size: clamp(0.98rem, 0.92rem + 0.25vw, 1.08rem);
  font-weight: 600;
}

.hero-cv .btn {
  margin-top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  transition: 0.25s ease;
  max-width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: #c9ccd6;
  color: var(--navy);
  background: #fff;
}

.btn-secondary:hover {
  border-color: var(--navy);
}

.btn-cta {
  background: linear-gradient(130deg, #b89b5e, #a68a52);
  color: #fff;
  box-shadow: 0 8px 20px rgba(166, 138, 82, 0.26);
}

.btn-cta:hover {
  filter: brightness(1.03);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.94rem;
  text-align: center;
  background: linear-gradient(130deg, #b89b5e, #a68a52);
  color: #fff;
  box-shadow: 0 8px 20px rgba(166, 138, 82, 0.26);
  transition: 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn-ghost {
  border-color: #d1c3a3;
  color: #7a6551;
  background: #fffdf8;
}

.feature-grid,
.article-grid,
.agent-grid {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

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

.features-lead,
.article-intro,
.section-text,
.lead-text {
  margin: 0 0 16px;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.home-diagnostic-section {
  padding-top: clamp(40px, 8vw, 64px);
  padding-bottom: clamp(40px, 8vw, 64px);
}

.home-diagnostic {
  margin: 0 auto;
  max-width: 720px;
  padding: clamp(24px, 5vw, 36px) clamp(22px, 4vw, 32px);
  border-radius: var(--radius);
  border: 1px solid #e6dbc0;
  background: linear-gradient(165deg, #fffefb 0%, #f4efe6 100%);
  box-shadow: var(--shadow);
  text-align: center;
}

.home-diagnostic__eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brown);
}

.home-diagnostic__title {
  margin: 0 0 14px;
  font-size: clamp(1.22rem, 1.05rem + 0.9vw, 1.52rem);
  line-height: 1.45;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.home-diagnostic__lead {
  margin: 0 auto 22px;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.85;
  text-align: left;
}

.home-diagnostic__cta {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  max-width: 320px;
}

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

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

.feature-card,
.article-card,
.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 6px 20px rgba(30, 34, 45, 0.05);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.feature-card h3,
.article-card h3,
.agent-card h3 {
  margin: 0 0 10px;
  line-height: 1.45;
  font-size: 1.05rem;
}

.agent-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #e2e6ef;
  background: #fff;
  padding: 6px;
  margin: 0 0 10px;
}

.agent-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.agent-heading .agent-logo {
  margin: 0;
  flex-shrink: 0;
}

.agent-heading h3 {
  margin: 0;
}

.feature-card p,
.article-card p,
.agent-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.article-meta {
  margin-bottom: 8px !important;
  color: var(--brown) !important;
  font-weight: 600;
  font-size: 0.8rem !important;
  letter-spacing: 0.03em;
}

.card-link,
.text-link {
  color: var(--navy);
  font-weight: 600;
  display: inline-block;
  margin-top: 12px;
}

.card-link::after,
.text-link::after {
  content: " \2197";
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.section-head .text-link {
  margin-left: auto;
  margin-top: 0;
  margin-bottom: 2px;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-list a {
  background: #ffffff;
  border: 1px solid #d9dde6;
  color: #384058;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.9rem;
}

.category-list a:hover {
  border-color: #a9b2c8;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: #f4f5f7;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.footer-inner p {
  margin: 0;
  color: #5d6371;
  font-size: 0.88rem;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  max-width: 100%;
}

.footer-inner nav a {
  white-space: normal;
}

/* Article page */
.article-main {
  padding: 36px 0 64px;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #61697b;
  font-size: 0.9rem;
  line-height: 1.6;
}

.post {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 40px);
  box-shadow: var(--shadow);
}

.post-header h1 {
  margin: 10px 0 14px;
  line-height: 1.35;
  font-size: clamp(1.65rem, 1.1rem + 1.8vw, 2.3rem);
}

.article-updated {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

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

.eyecatch {
  margin: 26px 0;
  border-radius: 16px;
  border: 1px solid #d6ddea;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr);
  align-items: stretch;
  background: #f7f8fb;
  overflow: hidden;
}

.eyecatch img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.eyecatch-title {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 20px 24px;
  color: #1f2a44;
  font-weight: 700;
  font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2rem);
  line-height: 1.35;
}

.toc {
  margin: 22px 0 18px;
  border: 1px solid #ebe4d5;
  background: #fffdf7;
  border-radius: 14px;
  padding: 18px;
}

.toc h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.3rem;
}

.toc li + li {
  margin-top: 6px;
}

.post h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  line-height: 1.45;
}

.post .toc h2 {
  /* `.post h2` と同等の特異性で後勝ちするので、目次内だけ明示的に上書き */
  margin-top: 0;
  margin-bottom: 8px;
}

.article-eyecatch {
  margin: 14px 0 22px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d6ddea;
  background: #f7f8fb;
}

.article-eyecatch img {
  width: 100%;
  height: auto;
  display: block;
}

.post h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  color: #2b3858;
}

#sec-3 .theme-step-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #d7deee;
  border-radius: 10px;
  background: #f6f8fd;
  color: #243152;
  font-size: 1rem;
  line-height: 1.45;
}

#sec-3 .theme-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1em;
  height: 2.1em;
  border-radius: 999px;
  background: #2f4a84;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.post p {
  margin: 0;
  color: #3d4250;
}

.post p + p,
.post p + .post-list {
  margin-top: 8px;
}

.post-list {
  margin: 0;
  padding-left: 1.2rem;
}

.post-list li + li {
  margin-top: 6px;
}

.inline-cta {
  margin-top: 36px;
  border-radius: 18px;
  border: 1px solid #dfd2b7;
  background: linear-gradient(145deg, #fff8eb, #ffffff);
  padding: 24px;
}

.inline-cta h2 {
  margin-top: 0;
}

.inline-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.inline-cta .cta-summary-text {
  /* `agent-cta-btn` がマージン付きなので、文章側は余計な余白を作らない */
  display: inline-block;
}

.article-cta {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #dfd2b7;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff8eb, #ffffff);
}

.article-cta p {
  margin: 0 0 10px;
}

/* Article: conclusion summary and related posts */
.point-summary {
  margin: 22px 0 24px;
  padding: 16px 18px;
  border: 1px solid #dfd2b7;
  border-radius: 12px;
  background: linear-gradient(145deg, #fffdf8, #ffffff);
}

.point-summary h2 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--navy, #243152);
}

.point-summary ul {
  margin: 0;
  padding-left: 1.2em;
}

.template-block {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #0f172a;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.point-summary li {
  margin: 0 0 8px;
  line-height: 1.65;
  font-size: 0.95rem;
}

.point-summary li:last-child {
  margin-bottom: 0;
}

.related-posts {
  margin: 26px 0 6px;
  padding: 16px 18px;
  border: 1px solid #e2dece;
  border-radius: 12px;
  background: #faf9f6;
}

.related-posts h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--navy, #243152);
}

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

.related-post-card {
  border: 1px solid #e2dece;
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
}

.related-post-card h3 {
  margin: 6px 0 8px;
  font-size: 0.98rem;
  line-height: 1.45;
}

.related-post-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5262;
  line-height: 1.55;
}

.related-post-card .card-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--navy, #243152);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.author-box {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid #e2dece;
  border-radius: 14px;
  background: linear-gradient(145deg, #fffdf8, #ffffff);
}

.author-box h3 {
  margin: 0 0 10px;
  font-size: 1.04rem;
  line-height: 1.4;
  color: #243152;
}

.author-box p {
  margin: 0;
}

.author-box p + p {
  margin-top: 8px;
}

/* E-E-A-T: byline, callouts, trust */
.post-author-byline {
  margin: 12px 0 14px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #f4f6fa;
  border: 1px solid #e2e6ef;
  font-size: 0.9rem;
  line-height: 1.85;
  color: #4a5060;
}

.post-header + .post-author-byline {
  margin-top: 18px;
}

.post-author-byline a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post a.link-genjitsu {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post a[href="./agent40.html"]:not(.btn-primary) {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.block-author-comment {
  margin: 20px 0;
  padding: 16px 18px 16px 20px;
  border-radius: 14px;
  border: 1px solid #e5dcc8;
  border-left: 4px solid var(--gold);
  background: linear-gradient(160deg, #fffdf8, #faf8f3);
  box-shadow: 0 4px 14px rgba(45, 40, 30, 0.06);
}

.block-author-comment .author-comment-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brown);
  text-transform: uppercase;
}

.block-author-comment p {
  margin: 0;
  color: #3a3f4d;
  font-size: 0.96rem;
  line-height: 1.75;
}

.block-author-comment p + p {
  margin-top: 8px;
}

.callout-general,
.callout-opinion {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.callout-general {
  border: 1px solid #d8e0ec;
  background: #f6f8fc;
  border-left: 4px solid #5a7aad;
}

.callout-opinion {
  border: 1px solid #e8dfc8;
  background: #fffaf2;
  border-left: 4px solid #c4a06a;
}

.callout-general .callout-title,
.callout-opinion .callout-title {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.callout-general .callout-title {
  color: #3d5280;
}

.callout-opinion .callout-title {
  color: #6b5a3d;
}

.callout-general p,
.callout-opinion p {
  margin: 0;
  color: #3d4250;
}

/* 記事本文の外：ブログ型プロフィール（.article-main 直下に配置） */
.author-profile-panel {
  width: 100%;
  margin: 28px 0 0;
  padding: 36px 0 48px;
  border-top: 1px solid #d0d5de;
  background: linear-gradient(180deg, #eceef3 0%, #e4e7ee 48%, #dfe3eb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.author-profile-panel__inner {
  width: min(820px, 100%);
  margin-inline: auto;
  padding-inline: var(--container-pad-x);
  box-sizing: border-box;
}

.author-profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 26px;
  align-items: start;
  padding: 26px 28px;
  border-radius: 18px;
  border: 1px solid #d5dae4;
  background: #fff;
  box-shadow: 0 16px 40px rgba(25, 32, 48, 0.1);
}

.author-profile-card__avatar {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #e8dfd0;
  background: #f4efe3;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(35, 40, 55, 0.12);
}

.author-profile-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-profile-card__body {
  min-width: 0;
}

.author-profile-card__eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #6b7385;
  text-transform: uppercase;
}

.author-profile-card__title {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1.25;
}

.author-profile-card__meta {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--brown);
  font-weight: 600;
}

.author-profile-card__text {
  font-size: 0.94rem;
  line-height: 1.75;
  color: #3d4250;
}

.author-profile-card__text p {
  margin: 0;
}

.author-profile-card__text p + p {
  margin-top: 8px;
}

.author-profile-card__text a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .author-profile-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 24px 20px;
  }

  .author-profile-card__body {
    width: 100%;
    text-align: left;
  }
}

.trust-mini {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f0f2f6;
  border: 1px solid #dde1ea;
  font-size: 0.88rem;
  color: #4d5363;
}

.trust-mini p {
  margin: 0;
}

.trust-mini p + p {
  margin-top: 8px;
}

.trust-mini a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-highlight {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.profile-highlight dl {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fafbfc;
}

.profile-highlight dt {
  margin: 0 0 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.03em;
}

.profile-highlight dd {
  margin: 0;
  color: #3d4250;
  font-size: 0.95rem;
}

.static-page .source-list {
  margin: 12px 0 0;
  padding-left: 1.2rem;
  color: #3d4250;
  font-size: 0.94rem;
}

.static-page .source-list li + li {
  margin-top: 6px;
}

.related-posts {
  margin-top: 28px;
}

.post-pagination {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.post-pagination a {
  color: var(--navy);
  font-size: 0.92rem;
}

/* Static pages */
.static-page-main {
  padding: 36px 0 64px;
}

.page-container {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  padding-inline: var(--container-pad-x);
  box-sizing: border-box;
}

.static-page {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 40px);
  box-shadow: var(--shadow);
}

.static-page h1 {
  margin: 0 0 18px;
  line-height: 1.35;
  font-size: clamp(1.65rem, 1.1rem + 1.8vw, 2.3rem);
}

.static-page h2 {
  margin: 34px 0 10px;
  line-height: 1.45;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  color: #25314f;
}

.static-page p {
  margin: 0;
  color: #3d4250;
}

.static-page p + p,
.static-page p + h2,
.static-page h2 + p,
.static-page p + ul {
  margin-top: 8px;
}

.static-page h2 + ul {
  margin-top: 8px;
}

.static-page a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-address {
  margin: 18px 0;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  color: #1f2a44;
}

/* Agent introduction page */
.agent-page-main .hero {
  padding-bottom: 56px;
}

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

.agent-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 6px 20px rgba(30, 34, 45, 0.05);
}

.agent-detail-card h3 {
  margin: 0 0 8px;
  line-height: 1.4;
}

.agent-tag {
  margin: 0 0 10px;
  color: var(--brown);
  font-size: 0.85rem;
  font-weight: 600;
}

.flow-steps,
.faq-list {
  display: grid;
  gap: 14px;
}

.flow-step,
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.flow-step h3,
.faq-item h3 {
  margin: 0 0 8px;
}

.flow-step p,
.faq-item p {
  margin: 0;
  color: #3d4250;
}

.agent-use-tip {
  margin: 0 0 10px;
  color: #2f3a55;
  font-size: 0.9rem;
  line-height: 1.7;
}

.agent-cta-note {
  margin: 14px 0 10px;
  font-size: 0.9rem;
  color: #4a5060;
}

.agent-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #294b85;
  background: linear-gradient(135deg, #2f5aa8, #284a89);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  margin-top: 6px;
  margin-bottom: 10px;
}

.agent-cta-btn::after {
  content: "";
}

.agent-cta-btn:hover {
  filter: brightness(1.04);
}

.agent-cta-btn--accent {
  border-color: #a35a00;
  background: linear-gradient(135deg, #e38a1f, #c86a00);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 14px 0 18px;
}

.agent-compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #dfe3eb;
  border-radius: 10px;
  overflow: hidden;
}

.agent-compare-table th,
.agent-compare-table td {
  border: 1px solid #e5e9f0;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
  color: #3d4250;
}

.agent-compare-table th {
  background: #f4f6fa;
  color: #2b3858;
  font-weight: 700;
}

.agent-compare-table a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .article-grid,
  .agent-grid {
    grid-template-columns: 1fr 1fr;
  }

  .agent-list-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    margin-top: 14px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 72px;
    /* 右側の余白バランスを整える（ハンバーガーが端寄りになりすぎないように） */
    padding-right: 20px;
  }

  .nav-toggle {
    display: flex;
    /* タップ領域は確保しつつ、見た目の主張を抑える */
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(30, 34, 45, 0.08);
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    gap: 3px;
  }

  .nav-toggle span {
    /* 三本線を短く・少し細く（間隔もコンパクトに） */
    width: 24px;
    height: 1.6px;
    margin: 0 auto;
    background: #1f2430;
  }

  .global-nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    z-index: 50;
  }

  .global-nav a {
    padding: 8px 4px;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .global-nav.is-open {
    display: flex;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-media {
    max-width: min(420px, 100%);
    margin-inline: auto;
  }

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

  .eyecatch img {
    height: 160px;
  }

  .toc {
    margin-top: 12px;
  }

  .section {
    padding: 58px 0;
  }

  .hero + .section {
    padding-top: 30px;
  }

  #articles.section {
    padding-bottom: 34px;
  }

  #categories.section {
    padding-top: 30px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .section-head .text-link {
    align-self: flex-end;
    margin-top: 0;
    margin-bottom: 10px;
  }

  .feature-grid,
  .article-grid,
  .agent-grid,
  .agent-list-grid,
  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-cv {
    padding: 24px 18px;
  }

  .hero-cv-text {
    margin-bottom: 24px;
  }

  .feature-card,
  .article-card,
  .agent-card {
    padding: 18px 16px;
  }

  .agent-cta-note {
    margin-top: 22px;
    margin-bottom: 16px;
  }

  .agent-detail-card .post-list + .agent-cta-note {
    margin-top: 24px;
  }

  .agent-cta-btn {
    margin-top: 8px;
    margin-bottom: 22px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 40px 0;
  }

  .hero + .section {
    padding-top: 22px;
  }

  #articles.section {
    padding-bottom: 26px;
  }

  #categories.section {
    padding-top: 22px;
  }

  .hero {
    padding: 20px 0 36px;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 1.2rem + 2vw, 2.2rem);
  }

  .section-title {
    margin-bottom: 18px;
  }

  .btn {
    padding: 11px 16px;
    font-size: 0.9rem;
  }

  .agent-cta-btn {
    width: 100%;
    min-height: 50px;
    font-size: 16px;
  }
}

table,
button,
.agent-card,
.agent-detail-card {
  max-width: 100%;
}

