/*
Theme Name: Lino Child
Template: lino
Description: ハイブリッド型ヘッダー（動画→H1→H2→メニュー→画像）
Author: あなたの名前
Version: 3.4
*/

/* =========================
   ① PC：画面表示領域を横1050pxに制限
========================= */
@media (min-width: 769px) {
    #page {
        max-width: 1050px;
        margin-left: auto;
        margin-right: auto;
    }

    body {
        overflow-x: hidden;
    }
}

/* =========================
   ② タブレット・スマホ：左右マージンあり
========================= */
@media (max-width: 768px) {
    #page {
        max-width: none;
        margin-left: 16px;
        margin-right: 16px;
    }
}

/* =========================
   ③ ヘッダー動画（切らずに縮小）
========================= */
.header-video {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.header-video video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* 切らない */
}

/* =========================
   ④ H1 / H2（浮雲・説明）
========================= */
.site-header-wrap {
    text-align: center;
    margin: 0 20px 30px;
}

/* H1 */
.site-title a {
    color: inherit !important;
    text-decoration: none !important;
    font-size: 4.5rem !important;
    font-weight: normal !important;
    margin-bottom: 20px;
    display: inline-block;
}

/* H2 */
.site-description {
    font-size: 1.5rem !important;
    font-weight: normal !important;
    margin-top: 0.5rem !important;
}

/* =========================
   ⑤ メニュー
========================= */
.main-navigation {
    text-align: center;
    margin-top: 10px;
}

/* =========================
   ⑥ ヘッダー画像
========================= */
.header-image {
    width: 100%;
    margin-top: 20px;
}
.header-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   ⑦ コンテンツ余白
========================= */
body #content,
body .site-content,
body .page-content {
    margin: 40px 0;
    padding-top: 16px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
}

/* =========================
   ⑧ スマホ調整（全幅＋行間詰め）
========================= */
@media (max-width: 768px) {

    #page {
        max-width: none;
        margin-left: 16px;
        margin-right: 16px;
    }

    .site-header-wrap {
        margin: 0 0 20px;
    }

    .site-title a {
        font-size: 4rem !important;
        margin-bottom: 0 !important;
        line-height: 1.1;
    }

    .site-description {
        font-size: 1rem !important;
        margin-top: 0 !important;
        line-height: 1.2;
    }

    body #content,
    body .site-content,
    body .page-content {
        margin: 30px 10px;
        padding-top: 16px !important;
    }
}

/* =========================
   ⑨ 念のため全体 h1/h2 スマホ行間も詰める
========================= */
@media (max-width: 768px) {
    h1, h2 {
        margin-top: 0;
        margin-bottom: 0;
    }
}