/* ============================================
   Meshare LP — dark base / amber accent
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-raised: #141414;
  --bg-card: #171717;
  --border: #262626;
  --border-strong: #333333;
  --text: #f5f5f4;
  --text-sub: #a3a3a3;
  --text-dim: #737373;
  --accent: #ffb833;
  --accent-deep: #e09a10;
  --accent-ink: #1a1200;
  --max-width: 1080px;
  --max-text: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

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

a:hover {
  text-decoration: underline;
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 10, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.brand-en {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-left: 2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  color: var(--text-sub);
  font-size: 0.9rem;
}

.header-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 860px;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(2.5rem, 7.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-lead {
  color: var(--text-sub);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  max-width: 620px;
  margin-bottom: 44px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 22px;
  color: var(--text);
  cursor: default;
}

.store-badge:hover {
  text-decoration: none;
}

.store-badge svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store-badge .badge-text {
  line-height: 1.3;
  text-align: left;
}

.store-badge .badge-small {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.store-badge .badge-large {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}

.hero-note {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--border);
}

.section-label {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  font-weight: 750;
  line-height: 1.4;
  margin-bottom: 20px;
}

.section-lead {
  color: var(--text-sub);
  max-width: var(--max-text);
  margin-bottom: 48px;
}

/* ---------- Concept ---------- */

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.concept-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 26px;
}

.concept-item .num {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 12px;
}

.concept-item h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
}

.concept-item p {
  color: var(--text-sub);
  font-size: 0.92rem;
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-ink);
  border: 1px solid rgba(255, 184, 51, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
}

.feature-card p {
  color: var(--text-sub);
  font-size: 0.92rem;
}

.feature-tag {
  display: inline-block;
  align-self: flex-start;
  margin-top: 16px;
  color: var(--accent);
  background: var(--accent-ink);
  border: 1px solid rgba(255, 184, 51, 0.3);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 12px;
}

/* ---------- Reactions ---------- */

.reaction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.reaction-chip {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
}

.reaction-chip .rc-label {
  color: var(--text-sub);
  font-size: 0.78rem;
  margin-left: 6px;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
}

.price-card.featured {
  border-color: rgba(255, 184, 51, 0.45);
}

.price-card .plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.price-card .price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.price-card .price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
}

.price-card .plan-note {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: 18px;
}

.price-card ul {
  list-style: none;
}

.price-card li {
  color: var(--text-sub);
  font-size: 0.9rem;
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 5px;
  border: 2px solid var(--accent);
  border-top: none;
  border-right: none;
  transform: rotate(-45deg) scale(0.8);
}

/* ---------- CTA bottom ---------- */

.cta-section {
  padding: 96px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.cta-section h2 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 18px;
}

.cta-section p {
  color: var(--text-sub);
  margin-bottom: 36px;
}

.cta-section .hero-cta {
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 56px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-dim);
}

.footer-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.copyright {
  margin-top: 28px;
  font-size: 0.78rem;
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.legal h1 {
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 750;
  line-height: 1.4;
  margin-bottom: 12px;
}

.legal .legal-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 48px;
}

.legal h2 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 28px 0 10px;
}

.legal p {
  color: var(--text-sub);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.legal ul,
.legal ol {
  color: var(--text-sub);
  font-size: 0.95rem;
  margin: 0 0 14px;
  padding-left: 1.5em;
}

.legal li {
  margin-bottom: 6px;
}

.legal strong {
  color: var(--text);
  font-weight: 700;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 8px 0 20px;
}

.legal th,
.legal td {
  border: 1px solid var(--border-strong);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  color: var(--text-sub);
  line-height: 1.6;
}

.legal th {
  color: var(--text);
  background: var(--bg-raised);
  white-space: nowrap;
  font-weight: 600;
}

.legal .table-wrap {
  overflow-x: auto;
}

.back-home {
  display: inline-block;
  margin-top: 48px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .concept-grid,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 72px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .concept-grid,
  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .header-nav {
    gap: 18px;
  }

  .header-nav .nav-optional {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
  }
}
