/* ---------- ヘッダ/共通 ---------- */
:root {
    --bg: #ffffff;
    --fg: #0a0a0a;
    --muted: #6b7280;
    --card: #ffffff;
    --border: #e5e7eb;
    --accent: #2563eb;
    --radius: 16px;
    --wrap: 1100px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #ffffff;
        --fg: #000000;
        --muted: #9aa1ad;
        --card: #121316;
        --border: #25272b;
        --accent: #3b82f6;
    }
}

/* ---------- リセットまわり ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN",
        "游ゴシック", Meiryo, "Noto Sans JP", sans-serif;
    line-height: 1.6;
    color: #000000;
    background: #ffffff;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* ---------- レイアウト ---------- */
.wrap {
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 20px;
}

.head {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    backdrop-filter: saturate(150%) blur(6px);
    background: color-mix(in srgb, var(--bg) 80%, transparent);
}

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

.site-title {
    font-size: 1.125rem;
    margin: 0;
}

.site-nav ul {
    display: flex;
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-nav a {
    display: inline-block;
    padding: 8px 10px;
    color: inherit;
    text-decoration: none;
    border-radius: 10px;
}

.site-nav a:focus-visible,
.site-nav a:hover {
    outline: none;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* ---------- 既存ヒーロー ---------- */
.hero {
    position: relative;
    padding-block: clamp(36px, 6vw, 80px);

    /* 背景色 + フォールバック + 画像（お好みで） */
    background: #fff;

    color: #0a0a0a;
    /* 基本文字色 */
}

@media (prefers-color-scheme: dark) {
    .hero {
        background:
            linear-gradient(0deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .92)),
            url("/assets/flying-macaw-parrot-isolated-transparent-background-png-psd_888962-1748.jpg") center/cover no-repeat,
            #fff;
        color: #0a0a0a;
    }
}

.hero h2 {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    margin: 0 0 6px;
}

.hero p {
    color: var(--muted);
    margin: 0 0 18px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.btn:hover,
.btn:focus-visible {
    filter: brightness(1.05);
}

/* ---------- セクション ---------- */
.section h3 {
    font-size: 1.25rem;
    margin: 24px 0 12px;
}

/* ---------- グリッド / カード ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 0;
    margin: 0;
}

@media (max-width: 860px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* カードの基本 */
.card {
    display: block;
    background: var(--card);
    color: #ffffff;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    /* 角丸に画像を合わせる */
    transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover,
.card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    outline: none;
}

/* 画像枠：アスペクト比を固定して見栄えを揃える */
.card__media {
    aspect-ratio: 16/9;
    /* 1:1 や 4/3 でもOK */
    background: #f2f3f5;
    /* 画像読み込み前のプレースホルダ色 */
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* トリミングして全面に表示 */
    display: block;
    color: #000000
}

/* テキスト部 */
.card__body {
    padding: 14px 16px;
}

.card__body h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.card__body p {
    margin: 0;
    color: var(--muted);
}
/* ==== New Video Hero ==== */
.hero.hero--video {
  margin-top: 40px;
  border-radius: 24px;
  overflow: hidden;
  min-height: min(100vh, 720px);
  display: flex;
  align-items: center;
  background: #020617;
  color: #f9fafb;
  box-shadow: 0 24px 60px rgba(15,23,42,0.65);
  padding: 0; /* Reset base padding */
}

/* Overlay gradient */
.hero.hero--video::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(56,189,248,0.4), transparent 60%),
    linear-gradient(120deg, rgba(15,23,42,0.85), rgba(15,23,42,0.2));
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) contrast(1.05);
}

.hero-content {
  position: relative;
  padding: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 640px;
  z-index: 2;
}

.hero-content h2 {
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  color: #fff; /* Ensure contrast on video */
}

.hero-sub {
  margin: 0 0 1.6rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(226,232,240,0.9);
}

/* Button Row */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Enhanced Button Styles */
.hero-actions .btn {
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.hero-actions .btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-actions .btn:first-of-type {
  background: var(--accent, #2563eb);
  border-color: var(--accent, #2563eb);
  color: #fff;
}
.hero-actions .btn:first-of-type:hover {
  background: color-mix(in srgb, var(--accent, #2563eb) 85%, white);
}

@media (max-width: 640px) {
  .hero.hero--video {
    margin-top: 24px;
    border-radius: 18px;
    min-height: 70vh;
  }
  .hero-content {
    padding: 1.8rem 1.4rem 2.2rem;
  }
}
