/* ===== Kuramate Website Styles ===== */

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

/* --- Theme Variables --- */
:root {
  --primary: #0D9373;
  --primary-light: #14B8A6;
  --primary-lighter: #5EEAD4;
  --scaffold: #F0FDF4;
  --surface: #FFFFFF;
  --surface-container: #E6F5F0;
  --text: #1A1A2E;
  --text-secondary: rgba(26, 26, 46, 0.6);
  --border: rgba(13, 147, 115, 0.08);
  --border-strong: rgba(13, 147, 115, 0.15);
  --nav-bg: #FFFFFF;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --gradient-start: #0D9373;
  --gradient-end: #14B8A6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #2DD4BF;
    --primary-light: #5EEAD4;
    --primary-lighter: #99F6E4;
    --scaffold: #0C1917;
    --surface: #1A2E2A;
    --surface-container: #1F3B35;
    --text: #E2E8F0;
    --text-secondary: rgba(226, 232, 240, 0.6);
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
    --nav-bg: #1A2E2A;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    --gradient-start: #14B8A6;
    --gradient-end: #2DD4BF;
  }
}

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

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--scaffold);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

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

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

section {
  padding: 80px 0;
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

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

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

.nav-links a:hover {
  color: var(--primary);
  opacity: 1;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface-container);
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switch a {
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 4px;
}

.lang-switch a.active {
  color: var(--primary);
  background: var(--surface);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* --- Hero Section --- */
.hero {
  padding: 80px 0 60px;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero h1 {
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

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

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero .store-badges {
  margin-bottom: -6px;
}

.hero .coming-soon {
  margin-top: 0;
  margin-bottom: 0;
}

.hero-visual {
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 147, 115, 0.3);
  opacity: 1;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

/* Phone Mockup */
.phone-mockup {
  display: inline-block;
  position: relative;
  width: 280px;
  height: 560px;
  border-radius: 36px;
  background: var(--surface);
  border: 3px solid var(--border-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .phone-mockup {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  }
}

.phone-screen {
  position: absolute;
  inset: 12px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  gap: 12px;
  padding: 20px;
}

.phone-screen-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.phone-screen-text {
  font-size: 0.85rem;
  opacity: 0.9;
  text-align: center;
}

/* --- Features Section --- */
.features {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-heading {
  text-align: center;
  margin-bottom: 48px;
}

.features-heading p {
  color: var(--text-secondary);
  margin-top: 8px;
}

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

.feature-card {
  background: var(--scaffold);
  border-radius: 20px;
  padding: 32px 24px;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #FFFFFF;
  font-size: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 12px;
}

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

/* --- Screenshots Section --- */
.screenshots {
  text-align: center;
}

.screenshots-heading {
  margin-bottom: 48px;
}

.screenshots-heading p {
  color: var(--text-secondary);
  margin-top: 8px;
}

.screenshots-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.screenshot-phone {
  width: 200px;
  height: 400px;
  border-radius: 28px;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
}

.screenshot-inner {
  position: absolute;
  inset: 8px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 16px;
  text-align: center;
  gap: 8px;
}

.screenshot-inner.screen-1 {
  background: linear-gradient(160deg, #0D9373, #14B8A6);
}

.screenshot-inner.screen-2 {
  background: linear-gradient(160deg, #14B8A6, #5EEAD4);
}

.screenshot-inner.screen-3 {
  background: linear-gradient(160deg, #0D9373, #06B6D4);
}

.screenshot-label {
  font-size: 2rem;
  margin-bottom: 4px;
}

/* --- Final CTA Section --- */
.final-cta {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 12px;
}

.download-description {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Apple SVG: 余白なし (119.66×40)
   Google PNG: 余白込み (646×250, 黒部分≒75%) */
.store-badge-img-apple {
  height: 40px;
  width: auto;
  display: block;
  transition: transform 0.2s;
}

.store-badge-img-google {
  height: 53px;
  width: auto;
  display: block;
  transition: transform 0.2s;
}

.store-badge-img-apple:hover,
.store-badge-img-google:hover {
  transform: translateY(-2px);
}

.coming-soon {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--surface-container);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* --- Footer --- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

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

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

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

.privacy-page article {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 48px;
}

.privacy-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.privacy-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 40px;
  display: block;
}

.privacy-page h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  color: var(--primary);
}

.privacy-page h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 12px;
}

.privacy-page p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.privacy-page ul,
.privacy-page ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.privacy-page li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.privacy-page strong {
  color: var(--text);
}

.privacy-page table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.privacy-page th,
.privacy-page td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
  color: var(--text-secondary);
}

.privacy-page th {
  background: var(--surface-container);
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  width: 30%;
}

/* --- Language Banner --- */
.lang-banner {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 200;
  font-size: 0.9rem;
  align-items: center;
  gap: 12px;
}

.lang-banner.show {
  display: flex;
}

.lang-banner a {
  font-weight: 700;
}

.lang-banner-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.2rem;
  padding: 0 4px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }

  section { padding: 60px 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .store-badges {
    justify-content: center;
  }

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

  .phone-mockup {
    width: 220px;
    height: 440px;
  }

  .screenshot-phone {
    width: 160px;
    height: 320px;
  }

  .privacy-page article {
    padding: 24px;
    border-radius: 12px;
  }

}

@media (max-width: 480px) {
  .screenshots-row {
    gap: 12px;
  }

  .screenshot-phone {
    width: 140px;
    height: 280px;
  }
}
