:root {
  --ink: #17201d;
  --muted: #5f6d69;
  --paper: #fbfaf5;
  --surface: #ffffff;
  --line: #dfe5df;
  --brand: #0f6a5d;
  --brand-dark: #0a4039;
  --accent: #b8892f;
  --alert: #b94f42;
  --sky: #dcebf4;
  --leaf: #e8f2dc;
  --rose: #f5e2de;
  --shadow: 0 16px 40px rgba(23, 32, 29, 0.1);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 245, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
  max-width: min(100%, 360px);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #71a270);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.brand span:last-child {
  font-size: 1.02rem;
  line-height: 1.35;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  color: #26332f;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--brand);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 13px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(23, 32, 29, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.nav-cta:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(23, 32, 29, 0.2);
}

.nav-cta,
.btn-primary {
  background: linear-gradient(135deg, #f3b13f, #d7532f);
  color: #121b18;
  border-color: #c44425;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover,
.nav-cta:hover {
  background: linear-gradient(135deg, #ffc44f, #c94324);
  color: #121b18;
}

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

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

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-large {
  min-height: 60px;
  padding: 16px 26px;
  font-size: 1.08rem;
}

.hero {
  position: relative;
  min-height: 680px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(13, 22, 19, 0.92) 0%, rgba(13, 22, 19, 0.72) 42%, rgba(13, 22, 19, 0.24) 68%, rgba(13, 22, 19, 0.08) 100%),
    url("../assets/top-hero.png?v=202605276");
  background-size: cover;
  background-position: center right;
  overflow: hidden;
}

.hero::before {
  content: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px 20px 44px;
  min-height: 560px;
  display: grid;
  align-content: center;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #dfeee3;
  font-weight: 800;
  font-size: 0.94rem;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.32;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  max-width: 760px;
}

.no-break {
  white-space: nowrap;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

h3 {
  font-size: 1.22rem;
}

p {
  margin: 0;
}

.lead {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  max-width: 680px;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-panel {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-panel div {
  min-height: 94px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.hero-panel strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
}

.hero-panel span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 82px 20px;
}

.section-soft {
  background: #eef4ef;
}

.section-white {
  background: #fff;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
}

.section-actions {
  margin: -12px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.card,
.article-card,
.company-card,
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(23, 32, 29, 0.05);
}

.card,
.article-card,
.company-card {
  padding: 24px;
}

.card .tag,
.article-card .tag,
.company-card .tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--leaf);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.card h3,
.article-card h3,
.company-card h3 {
  margin-top: 14px;
}

.card p,
.article-card p,
.company-card p {
  margin-top: 10px;
  color: var(--muted);
}

.article-card a,
.text-link {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.article-card a:hover,
.text-link:hover {
  text-decoration: underline;
}

.feature-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.feature-copy {
  padding: 34px;
  background: var(--brand-dark);
  color: #fff;
  border-radius: 8px;
}

.feature-copy p {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 14px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #eef4ef;
  font-size: 0.9rem;
}

td {
  color: #33403c;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 12px;
  margin-bottom: 22px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-weight: 800;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd6d0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

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

.company-card {
  min-height: 190px;
}

.company-card[hidden] {
  display: none;
}

.company-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 8px;
  border: 1px solid #d4ddd7;
  border-radius: 999px;
  background: #fff;
  color: #46544f;
  font-size: 0.8rem;
  font-weight: 700;
}

.notice {
  padding: 20px;
  background: #fff8ea;
  border-color: #ead6a7;
}

.notice strong {
  color: #6d4e12;
}

.notice p {
  margin-top: 8px;
  color: #5e5135;
}

.conversion-band {
  background: #132620;
  color: #fff;
  border-radius: 8px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow);
}

.conversion-band p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.84);
}

.conversion-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.conversion-actions {
  justify-content: flex-end;
}

.result-cta {
  margin-top: 18px;
  padding: 22px;
  border-radius: 8px;
  background: #132620;
  color: #fff;
  border: 2px solid #f0b544;
}

.result-cta h3 {
  margin-top: 10px;
}

.result-cta p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.86);
}

.result-cta .tag {
  background: #f3b13f;
  color: #121b18;
}

.result-actions {
  margin-top: 16px;
}

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

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

.field-full {
  grid-column: 1 / -1;
}

.checkbox-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 5px;
}

.result-box {
  margin-top: 18px;
  padding: 20px;
  border-radius: 8px;
  background: var(--sky);
  border: 1px solid #bdd5e4;
}

.result-box[hidden] {
  display: none;
}

.page-hero {
  background: #12211d;
  color: #fff;
  padding: 76px 20px 56px;
}

.page-hero .container {
  display: grid;
  gap: 16px;
}

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

.breadcrumb {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.article-body {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px;
}

.article-body h2 {
  margin-top: 36px;
  font-size: 1.7rem;
}

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

.article-body p,
.article-body ul,
.article-body ol {
  margin-top: 14px;
}

.article-body li {
  margin-top: 8px;
}

.source-list {
  padding-left: 1.2em;
  color: var(--muted);
}

.site-footer {
  background: #121b18;
  color: rgba(255, 255, 255, 0.82);
  padding: 46px 20px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-note {
  margin-top: 18px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.68);
}

.copyright {
  margin-top: 18px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.56);
}

@media (max-width: 980px) {
  .site-nav {
    gap: 11px;
    font-size: 0.88rem;
  }

  .hero-panel,
  .grid-4,
  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .feature-band,
  .conversion-band {
    grid-template-columns: 1fr;
  }

  .conversion-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-cta {
    min-width: 120px;
  }

  .hero-inner {
    min-height: auto;
    padding: 70px 20px 28px;
    align-content: start;
  }

  .hero-panel {
    width: calc(100% - 36px);
    margin: 0 auto 18px;
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    min-height: 70px;
  }

  .section {
    padding: 62px 18px;
  }

  .grid-2,
  .grid-4,
  .filter-bar,
  .form-grid,
  .company-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

  .article-body {
    padding: 24px;
  }
}

@media (max-width: 420px) {
  .brand {
    max-width: 100%;
  }

  .brand span:last-child {
    font-size: 0.86rem;
  }

  h1 {
    font-size: 1.88rem;
  }

  .btn,
  .nav-cta {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}
