/* ========================================
   共通CSS - 株式会社Insup
   黒ベース・モノトーン・高級感のあるデザイン
======================================== */

/* リセットとベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-black: #000000;
  --color-dark-gray: #1a1a1a;
  --color-gray: #333333;
  --color-mid-gray: #666666;
  --color-light-gray: #999999;
  --color-white: #ffffff;
  --color-off-white: #f5f5f5;

  --font-primary: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-english: 'Montserrat', 'Arial', sans-serif;

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-black);
  color: var(--color-white);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* three.js背景用コンテナ */
#three-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* コンテンツラッパー */
.content-wrapper {
  position: relative;
  z-index: 1;
}

/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 40px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header__logo {
  height: 40px;
  transition: var(--transition-smooth);
}

.header__logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.header.scrolled .header__logo {
  height: 35px;
}

/* ナビゲーション */
.nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav__list {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav__item a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  position: relative;
  transition: var(--transition-smooth);
  padding: 5px 0;
}

.nav__item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-white);
  transition: var(--transition-smooth);
}

.nav__item a:hover::after,
.nav__item a.active::after {
  width: 100%;
}

.nav__item a:hover {
  color: var(--color-light-gray);
}

/* ハンバーガーメニュー（モバイル用） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger__line {
  width: 25px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition-smooth);
}

.hamburger.active .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* セクション共通スタイル */
.section {
  min-height: 100vh;
  padding: 120px 40px 80px;
  position: relative;
}

.section--dark {
  background: var(--color-black);
}

.section--gray {
  background: var(--color-dark-gray);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* タイトル共通スタイル */
.section__title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 60px;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--color-white);
}

.section__subtitle {
  font-family: var(--font-english);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-light-gray);
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 15px 40px;
  background: var(--color-white);
  color: var(--color-black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 2px solid var(--color-white);
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-black);
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn:hover {
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn--outline::before {
  background: var(--color-white);
}

.btn--outline:hover {
  color: var(--color-black);
}

/* フッター */
.footer {
  background: var(--color-black);
  padding: 60px 40px 30px;
  border-top: 1px solid var(--color-gray);
}

.footer__content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__logo {
  height: 40px;
  margin-bottom: 20px;
}

.footer__logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.footer__company-info {
  font-size: 14px;
  color: var(--color-light-gray);
  line-height: 1.8;
}

.footer__section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: 10px;
}

.footer__list a {
  color: var(--color-light-gray);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-fast);
}

.footer__list a:hover {
  color: var(--color-white);
}

.footer__social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  align-items: center;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.footer__social-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.footer__social-link:hover img {
  opacity: 1;
}

.footer__bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--color-gray);
  color: var(--color-light-gray);
  font-size: 12px;
}

/* アニメーション用クラス */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .section__title {
    font-size: 40px;
  }

  .footer__content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 15px 20px;
  }

  .header.scrolled {
    padding: 12px 20px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
  }

  .nav.active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .nav__item a {
    font-size: 18px;
  }

  .hamburger {
    display: flex;
  }

  .section {
    padding: 80px 20px 60px;
  }

  .section__title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .footer__content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .section__title {
    font-size: 28px;
  }

  .btn {
    padding: 12px 30px;
    font-size: 13px;
  }
}

/* ========================================
   CTA Section - 共通スタイル
======================================== */
.cta {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta__content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.cta__title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.cta__description {
  font-size: 16px;
  color: var(--color-light-gray);
  margin-bottom: 40px;
  line-height: 1.9;
}

.cta__buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.cta__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta__info-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.cta__info-label {
  font-size: 14px;
  color: var(--color-light-gray);
  letter-spacing: 0.05em;
}

.cta__info-value {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-english);
  background: linear-gradient(90deg, #ffffff 0%, #999999 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* CTA Section レスポンシブ */
@media (max-width: 768px) {
  .cta__title {
    font-size: 32px;
  }

  .cta__info {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* スマホ版のみ改行 */
.br-sp {
  display: none;
}

@media (max-width: 768px) {
  .br-sp {
    display: inline;
  }
}

@media (max-width: 480px) {
  .cta__title {
    font-size: 24px;
  }

  .cta__buttons {
    flex-direction: column;
  }

  .cta__buttons .btn {
    width: 100%;
  }

  .cta__info-value {
    font-size: 24px;
  }
}
