/* ==========================================================================
   OJARUMARU Web Design - Portal Design System
   ========================================================================== */

:root {
  /* Color Palette (Modern Dark / Neon Glow theme) */
  --bg-color: #080c14;           /* Deep space blue */
  --text-main: #f3f4f6;          /* Bright ash white */
  --text-muted: #9ca3af;         /* Clean cool gray */
  --primary-color: #3b82f6;      /* Electric neon blue */
  --primary-grad: linear-gradient(135deg, #3b82f6 0%, #10b981 100%); /* Blue to green gradient */
  --accent-color: #10b981;       /* Active emerald green */
  --card-bg: rgba(17, 24, 39, 0.65);
  --border-color: rgba(255, 255, 255, 0.06);
  --glass-bg: rgba(8, 12, 20, 0.85);
  
  /* Fonts */
  --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
  
  /* Utilities */
  --max-width: 1140px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 16px;
  --box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

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

/* Background Animated Glows */
.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -5;
  overflow: hidden;
}

.glow-1, .glow-2 {
  position: absolute;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.glow-1 {
  background-color: #3b82f6;
  top: -10vw;
  right: -10vw;
  animation: floatGlow1 12s infinite alternate ease-in-out;
}

.glow-2 {
  background-color: #10b981;
  bottom: -10vw;
  left: -10vw;
  animation: floatGlow2 12s infinite alternate ease-in-out;
}

@keyframes floatGlow1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, 80px) scale(1.1); }
}

@keyframes floatGlow2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, -80px) scale(1.1); }
}

/* Reusable Components */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

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

.section-sub {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--accent-color);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 5rem;
}

.gradient-text {
  background: var(--primary-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary-grad);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.45);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: var(--border-color);
}

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

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Glass Card */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* ==========================================================================
   Header & Navbar Style
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 1.8rem 0;
}

.navbar.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.nav-logo .accent {
  background: var(--primary-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-menu a:hover {
  color: #ffffff;
}

.nav-btn {
  padding: 0.6rem 1.6rem;
  border-radius: 50px;
  background: var(--primary-grad);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #ffffff;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   Hero Section Style
   ========================================================================== */

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
  margin-left: calc((100% - var(--max-width)) / 2 + 2rem);
  animation: fadeInUp 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tagline {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

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

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

/* ==========================================================================
   Features Section Style
   ========================================================================== */

.features-section {
  padding: 8rem 0;
}

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

.feature-card {
  padding: 3.5rem 3rem;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.2);
  background-color: rgba(17, 24, 39, 0.85);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.05);
}

.feature-card i {
  font-size: 2.5rem;
  margin-bottom: 1.8rem;
  background: var(--primary-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

/* ==========================================================================
   Templates Section Style
   ========================================================================== */

.templates-section {
  padding: 8rem 0;
  background-color: rgba(17, 24, 39, 0.3);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.template-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.template-card:hover {
  transform: translateY(-8px);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.05);
}

.card-img-holder {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.card-img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.template-card:hover .card-img-holder img {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.demo-tag {
  background: rgba(8, 12, 20, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-color);
}

.card-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.btn-demo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0.8rem;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--border-color);
}

.btn-demo:hover {
  background: var(--primary-grad);
  color: #ffffff;
  border-color: transparent;
}

/* ==========================================================================
   Price Section Style
   ========================================================================== */

.price-section {
  padding: 8rem 0;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.price-card {
  padding: 4.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.price-card.featured {
  border-color: rgba(59, 130, 246, 0.3);
  background-color: rgba(17, 24, 39, 0.8);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.03);
}

.price-badge {
  position: absolute;
  top: 1.5rem;
  right: -3.5rem;
  background: var(--primary-grad);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 4rem;
  transform: rotate(45deg);
}

.price-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.price-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.price-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-number .tax {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-card ul {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 3.5rem;
  flex-grow: 1;
}

.price-card ul li {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-card ul li i {
  color: var(--accent-color);
}

/* ==========================================================================
   Flow Section Style
   ========================================================================== */

.flow-section {
  padding: 8rem 0;
  background-color: rgba(17, 24, 39, 0.3);
  border-top: 1px solid var(--border-color);
}

.flow-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 3rem;
}

.flow-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  width: 2px;
  height: 100%;
  background-color: var(--border-color);
}

.flow-step {
  position: relative;
  padding-bottom: 4rem;
}

.flow-step:last-child {
  padding-bottom: 0;
}

.step-num {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--bg-color);
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 5;
}

.step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Contact Section Style
   ========================================================================== */

.contact-section {
  padding: 8rem 0;
}

.contact-wrapper {
  max-width: 850px;
  margin: 0 auto;
  padding: 5rem 4.5rem;
}

.contact-wrapper h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-wrapper p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border-color);
  background-color: rgba(8, 12, 20, 0.4);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
  background-color: rgba(8, 12, 20, 0.8);
}

.form-group textarea {
  resize: vertical;
}

.contact-form .btn {
  align-self: center;
  padding: 0.9rem 3.5rem;
  margin-top: 1.5rem;
}

/* ==========================================================================
   Footer Style
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 3rem;
  background-color: rgba(8, 12, 20, 0.8);
}

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

.footer-logo {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-logo .accent {
  background: var(--primary-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 2rem;
  font-size: 0.75rem;
  opacity: 0.4;
}

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */

@media (max-width: 991px) {
  .navbar {
    padding: 1.2rem 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transition: 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu a {
    font-size: 1.2rem;
  }
  
  .nav-btn {
    display: none;
  }

  .features-grid,
  .templates-grid,
  .price-grid,
  .form-row {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }

  .contact-wrapper {
    padding: 3rem 2rem;
  }
}

@media (max-width: 767px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    text-align: center;
  }
}

/* Background Video Rules */
.video-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(8, 12, 20, 0.65) 0%, rgba(8, 12, 20, 0.45) 100%);
  z-index: -1;
}

/* ヒーローすりガラスカード（グラスモーフィズムによる視認性100%確保） */
.hero-glass-card {
  background: rgba(8, 12, 20, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 3.5rem !important;
  border-radius: 16px !important;
  max-width: 720px !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35) !important;
  margin-top: 5rem;
}

@media (max-width: 991px) {
  .hero-glass-card {
    padding: 2.5rem !important;
    margin: 6rem 1rem 0 !important;
  }
  .hero-title {
    font-size: 2.3rem !important;
  }
}

@media (max-width: 767px) {
  .hero-glass-card {
    padding: 2rem 1.5rem !important;
    margin: 6rem 0.8rem 0 !important;
  }
  .hero-title {
    font-size: 1.9rem !important;
    line-height: 1.4 !important;
  }
  .hero-desc {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
  }
}

@media (max-width: 480px) {
  .hero-glass-card {
    padding: 1.5rem 1rem !important;
    margin: 5rem 0.5rem 0 !important;
    border-radius: 12px !important;
  }
  .hero-title {
    font-size: 1.6rem !important;
    line-height: 1.35 !important;
  }
  .hero-desc {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }
}
