/* ---------------------------------------------------------
   基本リセット
--------------------------------------------------------- */
html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.7;
    padding-top: 120px;   /* 固定ヘッダー分 */
    padding-bottom: 60px; /* 固定フッター分 */
}

/* ---------------------------------------------------------
   上部固定ヘッダー（functions.php と同期）
--------------------------------------------------------- */
#jt-fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999999;
    background: #ffffff;
    border-bottom: 1px solid #cccccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px 0;
}

/* 上部ボタン（中央寄せ＋はみ出し防止） */
.jt-header-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.jt-header-menu a {
    font-size: 15px;
    font-weight: bold;
    color: #003366;
    text-decoration: none;
    white-space: nowrap;
}

/* ---------------------------------------------------------
   検索窓（中央寄せ＋輪郭を整える）
--------------------------------------------------------- */
.jt-search-box {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.jt-search-box form {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #cccccc;     /* ★ 輪郭（枠線） */
    border-radius: 8px;            /* ★ 行政的で静かな丸み */
    background: #f9f9f9;           /* ★ 薄い背景で検索窓を浮かせる */
}

/* 入力欄（短く固定＋輪郭） */
.jt-search-box input[type="text"] {
    width: 140px;
    padding: 6px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #bbb;
    background: #ffffff;
}

/* ボタン（行政的な薄グレー） */
.jt-search-btn {
    width: 80px;
    padding: 6px 10px;
    font-size: 14px;
    background: #e6e6e6;
    border: 1px solid #bbb;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

/* ---------------------------------------------------------
   下部固定フッター
--------------------------------------------------------- */
#jt-fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 999999;
    background: #ffffff;
    border-top: 1px solid #cccccc;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#jt-fixed-footer a {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #003366;
    text-decoration: none;
    line-height: 50px;
    border-right: 1px solid #eeeeee;
}

#jt-fixed-footer a:last-child {
    border-right: none;
}

/* ---------------------------------------------------------
   テーマ側のサイトタイトル（JapanTowns）を完全非表示
--------------------------------------------------------- */
.site-title,
.site-title a,
.site-branding,
.site-logo,
.site-header {
    display: none !important;
}

/* ---------------------------------------------------------
   スマホ最適化
--------------------------------------------------------- */
@media (max-width: 768px) {

    .jt-header-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .jt-search-box input[type="text"] {
        width: 120px;
    }

    .jt-search-btn {
        width: 70px;
    }

    .jt-search-box form {
        gap: 6px;
        padding: 6px 8px;
    }
}
