:root {
  --bg:        #060e1f;
  --ocean:     #0a1f3d;
  --glass:     rgba(255,255,255,0.045);
  --glass-2:   rgba(255,255,255,0.08);
  --border:    rgba(255,255,255,0.09);
  --border-2:  rgba(255,255,255,0.16);
  --text:      #f0f8ff;
  --text-muted: rgba(200,225,255,0.5);
  --sky:       #7dd3fc;   /* 水色ハイライト */
  --sky-deep:  #38bdf8;
  --white:     #ffffff;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

/* ノイズテクスチャ */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(6, 14, 31, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(125, 211, 252, 0.08);
  transition: background 0.3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.header-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--sky);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-nav {
  display: flex;
  gap: 36px;
}
.header-nav a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.header-nav a:hover { color: var(--sky); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* 深夜の空から海への自然なグラデーション */
  background: linear-gradient(180deg,
    #04080f 0%,
    #060e1f 40%,
    #081528 70%,
    #0a1c35 100%
  );
}

#fluid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* 水平線を暗示するグリッド */
.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(125,211,252,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,211,252,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 60%, black 10%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: 80px;
}

/* ガラスパネル — 流体が透けて見える */
.hero-glass {
  max-width: 560px;
  padding: 48px 52px;
  background: rgba(4, 10, 24, 0.52);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(125, 211, 252, 0.13);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 24px 60px rgba(0,0,0,0.35);
}

.company-name {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}
.header-logo-img, .footer-logo-img {
  width: auto;
  height: 1.4rem;
  flex-shrink: 0;
  vertical-align: middle;
}

.hero-concept, .hero-title {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  color: rgba(200, 230, 255, 0.8);
}

/* 「楽しめる社会へ」だけ水色グラデーション */
.gradient-text {
  background: linear-gradient(120deg, #ffffff 0%, #bae6fd 45%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  max-width: 500px;
  line-height: 2.1;
  margin-bottom: 52px;
}
.hero-sub em {
  font-style: normal;
  font-weight: 600;
}
/* クール・精緻な印象 */
.em-tech { color: #a5b4fc; }
/* 明るく温かみのある印象 */
.em-comm { color: #d4c060; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: rgba(125,211,252,0.08);
  border: 1px solid rgba(125,211,252,0.3);
  border-radius: 100px;
  color: var(--sky);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.35s ease;
  backdrop-filter: blur(10px);
}
.hero-cta::after { content: '↓'; transition: transform 0.3s ease; }
.hero-cta:hover {
  background: rgba(125,211,252,0.15);
  border-color: rgba(125,211,252,0.6);
  box-shadow: 0 0 36px rgba(125,211,252,0.18), inset 0 0 20px rgba(125,211,252,0.05);
  color: #bae6fd;
  transform: translateY(-2px);
}
.hero-cta:hover::after { transform: translateY(3px); }

/* 水平線スクロールインジケーター */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, rgba(125,211,252,0.5), transparent);
  margin: 0 auto;
  animation: scrollanim 2.2s ease-in-out infinite;
}
@keyframes scrollanim {
  0%  { transform:scaleY(0); transform-origin:top; opacity:0 }
  49% { transform:scaleY(1); transform-origin:top; opacity:1 }
  50% { transform:scaleY(1); transform-origin:bottom }
  100%{ transform:scaleY(0); transform-origin:bottom; opacity:0 }
}

/* ===== SECTIONS COMMON ===== */
section { padding: 120px 0; }

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 16px;
  opacity: 0.8;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--white);
}
.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.8;
}

/* ===== NOTICE ===== */
.notice-section { padding: 56px 0; }
.notice-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 32px;
  background: rgba(251,191,36,0.04);
  border: 1px solid rgba(251,191,36,0.18);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}
.notice-icon { color: #f59e0b; flex-shrink: 0; padding-top: 2px; }
.notice-title { font-size: 0.9rem; font-weight: 700; color: #f59e0b; margin-bottom: 8px; }
.notice-body { font-size: 0.88rem; color: rgba(180,140,60,0.85); line-height: 1.9; }

/* ===== SERVICES ===== */
.services-section { padding-top: 80px; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ガラスカード — 雲のような透明感 */
.service-card {
  position: relative;
  padding: 40px 36px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  cursor: default;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
}
/* 水面の光のような上部ハイライト */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125,211,252,0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(125,211,252,0.25);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.3),
    0 0 0 1px rgba(125,211,252,0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(125,211,252,0.08);
  border: 1px solid rgba(125,211,252,0.18);
  border-radius: 14px;
  color: var(--sky);
  margin-bottom: 24px;
}
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--white);
}
.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 2;
}

.card-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sky-deep), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.23,1,0.32,1);
}
.service-card:hover .card-line { transform: scaleX(1); }

/* ===== COMPANY ===== */
.company-section {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 32px;
  margin: 0 24px;
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.company-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.company-row {
  display: flex;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.company-row:last-child { border-bottom: none; }
.company-row:hover { background: rgba(125,211,252,0.03); }

.company-key {
  width: 130px;
  flex-shrink: 0;
  padding: 22px 28px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
}
.company-val {
  padding: 22px 32px;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text);
}

/* ===== FOOTER ===== */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 120px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--sky);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2){transition-delay:.12s}
.reveal:nth-child(3){transition-delay:.24s}
.reveal:nth-child(4){transition-delay:.36s}

.reveal-section {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.23,1,0.32,1),
              transform 0.9s cubic-bezier(0.23,1,0.32,1);
}
.reveal-section.visible { opacity: 1; transform: none; }

.service-card {
  opacity: 0;
  transform: translateY(28px);
}
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card:nth-child(2){transition-delay:.15s}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .company-section { margin: 0 12px; border-radius: 20px; }
  .company-key { width: 90px; padding: 18px 16px; }
  .company-val { padding: 18px 20px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .notice-card { flex-direction: column; gap: 12px; }
}
