/* ==================================================
   header.css
   ================================================== */
/* ========================================
   ヘッダー (header.php) - (元のまま)
   ======================================== */
header#masthead {
    padding-top: 20px; /* 上パディング */
    padding-bottom: 0;
    background-color: #f8f8f8;
     /* max-width, margin は #page などで設定済み */
     /* padding-left/right は .site-header などで設定済み */
}

/* タイトルとコピーを囲むコンテナ */
.header-main-content {
    position: relative; /* コピーを絶対配置する基準 */
    padding: 0 4%;      /* 左右にパディング (維持) */
    margin-bottom: 20px; /* 下のhrとの間隔 */
    min-height: 70px;   /* タイトルの高さに応じて最低限の高さを確保（コピーが収まるように調整）*/
     /* max-width は #page などで設定済み */
     /* margin-left/right は #page などで設定済み */
}

/* タイトル (.site-branding) */
header .site-branding {
    text-align: center; /* テキストを中央揃え */
    padding: 0 150px; /* 左右にコピー分のスペースを確保（値は調整） */
    box-sizing: border-box; /* paddingを含めて幅を計算 */
}

/* タイトル (H1 or P) */
header .site-branding .site-title {
    font-size: clamp(42px, 7vw, 80px); /* サイズ調整 */
    margin: 0;
    color: #222;
    font-weight: normal;
    font-family: Georgia, 'Times New Roman', Times, serif;
    line-height: 1.2;
    display: inline-block;
}
/* pタグの場合も考慮（オプション） */
header .site-branding p.site-title {
     font-size: clamp(36px, 6vw, 72px);
     margin: 0;
     color: #222;
     font-weight: normal;
     font-family: Georgia, 'Times New Roman', Times, serif;
     line-height: 1.2;
     display: inline-block;
 }


/* タイトルリンク */
header .site-branding .site-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease; /* ホバーアニメーション */
}

header .site-branding .site-title a:hover {
    color: #0073aa; /* ホバー時の色 */
    text-decoration: none;
}

/* コピー (.site-catchcopy) 
header .site-catchcopy {
    position: absolute;
    right: 4%;          
    top: 90px;          
    text-align: right;
    font-size: 0.75em;
    line-height: 1.5;
    color: #777;
    font-family: sans-serif;
    max-width: 300px;
    padding-top: 5px;    
    padding-right: 10px; 
}
*/
header .site-catchcopy p {
    margin-bottom: 0;
}

/* hr のスタイル */
header hr {
    border: none;
    border-top: 3px solid #000;
    margin: 0 4% 20px 4%; /* 左右マージン維持 */
    /* max-width, margin-left/right は設定しない (親要素で制御) */
}
/* --- パンくずリストのスタイリング例 --- */

.breadcrumb {
    font-size: 14px; /* 文字サイズ */
    padding: 15px 0; /* 上下の余白 */
    margin-bottom: 20px; /* 下のコンテンツとの余白 */
    background-color: #f9f9f9; /* 背景色（任意） */
    border-bottom: 1px solid #eee; /* 下線（任意） */
}

/* パンくずリストの各項目 */
.breadcrumb span {
    display: inline-block;
}

/* リンクを持つ項目 */
.breadcrumb a {
    color: #0073aa; /* リンクの色 */
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline; /* ホバー時に下線を表示 */
}

/* 区切り文字（ > ）のスタイル */
.breadcrumb .separator {
    margin: 0 8px; /* 左右の余白 */
    color: #666;
}

/* 現在のページ（リンクがない項目） */
.breadcrumb .current-item {
    color: #333; /* 文字色を濃くする */
    font-weight: bold;
}
/* ▼▼▼ ここから下の部分はモバイル用のスタイル (変更なし) ▼▼▼ */
/* (前回の最終的なモバイル用CSSをここに記述。省略します) */
@media (max-width: 768px) {
    .site-header {
        padding-bottom: 15px;
    }
    .header-main-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 30px;
        width: 100%;
        max-width: none;
        margin: 0 auto;
        height: 180px;
    }

    .pc-tonai-logo {
        display: none;
    }

    .header-content-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        width: 100%;
    }

    .copy-and-search-container {
        display: contents;
    }
    .header .site-branding {
        padding: 0;
    }
    header .site-branding {
        padding: 0;
    }
    .site-branding-wrapper {
        order: 1;
        margin-bottom: 8px;
        width: 100%;
        position: relative; /* position指定を追加 */
        z-index: 10; /* 高いz-indexを設定して前面に表示 */
    }
    h1.site-title,
    p.site-title {
        font-size: 2.0em;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tonai-and-catchcopy-group {
        order: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 5px;
        width: 100%;
    }

    .mobile-tonai-logo {
        display: block;
        margin-right: 5px;
    }
    .mobile-tonai-logo .tonai-direct-link {
        font-size: 18px;
        color: #333;
        text-decoration: none;
        font-weight: bold;
        margin-top:60px
    }

    .site-catchcopy {
        text-align: left;
        position: static;
        top: auto;
        margin-left: 5px;
    }
    .copy-line1 {
        font-size: 0.8em;
        line-height: 1.4;
        display: inline;
        position: static;
    }

    .search-form {
        order: 3;
        width: 90%;
        max-width: 100%;
        margin-top: 0;
        position: static;
        transform: none;
        display: flex;
    }
    .search-form label {
        display: flex;
        width: 100%;
        width: 80%;
    }
    .search-field {
        padding: 9px 10px;
        font-size: 0.85em;
        margin-right: -1px;
        flex-grow: 1;
        width: auto;
    }
    .search-submit {
        padding: 9px 12px;
        font-size: 0.85em;
        width: 20%;
    }

    .header-divider {
        margin: 20px auto 0;
        width: calc(100% - 30px);
        max-width: 100%;
    }
}
/* ▲▲▲ ここまでモバイル用のスタイル (変更なし) ▲▲▲ */
/* ==================================================
   PC Header Adjustments (769px以上)
   ================================================== */
/* ==================================================
   PC Header Adjustments (769px以上)
   ================================================== */
@media (min-width: 769px) {
    .site-header {
        padding-top: 0;
        padding-bottom: 10px;
        background-color: #f8f8f8;
        box-sizing: border-box;
        width: 100%;
    }

    .header-main-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 30px;
        width: 100%;
        max-width: none;
        margin: 0 auto;
        height: 110px;
        z-index: 9;
    }

    /* 左端の「Tonai」ロゴ */
    .pc-tonai-logo {
        display: block;
        position: static;
        transform: none;
        flex-shrink: 0;
        margin-top: 60px
    }
    .pc-tonai-logo .tonai-direct-link {
        font-size: 20px;
        color: #333;
        text-decoration: none;
        font-weight: bold;
    }

    /* 中央のサイトロゴ「Tonai Travel Club」 */
    .header-content-right {
        display: block;
        text-align: center;
        position: static;
        transform: none;
        flex-grow: 1;
        padding: 0 15px; /* 左右要素との間に少し余白を確保 */
        z-index: 8;
    }
    .site-branding-wrapper {
        margin-bottom: 0;

        display: inline-block;
    }
    h1.site-title, p.site-title {
        font-size: 2.6em;
        line-height: 1.0;
        margin: 0;
        font-family: 'Times New Roman', Times, serif;
        font-weight: normal;
        white-space: nowrap;
    }
    h1.site-title a, p.site-title a {
        color: #222;
        text-decoration: none;
    }

    /* 右端の「コピー + 検索フォーム」のグループ */
    .copy-and-search-container {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        position: static;
        transform: none;
        flex-shrink: 0;
        width: 300px; /* グループ全体の幅を固定 */
    }

    /* キャッチコピー (右側グループの一部) */
    .tonai-and-catchcopy-group {
        margin-bottom: 4px;
        width: 100%; /* 親の幅いっぱいに */
        text-align: right;
        margin-top: -40px;
    }
    .mobile-tonai-logo { /* PCではモバイル用Tonaiロゴ非表示 */
        display: none;
    }
    .site-catchcopy {
        text-align: right;
        margin-left: 0;
    }
    .copy-line1 {
        font-size: 0.7em;
        line-height: 1.3;
        color: #666;
        margin-right: 24px;
        margin-top: -80px;
        position: static;
        top: auto;
        display: inline-block;
    }

    /* 検索フォーム (右側グループの一部、コピーの下) */
    .search-form {
    display: flex;
    position: static;
    transform: none;
    right: auto;
    width: 300px; /* 検索フォーム全体を300pxに固定 */
    margin-top: 5px;
    margin-left: auto; /* 右寄せにするために追加 */
    }
    .search-form label {
        display: flex;
        flex-grow: 1;
    }
    .search-field {
        font-size: 0.7em;
        padding: 0.18em 0.5em;
        border: 1px solid #ccc;
        margin-right: -1px;
        min-width: 100px;
        flex-grow: 1;
        border-radius: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        background-color: #fff;
        line-height: normal;
        height: auto;
    }
    .search-submit {
        font-size: 0.7em;
        padding: 0.18em 0.6em;
        background-color: #e0e0e0;
        border: 1px solid #ccc;
        cursor: pointer;
        color: #555;
        white-space: nowrap;
        border-radius: 0;
        line-height: normal;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .search-submit:hover {
        background-color: #d0d0d0;
    }

    .header-divider {
        border: none;
        border-top: 1px solid #ccc;
        margin: 10px auto 0;
        width: calc(100% - 60px); /* header-main-rowのpaddingを考慮 */
        max-width: none;
    }
}