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

:root {
  --bg-color: #0b0e14;
  --text-primary: #eef2f6;
  --text-secondary: #aebcd0;
  --accent-1: #6e56cf;
  --accent-2: #3e82f7;
  --glass-bg: rgba(20, 24, 34, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --btn-primary-bg: linear-gradient(135deg, #6e56cf, #3e82f7);
  --btn-primary-hover: linear-gradient(135deg, #7c66df, #4e92ff);
  --spacing-unit: 1rem;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Theme variables */
  --theme-hub-primary: #10b981;
  --theme-hub-secondary: #059669;
  --theme-hub-hover: #34d399;
  --theme-hub-light: rgba(16, 185, 129, 0.15);
  --theme-hub-border: rgba(16, 185, 129, 0.3);
  
  --theme-studio-primary: #ec4899;
  --theme-studio-secondary: #f43f5e;
  --theme-studio-hover: #f472b6;
  --theme-studio-light: rgba(236, 72, 153, 0.15);
  --theme-studio-border: rgba(244, 63, 94, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 18px;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Background Effects */
.bg-base {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 10%, #111422 0%, #0b0e14 60%);
  z-index: -3;
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -2;
  opacity: 0.5;
  animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: rgba(110, 86, 207, 0.4);
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(62, 130, 247, 0.3);
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: rgba(255, 100, 200, 0.15);
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(30px, -50px) scale(1.1);
  }
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 100;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 14, 20, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn-primary) {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:not(.btn-primary):hover {
  color: var(--text-primary);
}

/* Hamburger Base */
.hamburger {
  display: none;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 99px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: #fff;
  box-shadow: 0 4px 14px rgba(110, 86, 207, 0.4);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(110, 86, 207, 0.6);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 1.1rem;
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
}

.btn-xl {
  padding: 1rem 2.5rem;
  font-size: 1.3rem;
}

/* Typography Enhancements */
.gradient-text {
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-glow {
  text-shadow: 0 0 30px rgba(167, 139, 250, 0.4);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(62, 130, 247, 0.1);
  border: 1px solid rgba(62, 130, 247, 0.3);
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 600;
  color: #8eb4f8;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #60a5fa;
  border-radius: 50%;
  box-shadow: 0 0 8px #60a5fa;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title-sub {
  font-size: 2.25rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Glass Panels (Reusable) */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.2);
}

.glass-card {
  background: rgba(20, 24, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 2rem;
}

/* Real App Mockup Widget */
.real-app-mockup {
  position: relative;
  width: 380px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 100%);
  border-radius: 12px;
  padding: 20px;
  box-shadow:
    0 24px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
  margin: 0 auto;
}

.real-app-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.rune-header {
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.rune-header .rune-logo {
  width: 40px;
  height: 40px;
}

.rune-header h1 {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 4px;
  color: #8b5cf6;
  margin: 0;
  line-height: 1;
}

.rune-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rune-status-box {
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.rune-status-box.rune-success {
  background: rgba(107, 255, 140, 0.1);
  border-color: rgba(107, 255, 140, 0.3);
}

.rune-status-box p {
  font-size: 16px;
  color: #fff;
  margin: 0;
}

.rune-status-box.rune-success p {
  color: #6bff8c;
}

.rune-preset-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rune-preset-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rune-preset-section-header h2 {
  font-size: 16px;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.rune-settings-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #888;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 16px;
}

.rune-preset-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rune-preset-btn {
  background: linear-gradient(135deg, #6a2fd8 0%, #8b5cf6 100%);
  border: none;
  border-radius: 8px;
  padding: 14px 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.rune-preset-btn span:first-child {
  font-size: 17px;
}

.rune-mode-badge {
  font-size: 12px;
  background: rgba(0, 0, 0, 0.2);
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.rune-folder-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rune-folder-header-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 8px;
}

.rune-folder-arrow {
  font-size: 11px;
  color: #a78bfa;
}

.rune-folder-name {
  font-size: 13px;
  font-weight: 600;
  color: #c4b5fd;
  flex: 1;
}

.rune-folder-count {
  font-size: 11px;
  color: #666;
}

.rune-folder-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 12px;
}

.rune-folder-content .rune-preset-btn {
  padding: 12px 16px;
}

.rune-folder-content .rune-preset-btn span:first-child {
  font-size: 15px;
}

/* Sections */
.section {
  padding: 8rem 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(11, 14, 20, 0.8),
    transparent
  );
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    rgba(110, 86, 207, 0.15),
    rgba(62, 130, 247, 0.15)
  );
  border: 1px solid rgba(110, 86, 207, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: var(--accent-1);
}

.theme-hub .feature-icon-wrapper {
  background: var(--theme-hub-light);
  border-color: var(--theme-hub-border);
  color: var(--theme-hub-hover);
}

.feature-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Portal Layout */
.portal-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10rem 10px 6rem;
  min-height: 80vh;
}

.portal-header {
  margin-bottom: 4rem;
  text-align: center;
}

.portal-title {
  margin-bottom: 1rem;
  line-height: 1.4;
  min-height: 2.8em; /* Reserve space for 2 lines */
}

.portal-subtitle {
  max-width: 600px;
  margin: 0 auto;
}

.portal-series-text {
  font-size: 2.25rem;
  display: block;
  margin-top: 1rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.flex-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.flex-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-icon-wrapper {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(110, 86, 207, 0.15), rgba(62, 130, 247, 0.15));
  border: 1px solid rgba(110, 86, 207, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  color: #a78bfa;
}

.card-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.btn-md {
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  text-align: center;
  width: 100%;
}

.flex-mt-auto {
  margin-top: auto;
}

.btn-pink {
  background: linear-gradient(135deg, var(--theme-studio-primary), var(--theme-studio-secondary)) !important;
  color: #fff;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4) !important;
}

.btn-pink:hover {
  background: linear-gradient(135deg, var(--theme-studio-hover), var(--theme-studio-primary)) !important;
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.6) !important;
}

.icon-pink {
  background: var(--theme-studio-light);
  border-color: var(--theme-studio-border);
  color: #fb7185;
}

.btn-green {
  background: linear-gradient(135deg, var(--theme-hub-primary), var(--theme-hub-secondary)) !important;
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
}

.btn-green:hover {
  background: linear-gradient(135deg, var(--theme-hub-hover), var(--theme-hub-primary)) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6) !important;
}

.icon-green {
  background: var(--theme-hub-light);
  border-color: var(--theme-hub-border);
  color: #34d399;
}

/* Typing Effect Cursor */
.typing-cursor {
  display: inline-block;
  font-weight: 300;
  margin-left: 2px;
  animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Inline Style Utilities */
.flex-gap-4 { display: flex; gap: 4px; }
.btn-disabled { opacity: 0.6; cursor: not-allowed; }
.link-accent { color: var(--accent-2); text-decoration: underline; }
.doc-date { margin-top: 4rem; text-align: right; color: var(--text-primary); font-weight: 500; }
.page-content { padding: 10rem 0 6rem; min-height: 80vh; }
.mb-2rem { margin-bottom: 2rem; }

/* Policy and Contact Pages */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(20, 24, 34, 0.6);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 4rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}
.policy-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.policy-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}
.policy-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.policy-content h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--accent-1);
  border-radius: 2px;
}
.policy-content p, 
.policy-content ul {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.policy-content ul {
  list-style-type: none;
  padding-left: 1.5rem;
}
.policy-content li {
  position: relative;
  margin-bottom: 0.5rem;
}
.policy-content li::before {
  content: "・";
  position: absolute;
  left: -1.5rem;
  color: var(--accent-1);
}

.form-container {
  width: 100%;
  max-width: 680px;
  background: #f8f9fa; /* Softer, slightly off-white background */
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  overflow: hidden;
  height: 1220px;
}
.form-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}

/* Language Portal */
.lang-portal-main {
  min-height: 100vh;
  padding: 0 20px;
}
.lang-portal-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin-bottom: 2rem;
}
.lang-portal-grid {
  max-width: 600px;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.lang-card {
  align-items: center;
  padding: 1.5rem;
  flex-direction: row;
  justify-content: space-between;
}
.lang-card-active {
  background: var(--btn-primary-bg);
  border-color: rgba(110, 86, 207, 0.4);
  box-shadow: 0 4px 14px rgba(110, 86, 207, 0.4);
}
.lang-card-active:hover {
  background: var(--btn-primary-hover);
  box-shadow: 0 6px 20px rgba(110, 86, 207, 0.6);
  border-color: rgba(110, 86, 207, 0.6);
}
.lang-card-title {
  margin-bottom: 0;
  font-size: 1.4rem;
}
.lang-card-icon {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Detailed Section (How it works) */
.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.content-text .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: 2.8rem;
}

.image-showcase {
  position: relative;
  padding: 40px 20px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  height: auto;
}

.showcase-img {
  width: 60%;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.5));
}

/* Infographic CSS */
.infographic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

.info-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.info-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.info-step.active .info-icon {
  background: rgba(110, 86, 207, 0.2);
  border-color: rgba(110, 86, 207, 0.5);
  color: #a78bfa;
  box-shadow: 0 0 30px rgba(110, 86, 207, 0.4);
}

.info-step span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.info-arrow {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.2);
}

/* Triangle infographic layout */
.infographic-triangle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 3rem 2rem;
}
.info-triangle-top {
  display: flex;
  justify-content: center;
}
.info-triangle-arrow-down {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.2);
}
.info-triangle-bottom {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.info-arrow-bi {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.35);
}

.pulse-glow {
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 10px rgba(110, 86, 207, 0.2);
  }
  100% {
    box-shadow: 0 0 30px rgba(110, 86, 207, 0.6);
  }
}

/* CTA Section */
.section-cta {
  padding: 6rem 0;
}

.cta-box {
  text-align: center;
  padding: 5rem 3rem;
  background: linear-gradient(
    135deg,
    rgba(20, 24, 34, 0.6),
    rgba(30, 36, 48, 0.3)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-badge {
  margin-bottom: 2rem;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

.cta-badge .badge-dot {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}

.cta-title {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
}

.cta-note {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-title {
  font-weight: 700;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

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

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

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.95rem;
  opacity: 0.6;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}

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

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

  .hero-subtitle {
    margin: 0 auto 2.5rem;
  }

  .content-row {
    grid-template-columns: 1fr;
  }

  .content-text .section-title {
    text-align: center;
  }

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

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

@media (max-width: 768px) {
  /* Navigation & Hamburger Menu */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
  }

  .hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: rgba(11, 14, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 100px 10px 30px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a:not(.btn-primary) {
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links .btn-primary {
    margin-top: 20px;
    text-align: center;
    width: 100%;
    justify-content: center;
  }

  /* General Mobile Typography */
  body {
    font-size: 16px;
  }

  .hero-title {
    font-size: 1.98rem;
    letter-spacing: -0.02em;
    line-height: 1.4;
  }

  .hero-title-sub {
    font-size: 1.3rem;
  }

  .portal-series-text {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin: 0 auto 2rem;
  }

  .section-title,
  .content-text .section-title {
    font-size: 1.8rem; /* 28.8px */
  }

  .section-desc {
    font-size: 1rem;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .cta-desc {
    font-size: 1rem;
  }

  .feature-title {
    font-size: 1.25rem;
  }

  .feature-desc {
    font-size: 0.95rem;
  }

  .badge {
    font-size: 0.85rem;
  }

  /* Features Grid & Portal Grid */
  .features-grid,
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Hero CTA Buttons */
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Real App Mockup Image */
  .real-app-mockup {
    width: 100%;
    max-width: 100%;
    transform: none !important;
  }

  /* Infographic Setup for how-it-works */
  .image-showcase {
    padding: 40px 10px;
    min-height: auto;
  }
  
  .infographic {
    flex-direction: column;
    gap: 2.5rem;
  }

  .info-arrow {
    transform: rotate(90deg);
  }

  /* Padding Adjustments for Mobile (10px standard) */
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .nav-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .glass-card {
    padding: 1.5rem 10px;
  }

  .cta-box {
    padding: 3rem 10px;
  }

  .section {
    padding: 5rem 0;
  }

  /* Policy and Contact Pages responsive */
  .policy-content {
    padding: 2rem;
  }
  .form-container {
    height: 1420px; /* Adjust height for narrow screens since form gets longer */
  }

  /* Footer Links */
  .footer-links {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --- Themes --- */

/* Theme: rune Hub (Emerald / Yellow-Green) */
body.theme-hub {
  --btn-primary-bg: linear-gradient(135deg, #10b981, #059669);
  --btn-primary-hover: linear-gradient(135deg, #34d399, #10b981);
}
body.theme-hub .blob-1 { background: rgba(16, 185, 129, 0.3); }
body.theme-hub .blob-2 { background: rgba(5, 150, 105, 0.2); }
body.theme-hub .blob-3 { background: rgba(163, 230, 53, 0.15); }

body.theme-hub .gradient-text {
  background: linear-gradient(135deg, #6ee7b7, #34d399);
  background-clip: text;
  -webkit-background-clip: text;
}
body.theme-hub .text-glow { text-shadow: 0 0 30px rgba(110, 231, 183, 0.4); }
body.theme-hub .btn-primary { box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4); }
body.theme-hub .btn-primary:hover { box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6); }

body.theme-hub .badge {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}
body.theme-hub .badge-dot {
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}
body.theme-hub .info-icon {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.15);
  color: var(--theme-hub-secondary);
}

body.theme-hub .info-step.active .info-icon {
  background: var(--theme-hub-light);
  border-color: var(--theme-hub-border);
  color: var(--theme-hub-primary);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

body.theme-hub .info-icon.pulse-glow {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
}
body.theme-hub .rune-success {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

/* Theme: rune Studio (Pink / Magenta) */
body.theme-studio {
  --btn-primary-bg: linear-gradient(135deg, #ec4899, #e11d48);
  --btn-primary-hover: linear-gradient(135deg, #f472b6, #ec4899);
}
body.theme-studio .blob-1 { background: rgba(236, 72, 153, 0.3); }
body.theme-studio .blob-2 { background: rgba(225, 29, 72, 0.2); }
body.theme-studio .blob-3 { background: rgba(251, 113, 133, 0.15); }

body.theme-studio .gradient-text {
  background: linear-gradient(135deg, #f9a8d4, #f472b6);
  background-clip: text;
  -webkit-background-clip: text;
}
body.theme-studio .text-glow { text-shadow: 0 0 30px rgba(249, 168, 212, 0.4); }
body.theme-studio .btn-primary { box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4); }
body.theme-studio .btn-primary:hover { box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6); }

body.theme-studio .badge {
  background: rgba(236, 72, 153, 0.1);
  border-color: rgba(236, 72, 153, 0.3);
  color: #f9a8d4;
}
body.theme-studio .badge-dot {
  background: #f472b6;
  box-shadow: 0 0 8px #f472b6;
}
body.theme-studio .info-icon.pulse-glow {
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.4);
}
body.theme-studio .feature-icon-wrapper {
  background: var(--theme-studio-light);
  border-color: var(--theme-studio-border);
  color: var(--theme-studio-hover);
}
body.theme-studio .info-icon {
  background: rgba(236, 72, 153, 0.05);
  border-color: rgba(236, 72, 153, 0.15);
  color: var(--theme-studio-secondary);
}
body.theme-studio .info-step.active .info-icon {
  background: var(--theme-studio-light);
  border-color: var(--theme-studio-border);
  color: var(--theme-studio-primary);
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.4);
}
body.theme-studio .rune-success {
  background: rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.4);
  color: #f9a8d4;
}

/* Studio Hero: vertical layout (text top, image bottom) */
body.theme-studio .hero-content {
  grid-template-columns: 1fr;
  text-align: center;
}
body.theme-studio .hero-cta {
  justify-content: center;
}
body.theme-studio .hero-subtitle {
  margin: 0 auto 2.5rem;
}
body.theme-studio .real-app-mockup {
  width: 100%;
  max-width: 900px;
  filter: none;
  background: none;
  padding: 0;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.4);
  border-radius: 12px;
}

/* ========================================
   Utility Classes
   ======================================== */

/*配列*/
.text_right { text-align: right; }
.text_left { text-align: left; }
.text_center { text-align: center; }

/*PCのみ配列*/
@media screen and (min-width: 769px) {
  .text_right_pc { text-align: right; }
  .text_left_pc { text-align: left; }
  .text_center_pc { text-align: center; }
/*pc end*/}

/*スマホのみ配列*/
@media screen and (max-width: 768px) {
  .text_right_smp { text-align: right; }
  .text_left_smp { text-align: left; }
  .text_center_smp { text-align: center; }
/*smp end*/}

/* 表示切り替え */
.display_pc { display: block; }
.display_smp { display: none; }
img.display_pc { display: inline-block; }
img.display_smp { display: none; }

@media screen and (max-width: 768px) {
  .display_pc { display: none; }
  .display_smp { display: block; }
  img.display_pc { display: none; }
  img.display_smp { display: inline-block; }
/*smp end*/}
