:root {
  --color-bg: #0f1419;
  --color-surface: #1a2332;
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: min(1080px, 100%);
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  /* 暗い背景用: 反転＋色相回転で緑を維持、明るさで若葉の感じに */
  filter: invert(1) hue-rotate(180deg) brightness(1.15);
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px 16px;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
    row-gap: 10px;
  }
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .nav a {
    white-space: normal;
  }
}

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

/* Hero */
.hero {
  padding: 80px 0 100px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
}

.cta-button {
  display: inline-block;
  padding: 14px 28px;
  background: var(--color-accent);
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.cta-button:hover {
  background: var(--color-accent-hover);
}

/* Sections */
.features,
.contact {
  padding: 60px 0;
}

.features {
  background: var(--color-surface);
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-text);
}

.section-intro {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.contact p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.email-link {
  display: inline-block;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: opacity 0.2s;
}

.email-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* Privacy Policy Page */
.privacy-content {
  padding: 60px 0 80px;
}

.privacy-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.privacy-content h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.privacy-content p,
.privacy-content ul {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.privacy-content ul {
  padding-left: 24px;
}

.privacy-content li {
  margin-bottom: 8px;
}

.privacy-content a {
  color: var(--color-accent);
  text-decoration: none;
}

.privacy-content a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: min(1080px, 100%);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  row-gap: 10px;
}

.footer-nav a {
  white-space: nowrap;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.copyright {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* アンカーリンク時に見出しがヘッダーに隠れないよう余白 */
#products {
  scroll-margin-top: 24px;
}

/* Product card (homepage) */
.product-card {
  position: relative;
  overflow: hidden;
  background: var(--product-card-bg, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--product-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 24px;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72px 76px, var(--product-glow, rgba(59, 130, 246, 0.2)) 0%, transparent 46%);
  opacity: 0.9;
  pointer-events: none;
}

.product-card > * {
  position: relative;
}

.product-card + .product-card {
  margin-top: 24px;
}

.product-card-pdfhandler {
  --product-card-bg: linear-gradient(135deg, rgba(14, 165, 233, 0.22) 0%, rgba(26, 35, 50, 0.92) 54%, rgba(15, 23, 42, 0.94) 100%);
  --product-glow: rgba(125, 211, 252, 0.36);
  --product-border: rgba(56, 189, 248, 0.25);
}

.product-card-zipsearch {
  --product-card-bg: linear-gradient(135deg, rgba(34, 211, 238, 0.18) 0%, rgba(26, 35, 50, 0.92) 54%, rgba(15, 23, 42, 0.94) 100%);
  --product-glow: rgba(250, 204, 21, 0.24);
  --product-border: rgba(34, 211, 238, 0.24);
}

.product-card-pictcomp {
  --product-card-bg: linear-gradient(135deg, rgba(56, 189, 248, 0.30) 0%, rgba(30, 64, 90, 0.88) 38%, rgba(15, 23, 42, 0.94) 100%);
  --product-glow: rgba(186, 230, 253, 0.46);
  --product-border: rgba(125, 211, 252, 0.34);
}

.product-card h3 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--color-text);
  transition: color 0.2s;
}

.product-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.product-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.product-link:hover {
  text-decoration: underline;
}

/* ZipSearch product page */
.hero-product {
  background: var(--product-hero-bg, transparent);
}

.product-theme-pdfhandler {
  --product-hero-bg:
    radial-gradient(circle at 36% 38%, rgba(56, 189, 248, 0.16) 0%, transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0) 0%, rgba(14, 165, 233, 0.08) 100%);
}

.product-theme-zipsearch {
  --product-hero-bg:
    radial-gradient(circle at 36% 38%, rgba(250, 204, 21, 0.11) 0%, transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0) 0%, rgba(34, 211, 238, 0.08) 100%);
}

.product-theme-pictcomp {
  --product-hero-bg:
    radial-gradient(circle at 36% 38%, rgba(186, 230, 253, 0.18) 0%, transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0) 0%, rgba(56, 189, 248, 0.10) 100%);
}

.hero-product .hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent);
}

.hero-desc {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* Hero product layout: icon left, text right */
.hero-product-layout {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-product-layout .product-logo {
  max-width: 120px;
  height: auto;
  margin: 0;
  flex-shrink: 0;
}

.hero-product-text {
  text-align: left;
}

.hero-product-text .hero-subtitle {
  margin-bottom: 0;
}

/* Product card layout: icon left, text right */
.product-card-layout {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  margin-bottom: 16px;
}

.product-card-layout:hover .product-card-logo {
  opacity: 0.9;
}

.product-card-layout:hover h3 {
  color: var(--color-accent);
}

.product-card-logo {
  max-width: 88px;
  height: auto;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.product-card-text {
  text-align: left;
}

.product-card-tagline {
  font-size: 0.95rem;
  color: var(--color-accent);
  font-weight: 500;
  margin: 4px 0 0 0;
}

.product-card-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.product-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(59, 130, 246, 0.15);
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.section {
  padding: 60px 0;
}

.section:nth-child(even) {
  background: var(--color-surface);
}

.feature-list {
  color: var(--color-text-muted);
  padding-left: 24px;
  line-height: 2;
}

.feature-list li {
  margin-bottom: 8px;
}

/* Screenshots */
.container-wide {
  max-width: 900px;
}

.screenshots-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 16px;
}

.screenshot-item {
  margin: 0;
}

.screenshot-caption {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.screenshot-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.screenshot-desc {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

.screenshot-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.screenshot-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  opacity: 0.8;
}

/* PictComp 概要 */
.overview-desc {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.overview-keywords {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  opacity: 0.9;
  margin: 0;
}

/* PictComp 機能詳細 */
.points-grid {
  display: grid;
  gap: 32px;
  margin-top: 24px;
}

.point-item {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 720px) {
  .point-item {
    grid-template-columns: 1fr;
  }
}

.point-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.point-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.point-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Download section */
.version-badge {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.download-intro {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.download-buttons {
  margin-bottom: 24px;
}

.cta-button-primary {
  display: inline-block;
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.platform-button {
  display: inline-block;
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 24px;
  background: var(--color-surface);
  border: 2px solid rgba(59, 130, 246, 0.5);
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.platform-button:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Comparison table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-bottom: 24px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-table th {
  color: var(--color-text);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}

.comparison-table td {
  color: var(--color-text-muted);
}

.comparison-table td strong {
  color: var(--color-accent);
}

.pro-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact-section p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
