/* TikLog 公式サイト — 黒 × 紫 × ネオン · アプリ UI 統一 */

:root {
  --bg-deep: #04050a;
  --bg-card: rgba(16, 18, 32, 0.92);
  --bg-card-hover: rgba(22, 24, 42, 0.96);
  --border: rgba(168, 85, 247, 0.18);
  --border-strong: rgba(168, 85, 247, 0.35);
  --purple: #7c3aed;
  --purple-light: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.45);
  --neon: #c084fc;
  --text: #f5f3ff;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
  --radius: 14px;
  --radius-sm: 10px;
  --max-w: 1080px;
  --header-h: 3.5rem;
  --font: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.22), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(168, 85, 247, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(124, 58, 237, 0.06), transparent);
  min-height: 100dvh;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(4, 5, 10, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.site-logo {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: var(--text);
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
}

.site-logo__en {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-logo__ja {
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(124, 58, 237, 0.15);
  text-decoration: none;
}

.site-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.12);
  color: var(--neon);
  font-size: 1.25rem;
  cursor: pointer;
}

.site-nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0.75rem 1rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(4, 5, 10, 0.98);
}

.site-nav-mobile.is-open {
  display: flex;
}

.site-nav-mobile a {
  padding: 0.75rem 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.site-nav-mobile a:last-child {
  border-bottom: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: 0 0 24px var(--purple-glow);
}

.btn--primary:hover {
  box-shadow: 0 0 32px var(--purple-glow);
}

.btn--ghost {
  color: var(--neon);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
  background: rgba(124, 58, 237, 0.22);
}

.btn--sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

.btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid var(--border-strong);
  color: var(--neon);
}

/* ── Hero ── */
.hero {
  padding: 2.5rem 0 3rem;
  text-align: center;
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-light);
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero__title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lead {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero__note {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ── Sections ── */
.section {
  padding: 2.5rem 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.015);
  border-block: 1px solid rgba(255, 255, 255, 0.04);
}

.section__head {
  margin-bottom: 1.75rem;
  text-align: center;
}

.section__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--purple-light);
  text-transform: uppercase;
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
}

.section__desc {
  margin: 0 auto;
  max-width: 32rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ── Cards ── */
.card-grid {
  display: grid;
  gap: 1rem;
}

.card {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.15s, background 0.15s;
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card__title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}

.card__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── Pricing ── */
.pricing-group {
  margin-bottom: 2.5rem;
}

.pricing-group__title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neon);
}

.pricing-grid {
  display: grid;
  gap: 1rem;
}

.price-card {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-card--featured {
  border-color: var(--purple-light);
  box-shadow: 0 0 32px rgba(124, 58, 237, 0.15);
}

.price-card__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.price-card__amount {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.price-card__meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.price-card__features {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.price-card__features li {
  padding: 0.3rem 0;
  padding-left: 1.1rem;
  position: relative;
}

.price-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--purple-light);
  font-weight: 700;
}

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--purple-light);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item__body {
  padding: 0 1.15rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── Contact ── */
.contact-box {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
}

.contact-box__email {
  font-size: 1.15rem;
  font-weight: 700;
  word-break: break-all;
}

.contact-box__note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Legal ── */
.legal {
  padding: 2rem 0 3rem;
}

.legal h1 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.legal .updated {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.05rem;
  margin: 2rem 0 0.75rem;
  color: var(--neon);
}

.legal p,
.legal li {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal ul,
.legal ol {
  padding-left: 1.25rem;
}

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

.legal-table th,
.legal-table td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  width: 28%;
  min-width: 7rem;
  color: var(--text);
  background: rgba(124, 58, 237, 0.08);
  font-weight: 600;
}

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

@media (max-width: 640px) {
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th {
    border-bottom: none;
    padding-bottom: 0.35rem;
  }
}

/* ── Footer ── */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.site-footer__grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.site-footer__brand p {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-footer__links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--neon);
}

.site-footer__disclaimer {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.site-footer__copy {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ── Page header (subpages) ── */
.page-hero {
  padding: 2rem 0 1.5rem;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
}

.page-hero p {
  margin: 0 auto;
  max-width: 32rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ── Desktop ── */
@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }

  .site-nav-toggle {
    display: none;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 4rem 0 4.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}
