/*
Theme Name: BOGEY PUTT Custom
Author: Antigravity
Version: 1.5
*/

:root {
  --grass-dark: #0a2414;
  --grass-mid: #0e351d;
  --accent-yellow: #a89146;
  --accent-red: #882222;
  --text-main: #f0f4f0;
  --text-muted: #6e7a73;
  --surface-dark: rgba(3, 10, 6, 0.8);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --font-heading: 'Cinzel', serif;
  --font-body: 'Noto Serif JP', serif;
}

/* --- リセット & 基本設定 --- */
body {
  margin: 0; padding: 0;
  background-color: var(--grass-dark);
  background-image: radial-gradient(circle at center, var(--grass-mid) 0%, var(--grass-dark) 100%);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- 画像サイズ問題の解決 --- */
.hero-logo-box {
  margin: 0 auto 2rem !important;
  width: 90% !important;
  max-width: 250px !important; /* ←ここで画像サイズを強制固定 */
  height: auto !important;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  display: block !important;
}

.master-logo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

img {
  max-width: 100% !important;
  height: auto !important;
}

/* --- ヘッダー & ナビ --- */
.app-header {
  position: fixed; top: 0; left: 0; right: 0; height: 80px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 5%; background: var(--surface-dark); backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-subtle); z-index: 1000;
}

.logo-text { font-family: var(--font-heading); color: var(--accent-yellow); font-size: 1.2rem; }
.main-nav { display: flex; gap: 2rem; }
.nav-link { color: var(--text-main); text-decoration: none; font-size: 0.8rem; text-transform: uppercase; }

/* --- セクション構造 --- */
section {
  min-height: 100vh;
  padding: 150px 10% 100px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  position: relative;
}

.hero-title { font-size: clamp(1.5rem, 5vw, 2.5rem); margin-top: 1rem; color: var(--text-main); }

/* ギャラリー調整 */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem; width: 100%; max-width: 1000px; margin-top: 3rem;
}
.img-wrapper { border-radius: 8px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.gallery-text h3 { color: var(--accent-yellow); margin: 1.5rem 0 0.5rem; }

/* その他ギミック用 */
#golf-ball-tracker {
  position: absolute; top: 0; left: 80px; width: 12px; height: 12px;
  background: white; border-radius: 50%; z-index: 99;
}

/* --- ゴルフボールの見た目を定義（これがないと見えません） --- */
#golf-ball-tracker {
    position: absolute !important;
    top: 0;
    left: 80px; /* パス（線）に合わせる */
    width: 15px !important;
    height: 15px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5) !important;
    z-index: 9999 !important; /* 最前面に表示 */
}

/* 軌道（フェアウェイライン） */
.fairway-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 87px; /* ボールの中心に合わせる */
    width: 1px;
    background: rgba(255,255,255,0.1);
    z-index: 0;
}