/* ===== ヘッダー ===== */
.site-header {
    background-color: #a2d7dd;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 40px;
}

/* ロゴとスローガンの横並び設定 */
.header-branding {
    display: flex;
    align-items: center;
    gap: 120px;
    margin-bottom: 20px;
    margin-left: 20px;
}

.branding-logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* ===== キャッチコピー ===== */
.branding-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    margin-bottom: -5px;
}

.motto-de {
    color: #ffffff;
    margin: 0;
    padding: 0;
    /* font-sizeを1.2remから0.95remへ縮小 */
    font-size: 1.02rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.motto-ja {
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: #ffffff !important;
    /* 明朝体の指定をより強力に */
    font-family: "Sawarabi Mincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif !important;
    font-size: 1.10rem;
    line-height: 1.5;
    font-weight: 400;
}

/* ===== メニュー表示 ===== */
/* ▼ ドロップダウンメニューの基本非表示設定 */
.dropdown .menu {
    position: absolute;
    background-color: #bce2e8;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 150px;
    visibility: hidden;
    transform: translateY(-10px);
    transition: transform 0.25s ease;
    z-index: 1000;
}

.dropdown:hover .menu {
    visibility: visible;
    transform: translateY(0);
}

.dropdown p {
    display: block;
    padding: 8px 15px;
    color: #0f2350;
    text-decoration: none;
    text-align: left !important;
    font-weight: bold;
    margin-top: 8px;
    margin-bottom: 8px;
    margin-left: 1px;
    margin-right: 1px;
    padding: 0;
}

/* ▼ メニューのリンク */
.menu li a {
    display: block;
    padding: 8px 15px;
    color: #0f2350;
    text-decoration: none;
    text-align: left !important;
}

.menu li a:hover {
    background: #ebf6f7;
}

.menu li:not(:last-child) {
    border-bottom: 1px solid #6aa7b1;
}

.global-nav>ul>li:first-child {
    padding-left: 0;
}

.global-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.global-nav>ul {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
}

.global-nav>ul>li {
    position: relative;
    padding: 0 20px;
}

.global-nav>ul>li:not(:last-child) {
    border-right: 1px solid #6aa7b1;
}

.global-nav a {
    color: #0f2350;
    text-decoration: none;
    font-weight: 600;
    display: block;
    padding: 10px 0;
}

/* ホバー時 */
.global-nav>ul>li>a:hover {
    background: #ebf6f7;
}

/* ▼ ドロップダウンメニューの位置調整 */
.dropdown {
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
}

/* --- スマホ向け（Media Query） --- */
@media (max-width: 768px) {
    .header-inner {
        padding: 15px 20px;
        align-items: flex-start;
        /* 基本は左寄せ */
    }

    .header-branding {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-left: 0;
        margin-bottom: 25px;
        width: 100%;
        /* 横幅いっぱいにする */
    }

    /* 1. ロゴ：左に寄せる */
    .branding-logo {
        align-self: flex-start;
    }

    .branding-logo img {
        height: 40px;
    }

    /* 2. スローガンエリア：中央に寄せる */
    .branding-text {
        align-self: center;
        /* 自分自身を中央に配置 */
        text-align: center;
        /* テキスト内の行を中央揃え */
        margin-bottom: 0;
    }

    .motto-de {
        font-size: 0.9rem;
        white-space: normal;
        margin-bottom: 5px;
    }

    .motto-ja {
        font-size: 0.95rem;
        justify-content: center;
        /* 日本語の均等割付を中央寄せに変更 */
        gap: 2px;
        flex-wrap: wrap;
    }

    /* ナビゲーションメニュー */
    .global-nav>ul {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .global-nav>ul>li {
        border-right: none !important;
        padding: 5px 10px;
    }
    .menu-toggle {
        display: block;
        margin: 0px;
        color: #0f2350
    }

    .global-nav {
        display: none;
        width: 100%;
    }

    .global-nav.active {
        display: block;
    }

    .global-nav>ul {
        flex-direction: column;
        align-items: stretch;
    }

    .global-nav>ul>li {
        border-right: none;
        border-bottom: 1px solid #6aa7b1;
    }

    .dropdown:hover .menu {
        visibility: visible;
    }

    .dropdown .menu {
        position: static;
        visibility: visible;
        transform: none;
    }

    .sp-hide {
        display: none;
    }
}

@media (min-width: 769px) {
    .dropdown:hover .menu {
        visibility: visible;
        transform: translateY(0);
    }
}