/* ===== リセット・基本スタイル ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background-color: #f8f8f8;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #002060;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* ===== 共通ラッパー ===== */
/* header.js / footer.js が .container を出力するため両方定義 */
.container,
.tmpl_inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

/* ===== セクション共通構造 ===== */
.sec_tmpl_block {
    padding: 80px 0;
}

.sec_tmpl_bg {
    background-color: #f8f8f8;
}

.sec_tmpl_blue_light {
    background-color: #e6ebf5;
}

.sec_tmpl_white {
    background-color: #fff;
}

.sec_tmpl_header {
    margin-bottom: 50px;
}

/* ===== セクションタイトル ===== */
.tmpl_section_title {
    font-size: 28px;
    font-weight: 500;
    color: #555;
    margin-bottom: 50px;
    position: relative;
    font-family: 'Noto Serif JP', serif;
}

.tmpl_section_title:before {
    content: "◇";
    color: #777;
    margin-right: 15px;
    font-size: 16px;
    position: relative;
    top: -5px;
}

/* ===== ボタン ===== */
.tmpl_btn_primary {
    display: inline-block;
    background: #002060;
    color: white;
    padding: 15px 30px;
    border-radius: 0;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
}

.tmpl_btn_primary:hover {
    background: #001040;
    color: white;
}

/* ===== ヘッダー ===== */
/* ※ header.js が出力するクラスはそのまま */
header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    width: 60px;
    height: auto;
    margin-right: 15px;
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    background-color: #e0e0e0;
    margin-right: 15px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-weight: 500;
}

.logo-text {
    font-size: 22px;
    font-weight: 500;
    color: #333;
    font-family: 'Noto Serif JP', serif;
    white-space: nowrap;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    font-weight: 400;
    padding: 8px 0;
    position: relative;
    font-size: 15px;
    color: #555;
    white-space: nowrap;
}

nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #002060;
    transition: width 0.3s ease;
}

nav a:hover:after,
nav a.active:after {
    width: 100%;
}

nav a.active {
    color: #002060;
    font-weight: 500;
}

/* ===== パンくずナビ ===== */
.tmpl_breadcrumb {
    background-color: #fff;
    padding: 120px 0 20px;
    border-bottom: 1px solid #e0e0e0;
}

.tmpl_breadcrumb_list {
    display: flex;
    align-items: center;
    list-style: none;
    font-size: 14px;
    color: #666;
}

.tmpl_breadcrumb_list li {
    display: flex;
    align-items: center;
}

.tmpl_breadcrumb_list li:not(:last-child):after {
    content: "›";
    margin: 0 10px;
    color: #999;
}

.tmpl_breadcrumb_list a {
    color: #666;
}

.tmpl_breadcrumb_list a:hover {
    color: #002060;
}

/* ===== ページヘッダー ===== */
.tmpl_page_header {
    background-color: #fff;
    padding: 60px 0;
    text-align: center;
}

.tmpl_page_title {
    font-size: 36px;
    font-weight: 500;
    color: #333;
    font-family: 'Noto Serif JP', serif;
    margin-bottom: 20px;
}

.tmpl_page_subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== フッター ===== */
/* ※ footer.js が出力するクラスはそのまま */
footer {
    background-color: #002060;
    color: white;
    padding: 70px 0 35px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 70px;
    margin-bottom: 50px;
}

.footer-info {
    flex: 1.5;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    font-family: 'Noto Serif JP', serif;
}

.footer-logo-image {
    width: 50px;
    height: auto;
    margin-right: 12px;
}

.footer-info p {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.9;
}

.footer-nav {
    flex: 1;
}

.footer-nav h3 {
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    font-family: 'Noto Serif JP', serif;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: white;
    opacity: 0.8;
    font-size: 15px;
}

.footer-nav a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
}

/* ===== 戻るボタン共通 ===== */
.tmpl_back_button {
    text-align: center;
    margin: 40px 0;
}

/* ===== ユーティリティ（インラインstyle置き換え） ===== */
.tmpl_text_center {
    text-align: center;
}

.tmpl_mt_25 {
    margin-top: 25px;
}

.tmpl_mt_30 {
    margin-top: 30px;
}

.tmpl_mt_35 {
    margin-top: 35px;
}

.tmpl_mt_40 {
    margin-top: 40px;
}

/* ===== レスポンシブ ===== */
@media screen and (max-width: 1200px) {
    .container,
    .tmpl_inner {
        padding: 0 50px;
    }

    nav ul {
        gap: 20px;
    }

    nav a {
        font-size: 14px;
    }
}

@media screen and (max-width: 992px) {
    .container,
    .tmpl_inner {
        padding: 0 40px;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 35px;
    }
}

@media screen and (max-width: 768px) {
    .container,
    .tmpl_inner {
        padding: 0 20px;
    }

    .logo {
        margin-bottom: 10px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .sec_tmpl_block {
        padding: 50px 0;
    }

    .tmpl_section_title {
        font-size: 24px;
        margin-bottom: 35px;
    }

    .tmpl_page_title {
        font-size: 28px;
    }

    .tmpl_page_subtitle {
        font-size: 16px;
    }
}

/* ===== スマホ: はみ出し防止（ピンチズーム復帰を妨げない） ===== */
@media screen and (max-width: 768px) {
    body {
        max-width: 100vw;
        width: 100%;
    }

    main,
    .tmpl_inner,
    .wp-block-group.tmpl_inner,
    .container {
        max-width: 100%;
        overflow-x: clip;
        word-break: break-word;
        box-sizing: border-box;
    }

    /* WordPress is-layout 系の幅制限 */
    .is-layout-constrained > *,
    .is-layout-flow > * {
        max-width: 100% !important;
    }
}
