/*
 * CryptoHome LP — Static CSS
 * Design: Crypto-Modern Teal (Dark Navy + Electric Cyan)
 * Colors:
 *   --navy:  #0d1b2a  (oklch 0.18 0.04 240)
 *   --slate: #1a2535  (oklch 0.22 0.04 240)
 *   --cyan:  #00d4d8  (oklch 0.82 0.15 192)
 * Fonts:
 *   Display: Noto Serif JP
 *   Accent:  Space Grotesk
 *   Body:    Noto Sans JP
 */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0d1b2a;
  --slate:      #1a2535;
  --slate-mid:  #1e2d40;
  --cyan:       #00d4d8;
  --cyan-dark:  #00b0b4;
  --cyan-dim:   rgba(0, 212, 216, 0.15);
  --cyan-border:rgba(0, 212, 216, 0.30);
  --white:      #ffffff;
  --white-80:   rgba(255,255,255,0.80);
  --white-60:   rgba(255,255,255,0.60);
  --white-40:   rgba(255,255,255,0.40);
  --white-20:   rgba(255,255,255,0.20);
  --white-10:   rgba(255,255,255,0.10);
  --white-05:   rgba(255,255,255,0.05);
  --font-display: 'Noto Serif JP', serif;
  --font-accent:  'Space Grotesk', sans-serif;
  --font-body:    'Noto Sans JP', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== TYPOGRAPHY HELPERS ===== */
.text-cyan   { color: var(--cyan); }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.brand-name  { font-family: var(--font-display); font-weight: 700; }

/* ===== LABEL TEXT ===== */
.label-text {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
  display: block;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 1rem;
}

/* ===== SECTION DESC ===== */
.section-desc {
  color: var(--white-60);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-desc.text-left { margin-left: 0; }

/* ===== SECTION ===== */
.section { padding: 5rem 0; }
.bg-navy  { background-color: var(--navy); }
.bg-slate { background-color: var(--slate); }

/* ===== BUTTON ===== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--cyan);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-cta:hover { background-color: var(--cyan-dark); }
.btn-cta-lg {
  font-size: 1rem;
  padding: 1rem 2rem;
  width: 100%;
  justify-content: center;
  max-width: 400px;
}

/* Pulse glow animation */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,216,0.4); }
  50%       { box-shadow: 0 0 20px 6px rgba(0,212,216,0.2); }
}
.pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
#header.scrolled {
  background: rgba(13,27,42,0.95);
  backdrop-filter: blur(12px);
  border-color: var(--white-10);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
}
.logo-icon {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: none;
}
.logo-icon-sm { display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: none; }
.logo-text {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.logo-sub {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9rem;
}
.header-cta { display: none; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663494030153/5oCc8xhgrPyHe4ZPw4VeEW/hero_bg-GjoVrmk72PHcrYfFwuo8dw.webp');
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,27,42,0.7) 0%, rgba(13,27,42,0.5) 50%, #0d1b2a 100%);
}
.hero-top-line {
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background-color: var(--cyan);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.hero-text { max-width: 800px; margin: 0 auto; }

/* Fade up animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeInUp 1s ease-out forwards; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--white);
}
.hero-desc {
  color: var(--white-80);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-weight: 600;
}
.hero-tagline {
  font-family: var(--font-accent);
  color: rgba(0,212,216,0.7);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  margin-bottom: 2.5rem;
}
.hero-note {
  font-size: 0.75rem;
  color: rgba(0,212,216,0.8);
  font-weight: 600;
  margin-top: 1rem;
}
.hero-content .btn-cta-lg { margin: 0 auto; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--white-50, rgba(255,255,255,0.5));
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-indicator:hover { color: var(--white-80); }
.scroll-text {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===== STATS BAR ===== */
.stats-bar {
  background-color: var(--slate);
  border-top: 1px solid var(--white-10);
  border-bottom: 1px solid var(--white-10);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.stat-item { text-align: center; }
.stat-value {
  font-family: var(--font-accent);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-value span { color: var(--white); }
.stat-value::after { color: var(--cyan); }
.stat-label {
  font-size: 0.75rem;
  color: var(--white-60);
}

/* ===== PAIN POINTS ===== */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 768px;
  margin: 0 auto 2.5rem;
}
.pain-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--slate);
  border: 1px solid var(--white-10);
  border-radius: 2px;
  padding: 1.25rem;
  transition: border-color 0.3s;
}
.pain-card:hover { border-color: var(--cyan-border); }
.pain-num {
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.pain-card p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--white-80);
}
.pain-cta-text {
  font-size: 1rem;
  color: var(--white-60);
  margin-top: 2.5rem;
}

/* ===== SOLUTIONS ===== */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.solution-card {
  border-radius: 2px;
  overflow: hidden;
  background-color: var(--navy);
  transition: border-color 0.3s;
}
.solution-a { border: 1px solid var(--cyan-border); }
.solution-b { border: 1px solid var(--white-10); }
.solution-card:hover { border-color: var(--cyan); }
.solution-img {
  position: relative;
  height: 12rem;
  overflow: hidden;
}
.solution-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.solution-card:hover .solution-img img { transform: scale(1.05); }
.solution-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--navy) 100%);
}
.solution-body { padding: 2rem; }
.solution-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.badge-cyan  { background: var(--cyan-dim); border: 1px solid var(--cyan-border); color: var(--cyan); }
.badge-white { background: var(--white-05); border: 1px solid var(--white-20); color: var(--white-60); }
.solution-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.solution-desc {
  font-size: 0.875rem;
  color: var(--white-60);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.solution-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--white-70, rgba(255,255,255,0.7));
}
.solution-list li svg { color: var(--cyan); flex-shrink: 0; }
.solution-list-muted li svg { color: var(--white-40); }

/* ===== WHY CRYPTOHOME ===== */
.reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.reason-card {}
.reason-icon {
  width: 4rem; height: 4rem;
  border-radius: 2px;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  transition: background 0.3s;
}
.reason-card:hover .reason-icon { background: rgba(0,212,216,0.2); }
.reason-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.reason-desc {
  font-size: 0.875rem;
  color: var(--white-60);
  line-height: 1.7;
}

/* ===== FLOW ===== */
.flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.flow-card {
  background-color: var(--navy);
  border: 1px solid var(--white-10);
  border-radius: 2px;
  padding: 1.5rem;
  transition: border-color 0.3s;
}
.flow-card:hover { border-color: var(--cyan-border); }
.flow-num {
  font-family: var(--font-accent);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(0,212,216,0.2);
  margin-bottom: 0.75rem;
  line-height: 1;
}
.flow-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.flow-desc {
  font-size: 0.8rem;
  color: var(--white-50, rgba(255,255,255,0.5));
  line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2535 100%);
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(0,212,216,0.05);
  filter: blur(80px);
  pointer-events: none;
}
.cta-header { margin-bottom: 3rem; }
.cta-sub-desc {
  color: var(--white-60);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto;
}

/* Google Form Wrapper */
.form-wrapper {
  max-width: 720px;
  margin: 0 auto;
}
.form-wrapper iframe {
  width: 100%;
  border-radius: 4px;
  display: block;
}

/* Placeholder (before Google Form is embedded) */
.google-form-placeholder {
  background: var(--slate);
  border: 1px dashed var(--cyan-border);
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
}
.placeholder-note {
  color: var(--cyan);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.placeholder-sub {
  color: var(--white-60);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.placeholder-code {
  background: var(--navy);
  border: 1px solid var(--white-10);
  border-radius: 4px;
  padding: 1rem;
  font-size: 0.75rem;
  color: var(--white-60);
  text-align: left;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: monospace;
}

/* ===== FOOTER ===== */
.footer {
  background-color: #0a1520;
  border-top: 1px solid var(--white-10);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.footer-address {
  font-size: 0.75rem;
  color: var(--white-40);
  line-height: 1.7;
  max-width: 280px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--white-40);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--cyan); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--white-10);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.7rem;
  color: var(--white-20);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal-link {
  font-size: 0.7rem;
  color: var(--white-20);
  transition: color 0.2s;
}
.footer-legal-link:hover { color: var(--white-50, rgba(255,255,255,0.5)); }

/* ===== REVEAL ANIMATION ===== */
.reveal-section .container > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-section.visible .container > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-section.visible .container > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-section.visible .container > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-section.visible .container > *:nth-child(4) { transition-delay: 0.3s; }

/* ===== PC ONLY / MOBILE ONLY ===== */
.pc-only { display: none; }

/* ===== RESPONSIVE: TABLET & UP (768px+) ===== */
@media (min-width: 768px) {
  .pc-only { display: inline; }
  .header-inner { height: 5rem; }
  .header-cta { display: inline-flex; }

  .stats-grid { grid-template-columns: repeat(4, 1fr); }

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

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

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

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

  .footer-inner { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }

  .md-text-right { text-align: right; }
  .md-text-center { text-align: center; }
  .section-desc.md-text-center { margin: 0 auto 3rem; }
  .section-desc.text-left { text-align: center; margin: 0 auto 3rem; }
  .section-desc.desc-pain     { max-width: 500px; }
  .section-desc.desc-solutions { max-width: 640px; }
  .section-desc.desc-why       { max-width: 800px; }
}

/* ===== RESPONSIVE: DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
  .flow-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== CUSTOM FORM (Google Form entry.* 連携) ===== */
.custom-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white-80);
}

.required { color: var(--cyan); margin-left: 0.25rem; }
.optional  { color: var(--white-40); font-size: 0.75rem; font-weight: 400; margin-left: 0.25rem; }

.form-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--white-20);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: rgba(255,255,255,0.25); }
.form-input:focus {
  border-color: var(--cyan);
  background: rgba(0,212,216,0.05);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}
.form-select option { background: var(--slate); color: var(--white); }

.form-textarea { resize: vertical; min-height: 6rem; }

/* Checkbox group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--white-80);
}
.checkbox-label input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--cyan);
  cursor: pointer;
  flex-shrink: 0;
}

/* 銘柄・枚数 横並び */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Privacy note */
.form-privacy {
  font-size: 0.75rem;
  color: var(--white-40);
  line-height: 1.7;
}
.form-privacy a {
  color: var(--white-60);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-privacy a:hover { color: var(--cyan); }

/* Submit button (full width inside form) */
.custom-form .btn-cta-lg {
  width: 100%;
  max-width: 100%;
  justify-content: center;
}

/* Success message */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  border-radius: 4px;
  max-width: 640px;
  margin: 0 auto;
}
.form-success svg { color: var(--cyan); }
.form-success p {
  color: var(--white-80);
  font-size: 0.95rem;
  line-height: 1.8;
}
