/* =========================================
   基本設定＆フォント
   ========================================= */
:root {
    --primary-color: #005bac; /* 濃い海の色 */
    --secondary-color: #00a8e8; /* 明るい空の色 */
    --accent-color: #f39c12; /* 太陽のオレンジ */
    --text-dark: #333;
    --bg-light: #f0f8ff; /* 淡い水色背景 */
    --font-heading: 'Zen Kaku Gothic New', sans-serif; /* 見出し用：かっこいいゴシック */
    --font-body: 'Noto Sans JP', sans-serif; /* 本文用：読みやすいゴシック */
    --font-script: 'Dancing+Script', cursive; /* アクセント用：かわいい筆記体 */
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

.script-font {
    font-family: var(--font-script);
    letter-spacing: 0;
}

/* マーカー強調 */
.marker-accent {
    background: linear-gradient(transparent 60%, #ffe3a8 60%);
    font-weight: bold;
    padding: 0 4px;
}

.text-accent { color: var(--accent-color) !important; }
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-accent-subtle { background-color: #fff3e0 !important; }
.bg-pink { background-color: #ff6bbb !important; color: white; }


/* =========================================
   コンポーネント＆ユーティリティ
   ========================================= */
.section-padding { padding: 80px 0; }
.section-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ホバー時の動き */
.hover-scale { transition: transform 0.3s; }
.hover-scale:hover { transform: scale(1.03); }
.hover-lift { transition: transform 0.3s, box-shadow 0.3s; }
.hover-lift:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important; }

.object-fit-cover { object-fit: cover; }

/* ナビバーの高さをしっかり確保 */
body {
    padding-top: 100px; 
}

/* 濃いネイビーの色定義 */
.text-navy {
    color: #002D5E !important; /* 白くならないように強制 */
}

/* ナビゲーションバー全体の背景を白に固定 */
.navbar {
    background-color: #ffffff !important;
}

/* リンクの文字を常に黒にする */
.navbar-nav .nav-link {
    color: #212529 !important; /* Bootstrapのdarkカラー */
    transition: color 0.3s ease;
}

/* ホバーした時だけ色を変える（水色など） */
.navbar-nav .nav-link:hover {
    color: #00a8e8 !important;
}

/* SAILING TEAM の文字間隔 */
.ls-wide {
    letter-spacing: 0.2em;
    text-transform: uppercase;
}


/* =========================================
   Hero Section (メインビジュアル)
   ========================================= */
.hero-section {
    height: 100vh;
    min-height: 600px;
    /* 爽やかな海の写真に変更 */
    background: linear-gradient(rgba(0, 91, 172, 0.4), rgba(0, 168, 232, 0.4)), url('https://images.unsplash.com/photo-1534447677768-be436bb09401?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
    position: relative;
    padding-top: 60px;
}
.hero-content { position: relative; z-index: 2; }
.hero-subtitle { font-size: 2rem; color: var(--accent-color); text-shadow: 1px 1px 2px rgba(0,0,0,0.3); }
.hero-title { text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

/* 波の形 */
.wave-bottom, .wave-top {
    position: absolute; left: 0; width: 100%; line-height: 0;
}
.wave-bottom { bottom: 0; color: var(--bg-light); }
.wave-top { top: 0; }


/* =========================================
   About Sailing (ヨットとは)
   ========================================= */
/* 写真を重ねてエモく配置 */
.image-stack { position: relative; padding: 20px; }
.image-stack .main-img { position: relative; z-index: 1; width: 90%; }
.image-stack .sub-img {
    position: absolute;
    bottom: 0; right: 0;
    width: 50%;
    z-index: 2;
    border: 5px solid white;
    transform: rotate(3deg); /* 少し傾けてかわいく */
}
.icon-box {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}


/* =========================================
   About Us (ヨット部について)
   ========================================= */
/* 背景を斜めに切り替える */
.bg-shape {
    position: absolute; top: 0; left: 0; width: 100%; height: 70%;
    background-color: var(--primary-color);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%); /* 斜めカット */
    z-index: 0;
}
.info-list dt { display: flex; align-items: center; }
.bg-info-img {
    background-size: cover; background-position: center; min-height: 300px;
}


/* =========================================
   News & Results (お知らせ・結果)
   ========================================= */
.news-card { border-left: 5px solid var(--accent-color) !important; }

/* かわいいタブ */
.custom-tabs .nav-link {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s;
}
.custom-tabs .nav-link.active,
.custom-tabs .nav-link:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 91, 172, 0.3);
}

.bg-gradient-fade {
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
/* お知らせカード内の画像設定 */
.news-card img {
    transition: transform 0.3s ease;
}
.news-card:hover img {
    transform: scale(1.05);
}
.rounded-top-4 {
    border-top-left-radius: 1.5rem !important;
    border-top-right-radius: 1.5rem !important;
}
/* 記事詳細のメイン画像 */
.post-hero-image {
    width: 100%;
    overflow: hidden;
    background-color: #eee;
}

.post-content {
    line-height: 2; /* 行間を広げて読みやすく */
    letter-spacing: 0.02em;
}

/* 記事内の画像を調整 */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 2rem 0;
}

/* リンクボタンのホバー */
.hover-scale:hover {
    transform: scale(1.2);
    display: inline-block;
    color: var(--secondary-color) !important;
}
/* ロゴ画像の微調整 */
.logo-img {
    /* 白いロゴを少しだけ発光させて高級感を出す（お好みで） */
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}
/* お知らせセクション全体の文字色を保護 */
#news .section-title {
    color: #002D5E !important;
}

/* ニュースカード専用：リンクの中にあっても色を変えない */
.news-card {
    background-color: #ffffff !important;
    border-left: 5px solid var(--accent-color) !important;
}

.news-card .card-title {
    color: #002D5E !important; /* 濃い紺色 */
    text-decoration: none !important;
}

/* カードにマウスを乗せても文字色はそのまま */
.text-decoration-none:hover .card-title {
    color: var(--secondary-color) !important; /* ホバー時は少し明るく */
}

/* テキストの二段構え設定 */
.brand-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-main {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff; /* 白ロゴに合わせる */
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
}

/* スクロールして背景が白くなった時用の対策（もし必要なら） */
.navbar-custom.scrolled .brand-main,
.navbar-custom.scrolled .brand-sub {
    color: var(--primary-color); /* 背景が白くなったら文字をネイビーに */
}

/* ロゴも背景白だと見えない場合、スクロール時だけ少し暗くするなどの処理 */
.navbar-custom.scrolled .logo-img {
    filter: brightness(0.2); /* ロゴを黒っぽく反転させるか、別の黒ロゴ画像を用意するのも手です */
}