/* 20250316 */
/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    flex-direction: column;
    min-height: 100vh;
}

/* リストのデフォルトスタイルを削除 */
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* ---------------------------------------------- */
/* コンテナスタイル                                 */
/* ---------------------------------------------- */
.container,
.header-container,
.footer-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.main-content {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 0;
}

/* ---------------------------------------------- */
/* ヘッダースタイル                                 */
/* ---------------------------------------------- */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.69);
    position: relative;
    z-index: 100;
    /* ヘッダーは中間の値に */
}

.header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.header-line {
    height: 1px;
}

/* ロゴスタイル */
.logo-container {
    flex: 0 0 auto;
    z-index: 101;
}

.logo {
    width: 199px;
    height: 50px;
    object-fit: cover;
}

.logo-container a {
    display: inline-block;
    text-decoration: none;
}

.logo-container a:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* ---------------------------------------------- */
/* ナビゲーションの共通スタイル                      */
/* ---------------------------------------------- */
.main-nav {
    display: flex;
    gap: 1px;
    align-items: center;
    position: relative;
    width: 100%;
    justify-content: center;
    height: auto;
    /* 高さを自動に */
    min-height: 40px;
    /* 最小の高さを設定 */
    padding: 0;
    /* パディングをリセット */
    box-sizing: border-box;
}

/* 日本語・英語メニューの共通スタイル */
.ja-menu {
    display: block;
    font-weight: normal;
    margin-bottom: 2px;
}

.en-menu {
    display: block;
    font-size: 13px;
    letter-spacing: normal;
}

/* ---------------------------------------------- */
/* 標準ナビゲーションスタイル                        */
/* ---------------------------------------------- */
.nav-button {
    background-color: #0f2350;
    border: none;
    border-radius: 0;
    color: #FFFFFF;
    padding: 0.6rem 1.4rem;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-button:hover {
    color: #000000;
    background-color: #bce2e8;
}

.nav-button::after {
    content: '+';
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.nav-button[aria-expanded="true"]::after {
    transform: rotate(45deg);
}

/* 標準ドロップダウンメニュースタイル */
.dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 0px !important;
}

.dropdown-toggle::after {
    content: '';
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transition: opacity 0.3s ease;
    /* 透明度の変化をアニメーション化 */
}

/* ホバー時に矢印を表示 */
.dropdown:hover .dropdown-toggle::after {
    opacity: 1;
    /* ホバー時に完全に表示 */
}

/* トップページ用ドロップダウン矢印を初期状態で非表示 */
#menubar-top li.dropdown .dropdown-toggle::after {
    content: '';
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    position: static;
    transition: opacity 0.3s ease;
    /* 透明度の変化をアニメーション化 */
}

/* ホバー時に矢印を表示 */
#menubar-top li.dropdown:hover .dropdown-toggle::after {
    opacity: 1;
    /* ホバー時に完全に表示 */
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(15, 35, 80, 0.7);
    min-width: 128px;
    width: 128px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 10000; /* Z-indexを増加 */
    padding: 8px 0;
    margin: 0;
    border-radius: 0;
    transition: all 0.3s ease;
    background-color: rgba(15, 35, 80, 0.7);
    /* 30%透明の青色 (#0f2350) */
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    width: 128px;
    padding: 8px 12px;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: all 0.2s ease;
    background-color: transparent;
    /* 透明に設定して親要素の背景色を継承 */
    border: none;
}

.dropdown-menu li a:hover {
    background-color: rgba(188, 226, 232, 0.8);
    color: #0f2350;
}

/* すべてのドロップダウンメニューのz-indexを大きく設定 */
.dropdown-menu,
#menubar-top li.dropdown .dropdown-menu {
    z-index: 10000; /* 非常に高い値に変更 */
    position: absolute;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* シャドウを強調して視認性向上 */
}

/* サブメニュー項目も同様に最前面に */
.dropdown-menu li,
.dropdown-menu li a,
#menubar-top li.dropdown .dropdown-menu li,
#menubar-top li.dropdown .dropdown-menu li a {
    z-index: 10000; /* z-indexを統一 */
    position: relative;
    /* z-indexを有効にするため */
}

/* ドロップダウンメニューの表示スタイル強化 */
#menubar-top li.dropdown .dropdown-menu {
    background-color: rgba(15, 35, 80, 0.95);
    /* 背景色を少し濃くして視認性向上 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* 微かな境界線を追加 */
}


/* ドロップダウンメニューを確実に表示するためのポインターイベント処理 */
.dropdown:hover .dropdown-menu,
#menubar-top li.dropdown:hover .dropdown-menu {
    display: block !important;
    /* 強制的に表示 */
    pointer-events: auto;
    /* ポインターイベントを有効化 */
}

/* ---------------------------------------------- */
/* トップページメニューのアニメーション               */
/* ---------------------------------------------- */
@keyframes menu1 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes dropdown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------------------------------------- */
/* トップページ専用メニュースタイル                  */
/* ---------------------------------------------- */
#menubar-top {
    display: flex;
    justify-content: right;
    width: 100%;
    position: relative;
    align-items: center;
    height: 40px;
}

#menubar-top li {
    position: relative;
    margin: 0 0.5px;
    animation-name: menu1;
    animation-duration: 3s;
    animation-fill-mode: both;
}

#menubar-top li#menu2 {
    animation-delay: 0.2s;
}

#menubar-top li#menu3 {
    animation-delay: 0.4s;
}

#menubar-top li#menu4 {
    animation-delay: 0.6s;
}

#menubar-top li#menu5 {
    animation-delay: 0.8s;
}


/* メインメニュー項目 */
#menubar-top li a {
    width: 128px;
    height: auto;
    background-color: #0f2350;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    line-height: 1.4;
    border: none;
    border-radius: 0;
    font-size: 14px;
    height: 50px;
    /* 固定の高さを設定 */
    box-sizing: border-box;
    padding: 6px 12px;
    /* パディングを調整 */
    overflow: visible;
    /* はみ出し部分を表示 */
}

#menubar-top li a:hover {
    background-color: rgba(188, 226, 232, 0.8);
    color: #0f2350;
}

/* トップページ用ドロップダウン */
#menubar-top li.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    background-color: rgba(15, 35, 80, 0.7);
    /* 30%透明の青色 (#0f2350) */
    min-width: 128px;
    width: 128px;
    margin: 0;
    border-radius: 0;
    animation: dropdown 0.3s ease-out;
    top: 100%; /* 親メニューの下に確実に表示 */
    margin-top: 0;
    /* 余分な余白をなくす */
    padding: 5px 0;
    /* パディングを調整 */
    z-index: 10000; /* Z-indexを増加 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* シャドウを強調 */
}

#menubar-top li.dropdown:hover .dropdown-menu {
    display: block;
}

#menubar-top li.dropdown .dropdown-menu li {
    position: static;
    animation: none;
    margin: 0;
    height: auto;
    /* 高さを自動に設定 */
}

#menubar-top li.dropdown .dropdown-menu li a {
    font-size: 14px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: transparent;
    /* 透明に設定して親要素の背景色を継承 */
    min-height: 32px;
    /* 最小高さを設定 */
    max-height: none;
    /* 最大高さ制限を解除 */
    width: 100%;
    /* 幅を親要素に合わせる */
    padding: 6px 12px;
    /* パディングを調整 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes dropdown {
    0% {
        opacity: 0;
        transform: translateY(-5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#menubar-top li.dropdown .dropdown-menu li a:hover {
    background-color: rgba(188, 226, 232, 0.8);
    /* ホバー時の背景色 */
    color: #0f2350;
}

/* 他のメニュー項目のz-indexを調整（ドロップダウンメニューより低く） */
#menubar-top li#menu1,
#menubar-top li#menu3,
#menubar-top li#menu4,
#menubar-top li#menu5 {
    position: relative;
    z-index: 9000; /* ドロップダウンメニューより低い値 */
}

/* これらのメニュー項目内のリンクにも同じz-indexを適用 */
#menubar-top li#menu1 a,
#menubar-top li#menu3 a,
#menubar-top li#menu4 a,
#menubar-top li#menu5 a {
    position: relative;
    z-index: 9000;
}

/* メニュー2（企業情報）のz-indexを高く設定 */
#menubar-top li#menu2 {
    position: relative;
    z-index: 10000; /* ドロップダウンと同じ高さ */
}

#menubar-top li#menu2 a {
    position: relative;
    z-index: 10000;
}

/* ---------------------------------------------- */
/* セクションスタイル                               */
/* ---------------------------------------------- */
.section {
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #0f2350;
}

.section h2 {
    text-align: center;
    color: #0f2350;
    font-size: 1.25rem;
    margin: 1rem 0;
    font-weight: bold;
}

/* 装飾要素 */
.blank-line {
    height: 10px;
}

.div-line {
    border: none;
    height: 0.25px;
    background-color: #808080;
    margin: 2rem 0;
    width: 100%;
    opacity: 0.5;
}

/* コンテンツスタイル */
.about-description {
    font-size: 14px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.globalsign {
    padding-top: 15px;
}

/* Bootstrap修正 */
.row {
    --bs-gutter-x: 0rem !important;
}

/* ---------------------------------------------- */
/* フッタースタイル                                 */
/* ---------------------------------------------- */
.site-footer {
    background-color: #eaedf7;
    width: 100%;
    height: 60px;
    margin-top: auto;
    border-top: 1px solid #595857;
    flex-shrink: 0;
}

.footer-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copyright {
    font-size: 12px;
    color: #666;
    font-family: 'Noto Sans JP', sans-serif;
}

.privacy-link {
    color: #666;
    text-decoration: none;
    margin-left: 30px;
    font-size: 12px;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* ---------------------------------------------- */
/* レスポンシブデザイン                             */
/* ---------------------------------------------- */

/* 共通のレスポンシブスタイル */
@media (max-width: 768px) {

    /* ヘッダーレスポンシブ */
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        flex-direction: column;
        width: 100%;
    }

    /* ナビゲーションボタン */
    .nav-button {
        width: 100%;
        text-align: left;
        padding: 0.6rem 1.1rem;
        border-bottom: 1px solid #e0e0e0;
    }

    /* トップページメニュー */
    #menubar-top {
        flex-direction: column;
        width: 100%;
        height: auto; /* 高さを自動に変更 */
    }

    #menubar-top li {
        height: auto;
        width: 100%;
        position: relative;
        margin: 0 1px 12px; /* マージンを減らして隙間を狭く */
        box-sizing: border-box;
        height: 40px;
    }

    /* メニュー項目のスタイル調整 */
    #menubar-top li a {
        border-radius: 0;
        width: 100%;
    }

    /* ドロップダウンレスポンシブ修正 - モバイル時は絶対配置ではなく、インラインに */
    .dropdown-menu,
    #menubar-top li.dropdown .dropdown-menu {
        z-index: 1; /* モバイルでは通常のフロー内に表示するため */
        position: static; /* 絶対配置ではなく通常のフロー内に */
        width: 100%;
        box-shadow: none; /* モバイルではシャドウを削除 */
        background-color: rgba(15, 35, 80, 0.85);
        margin: 0;
        padding: 0;
        display: none;
    }
    
    /* モバイルでのドロップダウン項目のスタイル */
    #menubar-top li.dropdown .dropdown-menu li {
        margin: 0;
        height: auto;
        margin-bottom: 1px;
        margin-left: 15px; /* インデントを追加してサブメニューと分かるように */
    }

    /* 背景色を使って間隔を強調表示（オプション） */
    #menubar-top {
        background-color: #f5f5f5;
        /* 薄いグレー */
        padding: 2px;
        /* 内側の余白 */
    }

    /* モバイルでのドロップダウン表示方法を変更 */
    #menubar-top li.dropdown:hover .dropdown-menu {
        display: block; /* ホバー時に表示 */
    }
    
    /* ドロップダウンメニュー内の項目 */
    #menubar-top li.dropdown .dropdown-menu li {
        margin-bottom: 0;
        display: block;
    }
    
    /* ドロップダウンメニューの項目を通常のメニューの間に表示 */
    #menubar-top li.dropdown:hover + li {
        margin-top: auto; /* 次のメニュー項目の位置を自動調整 */
    }

    .dropdown.active>a,
    #menubar-top li.dropdown.active>a {
        background-color: #0a1a3a;
        /* 少し暗い青色 */
        color: white;
        z-index: 10000; /* Z-indexを統一 */
    }

    .dropdown-menu li a,
    #menubar-top li.dropdown .dropdown-menu li a {
        padding: 8px 15px;
        /* パディングを調整 */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background-color: rgba(15, 35, 80, 0.85); /* サブメニュー項目の背景色 */
        color: #ffffff;
    }
    
    /* サブメニュー項目のスタイル - わかりやすく */
    #menubar-top li.dropdown .dropdown-menu li a .ja-menu {
        font-size: 13px; /* サブメニューの文字サイズを少し小さく */
    }

    .dropdown {
        display: block;
        margin-left: 0px !important;
    }

    /* 最後のメニュー項目の下線を消す */
    .dropdown-menu li:last-child a,
    #menubar-top li.dropdown .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    /* メインコンテンツがサブメニューを隠さないように */
    .main-content {
        position: relative;
        z-index: 1;
        /* 低い値を設定 */
    }

    #menubar-top li#menu1,
    #menubar-top li#menu3,
    #menubar-top li#menu4,
    #menubar-top li#menu5 {
        position: relative; /* z-indexを有効にするため */
        z-index: 100; /* モバイル表示では低いz-index */
    }
    
    /* これらのメニュー項目内のリンクやコンテンツにも同じz-indexを適用 */
    #menubar-top li#menu1 a,
    #menubar-top li#menu3 a,
    #menubar-top li#menu4 a,
    #menubar-top li#menu5 a {
        position: relative;
        z-index: 100;
    }
}

/* 中サイズ画面向け調整 */
@media screen and (max-width: 800px),
screen and (max-height: 800px) {

    #menubar-top li a,
    #menubar-top li.dropdown .dropdown-menu li a {
        padding: 6px 12px;
    }

    .ja-menu {
        font-size: 14px;
    }

    .en-menu {
        font-size: 13px;
    }
}

/* 小サイズ画面向け調整 */
@media screen and (max-width: 500px),
screen and (max-height: 500px) {

    #menubar-top li a,
    #menubar-top li.dropdown .dropdown-menu li a {
        padding: 4px 8px;
    }

    .ja-menu {
        font-size: 14px;
        margin-bottom: 1px;
    }

    .en-menu {
        font-size: 13px;
    }
}

/* レスポンシブ対応の調整 */
@media screen and (max-width: 800px),
screen and (max-height: 800px) {

    #menubar-top li a,
    #menubar-top li.dropdown .dropdown-menu li a,
    .dropdown-menu li a {
        padding: 6px 10px;
        /* 縮小バージョンのパディング */
    }
}

@media screen and (max-width: 500px),
screen and (max-height: 500px) {

    #menubar-top li a,
    #menubar-top li.dropdown .dropdown-menu li a,
    .dropdown-menu li a {
        padding: 4px 8px;
        /* 縮小バージョンのパディング */
    }
}