/* ===========================
   GMApp Landing Page Styles
   iOS Liquid Design — Light Theme
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+JP:wght@300;400;500;600;700;800;900&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f2f2f7;
  --bg-tertiary: #e5e5ea;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --border-card: rgba(0, 0, 0, 0.06);
  --text-primary: #1c1c1e;
  --text-secondary: #6e6e73;
  --text-muted: #aeaeb2;
  --accent-blue: #007aff;
  --accent-purple: #af52de;
  --accent-pink: #ff2d55;
  --accent-green: #34c759;
  --accent-orange: #ff9500;
  --accent-teal: #5ac8fa;
  --accent-gradient: linear-gradient(135deg, #007aff, #5856d6);
  --accent-gradient-2: linear-gradient(135deg, #ff2d55, #af52de);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.06);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
}

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

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.8;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 60%, var(--bg-secondary) 100%);
}

/* Liquid blob decorations */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,122,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: liquidFloat 10s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(175,82,222,0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: liquidFloat 10s ease-in-out infinite reverse;
}

@keyframes liquidFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -25px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.97); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,122,255,0.08);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 28px;
}

.hero-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

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

.hero-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,122,255,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,122,255,0.3);
  background: #0071e3;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  transform: translateY(-2px);
}

.btn-icon {
  width: 22px;
  height: 22px;
}

/* --- Phone Frame Mockup --- */
.phone-frame {
  position: relative;
  width: 270px;
  flex-shrink: 0;
}

.phone-frame-body {
  background: #1c1c1e;
  border-radius: 40px;
  padding: 10px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

.phone-frame-body::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-frame-screen {
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.phone-frame-screen img {
  width: 100%;
  display: block;
}

.phone-frame.large {
  width: 300px;
}

.phone-frame.large .phone-frame-body {
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.08);
}

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.feature-icon.purple { background: rgba(175, 82, 222, 0.12); }
.feature-icon.cyan { background: rgba(90, 200, 250, 0.12); }
.feature-icon.pink { background: rgba(255, 45, 85, 0.12); }
.feature-icon.green { background: rgba(52, 199, 89, 0.12); }
.feature-icon.amber { background: rgba(255, 149, 0, 0.12); }
.feature-icon.blue { background: rgba(0, 122, 255, 0.12); }

.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Showcase (Phone Mockup Gallery) --- */
.showcase {
  background: var(--bg-secondary);
}

.showcase-rows {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.showcase-row {
  display: flex;
  align-items: center;
  gap: 56px;
}

.showcase-row.reverse {
  flex-direction: row-reverse;
}

.showcase-row-text {
  flex: 1;
}

.showcase-row-text h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.showcase-row-text p {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 0.95rem;
}

.showcase-row-text .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(0,122,255,0.07);
  color: var(--accent-blue);
  border: none;
}

/* --- Specs --- */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.spec-card {
  background: var(--bg-card);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.spec-card:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.spec-card h4 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.spec-card .spec-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.spec-card .spec-detail {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- Devices --- */
.devices {
  background: var(--bg-secondary);
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.device-card {
  background: var(--bg-card);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.device-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.device-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.device-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.device-card .device-req {
  font-size: 0.95rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 14px;
}

.device-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- CTA --- */
.cta {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #f0f4ff 100%);
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(circle, rgba(0,122,255,0.06) 0%, transparent 70%);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta .section-title {
  max-width: 600px;
  margin: 0 auto 14px;
}

.cta .section-subtitle {
  margin: 0 auto 36px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Store Description --- */
.store-desc {
  background: var(--bg-card);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 56px;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.store-desc h4 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.store-desc p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-card);
  background: var(--bg-primary);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
}

.footer-links a {
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

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

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-description {
    max-width: none;
  }

  .hero-buttons {
    justify-content: center;
  }

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

  .showcase-row {
    flex-direction: column;
    text-align: center;
  }

  .showcase-row.reverse {
    flex-direction: column;
  }

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

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .nav-links {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .devices-grid {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    width: 230px;
  }

  .phone-frame.large {
    width: 250px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }
}

/* --- Privacy / Terms Page --- */
.privacy-page {
  padding-top: 110px;
  padding-bottom: 72px;
  min-height: 100vh;
  background: var(--bg-secondary);
}

.privacy-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
}

.privacy-content h1 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 28px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.privacy-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.privacy-content p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.85;
  font-size: 0.92rem;
}

.privacy-content ul {
  color: var(--text-secondary);
  margin-bottom: 14px;
  padding-left: 22px;
  line-height: 2;
  font-size: 0.92rem;
}

.privacy-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-blue);
  margin-bottom: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: opacity 0.3s;
}

.privacy-back:hover {
  opacity: 0.7;
}

/* --- Hero Price --- */
.hero-price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
  padding: 10px 20px;
  background: rgba(0,122,255,0.06);
  border-radius: 14px;
  border: 1px solid rgba(0,122,255,0.1);
}

.hero-price .price-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-blue);
  letter-spacing: -0.02em;
}

.hero-price .price-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Showcase Phone Pair (Timer section) --- */
.showcase-phone-pair {
  display: flex;
  gap: 16px;
  align-items: center;
}

.showcase-phone-pair .phone-frame {
  width: 220px;
}

@media (max-width: 1024px) {
  .showcase-phone-pair {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .showcase-phone-pair .phone-frame {
    width: 180px;
  }

  .showcase-phone-pair {
    gap: 10px;
  }

  .hero-price .price-value {
    font-size: 1.5rem;
  }
}

/* --- 特定商取引法 Table --- */
.tokusho-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 0.92rem;
}

.tokusho-table th,
.tokusho-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-card);
  vertical-align: top;
  line-height: 1.7;
  text-align: left;
}

.tokusho-table th {
  width: 38%;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.tokusho-table td {
  color: var(--text-primary);
}

.tokusho-table td a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tokusho-table tr:last-child th,
.tokusho-table tr:last-child td {
  border-bottom: none;
}

.tokusho-note {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

@media (max-width: 600px) {
  .tokusho-table th {
    width: auto;
    white-space: normal;
  }

  .tokusho-table th,
  .tokusho-table td {
    display: block;
    padding: 8px 0;
  }

  .tokusho-table th {
    border-bottom: none;
    padding-top: 16px;
  }
}
