/* reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* --- Base Settings for LP --- */
#lp-wrapper {
  --bg-dark: #0b1c36;
  --bg-dark-deep: #050e1c;
  --accent-cyan: #00f2ff;
  --text-white: #ffffff;
  --text-gray: #ccd6f6;

  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}

#lp-wrapper * {
  box-sizing: border-box;
}

.lp-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.lp-section {
  padding: 80px 0;
  position: relative;
}

/* --- Header Navigation --- */
.lp-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 28, 54, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 242, 255, 0.1);
  transition: all 0.3s ease;
}

.lp-header.scrolled {
  background: rgba(5, 14, 28, 0.98);
  box-shadow: 0 2px 20px rgba(0, 242, 255, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-text {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 1) 25%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 1) 75%,
    rgba(255, 255, 255, 0.6) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Helvetica Neue", Arial, sans-serif;
  animation: logoShine 3s linear infinite;
}

.logo-accent {
  background: linear-gradient(
    90deg,
    rgba(0, 242, 255, 0.7) 0%,
    rgba(0, 242, 255, 1) 25%,
    rgba(255, 255, 255, 1) 50%,
    rgba(0, 242, 255, 1) 75%,
    rgba(0, 242, 255, 0.7) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Helvetica Neue", Arial, sans-serif;
  text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
  animation: logoShine 3s linear infinite;
  animation-delay: 0.5s;
}

@keyframes logoShine {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
  padding: 5px 0;
  padding-top: 10px;
  display: block;
  position: relative;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--accent-cyan);
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 20px !important;
  border: 1px solid var(--accent-cyan);
  border-radius: 4px;
  color: var(--accent-cyan) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.6s ease, transform 0.6s ease;
  box-shadow: 0 0 0 rgba(0, 242, 255, 0);
}

.nav-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.8s ease;
}

.nav-cta:hover::before {
  left: 100%;
}

.nav-cta:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.6), 0 0 40px rgba(0, 242, 255, 0.3),
    0 5px 15px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-cyan);
}

.nav-cta:active {
  transform: translateY(0);
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.4), 0 0 30px rgba(0, 242, 255, 0.2);
  transition: all 0.2s ease;
}

.nav-cta::after {
  display: none;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--accent-cyan);
  transition: all 0.3s ease;
  display: block;
  position: relative;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -5px);
}

/* --- Typography --- */
#lp-wrapper h1,
#lp-wrapper h2,
#lp-wrapper h3,
#lp-wrapper h4 {
  margin-top: 0;
  line-height: 1.4;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin: 0 0 3rem 0;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent-cyan);
  margin: 10px auto 0;
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* --- 1. Hero Section --- */
.hero-section {
  /* 高さはJSで設定（header + hero = ブラウザ高さ） */
  min-height: 100vh; /* JSが読み込まれるまでのフォールバック */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(
    circle at center,
    #112d55 0%,
    var(--bg-dark-deep) 100%
  );
  overflow: hidden;
  box-sizing: border-box;
}

.hero-title {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.3s;
  @media (max-width: 500px) {
    font-size: 24px !important;
    line-height: 1.8 !important;
  }
}

.text-gradient {
  background: linear-gradient(90deg, #fff, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: var(--text-gray);
  font-size: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.6s;
}

/* 背景エフェクト（簡易的なパーティクル風） */
.bg-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(0, 242, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(0, 242, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
  opacity: 0.5;
}

/* スクロールダウン */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  margin: auto;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  opacity: 0;
  animation: fadeInUp 1s ease forwards 1s;
  text-align: center;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: var(--accent-cyan);
  margin: 10px auto 0;
  animation: scrollLine 2s infinite;
}

/* --- 2. Concept --- */
.concept-section {
  background-color: var(--bg-dark-deep);
}
.section-lead {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

/* --- 3. Services --- */
.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  margin-bottom: 40px;
  border-radius: 8px;
  transition: transform 0.3s;
  text-align: left;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.service-header {
  display: flex;
  align-items: baseline;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

@media (max-width: 600px) {
  .service-header {
    display: grid;
    gap: 16px;
  }
}

.service-num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  margin-right: 15px;
  line-height: 1;
}
.service-header h3 {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin: 0;
}

/* Use Cases Grid */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
  text-align: left;
}

.case-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 6px;
  border-left: 3px solid var(--accent-cyan);
}

.case-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.case-item h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #fff;
}

.case-text {
  font-size: 0.9rem;
  color: #ccc;
}

.bad {
  color: #ff6b6b;
  font-weight: bold;
  font-size: 0.8rem;
  display: inline-block;
  width: 50px;
}
.good {
  color: var(--accent-cyan);
  font-weight: bold;
  font-size: 0.8rem;
  display: inline-block;
  width: 50px;
}

/* AI Advantage Box */
.ai-advantage-box {
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), transparent);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(0, 242, 255, 0.3);
  margin-top: 30px;
  text-align: left;
}
.ai-advantage-box h4 {
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

/* Button */
.lp-btn {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: 0.3s;
  border-radius: 4px;
}

@media (max-width: 500px) {
  .lp-btn {
    width: 100%;
    text-align: center;
  }
}

.lp-btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 15px var(--accent-cyan);
}
.lp-btn.btn-large {
  font-size: 1.2rem;
  padding: 15px 50px;
  background: var(--accent-cyan);
  color: var(--bg-dark);
}
.contact-btn-area {
  text-align: center;
  margin-top: 40px;
}

/* --- 4. Tech Stack --- */
.tech-section {
  background: var(--bg-dark-deep);
}
.tech-lead {
  margin-bottom: 20px;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}
.tech-tag {
  padding: 10px 20px;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-family: monospace;
  background: rgba(0, 242, 255, 0.05);
  font-weight: bold;
}

/* --- 5. Company --- */
.company-list {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  text-align: left;
}
.company-row {
  display: flex;
  flex-wrap: wrap;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.company-row dt {
  width: 30%;
  font-weight: bold;
  color: var(--accent-cyan);
}
.company-row dd {
  width: 70%;
  margin: 0;
}

/* --- 6. Contact --- */
.contact-msg {
  margin-bottom: 20px;
}

/* --- Footer --- */
.lp-footer {
  text-align: center;
  padding: 20px;
  background: #000;
  color: #666;
  font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transition: none;
}

.animate-on-scroll.animated {
  animation-duration: 0.8s;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
}

.fade-in-up.animated {
  animation-name: fadeInUp;
}

.fade-in.animated {
  animation-name: fadeIn;
}

.slide-in-left.animated {
  animation-name: slideInLeft;
}

.slide-in-right.animated {
  animation-name: slideInRight;
}

.scale-in.animated {
  animation-name: scaleIn;
}

/* Stagger animation delays */
.animate-delay-100 {
  animation-delay: 0.1s;
}
.animate-delay-200 {
  animation-delay: 0.2s;
}
.animate-delay-300 {
  animation-delay: 0.3s;
}
.animate-delay-400 {
  animation-delay: 0.4s;
}
.animate-delay-500 {
  animation-delay: 0.5s;
}

/* SP Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .company-row dt,
  .company-row dd {
    width: 100%;
  }
  .company-row dt {
    margin-bottom: 5px;
  }
  .sp-only {
    display: block;
  }

  /* Header Mobile */
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(5, 14, 28, 0.98);
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-list {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    text-align: center;
  }

  .nav-list a {
    margin: 0 auto;
    max-width: 240px;
    font-size: 1rem;
    padding: 10px 0;
    text-align: center;
  }
}

.lp-btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 15px var(--accent-cyan);
}
.lp-btn.btn-large {
  font-size: 1.2rem;
  padding: 15px 50px;
  background: var(--accent-cyan);
  color: var(--bg-dark);
}
.contact-btn-area {
  text-align: center;
  margin-top: 40px;
}

/* --- 4. Tech Stack --- */
.tech-section {
  background: var(--bg-dark-deep);
}
.tech-lead {
  margin-bottom: 20px;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}
.tech-tag {
  padding: 10px 20px;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-family: monospace;
  background: rgba(0, 242, 255, 0.05);
  font-weight: bold;
}

/* --- 5. Company --- */
.company-list {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  text-align: left;
}
.company-row {
  display: flex;
  flex-wrap: wrap;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.company-row dt {
  width: 30%;
  font-weight: bold;
  color: var(--accent-cyan);
}
.company-row dd {
  width: 70%;
  margin: 0;
}

/* --- 6. Contact --- */
.contact-msg {
  margin-bottom: 20px;
}

/* --- Footer --- */
.lp-footer {
  text-align: center;
  padding: 20px;
  background: #000;
  color: #666;
  font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transition: none;
}

.animate-on-scroll.animated {
  animation-duration: 0.8s;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
}

.fade-in-up.animated {
  animation-name: fadeInUp;
}

.fade-in.animated {
  animation-name: fadeIn;
}

.slide-in-left.animated {
  animation-name: slideInLeft;
}

.slide-in-right.animated {
  animation-name: slideInRight;
}

.scale-in.animated {
  animation-name: scaleIn;
}

/* Stagger animation delays */
.animate-delay-100 {
  animation-delay: 0.1s;
}
.animate-delay-200 {
  animation-delay: 0.2s;
}
.animate-delay-300 {
  animation-delay: 0.3s;
}
.animate-delay-400 {
  animation-delay: 0.4s;
}
.animate-delay-500 {
  animation-delay: 0.5s;
}

/* SP Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .company-row dt,
  .company-row dd {
    width: 100%;
  }
  .company-row dt {
    margin-bottom: 5px;
  }
  .sp-only {
    display: block;
  }

  /* Header Mobile */
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(5, 14, 28, 0.98);
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-list {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    text-align: center;
  }

  .nav-list a {
    margin: 0 auto;
    max-width: 240px;
    font-size: 1rem;
    padding: 10px 0;
  }

  .logo {
    font-size: 1rem;
  }
}
html:has(.nav-menu.active) {
  overflow: hidden;
}

/* --- Contact Form Modal --- */
.contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  padding: 20px;
  overflow-y: auto;
}

.contact-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-modal-content {
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.98) 0%,
    rgba(20, 20, 35, 0.98) 100%
  );
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  padding: 40px;
  max-width: 600px;
  max-height: 100%;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 255, 255, 0.1);
  animation: modalSlideIn 0.3s ease;
  overflow-y: scroll;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-modal-close:hover {
  color: var(--accent-cyan);
  transform: rotate(90deg);
}

.contact-modal-title {
  font-size: 1.8rem;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  text-align: center;
}

.contact-modal-desc {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 30px;
  opacity: 0.8;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  color: var(--text-light);
  margin-bottom: 8px;
  font-size: 0.9rem;

  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transition: none;
}

.animate-on-scroll.animated {
  animation-duration: 0.8s;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
}

.fade-in-up.animated {
  animation-name: fadeInUp;
}

.fade-in.animated {
  animation-name: fadeIn;
}

.slide-in-left.animated {
  animation-name: slideInLeft;
}

.slide-in-right.animated {
  animation-name: slideInRight;
}

.scale-in.animated {
  animation-name: scaleIn;
}

/* Stagger animation delays */
.animate-delay-100 {
  animation-delay: 0.1s;
}
.animate-delay-200 {
  animation-delay: 0.2s;
}
.animate-delay-300 {
  animation-delay: 0.3s;
}
.animate-delay-400 {
  animation-delay: 0.4s;
}
.animate-delay-500 {
  animation-delay: 0.5s;
}

/* SP Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .company-row dt,
  .company-row dd {
    width: 100%;
  }
  .company-row dt {
    margin-bottom: 5px;
  }
  .sp-only {
    display: block;
  }

  /* Header Mobile */
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(5, 14, 28, 0.98);
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-list {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    text-align: center;
  }

  .nav-list a {
    margin: 0 auto;
    max-width: 240px;
    font-size: 1rem;
    padding: 10px 0;
  }

  .logo {
    font-size: 1rem;
  }
}
html:has(.nav-menu.active) {
  overflow: hidden;
}

/* --- Contact Form Modal --- */
.contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  padding: 20px;
  overflow-y: auto;
}

.contact-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-modal-content {
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.98) 0%,
    rgba(20, 20, 35, 0.98) 100%
  );
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 255, 255, 0.1);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-modal-close:hover {
  color: var(--accent-cyan);
  transform: rotate(90deg);
}

.contact-modal-title {
  font-size: 1.8rem;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  text-align: center;
}

.contact-modal-desc {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 30px;
  opacity: 0.8;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  color: var(--text-light);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.contact-form .required {
  color: #ff6b6b;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 6px;
  color: var(--text-light);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.contact-form select {
  cursor: pointer;
}

.contact-form select option {
  background: #1a1a2e;
  color: #ffffff;
  padding: 10px;
}

.contact-submit-btn {
  padding: 1em;
  width: 100%;
  text-align: center;
  background: var(--accent-cyan);
  border: none;
  font-size: 18px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
  @media (max-width: 500px) {
    font-size: 16px;
  }
  &:hover {
    background: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan);
  }
}
.contact-submit-btn:active {
  transform: translateY(0);
}

.contact-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.95rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(46, 213, 115, 0.1);
  border: 1px solid rgba(46, 213, 115, 0.3);
  color: #2ed573;
}

.form-message.error {
  display: block;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-modal-content {
    padding: 30px 20px;
  }

  .contact-modal-title {
    font-size: 1.5rem;
  }
}

/* --- FAQ Section --- */
.faq-section {
  background: var(--bg-dark-deep);
}

.faq-lead {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-category {
  margin-bottom: 3rem;
}

.faq-category-title {
  font-size: 1.3rem;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 242, 255, 0.2);
  text-align: left;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(0, 242, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  transition: all 0.3s ease;
  position: relative;
}

.faq-question:hover {
  color: var(--accent-cyan);
}

.faq-q-label {
  font-weight: 700;
  color: var(--accent-cyan);
  flex-shrink: 0;
  font-size: 0.95rem;
}

.faq-q-text {
  flex: 1;
  font-weight: 600;
  line-height: 1.6;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  margin-left: auto;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent-cyan);
  transition: all 0.3s ease;
}

.faq-icon::before {
  width: 12px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 12px;
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem;
  text-align: left;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 1000px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-gray);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.faq-answer ul li {
  padding: 0.8rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.8;
  color: var(--text-gray);
}

.faq-answer ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

.faq-answer .note {
  font-size: 0.9rem;
  color: rgba(204, 214, 246, 0.7);
  font-style: italic;
}

.faq-answer .highlight-text {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), transparent);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 4px;
  color: var(--text-white);
  font-weight: 500;
}

/* FAQ Responsive */
@media (max-width: 768px) {
  .faq-category-title {
    font-size: 1.1rem;
  }

  .faq-question {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .faq-q-label {
    font-size: 0.85rem;
  }

  .faq-answer {
    padding: 0 1rem;
  }

  .faq-question[aria-expanded="true"] + .faq-answer {
    padding: 0 1rem 1rem 1rem;
  }

  .faq-answer ul li {
    padding-left: 1.2rem;
  }
}

/* --- Success Popup (送信完了ポップアップ) --- */
/* 注: bodyに直接追加されるため、#lp-wrapper外でCSS変数が使えないので直接色を指定 */
.success-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.success-popup.active {
  display: flex;
  opacity: 1;
}

.success-popup-content {
  background: #fff;
  border: 1px solid #00f2ff;
  border-radius: 16px;
  padding: 50px 40px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 0 40px rgba(0, 242, 255, 0.3);
  transform: scale(0.9);
  animation: popupAppear 0.3s ease forwards;
}

@keyframes popupAppear {
  to {
    transform: scale(1);
  }
}

.success-popup-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, #00f2ff, #00b8cc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #0b1c36;
  font-weight: bold;
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
}

.success-popup-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0b1c36;
  margin-bottom: 15px;
}

.success-popup-message {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 30px;
}

.success-popup-btn {
  display: inline-block;
  padding: 15px 50px;
  background: #00f2ff;
  color: #0b1c36;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.success-popup-btn:hover {
  background: #00d4e0;
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.6);
  transform: translateY(-2px);
}
