/* ============================================
   PC トップメニューヘッダー用CSS
   （top.css / page.css より必要箇所のみ抽出）
   ============================================ */
.header-container, .main, .sidebar, .footer {
    background-color: var(--cocoon-white-color);
}

.header {
    height: 100%;
    flex-shrink: 0;
}

.header-in {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---- ロゴ ---- */
.logo-image span, .logo-image a {
    display: inline-block;
    max-width: 100%;
}

.logo-image {
    padding: 10px 0;
    font-size: inherit;
}

.site-name-text-link {
    color: var(--cocoon-text-color);
    text-decoration: none;
    font-weight: 400;
    padding: 0 1em;
}

.site-name-text-link:hover {
    color: inherit;
}

.site-name-text {
    font-size: 28px;
}

.site-fixed-logo-image {
    display: none;
}

.fixed-header .site-fixed-logo-image {
    display: block;
}

.fixed-header:has(.site-fixed-logo-image) .site-logo-image {
    display: none;
}

.logo-header img {
    width: 350px;
    height: auto;
}

.fixed-header .logo-header img {
    width: auto;
}

.fixed-header .site-logo-image {
    width: 350px;
}

/* ---- ヘッダー トップメニューレイアウト ---- */
.header-container-in.hlt-top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}

.header-container-in.hlt-top-menu .wrap {
    width: auto;
}

.header-container-in.hlt-top-menu .header {
    background-image: none;
}

.header-container-in.hlt-top-menu .logo-text {
    padding: 0;
    display: flex;
    align-items: center;
    align-content: center;
}

.header-container-in.hlt-top-menu .logo-image {
    padding: 0;
    margin: 0;
}

.header-container-in.hlt-top-menu .site-name-text-link {
    margin: 0 16px;
    display: block;
}

.header-container-in.hlt-top-menu .site-name-text {
    font-size: 22px;
    white-space: nowrap;
}

.header-container-in.hlt-top-menu .tagline {
    display: none;
}

.header-container-in.hlt-top-menu .logo-header {
    max-height: 60px;
}

.header-container-in.hlt-top-menu .logo-header .site-name {
    margin: 0;
}

.header-container-in.hlt-top-menu .logo-header img {
    max-height: 60px;
    height: auto;
    vertical-align: middle;
}

.header-container-in.hlt-top-menu .navi {
    width: 100%;
}

.hlt-tm-right .navi-in > ul {
    justify-content: flex-end;
}

/* ---- ナビゲーション ---- */
.navi {
    background-color: var(--cocoon-white-color);
}

.navi .item-label, .navi .item-description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.navi-in > ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.navi-in > ul li {
    display: block;
    width: 176px;
    height: 60px;
    position: relative;
}

.navi-in > ul li:hover > ul {
    display: block;
}

.navi-in > ul .caption-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    width: 100%;
}

.navi-in > ul .caption-wrap > div {
    width: 100%;
}

.navi-in > ul .sub-menu {
    display: none;
    position: absolute;
    margin: 0;
    width: 240px;
    list-style: none;
    padding: 0;
    background-color: var(--cocoon-xxx-thin-color);
    z-index: 99;
    text-align: left;
}

.navi-in > ul .sub-menu li {
    width: auto;
}

.navi-in a {
    position: relative;
    color: var(--cocoon-text-color);
    text-decoration: none;
    display: flex;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
    width: 100%;
    height: 100%;
}

.navi-in a:hover {
    background-color: #f5f8fa;
    transition: all 0.3s ease-in-out;
    color: var(--cocoon-text-color);
}

.navi-in > .menu-mobile {
    display: none;
}

#header-container, #header-container .navi,
#navi .navi-in > .menu-header .sub-menu {
    background-color: #fff;
}

.header, .header .site-name-text,
#navi .navi-in a, #navi .navi-in a:hover {
    color: #262626;
}

#navi .navi-in a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#navi .navi-in > ul > li {
    width: auto;
}

#navi .navi-in > ul > li > a {
    padding: 0 1.4em;
}

.header-container-in.hlt-top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.header-container-in.hlt-top-menu .header {
    flex-shrink: 0;
    margin-right: auto;
}

.header-container-in.hlt-top-menu .navi {
    width: auto !important;
    flex-shrink: 0;
}

.hlt-tm-right .navi-in > ul {
    justify-content: flex-end;
    flex-wrap: nowrap;
}

#menu-main_menu li:last-child {
    margin-left: 20px;
}

.menu-pc li:hover {
    background-color: #999 !important;
}

.menu-pc li:last-child a {
    background-color: #32586d;
    color: #fff !important;
}

.menu-pc li:last-child a:hover {
    background-color: #f00 !important;
}

.header-container.fixed-header {
    z-index: 3;
}

.fixed-header .header .header-in {
    min-height: auto;
}

.header_sp {
    display: none !important;
}

@media screen and (max-width: 834px) {
    .navi-in > .menu-header {
        display: none;
    }
    .header div.header-in {
        min-height: auto;
    }
    #header .site-name-text {
        font-size: 22px;
    }
    .header-container-in.hlt-top-menu .site-name-text {
        white-space: normal;
    }
    .header-container-in.hlt-top-menu .logo-header {
        max-height: none;
    }
}

@media screen and (max-width: 480px) {
    #header .site-name-text {
        font-size: 18px;
    }
}

@media screen and (max-width: 1024px) {

    #header-container { display: none !important; }
    .header__gnav__bottom { display: none !important; }

    /* ヘッダー枠：fixed・高さ固定 */
    header.header_sp {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 60px !important;
        box-sizing: border-box !important;
        background: #e9fff8 !important;
        border-bottom: 2px solid #fff !important;
        z-index: 1000 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* ロゴ：左端に絶対配置 */
    header.header_sp .logo_sp {
        position: absolute !important;
        left: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        max-width: calc(100% - 105px) !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    header.header_sp .logo_sp a {
        display: block !important;
        line-height: 0 !important;
    }

    /* ロゴ画像：img-fluid 上書き */
    header.header_sp .logo_sp img,
    header.header_sp .logo_sp a img.img-fluid {
        display: block !important;
        height: 36px !important;
        width: auto !important;
        max-width: 100% !important;
        max-height: 36px !important;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
    }

    /* ボタン：右端に絶対配置 */
    header.header_sp .ent_button {
        position: absolute !important;
        right: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ボタン本体：Bootstrap上書き */
    header.header_sp .ent_button a,
    header.header_sp .ent_button a.btn,
    header.header_sp .ent_button a.btn-sm,
    header.header_sp .ent_button a.btn-danger {
        display: block !important;
        width: 72px !important;
        height: auto !important;
        padding: 5px 0 !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
        text-align: center !important;
        white-space: nowrap !important;
        background-color: #32586d !important;
        color: #fff !important;
        border: 1px solid #fbb03b !important;
        border-radius: 5px !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        float: none !important;
        margin: 0 !important;
        transform: none !important;
    }
}

@media screen and (max-width: 1024px) {
    #container {
        padding: 0 !important;
        overflow-x: hidden;
    }
    #mv {
        width: 100vw !important;
        margin-left: calc((100% - 100vw) / 2) !important;
    }
    .mv {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

@media screen and (max-width: 480px) {
    .mv__composition {
        justify-content: center;
        padding-bottom: 5px;
    }
}

/* ============================================
   フッター（ロゴ・ナビリンク・レスポンシブ対応）
   page.css / page2.css から抽出
   ============================================ */
.footer-bottom {
    margin-top: 24px;
    padding: 8px;
    position: relative;
    font-size: 14px;
}

.footer-bottom.fdt-up-and-down .footer-bottom-logo {
    display: none;
}

.footer-bottom.fdt-up-and-down .footer-bottom-content {
    float: none;
    display: block;
    text-align: center;
}

.footer-bottom.fdt-up-and-down .footer-bottom-content .navi-footer-in > ul {
    justify-content: center;
}

.footer-bottom.fnm-text-width .menu-footer li {
    width: auto;
}

.footer-bottom.fnm-text-width .menu-footer li a {
    padding: 0 10px;
}

.footer-bottom-logo {
    float: left;
    bottom: 0;
    position: absolute;
}

.footer-bottom-logo .logo-text {
    padding: 0;
}

.footer-bottom-logo .site-name-text {
    font-size: 18px;
}

.footer-bottom-logo .logo-image {
    padding: 0;
}

.footer-bottom-logo img {
    height: 50px;
    width: auto;
}

.footer-bottom-content {
    float: right;
    text-align: right;
}

.navi-footer-in > .menu-footer {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    text-align: center;
}

.navi-footer-in > .menu-footer li {
    width: 120px;
    border-left: 1px solid #ddd;
}

.navi-footer-in > .menu-footer li:last-child {
    border-right: 1px solid #ddd;
}

.navi-footer-in a {
    color: #333;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: all 0.3s ease-in-out;
}

.navi-footer-in a:hover {
    background-color: #f5f8fa;
    color: #333;
}

@media screen and (max-width: 1023px) {
    .navi-footer {
        float: none;
        margin: 0;
        width: 100%;
    }
    .copyright {
        width: 100%;
    }
    .navi-footer-in > ul {
        justify-content: center;
        padding: 1em;
    }
    .footer-bottom-logo,
    .footer-bottom-content {
        float: none;
    }
    .footer-bottom-logo {
        line-height: 1;
        position: relative;
        bottom: auto;
    }
    .footer-bottom-content {
        text-align: center;
    }
    .navi-footer-in > .menu-footer {
        justify-content: center;
    }
}

@media screen and (max-width: 834px) {
    .navi-footer-in > .menu-footer li.menu-item {
        width: 32%;
        border: 0;
        margin: 2px;
        display: flex;
        flex: 1 1 auto;
        text-align: center;
    }
    .navi-footer-in > .menu-footer li.menu-item a {
        padding: 0;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .navi-footer-in > .menu-footer li.menu-item {
        width: 46%;
    }
}

