:root {
  --primary-color: #e83828;
  --secondary-color: #7c3aed;
  --bg-dark: #050505;
  --bg-light: #ffffff;
  --text-main: #1a1a1a;
  --text-muted: #4b5563;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  overflow-x: hidden;
  color: var(--text-main);
  background-color: var(--bg-light);
}

h1,
h2,
h3,
h4 {
  font-family: 'Inter', sans-serif;
}

code,
.font-code {
  font-family: 'Fira Code', monospace;
}

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}

/* Alpine.js cloak */
[x-cloak] {
  display: none !important;
}

/* Neon Glow Utilities */
.glow-primary {
  text-shadow: 0 0 10px rgba(232, 56, 40, 0.4);
}

.glow-primary-border {
  box-shadow: 0 0 15px rgba(232, 56, 40, 0.2);
}

.glow-primary-button {
  box-shadow: 0 4px 20px rgba(232, 56, 40, 0.3);
  transition: all 0.3s ease;
}

.glow-primary-button:hover {
  box-shadow: 0 6px 25px rgba(232, 56, 40, 0.5);
  transform: translateY(-2px);
}

/* Glassmorphism (Light Mode) */
.glass {
  background: rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Subhero Base */
.subhero {
  padding: 120px 0 80px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.subhero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), #ffffff);
}

/* Footer Contact Section */
.footer-contact-box {
  background: linear-gradient(135deg, rgba(232, 56, 40, 0.05) 0%, rgba(124, 58, 237, 0.03) 100%);
  border: 1px solid rgba(232, 56, 40, 0.1);
}

/* Pricing & Contact Custom Styles */
.contact-form-input {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-main);
  transition: all 0.3s ease;
}

.contact-form-input:focus {
  outline: none;
  border-color: #e83828;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 10px rgba(232, 56, 40, 0.1);
}

/* New Primary Color Glow Utility */
.glow-red {
  text-shadow: 0 0 20px rgba(232, 56, 40, 0.2);
}

/* Header Specific Styles for Light Theme */
.header-nav-link {
  @apply text-gray-700 hover:text-[#e83828] transition-colors;
}

.header-mobile-link {
  @apply text-gray-800 hover:text-[#e83828] transition-colors;
}

/* Extracted from Templates */
/* From ./parts/index-hero.html */

/* index-hero.html specific styles - Light Mode Update */
.hero-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* 醸造アニメーション：デジタル液体が流れるガラス管の演出 */
.brew-tube {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
  opacity: 0.15;
  filter: blur(1px);
}

.brew-tube::after {
  content: '';
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 20%;
  background: var(--primary-color);
  box-shadow: 0 0 15px 1px var(--primary-color);
  animation: brew-flow 4s infinite linear;
}

@keyframes brew-flow {
  0% {
    top: -20%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    top: 110%;
    opacity: 0;
  }
}

/* タイピングアニメーション */
.typing-wrapper {
  display: inline-flex;
  justify-content: center;
  width: 100%;
}

.typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--primary-color);
  width: 0;
  color: #1a1a1a;
  animation:
    typing-main 2.5s steps(11, end) forwards,
    blink-caret 0.75s step-end infinite;
}

@keyframes typing-main {
  from {
    width: 0;
  }
  to {
    width: 11.5em;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--primary-color);
  }
}

/* 背景のネオン・オーブ (明るい背景用) */
.neon-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 56, 40, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}

/* レスポンシブ調整 */
@media (max-width: 640px) {
  .typing-text {
    letter-spacing: -0.02em;
    animation:
      typing-main-mobile 2.5s steps(11, end) forwards,
      blink-caret 0.75s step-end infinite;
  }
}

@keyframes typing-main-mobile {
  from {
    width: 0;
  }
  to {
    width: 11.2em;
  }
}

/* From ./parts/index-about-dequila.html */

/* index-about-dequila.html specific styles */
.about-dequila-section {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.about-dequila-content {
  max-width: 800px; /* 1カラム用に最適化 */
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.brand-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #e83828;
  opacity: 0.1;
  font-size: 12rem;
  position: absolute;
  top: -40px;
  left: -60px;
  z-index: -1;
  line-height: 1;
}

/* 修正：オレンジの線を削除 */
/* .dequila-accent-line {
    width: 60px;
    height: 2px;
    background: #e83828;
    margin-bottom: 2rem;
} */

.dequila-logo-mark {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: 0.5em;
  color: rgba(0, 0, 0, 0.03);
  position: absolute;
  right: -5%;
  bottom: 10%;
  font-size: 10vw;
  pointer-events: none;
  user-select: none;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .about-dequila-section {
    padding: 100px 0;
  }
  .brand-quote {
    font-size: 8rem;
    left: -20px;
  }
}

/* From ./parts/index-problem.html */

.problem-section {
  /* 背景を薄いグレーに変更 */
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.problem-section .problem-container {
  position: relative;
  z-index: 1;
}

.problem-section .problem-card {
  /* カード背景を白ベースに変更 */
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(232, 56, 40, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.problem-section .problem-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(232, 56, 40, 0.1);
  transform: translateY(-5px);
}

.problem-section .text-gradient-red {
  background: linear-gradient(135deg, #e83828 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.problem-section .decorative-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232, 56, 40, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.problem-section .pro-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: rgba(232, 56, 40, 0.1);
  border: 1px solid rgba(232, 56, 40, 0.3);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #e83828;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.problem-section .bg-primary-red {
  background-color: #e83828;
}

.problem-section .glow-red-border {
  box-shadow: 0 0 15px rgba(232, 56, 40, 0.2);
}

/* From ./parts/index-features.html */

.features-section {
  background-color: #ffffff; /* 背景を白に */
  position: relative;
  overflow: hidden;
}

/* UI Preview Container */
.ui-preview-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 5rem;
  perspective: 2000px;
}

.ui-preview-frame {
  background: #f8fafc;
  border-radius: 12px;
  padding: 6px;
  box-shadow:
    0 30px 60px -12px rgba(0, 0, 0, 0.1),
    0 18px 36px -18px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transform: rotateX(5deg);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.ui-preview-container:hover .ui-preview-frame {
  transform: rotateX(0deg) translateY(-10px);
}

.ui-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.ui-badge {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background: #e83828;
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 900;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  box-shadow: 0 10px 20px rgba(232, 56, 40, 0.3);
  z-index: 10;
}

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

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  position: relative;
  padding: 2.5rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-card:hover {
  border-color: rgba(232, 56, 40, 0.3);
  background: #ffffff;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
  transform: translateY(-8px);
}

.feature-card:hover .feature-icon {
  color: #e83828;
  transform: scale(1.05);
}

.feature-icon {
  font-size: 3rem;
  color: rgba(0, 0, 0, 0.15); /* アイコンを薄いグレーに */
  margin-bottom: 2rem;
  transition: all 0.4s ease;
}

.feature-label {
  font-family: 'Fira Code', monospace;
  color: #e83828;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
  display: block;
  font-weight: 600;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #1f2937; /* 白文字から濃いグレーに変更 */
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.feature-desc {
  color: #4b5563; /* 薄いグレーから濃いグレーに変更 */
  line-height: 1.8;
  font-size: 0.9375rem;
  font-weight: 400;
}

/* From ./parts/index-demo.html */

#demo {
  padding: 100px 0;
  background: #1a1a1a;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.demo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  background: #222;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block; /* aタグとして機能させる */
  text-decoration: none;
}

.demo-card:hover {
  transform: scale(1.03);
}

.demo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.demo-card:hover img {
  opacity: 0.4;
}

.demo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.95), transparent);
  padding: 24px;
  text-align: center;
}

.play-icon {
  width: 60px;
  height: 60px;
  background: rgba(232, 56, 40, 0.1);
  border: 2px solid #e83828;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  color: #e83828;
}

.demo-card:hover .play-icon {
  background: #e83828;
  color: #fff;
  box-shadow: 0 0 20px rgba(232, 56, 40, 0.6);
  transform: scale(1.1);
}

.demo-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 8px;
  word-break: keep-all;
}

.demo-tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: #e83828;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* From ./parts/index-flow.html */

.flow-section {
  padding: 100px 0;
  background-color: #ffffff; /* 背景を白に変更 */
  position: relative;
  overflow: hidden;
}

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

.flow-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3rem;
  position: relative;
}

@media (min-width: 768px) {
  .flow-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  /* 接続ライン（デスクトップ） */
  .flow-grid::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 56, 40, 0.2), transparent);
    z-index: 0;
  }
}

.flow-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-number {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(232, 56, 40, 0.05); /* 背景に合わせて透過度調整 */
  border: 1px solid rgba(232, 56, 40, 0.3);
  color: #e83828;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  transition: all 0.4s ease;
  position: relative;
}

.flow-step:hover .step-number {
  box-shadow: 0 10px 25px rgba(232, 56, 40, 0.3);
  background: #e83828;
  color: #ffffff;
  transform: translateY(-5px);
}

.flow-line-animation {
  display: none;
}

@media (min-width: 768px) {
  .flow-line-animation {
    display: block;
    position: absolute;
    top: 2.5rem;
    left: 15%;
    width: 70%;
    height: 1px;
    overflow: hidden;
  }

  .dot-runner {
    position: absolute;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e83828);
    animation: flowLine 3s infinite linear;
  }
}

@keyframes flowLine {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(300%);
  }
}

/* 新しいプライマリーカラー用のグロー効果 */
.glow-red-text {
  text-shadow: 0 0 10px rgba(232, 56, 40, 0.2);
}
.glow-red-button {
  box-shadow: 0 10px 20px rgba(232, 56, 40, 0.2);
  transition: all 0.3s ease;
}
.glow-red-button:hover {
  box-shadow: 0 15px 30px rgba(232, 56, 40, 0.4);
  transform: translateY(-2px);
}

/* From ./parts/index-pricing.html */

.pricing-section {
  padding: 100px 0;
  background-color: #f4f4f5;
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.pricing-card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
}

.pricing-card.plan-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
}

.pricing-card.featured-plan {
  border: 1px solid rgba(232, 56, 40, 0.2);
  background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
}

.pricing-card.featured-plan:hover {
  border-color: #e83828;
  box-shadow: 0 10px 30px rgba(232, 56, 40, 0.1);
}

.plan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.plan-badge.member {
  background: rgba(0, 0, 0, 0.05);
  color: #4b5563;
}

.plan-badge.pro {
  background: #e83828;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(232, 56, 40, 0.4);
}

.price-amount {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #1f2937;
}

.price-unit {
  font-size: 0.875rem;
  color: #6b7280;
  margin-left: 4px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1rem;
  color: #374151;
  font-size: 0.9375rem;
}

.feature-list .material-symbols-outlined {
  font-size: 1.25rem;
  color: #e83828;
}

.popular-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
}

.popular-ribbon span {
  position: absolute;
  display: block;
  width: 150px;
  padding: 6px 0;
  background-color: #e83828;
  color: #ffffff;
  font:
    900 11px/1 'Inter',
    sans-serif;
  text-transform: uppercase;
  text-align: center;
  right: -38px;
  top: 22px;
  transform: rotate(45deg);
  letter-spacing: 1.5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pricing-contact-area {
  margin-top: 120px;
  padding-top: 80px;
  border-top: 1px solid rgba(232, 56, 40, 0.1);
}

.glow-red-text {
  text-shadow: 0 0 15px rgba(232, 56, 40, 0.2);
}
