/* =============================================
   トロピカナイトワークス ホームページ スタイルシート
   =============================================
   カラーパレット:
     背景:       #0d1117（深いダーク）
     サブ背景:   #12131a
     テキスト:   #e6edf3（白系）
     サブテキスト: #8b949e（グレー系）
     アクセント: #00c9a7（ターコイズ）
============================================= */

/* ---------------------------------------------
   CSS カスタムプロパティ（変数定義）
--------------------------------------------- */
:root {
  /* カラー */
  --color-bg:        #0d1117;
  --color-bg-sub:    #12131a;
  --color-bg-card:   #1a1d27;
  --color-bg-card2:  #1e2130;
  --color-text:      #e6edf3;
  --color-text-sub:  #8b949e;
  --color-accent:    #00c9a7;
  --color-accent-glow: rgba(0, 201, 167, 0.15);
  --color-border:    rgba(255, 255, 255, 0.08);

  /* フォント */
  --font-en: 'Poppins', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;

  /* スペーシング */
  --section-padding: 96px 0;
  --container-max:   1100px;
  --container-pad:   24px;

  /* トランジション */
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth; /* スムーススクロール */
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  /* 日本語・英語混在のフォント設定 */
  font-family: var(--font-en), var(--font-ja), sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------------------------------------------
   共通レイアウト: コンテナ
--------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ---------------------------------------------
   共通: セクションタイトル
--------------------------------------------- */
.section-title {
  font-family: var(--font-ja);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 48px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

/* 英語サブタイトル */
.section-title-en {
  font-family: var(--font-en);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* アクセントライン（セクションタイトル装飾） */
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ---------------------------------------------
   共通: プライマリボタン
--------------------------------------------- */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  border-radius: 4px;
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  box-shadow: 0 0 20px var(--color-accent-glow);
}

/* =============================================
   ヘッダー
============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* スクロール前は透明、JS でクラスを付与して背景を変化させる */
  background: transparent;
  transition: background var(--transition), border-bottom var(--transition);
}

/* スクロール後のヘッダー背景（JS で .scrolled クラスを付与） */
.site-header.scrolled {
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

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

/* ロゴ */
.logo {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.03em;
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.8;
}

/* ナビゲーション */
.site-nav ul {
  display: flex;
  gap: 32px;
}

.site-nav a {
  font-family: var(--font-ja);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-sub);
  transition: color var(--transition);
  position: relative;
}

/* ナビリンクのホバー下線エフェクト */
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.site-nav a:hover {
  color: var(--color-text);
}

.site-nav a:hover::after {
  width: 100%;
}

/* =============================================
   ヒーローセクション
============================================= */
.hero-section {
  position: relative;
  min-height: 100svh; /* スマホのアドレスバーを考慮した高さ */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-bg);
  overflow: hidden;
  padding: 80px 0 0; /* ヘッダー分の余白 */
}

/* 背景グロー（アクセントカラーの発光効果） */
.hero-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(0, 201, 167, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* ラベル（Individual Developer） */
.hero-label {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  /* フェードイン用初期状態 */
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.7s ease 0.1s forwards;
}

/* メインタイトル */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.7s ease 0.25s forwards;
}

.hero-title-en {
  font-family: var(--font-en);
  font-size: clamp(2.2rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-title-ja {
  font-family: var(--font-ja);
  font-size: clamp(0.9rem, 3vw, 1.4rem);
  font-weight: 300;
  color: var(--color-text-sub);
  letter-spacing: 0.15em;
}

/* キャッチコピー */
.hero-catch {
  font-family: var(--font-ja);
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.7s ease 0.4s forwards;
}

/* ボタン */
.hero-content .btn-primary {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.7s ease 0.55s forwards;
}

/* 波形装飾（セクション境界） */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* =============================================
   事業紹介セクション
============================================= */
.about-section {
  background: var(--color-bg-sub);
  padding: var(--section-padding);
}

/* リード文 */
.about-lead {
  font-family: var(--font-ja);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--color-text-sub);
  line-height: 2;
  max-width: 680px;
  margin-bottom: 48px;
}

/* 事業紹介カードグリッド */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* 事業紹介カード */
.about-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 36px 32px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.about-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 201, 167, 0.1);
}

/* カードアイコン */
.about-card-icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.about-card-icon svg {
  width: 100%;
  height: 100%;
}

.about-card-title {
  font-family: var(--font-ja);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.about-card-text {
  font-family: var(--font-ja);
  font-size: 0.9rem;
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* =============================================
   実績セクション
============================================= */
.works-section {
  background: var(--color-bg);
  padding: var(--section-padding);
}

/* 実績グリッド */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* 実績カード（準備中） */
.work-card--placeholder {
  background: var(--color-bg-card);
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition);
}

.work-card--placeholder:hover {
  border-color: rgba(0, 201, 167, 0.4);
}

.work-card-inner {
  text-align: center;
  padding: 40px 32px;
}

/* Coming Soon バッジ */
.work-card-badge {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--color-accent);
  border-radius: 99px;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.work-card-text {
  font-family: var(--font-ja);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 8px;
}

.work-card-sub {
  font-family: var(--font-ja);
  font-size: 0.85rem;
  color: var(--color-text-sub);
}

/* =============================================
   フッター
============================================= */
.site-footer {
  background: var(--color-bg-sub);
  border-top: 1px solid var(--color-border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--color-text-sub);
  letter-spacing: 0.03em;
}

/* =============================================
   アニメーション
============================================= */
/* フェードアップ */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* スクロールによるフェードイン（JS で .is-visible クラスを付与） */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* =============================================
   レスポンシブ対応
============================================= */

/* タブレット（768px 以下） */
@media (max-width: 768px) {
  :root {
    --section-padding: 72px 0;
  }

  /* ナビゲーションを非表示（スマホ用メニューは省略） */
  .site-nav {
    display: none;
  }

  .hero-content {
    gap: 20px;
  }

  .hero-wave svg {
    height: 50px;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

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

/* スマートフォン（480px 以下） */
@media (max-width: 480px) {
  :root {
    --section-padding: 56px 0;
    --container-pad: 16px;
  }

  .about-card {
    padding: 28px 20px;
  }

  .work-card-inner {
    padding: 32px 20px;
  }
}
