/* Aiharasoft TOP ページ — 青系モダンデザイン */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: #e8f0fe;
  background: linear-gradient(160deg, #0a1628 0%, #0d2847 40%, #1a4a7a 100%);
  line-height: 1.6;
}

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

/* ヘッダー */
.site-header {
  text-align: center;
  padding: 3.5rem 1.5rem 2rem;
}

.site-logo {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ffffff 0%, #7eb8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.75rem;
}

.site-tagline {
  margin: 0;
  font-size: 1rem;
  color: #94b8e0;
  font-weight: 400;
}

/* メインコンテンツ */
.main-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  overflow-x: hidden;
}

.section-title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5a9fd4;
  margin: 0 0 2rem;
}

/* プロジェクトカード — 横並び・等幅 */
/* プロジェクトカード — 横並び・等幅 */
.project-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  /* 高さや幅を揃えるため stretch に変更 */
  gap: 2rem;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-card {
  flex: 1 1 50%;
  /* 0 から 50%（または 100%）ベースに変更 */
  width: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(126, 184, 255, 0.2);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* カード全体の高さを揃える */
}

.project-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* 動画の表示領域のアスペクト比を明示的に固定 */
  overflow: hidden;
  background: #000;
  /* 読み込み時の黒背景 */
}

.project-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 枠いっぱいに綺麗に収める（全体を表示したい場合は contain に指定） */
}

@media (max-width: 768px) {
  .project-grid {
    flex-direction: column;
    align-items: stretch;
  }
}

.project-label {
  padding: 1.25rem 1.5rem;
  background: rgba(10, 30, 60, 0.7);
}

.project-label h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}

.project-label p {
  margin: 0;
  font-size: 0.85rem;
  color: #7eb8ff;
}

/* フッター */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.8rem;
  color: #5a8ab0;
  border-top: 1px solid rgba(126, 184, 255, 0.15);
}