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

:root {
  --primary-color: #1A2530;
  /* Deep Navy */
  --secondary-color: #0F4C81;
  /* Classic Blue / Ruri */
  --accent-light: #F5F7FA;
  --text-main: #2C3E50;
  --text-muted: #5E6D7E;
  --bg-white: #FFFFFF;
  --border-color: #E2E8F0;
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

.bg-light {
  background-color: var(--accent-light);
}

/* Header */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.05em;
}

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

nav a {
  color: var(--text-main);
  font-weight: 500;
}

nav a:hover {
  color: var(--secondary-color);
}

.lang-selector {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--bg-white);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color var(--transition-speed) ease;
}

.lang-selector:focus {
  outline: none;
  border-color: var(--secondary-color);
}

nav a:hover {
  color: var(--secondary-color);
}

/* Main Content padding to offset fixed header */
main {
  padding-top: 80px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  /* テキスト視認性確保のための半透明レイヤー */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-main);
  max-width: 800px;
  margin: 0 auto;
  font-weight: 500;
}

/* Activities */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.activity-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.activity-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

/* Profile Table */
.profile-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
}

.profile-table th,
.profile-table td {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.profile-table th {
  width: 30%;
  color: var(--text-muted);
  font-weight: 500;
  background-color: var(--accent-light);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 3rem 0;
  text-align: center;
}

.footer-links {
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--bg-white);
  opacity: 0.8;
  margin: 0 1rem;
}

.footer-links a:hover {
  opacity: 1;
}

/* Product Page Specific */
.product-hero {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 6rem 0;
}

.product-hero h1 {
  color: var(--bg-white);
}

.status-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.app-screenshots {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin: 3rem auto;
  max-width: 900px;
  flex-wrap: wrap;
}

.screenshot-img {
  max-width: 100%;
  width: 320px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

/* Privacy Policy Specific */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.policy-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
  }

  nav ul {
    margin-top: 1rem;
    gap: 1rem;
  }

  .profile-table th,
  .profile-table td {
    display: block;
    width: 100%;
  }

  .profile-table th {
    border-bottom: none;
    padding-bottom: 0.5rem;
  }

  .profile-table td {
    padding-top: 0;
  }

  .screenshot-img {
    width: 280px;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 1.5rem 2rem;
  display: none; /* Initially hidden */
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 800px;
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease;
  font-size: 0.9rem;
}

.cookie-btn-accept {
  background-color: var(--secondary-color);
  color: var(--bg-white);
}

.cookie-btn-accept:hover {
  background-color: #0c3e6b;
}

.cookie-btn-reject {
  background-color: transparent;
  color: var(--bg-white);
  border: 1px solid var(--border-color);
}

.cookie-btn-reject:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}