:root {
  --color-bg: #f5f7f8;
  --color-surface: #ffffff;
  --color-text: #1c2b2f;
  --color-text-muted: #556066;
  --color-primary: #215e6e;
  --color-primary-dark: #163f4a;
  --color-accent: #78aab4;
  --color-border: #e1e7e9;
  --max-width: 840px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
}

a {
  color: var(--color-primary);
}

a:hover {
  color: var(--color-primary-dark);
}

header.site-header {
  background: var(--color-primary);
  color: #fff;
}

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

.header-inner img.logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: block;
}

.header-inner .brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
}

nav.site-nav {
  background: var(--color-primary-dark);
}

nav.site-nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
}

nav.site-nav a {
  color: #d8e6ea;
  text-decoration: none;
  padding: 12px 14px;
  font-size: 0.92rem;
  white-space: nowrap;
}

nav.site-nav a:hover,
nav.site-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.page-title {
  font-size: 1.6rem;
  margin: 0 0 8px;
  color: var(--color-primary-dark);
}

.page-lede {
  color: var(--color-text-muted);
  margin: 0 0 32px;
}

section {
  margin-bottom: 40px;
}

h2 {
  font-size: 1.2rem;
  color: var(--color-primary-dark);
  border-left: 4px solid var(--color-primary);
  padding-left: 10px;
  margin: 0 0 16px;
}

h3 {
  font-size: 1.02rem;
  color: var(--color-primary-dark);
  margin: 20px 0 8px;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 14px;
  padding-left: 1.4em;
}

li {
  margin-bottom: 6px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 40px;
}

.hero img.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  flex-shrink: 0;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  color: var(--color-primary-dark);
}

.hero .tagline {
  color: var(--color-text-muted);
  margin: 0 0 18px;
}

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff !important;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

.btn:hover {
  background: var(--color-primary-dark);
}

.btn-soon {
  display: inline-block;
  background: #e4e9ea;
  color: var(--color-text-muted) !important;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: default;
}

.price-badge {
  display: inline-block;
  background: #eef5f6;
  color: var(--color-primary-dark);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
}

table.spec-table {
  width: 100%;
  border-collapse: collapse;
}

table.spec-table th,
table.spec-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

table.spec-table th {
  width: 34%;
  color: var(--color-text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.notice {
  background: #fff8e8;
  border: 1px solid #f0dca6;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 0.92rem;
  color: #6b5620;
}

footer.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 28px 20px 48px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

footer.site-footer a {
  color: var(--color-text-muted);
  margin: 0 8px;
}

.email-link {
  font-size: 1.1rem;
  font-weight: 700;
}

@media (max-width: 560px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  table.spec-table th,
  table.spec-table td {
    display: block;
    width: 100%;
  }
  table.spec-table th {
    padding-bottom: 2px;
    border-bottom: none;
  }
  table.spec-table td {
    padding-top: 2px;
  }
}

/* ---- インラインコード・ハッシュ値・ソース入手先（ライセンス情報ページ等） ---- */

code {
  font-family: "Consolas", "Menlo", "Courier New", monospace;
  font-size: 0.88em;
  background: #eef3f4;
  color: var(--color-primary-dark);
  border-radius: 4px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}

table.spec-table td > p:last-child,
table.spec-table td > ul:last-child {
  margin-bottom: 0;
}

.sub-note {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin: 8px 0 0;
}

.hash-row {
  margin-top: 10px;
}

.hash-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

code.hash {
  display: block;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  line-height: 1.6;
  word-break: break-all;
}

code.hash-inline {
  word-break: break-all;
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.option-list code {
  padding: 3px 8px;
  border: 1px solid var(--color-border);
}

.source-primary {
  background: #f2f8f9;
  border: 1px solid var(--color-accent);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.label-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.source-primary .source-link {
  display: block;
  font-weight: 700;
}

.source-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin: 0 0 6px;
}

ul.source-list {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

ul.source-list li {
  margin-bottom: 10px;
}

.source-desc,
.source-meta {
  display: block;
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 560px) {
  main {
    padding: 28px 16px 48px;
  }
  .card {
    padding: 18px 16px;
  }
  table.spec-table th,
  table.spec-table td {
    padding-left: 0;
    padding-right: 0;
  }
}
