/* ベースのスタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    height: 100vh;
    overflow: hidden; /* スクロールを防止 */
}

/* メインビジュアル */
.main-visual {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* 背景画像 */
.main-image {
    position: absolute;
    top: 0; /* 上部を固定 */
    left: 50%; /* 横中央揃え */
    transform: translateX(-50%);
    width: 100%; /* 横幅は常に画面全体に合わせる */
    height: auto; /* 比率を保つ */
    max-height: 100vh; /* 高さが画面を超えないように */
    object-fit: cover; /* 画像を画面いっぱいに収める */
    object-position: top center; /* 上部と中央を基準に調整 */
}

/* サイトタイトル */
.title {
    position: absolute;
    left: 15%; /* 左側に配置 */
    top: 65%; /* さらに下側に配置 */
    transform: translateY(-50%);
    color: white;
    text-align: left;
}

.title-main {
    font-size: 4em; /* メインタイトルのフォントサイズ */
    font-weight: bold;
    letter-spacing: 0.2em; /* 文字間を広く */
    line-height: 1.2; /* 行間を詰める */
}

.title-sub {
    font-size: 2em; /* サブタイトルのフォントサイズ */
    font-weight: normal;
    letter-spacing: 0.3em; /* サブタイトルの文字間を広く */
    line-height: 1.2; /* 行間を詰める */
    margin-top: 0.3em; /* タイトルとの間隔 */
    display: block;
    text-align: center; /* タイトルに対して中央揃え */
}

/* ナビゲーションメニュー */
.navigation {
    position: absolute;
    top: 5%;
    left: 5%; /* 左上に配置 */
}

.navigation ul {
    list-style: none;
    display: flex; /* 横並び */
    gap: 30px; /* リンク間のスペース */
}

.navigation ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.5em; /* フォントサイズを大きく */
    font-weight: bold;
    transition: color 0.3s ease;
}

.navigation ul li a:hover {
    color: #ffbf00; /* ホバー時の色 */
}

/* レスポンシブ対応: 小さい画面での調整 */
@media (max-width: 768px) {
    .title {
        left: 10%; /* 左側の余白を縮小 */
        top: 65%; /* 上下位置を調整 */
    }

    .title-main {
        font-size: 2.5em; /* メインタイトルのフォントサイズを縮小 */
        letter-spacing: 0.15em; /* 文字間を縮小 */
    }

    .title-sub {
        font-size: 1.5em; /* サブタイトルのフォントサイズを縮小 */
        letter-spacing: 0.2em; /* 文字間を縮小 */
    }

    .navigation ul {
        gap: 15px; /* ナビゲーションリンク間隔を縮小 */
    }

    .navigation ul li a {
        font-size: 1.3em; /* ナビゲーションフォントサイズを縮小 */
    }
}
