@charset "utf-8"; 

/* ヘッダーをウィンドウの2/3に */
/* header要素にposition: relativeを指定して、ページタイトルとキャプションを絶対配置する時に、
header要素を基準として位置を決められるようにしておく */
/* header要素の高さがウィンドウの上半分を埋めるように、height: 50vhと指定。
vhは、“ウィンドウの高さ”を表す単位で、常にウィンドウの高さを基準とした割合でもってサイズを指定できて便利 */

/* coverという値を指定：背景画像がheader要素を埋めるように配置される「画面めいっぱい表示」 */


.hero-header {
    width: 100vw;
    height: 66vh;

    background-image: url('../images/car_top.JPG');
    background-size: cover;
    background-position: center center;

    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-text {
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-text h1 {
    font-size: 5rem;
    margin: -10;
}


.hero-text p {
    font-size: 1.5rem;
    margin-top: o.5rem;
}

/* 内装紹介画像 */

.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* PC：3列 */
    gap: 24px;
    /* 画像同士の隙間 */
    padding: 30px;
    /* ギャラリー全体の内側余白 */
}

.image-block {
    width: 300px;
    /* 画像と同じ幅にする */
    margin: 0 auto;
    /* 親要素の中で中央寄せ　これがないと左寄りになる */
    text-align: center;
    /* テキストを中央揃え */
}


.image-block img {
    width: 100%;
    height: auto;
    /* 横幅に合わせて高さを自動調整 */
    /* 画像が小さいと変化なし */
    display: block;
    border-radius: 8px;
    /* 角丸にしたい時は追加 */
}

.image-block p {
    margin-top: 8px;
    /* 画像下の説明文との余白 */
}

/* それぞれのサイトに飛ぶリンク */

/* navの下に余白を追加してフッターと重ならないように */
nav ul li{
    margin-bottom: 15px;
    /* 必要に応じて数値を増減 */
    list-style: none;
    
}

.inline-nav {
    margin: 40px auto;
    text-align: center;
}

.inline-nav ul {
    display: flex;
    justify-content: center;
    gap: 32px;
    /* メニュー同士の余白を広めに */
    padding: 0;
    list-style: none;
}


.inline-nav ul li a {
    text-decoration: none;
    background-color: #eee;
    padding: 14px 28px;
    /* ボタン */
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    transition: background-color 0.3s ease;
}

.inline-nav ul li a:hover {
    background-color: #ccc;
}


/* パンくずリスト */
/* #topicpath*/

#topicpath ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

#topicpath ol li {
    font-size: 1.5rem;
    color: #444;
}


/* メインのセクション */
section {
    padding: 30px;
    background-color: rgb(214, 224, 225);
    margin: 100px;
    border-radius: 8px;
}


/* ここから
スマホ版      */

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 1.8em;
    }
}


/* モバイルサイズ対応で高さを固定しすぎない */
@media (max-width: 768px) {
    .hero-header {
        height: auto;
        aspect-ratio: 16/9;
        /* 横長比率を保つための設定 */
    }



.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* ✅ スマホは2列 */
    gap: 16px;
    padding: 16px;
}

.image-block img {
    width: 100%;
    height: auto;
}

}


.inline-nav ul {
        gap: 16px;
    }

.inline-nav ul li a {
        font-size: 1rem;
        padding: 10px 16px;
    }

