/* --- デザインリセット & クロスブラウザ対策 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6; color: #333; background: #fff; -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* 横揺れを全ブラウザで防止 */
}
a { text-decoration: none !important; color: inherit !important; transition: 0.3s; }
a:hover { color: #999 !important; }

/* --- スムーススクロール (Lenis) --- */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

/* --- ヘッダー（全ブラウザ共通固定） --- */
header {
    position: fixed; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 25px 60px; background: rgba(255, 255, 255, 0.95); z-index: 1000;
}
.logo a { display: flex; flex-direction: column; align-items: center; }
.logo-main { font-size: 1.4rem; letter-spacing: 0.15em; font-weight: bold; }
.logo-sub { font-size: 0.6rem; letter-spacing: 0.44em; text-transform: uppercase; }
nav ul { display: flex; list-style: none; gap: 30px; }
nav ul li a { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

/* --- ヒーローエリア：Chrome/Safari/Firefox 完全対応構造 --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

/* 動画を背面に完全固定 */
.hero-video-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}
.hero-video-container video {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%); /* 全ブラウザ共通の中央配置 */
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    object-fit: cover;
}

/* 暗幕レイヤー */
.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 2;
}

/* テキストを最前面に浮かせ、中央に固定（Flexbox） */
.hero-text, .hero-content {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直方向中央 */
    align-items: center;     /* 水平方向中央 */
    text-align: center;
    color: #fff;
    pointer-events: none;    /* クリックを透過 */
}
.hero-text h1, .hero-content h1 {
    font-size: 1.4rem; font-weight: 200; letter-spacing: 0.5em; text-transform: uppercase; margin: 0; line-height: 1.8;
}

/* --- 共通カード・グリッド --- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 100px; padding: 0 60px; }
.item-card { position: relative; overflow: hidden; cursor: pointer; }
.item-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s cubic-bezier(0.215, 0.61, 0.355, 1); }

/* --- ニュース --- */
.index-news { padding: 80px 0 100px; text-align: center; background: #fff; }
.news-inner { max-width: 1050px; margin: 0 auto; padding: 0 25px; }
.news-list { list-style: none; text-align: left; }
.news-list li { border-bottom: 1px solid #eee; padding: 25px 0; display: flex; align-items: center; justify-content: space-between; }
.date { width: 120px; font-size: 0.8rem; color: #999; }
.read-more-btn { padding: 8px 20px; background-color: #888; color: #fff !important; font-size: 0.75rem; }

/* --- フッター --- */
footer { padding: 60px; text-align: center; background: #f9f9f9; }
.sns-links a { margin: 0 15px; font-size: 1.2rem; opacity: 0.6; }
.copyright { font-size: 10px; color: #ccc; margin-top: 20px; }

/* --- モバイル対応：全ブラウザ共通レスポンシブ --- */
@media (max-width: 768px) {
    header {
        flex-direction: column !important;
        padding: 15px 0 !important;
        height: auto !important;
    }
    .logo { margin-bottom: 10px !important; }
    nav { 
        width: 100% !important; 
        max-width: 100% !important;
        overflow: visible !important;
    }
    nav ul {
        display: flex !important;
        flex-wrap: wrap !important; /* 折り返しを許可 */
        justify-content: center !important;
        gap: 8px 12px !important; /* 縦8px 横12px */
        padding: 0 10px !important;
        margin: 0 !important;
        width: 100% !important;
    }
    nav ul li { 
        flex-shrink: 0 !important; /* アイテムの縮小を防止 */
        white-space: nowrap !important;
    }
    nav ul li a { 
        font-size: 10px !important; 
        padding: 5px 8px !important;
        display: inline-block !important;
    }
    .hero-text h1, .hero-content h1 { font-size: 1.1rem !important; padding: 0 20px; }
    .category-grid { grid-template-columns: repeat(2, 1fr) !important; padding: 0 15px !important; }
}