/* ============================================
   スカイテック・ドローン株式会社
   テーマ: 「かわいいドローン × 空」
   ============================================ */

:root {
  /* 空のグラデーション */
  --sky-top: #8fd3ff;     /* 上空の青 */
  --sky-mid: #bfe9ff;     /* 中空 */
  --sky-bottom: #eaf8ff;  /* 地平線近く */

  /* メインカラー */
  --blue: #4a9ef0;        /* ドローンブルー */
  --blue-deep: #2e7bd6;   /* 濃いブルー */
  --sun: #ffd966;         /* 太陽の黄色 */
  --pink: #ffb3c6;        /* ほっぺのピンク（差し色） */
  --cloud: #ffffff;       /* 雲・カード */

  /* テキスト */
  --text: #3a4a5a;        /* やわらかい紺 */
  --text-light: #6b7d8d;

  --radius: 22px;
  --shadow: 0 10px 30px rgba(74, 158, 240, 0.18);
  --shadow-soft: 0 6px 18px rgba(74, 158, 240, 0.12);
}

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

body {
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.8;
  color: var(--text);
  /* 空のグラデーション背景（固定） */
  background:
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 35%, var(--sky-bottom) 100%) fixed;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ふわふわ漂う雲（ページ全体の背景装飾） */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 220px;
  height: 110px;
  background: url("../images/cloud.svg") no-repeat center / contain;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}
body::before {
  top: 12%;
  left: -60px;
  animation: drift-right 40s linear infinite;
}
body::after {
  top: 55%;
  right: -80px;
  width: 160px;
  height: 80px;
  opacity: 0.7;
  animation: drift-left 55s linear infinite;
}

@keyframes drift-right {
  from { transform: translateX(0); }
  to   { transform: translateX(120vw); }
}
@keyframes drift-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-120vw); }
}

/* 中身は雲より前面に */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* レイアウト用コンテナ */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- ヘッダー / グローバルナビ ---------- */
.site-header {
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.8);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo a {
  text-decoration: none;
  color: var(--blue-deep);
}

.site-logo .logo-drone {
  width: 34px;
  height: 30px;
}

.global-nav ul {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.global-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.global-nav a:hover {
  background: rgba(74, 158, 240, 0.12);
  color: var(--blue-deep);
}

.global-nav a.is-current {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

/* ---------- メイン ---------- */
main {
  padding: 50px 0 70px;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-deep);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-title .title-drone {
  width: 56px;
  height: 48px;
  animation: float 3s ease-in-out infinite;
}

section {
  margin-bottom: 44px;
}

section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-deep);
  margin-bottom: 16px;
  display: inline-block;
  position: relative;
}

section h2::after {
  content: "";
  display: block;
  height: 6px;
  border-radius: 999px;
  margin-top: 4px;
  background: linear-gradient(90deg, var(--sun), var(--pink));
}

section h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-deep);
  margin-bottom: 8px;
}

/* ---------- ヒーロー（ホーム） ---------- */
.hero {
  text-align: center;
  padding: 30px 0 50px;
}

.hero-drone {
  width: 220px;
  max-width: 60%;
  height: auto;
  animation: float 3.5s ease-in-out infinite;
  filter: drop-shadow(0 16px 18px rgba(46, 123, 214, 0.25));
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue-deep);
  margin: 10px 0 14px;
  letter-spacing: 0.02em;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ---------- カード ---------- */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--cloud);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(74, 158, 240, 0.26);
}

.card .card-icon {
  font-size: 2rem;
  display: inline-block;
  margin-bottom: 6px;
}

.card p {
  color: var(--text-light);
}

/* 白いパネル（汎用） */
.panel {
  background: var(--cloud);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

/* 動画埋め込み（レスポンシブ 16:9） */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}

/* aspect-ratio 非対応ブラウザ向けフォールバック */
@supports not (aspect-ratio: 16 / 9) {
  .video-wrap {
    height: 0;
    padding-bottom: 56.25%;
  }
}

.video-wrap iframe,
.video-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}

/* ---------- 表（会社概要） ---------- */
.info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--cloud);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.info-table th,
.info-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #eef5fb;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.info-table th {
  width: 30%;
  background: #f3faff;
  color: var(--blue-deep);
  font-weight: 800;
  white-space: nowrap;
}

/* お知らせリスト */
.news-list {
  list-style: none;
  background: var(--cloud);
  border-radius: var(--radius);
  padding: 8px 24px;
  box-shadow: var(--shadow-soft);
}

.news-list li {
  padding: 14px 0;
  border-bottom: 1px dashed #e1eef8;
}

.news-list li:last-child {
  border-bottom: none;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  margin-top: 18px;
  padding: 13px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(46, 123, 214, 0.35);
}

/* ---------- フッター ---------- */
.site-footer {
  margin-top: 30px;
  padding: 28px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-top: 2px solid rgba(255, 255, 255, 0.8);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .page-title { font-size: 1.6rem; }
  .global-nav a { padding: 6px 12px; }
}
