/* 共通スタイル */

/* Base Styles */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  letter-spacing: var(--letter-spacing-wide);
  color: var(--color-text);
  background-color: var(--color-white);
}

/* グリッドドットパターン */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(45, 62, 80, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: -1;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: box-shadow var(--duration-base) var(--ease-out-cubic);
}

.header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-body-large);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy-deep);
  transition: opacity var(--duration-fast);
}

.logo:hover {
  opacity: 0.8;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  display: none;
  font-family: var(--font-brand);
  letter-spacing: var(--letter-spacing-normal);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--spacing-xs);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-navy-deep);
  border-radius: var(--radius-sm);
  transition: all var(--duration-base) var(--ease-out-cubic);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-list {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, var(--color-warm-gray) 0%, var(--color-white) 100%);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding: calc(80px + var(--spacing-xl)) var(--spacing-xl) var(--spacing-xl);
  box-shadow: var(--shadow-xl);
  transition: right var(--duration-base) var(--ease-out-cubic);
  z-index: 999;
  list-style: none;
  margin: 0;
}

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

.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--color-gray-light);
}

.nav-brand-logo {
  height: 56px;
  width: auto;
}

.nav-brand-text {
  font-family: var(--font-brand);
  font-size: var(--font-size-body-large);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy-deep);
  letter-spacing: var(--letter-spacing-normal);
}

.nav-link {
  display: block;
  padding: var(--spacing-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-navy-soft);
  transition: all var(--duration-fast);
  border-radius: var(--radius-md);
  text-align: center;
}

.nav-link:hover {
  color: var(--color-thunder-blue);
  background-color: var(--color-thunder-subtle);
}

.nav-link.active {
  color: var(--color-thunder-blue);
  background-color: var(--color-thunder-subtle);
  position: relative;
}

/* Main Content */
main {
  margin-top: 80px;
}

/* Section */
.section {
  padding: var(--section-padding-y) 0;
  position: relative;
  overflow: hidden;
}

.section:nth-child(even) {
  background: linear-gradient(180deg, var(--color-warm-gray) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-navy-deep);
  text-align: center;
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-accent);
  margin: var(--spacing-md) auto 0;
  border-radius: var(--radius-sm);
}

.section-subtitle {
  font-size: var(--font-size-body-large);
  color: var(--color-gray-dark);
  text-align: center;
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.hero {
  background:
    linear-gradient(135deg, rgba(248, 249, 250, 0.97) 0%, rgba(255, 255, 255, 0.95) 100%),
    url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1600&auto=format&fit=crop&q=80') center/cover no-repeat;
  color: var(--color-navy-deep);
  padding: var(--spacing-3xl) 0;
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Hero装飾要素 */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-accent);
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-navy-deep);
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 2px 4px rgba(26, 35, 50, 0.1);
}

.hero-subtitle {
  font-size: var(--font-size-body-large);
  line-height: var(--line-height-relaxed);
  color: var(--color-gray-dark);
  margin-bottom: var(--spacing-xl);
}

/* Button */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-english);
  text-align: center;
  border-radius: var(--radius-md);
  transition: all var(--duration-base) var(--ease-out-cubic);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary::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.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-thunder-blue);
  color: var(--color-thunder-blue);
  padding: 12px 30px;
}

.btn-secondary:hover {
  background: var(--color-thunder-blue);
  color: var(--color-white);
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

/* Card */
.card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(229, 231, 235, 0.5);
  transition: all var(--duration-base) var(--ease-out-cubic);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform var(--duration-base) var(--ease-out-cubic);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(26, 35, 50, 0.12);
  border-color: var(--color-thunder-blue);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
  transition: all var(--duration-base) var(--ease-out-cubic);
}

.card:hover .card-icon {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35);
}

.card-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--color-white);
}

.card-title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy-deep);
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-tight);
}

.card-description {
  font-size: var(--font-size-small);
  line-height: var(--line-height-relaxed);
  color: var(--color-gray-dark);
  margin-bottom: var(--spacing-md);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: var(--color-thunder-blue);
  transition: gap var(--duration-fast);
}

.card-link:hover {
  gap: var(--spacing-sm);
}

/* Features Section */
.features {
  background: linear-gradient(180deg, var(--color-warm-gray) 0%, rgba(249, 250, 251, 1) 50%, var(--color-warm-gray) 100%);
  position: relative;
}

.features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.feature-item {
  background: linear-gradient(145deg, var(--color-white), var(--color-warm-gray));
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  border: 1px solid var(--color-gray-light);
  text-align: center;
  transition: all var(--duration-base) var(--ease-out-cubic);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-thunder-subtle), #bfdbfe);
  color: var(--color-thunder-blue);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  transition: all var(--duration-base) var(--ease-out-cubic);
  position: relative;
}

.feature-icon::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(59, 130, 246, 0.2);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out-cubic);
}

.feature-item:hover .feature-icon::before {
  opacity: 1;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.feature-title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy-deep);
  margin-bottom: var(--spacing-xs);
  line-height: var(--line-height-tight);
}

.feature-description {
  font-size: var(--font-size-small);
  color: var(--color-gray-dark);
  line-height: var(--line-height-relaxed);
}

/* Footer */
.footer {
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
  font-size: var(--font-size-body-large);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-md);
  color: var(--color-white);
}

.footer-section p,
.footer-section address {
  font-size: var(--font-size-xs);
  line-height: var(--line-height-relaxed);
  opacity: 0.9;
  font-style: normal;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-nav a {
  font-size: var(--font-size-small);
  opacity: 0.9;
  color: var(--color-white);
  transition: all var(--duration-fast);
  padding: var(--spacing-xs) 0;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--color-thunder-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--font-size-xs);
  opacity: 0.8;
}
