:root {
  --ink: #17324d;
  --ink-soft: #456179;
  --canvas: #f7fafc;
  --surface: #ffffff;
  --line: #d9e4ed;
  --accent: #8b3a00;
  --accent-dark: #6f2e00;
  --accent-soft: #fff3e7;
  --shadow: 0 18px 46px rgb(23 50 77 / 10%);
  --radius: 16px;
  color-scheme: light dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Yu Gothic UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #155fa0; outline-offset: 3px; }

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); font-weight: 800; text-decoration: none; font-size: 18px; letter-spacing: .01em; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 16px; font-weight: 700; }
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--accent-dark); }
.button { min-height: 50px; display: inline-flex; justify-content: center; align-items: center; padding: 12px 22px; border-radius: 10px; text-decoration: none; font-size: 16px; font-weight: 800; transition: transform .22s ease, background .22s ease, box-shadow .22s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgb(23 50 77 / 16%); }
.button:active { transform: translateY(1px) scale(.99); }
.button-primary { color: #fff; background: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }

.hero { padding: clamp(54px, 8vw, 94px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr .95fr; align-items: center; gap: clamp(34px, 6vw, 78px); }
.kicker { display: inline-block; margin: 0 0 14px; color: var(--accent-dark); font-size: 14px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(36px, 4.8vw, 62px); line-height: 1.25; letter-spacing: -.04em; margin-bottom: 20px; }
h2 { font-size: clamp(28px, 3.3vw, 42px); line-height: 1.38; letter-spacing: -.03em; margin-bottom: 18px; }
h3 { font-size: 20px; line-height: 1.5; margin-bottom: 8px; }
.lead { color: var(--ink-soft); font-size: 18px; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-visual { background: linear-gradient(145deg, #e8f1f7, #fdf6ef); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-visual img { border-radius: 9px; }
.image-caption, .article-meta { color: var(--ink-soft); font-size: 14px; margin: 10px 0 0; }

.band { padding: clamp(58px, 8vw, 94px) 0; }
.band-white { background: var(--surface); }
.section-lead { max-width: 44em; color: var(--ink-soft); font-size: 17px; }
.problems { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; margin-top: 34px; }
.problem-main, .problem-list, .feature, .article-card, .article-note, .faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.problem-main { padding: clamp(26px, 4vw, 46px); background: var(--ink); color: #fff; }
.problem-main p { color: #dce9f1; margin-bottom: 0; }
.problem-list { padding: 20px 26px; }
.problem-list div { padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 800; }
.problem-list div:last-child { border-bottom: 0; }
.feature-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; margin-top: 38px; }
.feature-stack { display: grid; gap: 18px; }
.feature { overflow: hidden; display: grid; grid-template-columns: 150px 1fr; align-items: stretch; }
.feature img { height: 100%; min-height: 150px; object-fit: cover; }
.feature-body { padding: 22px; }
.feature-body p { margin-bottom: 0; color: var(--ink-soft); }
.feature-visual { min-height: 100%; }
.feature-visual img { height: 100%; min-height: 384px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.process-item { padding: 26px; border-left: 4px solid var(--accent); background: var(--accent-soft); }
.process-item p { color: var(--ink-soft); margin-bottom: 0; }
.cta-panel { padding: clamp(32px, 5vw, 54px); color: #fff; background: var(--ink); border-radius: var(--radius); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta-panel h2, .cta-panel p { margin-bottom: 0; }
.cta-panel p { color: #dce9f1; margin-top: 8px; }
.cta-panel .button { background: var(--accent); color: #fff; white-space: nowrap; }
.faq { display: grid; gap: 12px; margin-top: 28px; }
.faq-item { padding: 0 22px; }
.faq-item summary { cursor: pointer; padding: 20px 0; font-weight: 800; }
.faq-item p { color: var(--ink-soft); padding-bottom: 20px; margin-bottom: 0; }
.site-footer { padding: 34px 0; color: var(--ink-soft); font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.article-hero { padding: clamp(46px, 7vw, 78px) 0 38px; }
.breadcrumbs { color: var(--ink-soft); font-size: 14px; margin-bottom: 22px; }
.breadcrumbs a { color: var(--ink-soft); }
.article-shell { display: grid; grid-template-columns: minmax(0, 760px) 260px; justify-content: space-between; gap: 54px; }
.article-copy { font-size: 17px; }
.article-copy h2 { margin-top: 56px; }
.article-copy h3 { margin-top: 30px; }
.article-copy p { margin-bottom: 22px; }
.answer-box { border-left: 5px solid var(--accent); background: var(--accent-soft); padding: 24px; border-radius: 0 var(--radius) var(--radius) 0; font-weight: 700; }
.article-image { margin: 34px 0; }
.article-image img { border-radius: var(--radius); box-shadow: var(--shadow); }
.article-image figcaption { color: var(--ink-soft); font-size: 14px; margin-top: 10px; }
.check-table { width: 100%; border-collapse: collapse; margin: 24px 0 34px; font-size: 15px; }
.check-table th, .check-table td { text-align: left; vertical-align: top; padding: 16px; border-bottom: 1px solid var(--line); }
.check-table th { background: #edf4f8; width: 32%; }
.article-aside { align-self: start; position: sticky; top: 98px; }
.article-note { padding: 22px; }
.article-note p { color: var(--ink-soft); font-size: 14px; margin-bottom: 0; }
.article-note + .article-note { margin-top: 14px; }
.article-list { display: grid; gap: 20px; margin-top: 34px; }
.article-card { display: grid; grid-template-columns: 250px 1fr; overflow: hidden; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.article-card img { min-height: 100%; height: 100%; object-fit: cover; }
.article-card-content { padding: 28px; }
.article-card-content time, .article-card-content p { color: var(--ink-soft); font-size: 14px; }
.article-card-content p { margin-bottom: 0; }
.empty-state { padding: 32px; background: var(--accent-soft); border-radius: var(--radius); color: var(--ink-soft); margin-top: 20px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-visual { animation: rise .55s ease both; }
  .hero-visual { animation-delay: .08s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (prefers-color-scheme: dark) {
  :root { --ink: #e9f2f8; --ink-soft: #b5c7d5; --canvas: #152230; --surface: #1d2e3e; --line: #385166; --accent-soft: #2c302e; --shadow: 0 18px 46px rgb(0 0 0 / 22%); }
  .site-header { background: rgb(29 46 62 / 96%); }
  .problem-main, .cta-panel { background: #102131; }
  .check-table th { background: #263b4e; }
}
@media (max-width: 820px) {
  .nav-links a:not(.button):not(.nav-blog) { display: none; }
  .hero-grid, .feature-grid, .article-shell, .cta-panel { grid-template-columns: 1fr; }
  .problems, .process { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature img { max-height: 220px; }
  .feature-visual img { min-height: 0; max-height: 340px; }
  .article-aside { position: static; }
  .article-card { grid-template-columns: 1fr; }
  .article-card img { max-height: 230px; }
}
@media (max-width: 520px) {
  .container { width: min(100% - 32px, 1120px); }
  .nav { min-height: 64px; gap: 12px; }
  .brand { font-size: 16px; }
  .nav-links { gap: 10px; }
  .nav-links .button { padding: 10px 14px; min-height: 48px; font-size: 16px; }
  .nav-links .nav-blog { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .button { width: 100%; }
  .check-table, .check-table tbody, .check-table tr, .check-table th, .check-table td { display: block; width: 100%; }
  .check-table th { padding-bottom: 8px; }
  .check-table td { padding-top: 8px; }
}
