: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;
  --container: min(1120px, 92vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: #f1f2f4;
}

.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 {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.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;
}

.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: 9px 8px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #343844;
  margin: 5px 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-inner {
  display: grid;
  grid-template-columns: minmax(240px, 430px) minmax(320px, 1fr);
  align-items: center;
  gap: 34px;
}

.hero-media {
  margin: 0;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(30, 34, 45, 0.14);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-content {
  max-width: 760px;
}

.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-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.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;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: #2a3658;
}

.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-ghost {
  border-color: #d1c3a3;
  color: #7a6551;
  background: #fffdf8;
}

.cta-band {
  padding: 22px 0;
}

.cta-band-inner {
  background: var(--surface);
  border: 1px solid #e9dfca;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-band-text {
  margin: 0;
  color: #3c404c;
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.2rem);
  font-weight: 600;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-grid,
.article-grid,
.agent-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.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);
}

.feature-card h3,
.article-card h3,
.agent-card h3 {
  margin: 0 0 10px;
  line-height: 1.45;
  font-size: 1.05rem;
}

.feature-card p,
.article-card p,
.agent-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.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: " ↗";
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.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;
  gap: 14px;
}

/* Article page */
.article-main {
  padding: 36px 0 64px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #61697b;
  font-size: 0.86rem;
}

.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);
}

.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 h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  color: #2b3858;
}

.post p {
  margin: 0;
  color: #3d4250;
}

.post p + p,
.post p + .post-list {
  margin-top: 10px;
}

.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;
}

.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;
}

@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .article-grid,
  .agent-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 72px;
  }

  .nav-toggle {
    display: block;
  }

  .global-nav {
    display: none;
    position: absolute;
    top: 72px;
    right: 4vw;
    left: 4vw;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .global-nav.is-open {
    display: flex;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-media {
    max-width: 420px;
  }

  .eyecatch {
    grid-template-columns: 1fr;
  }

  .eyecatch img {
    height: 160px;
  }

  .section {
    padding: 58px 0;
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-grid,
  .article-grid,
  .agent-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
