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

:root {
  --bg-primary: #0B0F19;
  --bg-secondary: #131A2E;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --accent-cyan: #0EA5E9;
  --accent-blue: #3B82F6;
  --gradient-accent: linear-gradient(135deg, #0EA5E9 0%, #3B82F6 100%);
  --gradient-bg: radial-gradient(circle at top right, rgba(14, 165, 233, 0.15), transparent 400px),
                 radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.1), transparent 400px);
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(30, 41, 59, 0.4);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body.light-theme {
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #475569;
  --border-color: rgba(15, 23, 42, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --gradient-bg: radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 400px),
                 radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.04), transparent 400px);
}

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

body {
  background-color: var(--bg-primary);
  background-image: var(--gradient-bg);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

header {
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  background-color: rgba(11, 15, 25, 0.7);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

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

.logo {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  max-width: 900px;
  margin: 6rem auto 4rem;
  padding: 0 2rem;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

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

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 4rem 2rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--gradient-accent);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

/* App Grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.app-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.app-icon-wrap {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 1.5rem;
}

.app-card h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.app-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.badge-soon {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 8px;
  vertical-align: middle;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  border: none;
}

.btn-primary:hover {
  opacity: 0.95;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

.card-actions {
  display: flex;
  gap: 1rem;
}

/* About / Concept Section */
.concept-box {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3.5rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  backdrop-filter: blur(12px);
}

.concept-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.concept-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Contact Section */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
  backdrop-filter: blur(12px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

/* Privacy & Terms Layout */
.doc-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.doc-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.doc-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.doc-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.doc-content h2 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  color: var(--text-main);
}

.doc-content p,
.doc-content ul {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.doc-content ul {
  padding-left: 1.5rem;
}

.doc-content li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background-color: rgba(11, 15, 25, 0.9);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  .nav-container {
    padding: 1rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .app-grid {
    grid-template-columns: 1fr;
  }
  .concept-box, .contact-container {
    padding: 2rem;
  }
}

/* Screenshot Gallery */
.screenshot-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 2rem;
  margin: 3rem auto;
  max-width: 960px;
  padding: 1.5rem 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) rgba(255, 255, 255, 0.05);
}

/* Scrollbar customizations */
.screenshot-gallery::-webkit-scrollbar {
  height: 6px;
}

.screenshot-gallery::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.screenshot-gallery::-webkit-scrollbar-thumb {
  background: var(--gradient-accent);
  border-radius: 10px;
}

.screenshot-item {
  flex: 0 0 340px; /* 大きめに表示（幅340px固定、縮ませない） */
  scroll-snap-align: center;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  background: var(--bg-secondary);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.screenshot-item:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.3);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-desc {
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  border-top: 1px solid var(--border-color);
  background-color: rgba(11, 15, 25, 0.6);
}

/* Mobile responsive adjustments */
@media (max-width: 600px) {
  .screenshot-gallery {
    gap: 1.2rem;
    padding: 1rem;
  }
  .screenshot-item {
    flex: 0 0 280px; /* モバイルでは大きすぎない適度なサイズに自動縮小 */
  }
}

/* Lightbox Image Modal */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(3, 7, 18, 0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-modal.active .modal-content {
  transform: scale(1);
}

.close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--text-muted);
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s ease;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
}

.close-btn:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.1);
}

.screenshot-item img {
  cursor: pointer;
}

/* --- Theme Switching Transitions & Styles --- */
header, footer, .app-card, .concept-box, .contact-container, input, textarea, a, .logo {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Light Theme Overrides */
body.light-theme header {
  background-color: rgba(248, 250, 252, 0.8);
}

body.light-theme input,
body.light-theme textarea {
  background-color: #FFFFFF;
}

body.light-theme .close-btn {
  background-color: rgba(15, 23, 42, 0.05);
}

body.light-theme .close-btn:hover {
  background-color: rgba(15, 23, 42, 0.1);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.theme-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

body.light-theme .theme-toggle-btn:hover {
  background-color: rgba(15, 23, 42, 0.05);
}

/* Toggle icon display based on theme */
body.light-theme .sun-icon {
  display: none;
}
body:not(.light-theme) .moon-icon {
  display: none;
}

/* Store Badge Button */
.store-btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.play-store-btn {
  display: inline-flex;
  align-items: center;
  background-color: #030712;
  color: #F8FAFC !important;
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.4rem;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  cursor: not-allowed;
  opacity: 0.75;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.light-theme .play-store-btn {
  background-color: #0F172A;
  color: #F8FAFC !important;
}

.play-store-btn:hover {
  opacity: 0.85;
  border-color: var(--accent-cyan);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.25);
}

.play-logo-svg {
  margin-right: 0.8rem;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.store-btn-text .btn-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.store-btn-text .btn-main {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}


