:root {
  --ink: #162033;
  --muted: #5d697c;
  --line: #dbe5ef;
  --soft: #f5f9fc;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #0f9f7a;
  --green-soft: #e8f7f2;
  --amber: #9a6700;
  --amber-soft: #fff7df;
  --white: #ffffff;
  --shadow: 0 16px 42px rgba(21, 36, 58, 0.10);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.pr-bar {
  padding: 12px 20px;
  border-bottom: 1px solid #cfe4f6;
  background: #eef7ff;
  color: #23425f;
  font-size: 0.92rem;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  min-height: 58px;
  margin: 0 auto;
  gap: 20px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 0.9rem;
}

.nav-links a {
  color: #33445a;
  text-decoration: none;
}

.hero {
  min-height: 470px;
  display: grid;
  align-items: end;
  border-bottom: 1px solid var(--line);
  background-color: #f5fbff;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.90) 46%, rgba(255,255,255,0.45) 76%),
    url("ai-tools-hero.jpg");
  background-size: cover, cover;
  background-position: center, center;
}

.hero-inner,
.section-inner {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner { padding: 70px 0 54px; }

.eyebrow {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; line-height: 1.38; }
h1 { max-width: 760px; margin-top: 14px; font-size: 2.45rem; }
h2 { margin-bottom: 18px; font-size: 1.75rem; }
h3 { margin-bottom: 10px; font-size: 1.16rem; }
p { margin: 0 0 16px; }

.lead {
  max-width: 720px;
  margin-top: 18px;
  color: #39465a;
  font-size: 1.08rem;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.button:hover { background: var(--blue-dark); }
.button.secondary { border-color: #b8cff8; background: var(--white); color: var(--blue-dark); box-shadow: none; }
.button.secondary:hover { background: #f2f7ff; }

main > section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

main > section:nth-of-type(even) { background: var(--soft); }

.summary,
.notice,
.contact-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.summary { border-left: 6px solid var(--blue); }
.notice { border-left: 6px solid var(--amber); background: var(--amber-soft); box-shadow: none; }
.contact-box { border-left: 6px solid var(--green); background: #f8fcfb; }

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #08745a;
  font-size: 0.82rem;
  font-weight: 800;
}

.tag.blue { background: #eaf2ff; color: var(--blue-dark); }
.tag.amber { background: var(--amber-soft); color: var(--amber); }

.grid-2,
.grid-3,
.model-grid,
.source-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 1.2em; }

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.card.recommended { border-color: #9fc4ff; box-shadow: 0 12px 30px rgba(37, 99, 235, 0.10); }
.card p:last-child { margin-bottom: 0; }

.metric {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-size: 1.55rem;
  font-weight: 800;
}

.muted,
.fine-print { color: var(--muted); }
.fine-print { font-size: 0.9rem; }

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

table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #eef6ff; color: #18355a; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  counter-reset: step;
}

.step {
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  counter-increment: step;
}

.step + .step { border-left: 0; }
.step::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 10px; color: var(--green); font-weight: 800; }

.check-list { padding-left: 1.25em; }
.check-list li { margin: 7px 0; }

.price {
  margin: 8px 0 14px;
  color: var(--blue-dark);
  font-size: 1.45rem;
  font-weight: 800;
}

.language-jump { margin-top: 14px; font-size: 0.92rem; }

footer {
  padding: 34px 20px;
  background: #142033;
  color: #c9d5e4;
  text-align: center;
  font-size: 0.92rem;
}

footer a { color: #9fc1e8; }

@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  .grid-3, .model-grid, .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 1px solid var(--line); border-top: 0; }
  .hero {
    background-image:
      linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.91) 62%, rgba(255,255,255,0.64) 100%),
      url("ai-tools-hero.jpg");
    background-position: 60% center;
  }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .nav-inner { width: calc(100% - 28px); align-items: flex-start; flex-direction: column; padding: 10px 0; gap: 6px; }
  .nav-links { width: 100%; padding-bottom: 4px; }
  .hero-inner, .section-inner { width: calc(100% - 28px); }
  .hero-inner { padding: 52px 0 40px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.45rem; }
  main > section { padding: 46px 0; }
  .grid-2, .grid-3, .model-grid, .source-grid { grid-template-columns: 1fr; }
  .summary, .notice, .contact-box, .card { padding: 18px; }
  .button { width: 100%; }
}
