:root {
  --navy: #3e5f73;       /* 見出し・ボタン：深いくすみブルー */
  --navy-dark: #2f4a5b;  /* フッター */
  --accent: #467a99;     /* アクセント：くすんだ水色（白文字でも読める濃さ） */
  --bg: #eef3f6;         /* 淡いくすみ水色の背景 */
  --tint: #dce8ef;       /* 下層ページ見出し帯 */
  --text: #2e3a42;
  --text-light: #5f707c;
  --border: #dce5eb;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 700;
  font-size: 18px;
  color: #000;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img { width: 32px; height: 32px; flex: none; }
.logo span { color: inherit; }
nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}
nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
nav a:hover, nav a.active { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero (home) */
.hero {
  background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
  padding: 80px 0 64px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(70,122,153,0.10);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
h1 {
  font-size: 34px;
  line-height: 1.5;
  color: var(--navy);
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 32px;
}
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--navy);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-secondary {
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
}
.hero-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 12px 32px rgba(47,74,91,0.08);
}
.hero-panel .price-tag {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
}
.hero-panel .price {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.hero-panel .price small { font-size: 15px; font-weight: 500; color: var(--text-light); }
.hero-panel ul { list-style: none; }
.hero-panel li {
  font-size: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.hero-panel li:first-of-type { border-top: none; }
.check { color: var(--accent); font-weight: 700; }

/* Page header (inner pages) */
.page-header {
  background: var(--tint);
  color: var(--navy);
  padding: 56px 0;
}
.page-header h1 { color: var(--navy); font-size: 28px; margin-bottom: 8px; }
.page-header p { color: var(--text-light); font-size: 15px; }

/* Trust bar */
.trust {
  background: var(--accent);
  color: #fff;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* Section generic */
section.block { padding: 72px 0; }
section.block.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 {
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 12px;
}
.section-head p { color: var(--text-light); font-size: 15px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  background: #fff;
}
.feature-card h3 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}
.pricing-table th {
  background: var(--bg);
  color: var(--navy);
  font-weight: 700;
}
.pricing-table td.price { font-weight: 700; color: var(--navy); }
.pricing-note { font-size: 13px; color: var(--text-light); margin-top: 16px; }

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px 24px;
  font-size: 14px;
}
.about-grid dt { color: var(--text-light); font-weight: 600; }
.about-grid dd { color: var(--text); }
.founder-note {
  background: var(--bg);
  border-radius: 12px;
  padding: 28px;
  margin-top: 40px;
  font-size: 14px;
  color: var(--text);
}

/* Contact form */
.contact-form { max-width: 560px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.form-row textarea { resize: vertical; min-height: 120px; }
.contact-alt { margin-top: 32px; font-size: 14px; color: var(--text-light); }
.contact-alt a { color: var(--accent); font-weight: 600; }

/* Reveal-on-scroll animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Placeholder notice (dev only) */
.dev-note {
  background: #fff8e6;
  border: 1px dashed #e0b400;
  color: #7a5c00;
  font-size: 13px;
  padding: 12px 24px;
  text-align: center;
}

/* Footer */
footer {
  background: var(--navy-dark);
  color: #cbd5e1;
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
}
footer .logo { color: #fff; margin-bottom: 8px; justify-content: center; }
footer a:hover { color: #fff; }

@media (max-width: 800px) {
  .hero .container { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  h1 { font-size: 26px; }

  .nav-toggle { display: flex; }
  nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  nav.is-open { display: block; }
  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  nav ul li { border-top: 1px solid var(--border); }
  nav ul li:first-child { border-top: none; }
  nav a { display: block; padding: 14px 0; }
  .header-cta { display: none; }
}

/* Contact form extras */
.form-row .hint { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.required-tag {
  font-size: 11px;
  color: #fff;
  background: #c0392b;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 600;
}
.checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.checkbox-row input { margin-top: 3px; }
.confirm-row { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 28px 0 20px; }

/* Products page: reasons, video, custom-dev callout */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.reason-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.reason-card.full { grid-column: 1 / -1; }
.reason-num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.reason-card h3 { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.reason-card p { font-size: 14px; color: var(--text-light); }

.video-wrap {
  position: relative;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy-dark);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #c7d2e6;
  font-size: 14px;
  text-align: center;
  padding: 24px;
}
.video-placeholder .play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.custom-dev-callout {
  background: linear-gradient(135deg, var(--accent) 0%, var(--navy) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 24px;
  align-items: center;
}
.custom-dev-callout h3 { color: #fff; font-size: 20px; margin-bottom: 12px; }
.custom-dev-callout p { color: #eaf2f6; margin-bottom: 0; font-size: 14px; }
.custom-dev-callout .btn-primary { background: #fff; color: var(--navy); text-align: center; }

@media (max-width: 800px) {
  .reasons-grid { grid-template-columns: 1fr; }
  .custom-dev-callout { grid-template-columns: 1fr; text-align: left; }
}

/* Fix: checkbox rows inside .form-row (override generic label/input styles) */
.form-row .checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0;
  cursor: pointer;
}
.form-row input[type="checkbox"],
.confirm-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  flex: none;
}

/* Home: message block */
.message-block { max-width: 760px; margin: 0 auto; }
.message-block .eyebrow { margin-bottom: 12px; }
.message-block h2 { font-size: 26px; color: var(--navy); margin-bottom: 24px; line-height: 1.5; }
.message-block p { font-size: 15px; color: var(--text); margin-bottom: 18px; line-height: 1.9; }
.message-block .message-tagline {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}
@media (max-width: 800px) {
  .message-block h2 { font-size: 22px; }
  .message-block .message-tagline { font-size: 17px; }
}

/* Pricing: tax-included sub line */
.pricing-table td.price small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
}

/* About: Google Map */
.map-wrap {
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 360px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 800px) {
  .map-wrap { height: 280px; }
}

/* Members page */
.pricing-table td.hash { font-family: Consolas, "Courier New", monospace; font-size: 12px; word-break: break-all; }
.pricing-table tbody th { width: 160px; }
.steps { max-width: 760px; margin: 0 auto; padding-left: 1.4em; font-size: 15px; }
.steps li { margin-bottom: 14px; line-height: 1.8; }
.steps code { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-size: 13px; }
.release { max-width: 760px; margin: 0 auto 24px; border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; }
.release h3 { color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.release h3 span { font-size: 13px; color: var(--text-light); font-weight: 400; margin-left: 8px; }
.release ul { padding-left: 1.2em; font-size: 14px; }

/* Header: members-only link */
.header-members {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: 6px;
  white-space: nowrap;
}
.header-members:hover, .header-members.active { border-color: var(--accent); color: var(--accent); }
.nav-members { display: none; }
@media (max-width: 800px) {
  .header-members { display: none; }
  .nav-members { display: block; }
}

/* Product page */
.product-hero { padding: 80px 0 64px; background: linear-gradient(120deg, #f0f7fb, #e5eff5); }
.product-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.product-hero h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.5; letter-spacing: .02em; color: var(--navy-dark); margin: 16px 0; }
.hero-statement { font-size: 24px; font-weight: 700; color: var(--accent); line-height: 1.6; margin-bottom: 20px; }
.product-intro { font-size: 15px; line-height: 1.95; color: var(--text-light); }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.product-actions a { font-size: 14px; text-align: center; }
.product-price-card { background: white; border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: 0 12px 36px #315c7410; }
.product-price { font-size: clamp(40px, 4.2vw, 56px); font-weight: 700; line-height: 1.5; color: var(--navy-dark); margin-top: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.product-price span { font-size: 16px; margin: 0 5px; }
.price-tax { font-size: 13px; color: var(--text-light); }
.product-price-card ul { list-style: none; padding: 20px 0; margin-top: 20px; border-top: 1px solid var(--border); }
.product-price-card li { font-size: 14px; margin: 8px 0; }
.product-price-card li::before { content: '✓'; color: var(--accent); margin-right: 8px; }
.product-price-card .pricing-note { margin-top: 0; }
.product-text-link { display: inline-block; font-size: 13px; color: var(--accent); border-bottom: 1px solid var(--border); margin-top: 20px; }
.product-jump { display: block; position: static; border-bottom: 1px solid var(--border); background: #fff; }
.product-jump .container { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 32px; padding-top: 18px; padding-bottom: 18px; }
.product-jump a { font-size: 14px; color: var(--navy); font-weight: 600; }
#features, #workflow, #pricing, #trial, .product-category { scroll-margin-top: 88px; }
.category-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 48px; }
.category-links a { border: 1px solid var(--border); background: var(--bg); padding: 14px 8px; border-radius: 8px; font-size: 14px; text-align: center; color: var(--navy); }
.category-links a:hover { border-color: var(--accent); }
.product-category { margin-bottom: 48px; }
.category-heading { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.category-number { font-size: 32px; font-weight: 700; color: #739cb4; }
.category-heading h3 { font-size: 22px; color: var(--navy-dark); }
.category-heading p { color: var(--text-light); font-size: 14px; }
.product-category .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-category h4 { font-size: 18px; color: var(--navy); margin: 8px 0 12px; }
.product-category .task-label { color: var(--accent); font-size: 12px; font-weight: 600; }
.workflow-grid, .product-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.workflow-card { padding: 28px 24px; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.workflow-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 20px; }
.workflow-card p { font-size: 14px; }
.workflow-before { color: var(--text-light); }
.workflow-card > span { display: block; color: #83a5ba; font-size: 24px; margin: 10px 0; }
.workflow-after { color: var(--navy); font-weight: 700; }
.product-benefits article { border-top: 3px solid #adc9da; padding: 22px 0; }
.product-benefits h3 { font-size: 18px; color: var(--navy); margin: 10px 0 14px; }
.product-benefits p { font-size: 14px; color: var(--text-light); }
.product-trial { background: #e9f2f8; text-align: center; }
.product-trial h2 { font-size: clamp(23px, 3vw, 30px); color: var(--navy-dark); line-height: 1.6; margin: 16px 0; }
.product-trial p { font-size: 15px; color: var(--text-light); margin-bottom: 28px; }
@media (max-width: 800px) {
  .product-hero { padding: 44px 0; }
  .product-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-statement { font-size: 21px; }
  .product-price-card { padding: 24px; }
  .product-price { font-size: 48px; }
  .product-actions { flex-direction: column; }
  .category-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-category .feature-grid, .workflow-grid, .product-benefits { grid-template-columns: 1fr; }
  .product-jump .container { gap: 12px 20px; }
  .product-jump a { font-size: 13px; }
  .category-heading h3 { font-size: 20px; }
}
@media (max-width: 800px) {
  #pricing .pricing-table th, #pricing .pricing-table td { padding: 14px 8px; font-size: 12px; }
  #pricing .pricing-table td:first-child { white-space: nowrap; }
  #pricing .pricing-table td.price { white-space: nowrap; font-size: 13px; }
  #pricing .pricing-table td.price small { font-size: 11px; }
}
