/* ベーススタイル */
:root {
  --brand-orange: rgb(255, 142, 85);
  --brand-blue: rgb(183, 212, 255);
  --text-color: #333;
  --bg-color: #f8f8f8;
  --card-bg: rgba(255, 255, 255, 0.3);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --gradient-brand: linear-gradient(45deg, rgba(183, 212, 255, 0.7) 15%, rgba(255, 142, 85, 0.7) 85%);
  --gradient-brand-soft: linear-gradient(45deg, rgba(183, 212, 255, 0.05) 15%, rgba(255, 142, 85, 0.05) 85%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul {
  list-style: none;
}

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

/* 背景アニメーション */
.fluid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.fluid-line {
  position: absolute;
  border: 80px solid;
  border-radius: 50%;
  opacity: 0.15;
  transform-origin: center;
  left: 50%;
  top: 50%;
  filter: blur(4px);
}

.fluid-line:nth-child(1) {
  border-color: var(--brand-orange);
  animation: fluidRotate 60s linear infinite;
  width: 120vw;
  height: 120vh;
}

.fluid-line:nth-child(2) {
  border-color: var(--brand-blue);
  animation: fluidRotate 50s linear infinite reverse;
  width: 100vw;
  height: 100vh;
}

.fluid-line:nth-child(3) {
  border-color: #ffb347;
  animation: fluidRotate 70s linear infinite;
  width: 140vw;
  height: 140vh;
}

.fluid-line:nth-child(4) {
  border-color: #91e5d0;
  animation: fluidRotate 40s linear infinite reverse;
  width: 80vw;
  height: 80vh;
}

@keyframes fluidRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0) scale(0.9);
  }
  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.1);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(0.9);
  }
}

/* ヘッダー */
.header {
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--brand-orange);
}

.logo-path {
  fill: currentColor;
  opacity: 0.7;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ナビゲーション - デスクトップ */
.nav-desktop {
  display: none;
}

.nav-list {
  display: flex;
  gap: 32px;
  height: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  padding: 0 8px;
  color: var(--text-color);
}

.nav-link:hover {
  color: var(--brand-orange);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ナビゲーション - モバイル */
.menu-toggle {
  display: block;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
  z-index: 102;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.3s;
  position: absolute;
}

.menu-icon {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  left: 0;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  bottom: -8px;
}

.menu-toggle.active .menu-icon {
  background-color: transparent;
}

.menu-toggle.active .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.active .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 101;
}

.nav-mobile.active {
  display: block;
}

.nav-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-mobile-link {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s;
}

.nav-mobile-link:hover {
  background-color: var(--gradient-brand-soft);
  color: var(--brand-orange);
}

/* ヒーローセクション */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 24px;
  font-weight: bold;
  color: var(--text-color);
}

.hero-text-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.hero-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-text-1 {
  animation-delay: 0.3s;
}

.hero-text-2 {
  animation-delay: 1s;
}

.hero-text-3 {
  animation-delay: 1.7s;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* セクション共通スタイル */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text-color);
}

/* 会社概要セクション */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.about-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.about-icon-container {
  flex-shrink: 0;
  color: var(--brand-orange);
}

.about-icon {
  width: 24px;
  height: 24px;
}

.about-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.about-text {
  line-height: 1.6;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.about-icons-grid {
  display: flex;
  gap: 32px;
  color: var(--brand-orange);
}

/* サービスセクション */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.service-card {
  background-color: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.service-icon-container {
  color: var(--brand-orange);
  margin-bottom: 16px;
}

.service-icon {
  width: 32px;
  height: 32px;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-description {
  margin-bottom: 16px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--brand-orange);
  font-weight: 600;
  margin-top: auto;
}

.service-link:hover {
  color: var(--brand-blue);
}

.service-link-icon {
  width: 16px;
  height: 16px;
  margin-left: 4px;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  color: var(--brand-orange);
  font-weight: 600;
}

.view-all-link:hover {
  color: var(--brand-blue);
}

.view-all-icon {
  width: 16px;
  height: 16px;
  margin-left: 4px;
}

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

/* フッター */
.footer {
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  padding: 60px 0 20px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-tagline {
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 16px;
}

.footer-nav-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer-nav-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-link:hover {
  color: var(--brand-orange);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* アニメーション効果 */
.fluid-hover {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  will-change: transform;
}

.fluid-hover:hover {
  transform: translateY(-5px) scale(1.02);
}

.fluid-hover:before {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
  width: 10px;
  height: 10px;
  background: linear-gradient(45deg, rgba(183, 212, 255, 0.5) 15%, rgba(255, 142, 85, 0.5) 85%);
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  filter: blur(0.5px);
  box-shadow: 0 0 15px rgba(255, 142, 85, 0.2);
}

.fluid-hover:after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle at center, rgba(183, 212, 255, 0.1) 15%, rgba(255, 142, 85, 0.2) 85%, transparent 70%);
  transform: scale(0);
}

.fluid-hover:hover:before {
  animation: dropFall 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.fluid-hover:hover:after {
  animation: rippleEffect 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes dropFall {
  0% {
    transform: translate(-50%, -100%) scale(0.8);
    opacity: 0;
  }
  10% {
    transform: translate(-50%, -80%) scale(1);
    opacity: 0.6;
  }
  30% {
    transform: translate(-50%, -20%) scale(1.1);
  }
  50% {
    transform: translate(-50%, 20%) scale(1);
  }
  70% {
    transform: translate(-50%, 60%) scale(0.9);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, 150%) scale(0.8);
    opacity: 0;
  }
}

@keyframes rippleEffect {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    opacity: 0.3;
  }
  70% {
    opacity: 0.2;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* スクロールアニメーション */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.scroll-fade-delay-1 {
  transition-delay: 0.1s;
}

.scroll-fade-delay-2 {
  transition-delay: 0.2s;
}

.scroll-fade-delay-3 {
  transition-delay: 0.3s;
}

.scroll-fade-delay-4 {
  transition-delay: 0.4s;
}

/* レスポンシブスタイル */
@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 2fr;
  }
  
  .footer-nav-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-desktop {
    display: block;
  }
  
  .menu-toggle {
    display: none;
  }
}