

.site-header .nav-item:nth-child(5) .dropdown-toggle {
    color: var(--fm-green) !important;
    font-weight: 600;
    /* pointer-events: none; */
}


.section-title {
    margin-bottom: 70px;
    font-weight: bold;
    color: var(--fm-dark);
    font-size: clamp(17px, 3.5vw, 1.875rem) !important;
}

/* ヒーローセクション */
.about-hero {
    position: relative;
    min-height: 500px;
    height: 70vh; /* 画面高に合わせる */
    max-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-image-bg {
    position: absolute;
    inset: 0;
    background-image: url('../image/about-top.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.label-green-border {
    display: inline-block;
    border-bottom: 2px solid var(--fm-green);
    margin-bottom: 24px;
    padding-bottom: 4px;
}

.label-en {
    color: var(--fm-green);
    font-weight: bold;
    letter-spacing: 0.15em;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.page-title {
    /* 画面幅に応じて40px〜56pxに変化 */
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-lead {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    word-break: keep-all; /* 変な位置での改行を防ぐ */
    font-weight: bold;
    color: #374151;
}

.text-blue {
    color: var(--fm-blue);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 40px;
    fill: white;
}

/* 代表あいさつ */
.president-comment{
    padding-top: clamp(9rem, 24vw, 20rem);
    /* padding-bottom: clamp(3rem, 9vw, 6rem); */
}

/* 代表挨拶 */
.about-section-image{
    background-image: url('../image/demo_1.png');
    position: absolute;
    inset: 0;
    background-position: center;
    opacity: 0.5;
}

/* 代表挨拶 */
.president-comment-container{
    display: flex;
    width: 90%;
    margin: 0 auto;
    padding-top: 0;
    gap: 5%;
}

/* 社長近影 */
.president-image{
    min-width: 400px;
    width: 100%;
    max-height: 700px;
    font-size: 3rem;
    text-align: center;
    line-height: 364px;
    overflow: hidden;
    display: block;
    
}
.president-image img{
    width: 100%;
  height: 100%;
    object-fit: cover;
}

/* 社長コメント */
.president-text{
    width: 100%;
    margin: 0 ;
}

/* 社長コメント見出し */
.president-text p{
    font-size: 1.8rem;
    font-weight: 800;
    padding-bottom: 1rem;
    color: var(--fm-green);
    text-align: center;
}



/* 社長コメント本文 */
.president-textbox{
    height: auto;
    /* background-color: #CCCCCC; */
}

/* 社長肩書 */
.president-title{
    text-align: right;
    padding: 20px 0rem 5px 0;
    font-weight: 600;
}

/* 社長直筆サイン */
.president-sign{
    height: 84px;
    /* background-color: #CCCCCC; */
    text-align: center;line-height: 84px;
    width:50%;
    margin-left: 50%;
}

/* モバイルでは ”FM保険サービス株式会社” と ”代表取締役社長” に改行 */
.presindent-title-mobile-br{
    display: none;
}

/* 画面幅狭いときは社長近影とコメントを上下に配置 */
@media (max-width:900px){
    .president-comment-container{
        display: block;
        /* padding-top: 7.5rem; */
    }
    .president-image{
        width: 90%;
        margin: 0 auto;
        display: grid;
    }
    .president-text{
        width: 90%;
        margin: 0px auto 0;
    }.president-text p{
        margin: 2rem 0 0;
    }
    .president-textbox {
        height: auto;
        font-size: clamp(0.9rem,3vw,1rem);
    }
    .president-image img {
    width: 100%;
    height: 90%;
    object-fit: cover;
}
}

/* モバイルでは横幅いっぱいに表示 */
@media (max-width:600px){
    .president-image{
        width: 90%;
        margin: 0 auto;
        height: fit-content;
        display: grid;
        min-width: 200px;
    }
    .president-comment-container {
        width: 100%;
        margin: 0 auto;
    }
    .president-text{
        width: 90%;
    }.president-text p{
        margin: 2rem 0 1rem;
    }
    .presindent-title-mobile-br{
        display: block;
    }
    .president-sign{
        width: 90%;
        margin-left: 10%;
    }
}

/* 企業理念 */
.philosophy{
    padding-top: clamp(6rem, 18vw, 14rem);
    text-align: center;
}

/* FMIのMVV 【Mission】 【Vision】 【Value】 */
.philosophy-heading{
    margin-bottom: 5rem;
}

/* ”FMIのMVV”の部分*/
.philosophy-heading-1{
    font-size: clamp(20px, 4.5vw, 2.2rem);
    font-weight: 700;
    line-height: 2.0;
}

/* 【Mission】  */
.philosophy-heading-2{
    font-size: clamp(18px, 5.0vw, 1.9rem);
    font-weight: 700;
    color: #00a33e;
    margin-bottom: 1.0rem;
}

/* 【Vision】 */
.philosophy-heading-3{
    font-size: clamp(18px, 5.0vw, 1.9rem);
    font-weight: 700;
    color: #00aff0;
    margin-bottom: 1.0rem;
}

/* 【Value】 */
.philosophy-heading-4{
    font-size: clamp(18px, 5.0vw, 1.9rem);
    font-weight: 700;
    color: #FACC15;
}

/* モバイルでは”FMIのMVV”の後改行 */
.philosophy-mobile-br{
    display: none;
}

/* MVVの図 */
.philosophy-content-wrapper{
    position: relative;
    height: 650px;
}

/* MVVの図の、3つの理念の共通スタイル */
.philosophy-cotent{
    position: absolute;
    width: 380px;
    height: 220px;
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    padding: 0 20px;
    font-size: 1.05rem;
    font-weight: 700;
    z-index: 2;
    padding-bottom: 20px;
    line-height: 1.5;
}

/* MVVの図の、3つの理念の名前部分 */
.philosophy-cotent p{
    font-size: 1.5rem;
    font-size: clamp(20px, 4.2vw, 1.4rem);
}

/* missionnのdiv */
.mission{
    left: 10%;
    top: 20%;
    transform: translateX(-50%);
    border-top: 4px solid #01A54F;
    transition: transform 0.3s ease;
}

/* missionホバー時 */
.mission:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-top: 4px solid #01A54F;
}

/* missionの項目名 */
.philosophy-content-mission-title{
    width: 140px;
    background-color: #01A54F;
    font-size: 1.3rem;
    color: #fff;
    border-radius: 100px;
    margin: 0 auto;
    transform: translateY(-1.3rem);
}

/* ”私たちの使命”の見出し */
.mission p{
    color: #01A54F;
}

/* valueのdiv */
/* .value{
    top: 70%;
    left: 50%;
    transform:translateX(-50%);
    border-top: 4px solid #FACC15;
    position: relative;
    transform: translateX(-50%);
    transition: transform 0.3s ease;
} */

/* valueホバー時 */
/* .value:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-top: 4px solid #FACC15;
} */

/* valueの項目名 */
/* ”私たちが大切にする価値観”の見出し */
.value p{
    color: #FACC15;
}

/* visionのdiv */
.vision{
    top: 20%;
    right: 10%;
    transform: translateX(50%);
    border-top: 4px solid #00AFF0;
    transition: transform 0.3s ease;
}

/* visionホバー時 */
.vision:hover {
    transform: translate(50%,-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-top: 4px solid #00AFF0;
}

/* visionの項目名 */
.philosophy-content-vision-title{
    width: 140px;
    background-color: #00AFF0;
    font-size: 1.3rem;
    color: #fff;
    border-radius: 100px;
    margin: 0 auto;
    transform: translateY(-1.3rem);
}

/* ”私たちの目指す姿”の見出し */
.vision p{
    color: #00AFF0;
}

/* 企業理念の後ろにある輪 */
.philosophy-ring{
    position: absolute;
    border: 10px solid #E8F1FE;
    border-radius: 50%;
    width: 600px;
    height: 600px;
    z-index: 1;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 5つの価値観のそれぞれのdiv */
.value-list{
    display: block;
    background-color: #fff;
    box-shadow: 1px 1px 4px #6e6e6e;
    border-radius: 15px;
    padding: 1rem;
    width: 200px;
    margin: 1rem;
}

/* 5つの価値観のdivが入ってるdiv */
.value{
    border-top: 4px solid #FACC15;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: block;
    transition: transform 0.3s ease;
    transform: translateY(-120px);
    z-index: 100;
    position: relative;
    font-weight: 700;
}

.value p{
    font-size: 1.5rem;
    font-size: clamp(20px, 4.2vw, 1.4rem);
}

.philosophy-content-value-title{
    width: 140px;
    background-color: #FACC15;
    font-size: 1.3rem;
    color: #fff;
    border-radius: 100px;
    margin: 0 auto;
    transform: translateY(-1.3rem);
}

.value-list-parent{
    display: flex;
    margin:1rem 0;
    padding: 1rem 0;
}

/* ５つの価値観のアイコン */
.value-list-icon i{
    font-size: 3rem;
    color: #FACC15;
}

/* 5つの価値観の内容 */
.value-list-text{
    font-size: 14px;
    position: relative;
}

/* 5つの価値観の名前 */
.value-list-text p{
    font-size: 20px;
    font-weight: 700;
    color: #FACC15;
    margin: 1rem 0;
}

/* 5つの価値観hover時 */
.value-list:hover{
    background-color: #FACC15;
    color: #fff;
}

.value-list:hover .value-list-text p{
    color: #fff;
}

.value-list:hover .value-list-icon i{
    color: #fff;
}

/* モバイル版のMVVの図 */
.philosophy-content-mobile{
    display: none;
}

/* モバイル版のMVVの図 */
.value-mobile{
    display: none;
    padding: 0;
}

.mobile-value-list{
    display: block;
    background-color: #fff;
    box-shadow: 1px 1px 4px #6e6e6e;
    border-radius: 15px;
    width: calc(100% - 2rem);
    max-width: 139.5px;
    min-height: 116px;
    margin: 1.5rem auto 0;
    flex: none;
}

.value-list-parent-block{
    display: block;
    width: 50%;
    margin: 0;
    padding: 0;
}

.mobile-value-list summary{
    padding: 1rem 0 0;
    display: block;
}

.value-list-text-accordion {
    font-size: 12px;
    max-height: 0;
    padding: 0 0.8rem;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    will-change: max-height, transform, opacity, padding;
    transition:
        max-height 0.4s ease,
        opacity 0.4s ease,
        padding 0.4s ease,
        transform 0.4s ease;
}

summary {
    list-style: none;
    cursor: pointer;
    position: relative;
}

.value-list-parent-mobile{
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 0;
}

.mobile-value-list details[open] > .value-list-text-accordion{
    padding: 0.5rem 0.8rem 1rem;
    opacity: 1;
    transform:translateY(0);
}



.value-list-text-accordion{
    max-height:0;
    overflow:hidden;
    transition:max-height .35s ease;
}
/* .mobile-value-list details{
    overflow: hidden;
    contain: layout;
} */

/* summary::before {
    content: "▶";
    position: absolute;
    left: 30%;
    transform: translateX(-50%);
}

details[open] summary::before {
    content: "▼";
} */










/* モバイルでは”すべてのお客さまの”の後に改行 */
.philosophy-content-middle-br{
    display: none;
}

/* absolute時のhoverの挙動 */
@media(min-width:980px){
    .mission:hover {
        transform: translateX(-50%) translateY(-5px);
    }

    .value:hover{
        transform:translateY(-125px);
    }
}

/* 画面幅狭いときは3つのdivを縮小 */
@media (max-width:1280px){
    .value-list-text p{
        font-size: 18px;
    }

    .value-list{
        margin: 1rem 0.8rem;
        padding: 1rem 0.5rem;
    }
}

@media (max-width:1160px){
    .value{
        width: 80%;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* 5つの価値観の親要素を縮小 はみ出した分は改行で2行に*/
    .value-list-parent{
        flex-wrap: wrap;
    }

    /* MVVの図全体を縮小 */
    .philosophy-content-wrapper{
        height: 620px;
    }

    /* 後ろの輪を縮小*/
    .philosophy-ring{
        width: 550px;
        height: 550px;
    }

    /* 3つの項目を縮小 */
    .philosophy-cotent{
        width: 340px;
        font-size: 1.0rem;
    }

    /* 5つの価値観を均等に配置 */
    .vl1{
        /* 親要素の横幅いっぱいからdiv2つ分の幅を引いて残りを3分割 */
        margin-left: calc((100% - 432px) / 3);
        margin-right: calc((100% - 432px) / 3);
    }
    .vl2{
        margin-left: 0;
        margin-right: calc((100% - 432px) / 3);
    }
    .vl3{
        /* 親要素の横幅いっぱいからdiv3つ分の幅を引いて残りを4分割 */
        margin-left: calc((100% - 648px) /4);
        margin-right: calc((100% - 648px) /4);
    }
    .vl4{
        margin-left: 0;
        margin-right: calc((100% - 648px) /4);
    }
    .vl5{
        margin-left: 0;
        margin-right: calc((100% - 648px) /4);
    }
}

@media (max-width:980px) and (min-width:750px){
    /* 後ろの輪を縮小*/
    .philosophy-ring{
        width: 500px;
        height: 500px;
    }

    /* 3つの項目を縮小 */
    .philosophy-cotent{
        width: 290px;
        height: 190px;
        font-size: 15px;
        padding: 0 10px;
    }
    
    /* MVVの図の、3つの理念の名前と本文に間隔 */
    .philosophy-cotent p{
        margin: 0;
        padding-bottom: 1.0rem;
    }

    /* Mission、”すべてのお客さまの”の後ろに改行 */
    .philosophy-content-middle-br{
        display: block;
    }

    /* valueの位置調整 */
    .value{
        transform: translateY(-160px);
    }

    /* MVVの図の全体を縮小 */
    .philosophy-content-wrapper{
        height: 600px;
    }

    /* 矢印の位置調整 */
    .value-arrow{
        top: 80%;
    }

    /* hover時の制御 */

    .mission:hover {
        transform: translateX(-50%) translateY(-5px);
    }

    .vision:hover {
        transform: translateX(50%) translateY(-5px);
    }

}

@media (max-width:880px){

    /* モバイルでは5つの価値観の”お客様と真摯に向き合い”の後の改行を削除 */
    .philosophy-pc-br{
        display: none;
    }

    /* 5つの価値観の親要素を三段に */
    .value-list-parent{
        display: flex;
        position: static;
        transform: none;
        margin: 1rem auto 0;
    }

    /* 5つの価値観の幅を調整 */
    .value-list{
        width: 40%;
        margin: 1rem auto;
    }

}

@media (max-width:750px){

    /* モバイルでは見出し、”FMIのMVV”の後に改行 */
    .philosophy-mobile-br{
        display: block;
    }

    /* MVVの図の幅をリセット */
    .philosophy-content-wrapper{
        height: auto;
    }

    /* 後ろの輪を削除 */
    .philosophy-ring{
        display: none;
    }

    /* モバイル版のMVVの図を表示 */
    .philosophy-content-mobile{
        display: block;
    }

    /* missionのdivを拡大、中央に配置 */
    .mission{
        position: static;
        transform: none;
        margin: 0 auto;
        width: 80%;
    }

    /* visionのdivを拡大、中央に配置 */
    .vision{
        position: static;
        transform: none;
        margin: 4rem auto;
        width: 80%;
    }

    /* valueのdivを拡大、中央に配置 */
    .value{
        position: static;
        transform: none;
        margin: 0 auto 4rem;
        width: 80%;
    }

    .vision:hover {
        transform: translateY(-5px);
    }
    
    .value:hover {
        transform: translateY(-5px);
    }

}

@media (max-width:700px){

    .mission{
        width: 90%;
    }

    .vision{
        width: 90%;
    }


    /* 5つの価値観を縦配置 */
    .value{
        width: 90%;
    }

    .value-list{
        width: 42%;
    }

}

@media (max-width:499px){
    /* モバイルでは3つの理念の文字を縮小 */
    .philosophy-cotent{
        font-size: 0.9rem;
    }
    .mission{
        height: 180px;
    }
    .vision{
        height: 180px;
    }
    /* 見出しの下の空白を縮小 */
    .philosophy-heading{
        margin-bottom: 3rem;
    }
    /* 3つの理念の名前部分の上下の間隔を調整 */
    .philosophy-cotent p{
        line-height: 0.8;
    }
    .value{
        display: none;
    }
    .value-mobile{
        display: block;
        width: auto;
        padding: 0 0 30px;
    }
    .value-list-text p{
        font-size: 14px;
        padding: 0 0 0.5rem;
    }
    .mobile-value-list summary::after{
        content: "▼";
        display: block;
        position: absolute;
        color: #FACC15;
        bottom: -0.6rem;
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        transition: all 0.3s ease;
        animation: arrowFloat 1.5s ease-in-out infinite;
    }

    .mobile-value-list details[open] summary::after {
        content: "▲";
        bottom: -1.0rem;
        animation: none;
    }

    @keyframes arrowFloat{
        0%{
            transform: translate(-50%,0);
        }
        50%{
            transform: translate(-50%,4px);
        }
        100%{
            transform: translate(-50%,0);
        }    
    }
}

/* 会社概要 */
.about{
    text-align: center;
    padding-top: clamp(3rem, 6vw, 6rem);
    padding-bottom: clamp(3rem, 9vw, 6rem);
}

/* 会社概要テーブル */
.about-content{
    border:  1px solid #e5e7eb;
    margin: 3rem auto 0;
    width: 60%;
    border-radius: 1rem;
}

/* 項目名+内容 */
.about-content-row{
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #e5e7eb;
}

/* 項目名 */
.about-content-row dt{
    width: 25%;
    color: rgb(0 175 240 / var(--tw-text-opacity, 1));
    background-color: #F4F9FF;
    font-weight: 700;
    padding: 1.5em 2rem;
}

/* 内容 */
.about-content-row dd{
    width: 75%;
    text-align: left;
    padding: 1.5em 2rem 1.5rem;
    line-height: middle;
}

/* 画面幅狭い時会社概要テーブルの横幅拡大 */
@media (max-width: 1000px) {
    .about-content {
        width: 80%;
    }
}

/* モバイルで会社概要テーブルの横幅拡大、内容の幅縮小 */
@media (max-width: 580px) {
    .about-content {
        width: 90%;
    }
    .about-content-row dt{
        width: 35%;
        padding: 0.5em;
        display: flex;
        align-items: center;
        text-align: center;
    }
    .about-content-row dd{
        width: 65%;
        text-align: left;
        padding: 1rem 0.5rem;
        margin-left: 0.5rem;
    }
}

/* テーブルの最後の行は枠線二重になるため要らない */
#abr-END{
    border-bottom: none;
}

/* テーブルの角に合わせ、四隅に対応する角は丸くする */
#about-content-row-1{
    border-radius: 1rem 0 0 0;
}

#about-content-row-2{
    border-radius: 0 0 0 1rem;
}

#about-content-row-3{
    border-radius: 0 0 1rem 0;
}

/* 沿革 */
.history{
    text-align: center;
    padding-top: clamp(3rem, 9vw, 6rem);
    padding-bottom: clamp(3rem, 9vw, 6rem);
}

/* 沿革を中央揃え */
.history-content{
    margin: 0 auto; 
}

/* 沿革のテーブル */
.timeline{
    border-top: 1px solid #E6E6E6;
    border-bottom: 1px solid #E6E6E6;
    padding: 0.5rem 0;
    position: relative;
    margin: 0 auto;

}

/* 沿革の年度の列 */
.timeline-year{
    width: 10%;
    padding: 1.5rem 1.0rem;
    font-weight: bold;
}

/* 沿革の緑丸のデザインが入る列 */
.timeline-dot{
    width: 10%;
    padding: 1rem;
    position: relative;
}

/* 沿革の緑丸のデザイン */
.timeline-dot::before{
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    background: #2dbd6e;
    border-radius: 50%;
    transform: translate(100%, 0%);
}

/* 沿革のそれぞれの行 */
.timeline-content{
    position: relative;
}

/* 沿革の月の部分 */
.timeline-month{
    width: 10%;
    padding: 1rem;
    position: relative;
}

/* 沿革の丸と月の間を仕切る部分 */
.timeline-content::before{
    content: "";
    display: block;
    position: absolute;
    width: 2px;
    height: 30px;
    background: #DADADA;
    top: 32%;
    left: 20%;
}

/* 沿革の出来事の部分 */
.timeline-text{
    text-align: left;
    padding-left: 3rem;
}

/* 沿革の緑丸を繋げる棒 */
.timeline::before {
    position: absolute;
    content: "";
    width: 1.5px;
    height: 250px;
    display: block;
    background: #2dbd6e;
    left: 128px;
    margin-top: 40px;
}

/* 画面幅狭い時は沿革テーブルの各列の幅を調整 */
@media (max-width:1000px){
    .timeline-year{
        width: 12%;
    }

    .timeline-dot{
        width: 12%;
    }

    .timeline-content::before{
        left: 23%;
    }

    .timeline-text{
        padding-left: 2rem;
    }


}

@media (max-width:800px){
    /* モバイルでは沿革の年度とそれ以降を縦配置 */
    .timeline,
    .timeline tbody,
    .timeline tr,
    .timeline td {
        display: block;
        width: 100%;
    }

    /* 沿革テーブルの枠線削除、横幅を調整 */
    .timeline{
        border: none;
        width: 80%;
        padding: 0;
    }

    /* 沿革の緑丸を繋げる棒を削除 */
    .timeline::before{
        display: none;
    }

    /* 沿革テーブルの内容を縦配置 */
    .timeline-content{
        display: block;
    }

    /* 沿革の緑丸を削除 */
    .timeline-dot{
        display: none;
        padding: 0;
    }
    .timeline-dot::before{
        display: none;
    }
    
    /* 沿革の丸と月の間を仕切る部分を削除 */
    .timeline-content::before{
        display: none;
    }

    /* 沿革の年度を全幅に、区切り線を追加 */
    .timeline-year{
        text-align: left;
        width: 100%;
        border-bottom: 1px solid #E6E6E6;
        padding: 0;
        box-sizing: border-box;
    }

    /* 沿革のその他の項目も調整 */
    .timeline-month{
        text-align: left;
        padding: 0.5rem 0;
    }
    .timeline-text{
        padding-left: 1rem;
        padding: 0 0 1.5rem;
    }
}

/* 組織図 */
.organization-chart-section{
    padding-top: clamp(3rem, 9vw, 6rem);
    padding-bottom: clamp(6rem, 22vw, 18rem);
}

/* 組織図の全体 */
.organization-chart{
    width: 950px;
    height: 600px;
    margin: 0 auto;
    border-radius: 15px;
    border: #DADADA 1px solid;
    background-color: #fff;
    box-shadow: 1px 1px 4px #6e6e6e;
    position: relative;
}

/* それぞれの組織名 */
.chart-content{
    width: 15rem;
    height: 3rem;
    text-align: center;
    justify-content: center;
    align-items: center;
    display: flex;
    font-size: 20px;
    box-shadow:0 8px 20px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    border: 1px solid #808080;
    position: absolute;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    padding: 0.5rem 0;
    z-index: 1;
}

/* 株主総会ー経営管理部のライン */
.chart-line1{
    background-color: #00AFF0;
    position: absolute;
    z-index: 0;
}

/* 経営管理部から右のライン */
.chart-line2{
    background-color: #00AFF0;
    position: absolute;
    z-index: 0;
}

/* line2から営業部へのライン */
.chart-line3{
    background-color: #00AFF0;
    position: absolute;
    z-index: 0;
}

/* line2から企画・マーケティング室へのライン */
.chart-line4{
    background-color: #00AFF0;
    position: absolute;
    z-index: 0;
}

/* 各組織名とつなぐラインの位置を調整 */

/* 株主総会 */
.GMS{
    top: calc(20% - 93px);
    left: 50%;
    transform: translateX(-50%);
}

/* 取締役会 */
.Board{
    top: calc(40% - 93px);
    left: 50%;
    transform: translateX(-50%);
}

/* 取締役社長 */
.CEO{
    top: calc(60% - 93px);
    left: 50%;
    transform: translateX(-50%);
}

/* 経営管理部 */
.CMD{
    top: calc(100% - 93px);
    left: 5%;
}

/* 営業部 */
.Sales{
    top: calc(100% - 93px);
    left: 50%;
    transform: translateX(-50%);
}

/* 企画・マーケティング室 */
.Planning{
    top: calc(100% - 93px);
    right: 5%;
}

/* 監査役 */
.Auditor{
    top: calc(20% - 93px);
    right: 5%;
}

/* 株主総会ー経営管理部へのライン */
.chart-line1{
    top: 15%;
    left: calc(37% + 121px);
    width: 3px;
    height: 418px;
}

/* chart-line1から右のライン */
.chart-line2{
    top: calc(80% - 58px);
    left: calc(5% + 121px);
    width: calc(90% - 242px);
    height: 3px;
}

/* chart-line1から営業部へのライン */
.chart-line3{
    top: calc(80% - 58px);
    left: calc(5% + 121px);
    width: 3px;
    height: 85px;
}

/* chart-line1から企画・マーケティング室へのライン */
.chart-line4{
    top: calc(80% - 58px);
    right: calc(5% + 121px);
    width: 3px;
    height: 85px;
}

@media(min-width:768px){
    .Planning br{
        display: none;
    }
}

@media(max-width:1000px){

/* 画面幅1000px以下なら組織図の横幅固定 */
.organization-chart{
    width: 90%;
    height: 550px;
    margin: 0 auto;
}

.chart-content{
    width: 12rem;
    font-size: 16px;
}

.chart-line1{
    left: 50%;
}

.chart-line2{
    left: calc(5% + 97px);
    width: calc(90% - 194px);
}

.chart-line3{
    left: calc(5% + 97px);
}

.chart-line4{
    right: calc(5% + 97px);
}

}

@media(max-width:768px){

    .organization-chart{
        width: 90%;
        height: 420px;
        margin: 0 auto;
    }

    .chart-content{
        width: 10rem;
        height: 2.5rem;
        font-size: 16px;
        top: auto;
    }

    .GMS{
        top: 5%;
    }

    .Board{
        top: calc(12.5% + 58px);
    }

    .CEO{
        top: calc(20% + 116px);
    }

    .Auditor{
        top: 5%;
    }

    .CMD{
        bottom: 5%;
    }

    .Sales{
        bottom: 5%;
    }

    .Planning{
        bottom: 5%;
    }

    .chart-line1{
        height: 300px;
    }

    .chart-line2{
        top: calc(29.5% + 174px);
        width: calc(90% - 162px);
        left: calc(5% + 81px);
    }

    .chart-line3{
        top: calc(29.5% + 174px);
        left: calc(5% + 81px);
    }

    .chart-line4{
        top: calc(29.5% + 174px);
        right: calc(5% + 81px);
    }

}

@media(max-width:630px){

    .organization-chart{
        width: 90%;
        height: 350px;
        margin: 0 auto;
    }

    .chart-content{
        width: 7.5rem;
        height: 2.25rem;
        font-size: 14px;
    }

    .GMS{
        top: 5%;
    }

    .Board{
        top: calc(11.5% + 54px);
    }

    .CEO{
        top: calc(18% + 108px);
    }

    .Auditor{
        top: 5%;
    }

    .chart-line1{
        height: 250px;
    }

    .chart-line2{
        width: calc(90% - 122px);
        top: calc(25% + 162px);
        left: calc(5% + 61px);
    }

    .chart-line3{
        height: 80px;
        top: calc(29.5% + 148px);
        left: calc(5% + 61px);
    }

    .chart-line4{
        height: 80px;
        top: calc(29.5% + 148px);
        right: calc(5% + 61px);
    }

}

@media(max-width:499px){

.organization-chart{
    width: 95%;
    height: 320px;
    margin: 0 2.5%;
}

.chart-content{
    width: 6.5rem;
}

/* 株主総会 */
.GMS{
    top: 2.5%;
    left: 50%;
    transform: translateX(-50%);
}

/* 取締役会 */
.Board{
    top: calc(10% + 50px);
    left: 50%;
    transform: translateX(-50%);
}

/* 取締役社長 */
.CEO{
    top: calc(17.5% + 100px);
    left: 50%;
    transform: translateX(-50%);
}

/* 経営管理部 */
.CMD{
    bottom: 2.5%;
    left: 2.5%;
}

/* 営業部 */
.Sales{
    bottom: 2.5%;
    left: 50%;
    transform: translateX(-50%);
}

/* 企画・マーケティング室 */
.Planning{
    bottom: 2.5%;
    right: 2.5%;
    font-size: 12px;
}

/* 監査役 */
.Auditor{
    top: 2.5%;
    right: 2.5%;
}

/* 株主総会ー経営管理部へのライン */
.chart-line1{
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    height: 250px;
}

/* chart-line1から右のライン */
.chart-line2{
    top: calc(17.5% + 175px);
    left: calc(2.5% + 55px);
    width: calc(95% - 110px);
}

/* chart-line1から営業部へのライン */
.chart-line3{
    top: calc(17.5% + 175px);
    left: calc(2.5% + 55px);
    height: 50px;
}

/* chart-line1から企画・マーケティング室へのライン */
.chart-line4{
    top: calc(17.5% + 175px);
    right: calc(2.5% + 55px);
    height: 50px;
}

}

@media(max-width:360px){

.organization-chart{
    width: 95%;
    height: 320px;
    margin: 0 2.5%;
}

.chart-content{
    width: 5.5rem;
}

/* 株主総会 */
.GMS{
    top: 2.5%;
    left: 50%;
    transform: translateX(-50%);
}

/* 取締役会 */
.Board{
    top: calc(10% + 50px);
    left: 50%;
    transform: translateX(-50%);
}

/* 取締役社長 */
.CEO{
    top: calc(17.5% + 100px);
    left: 50%;
    transform: translateX(-50%);
}

/* 経営管理部 */
.CMD{
    bottom: 2.5%;
    left: 2.5%;
}

/* 営業部 */
.Sales{
    bottom: 2.5%;
    left: 50%;
    transform: translateX(-50%);
}

/* 企画・マーケティング室 */
.Planning{
    bottom: 2.5%;
    right: 2.5%;
    font-size: 11px;
}

/* 監査役 */
.Auditor{
    top: 2.5%;
    right: 2.5%;
}

/* 株主総会ー経営管理部へのライン */
.chart-line1{
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    height: 250px;
}

/* chart-line1から右のライン */
.chart-line2{
    top: calc(17.5% + 175px);
    left: calc(2.5% + 55px);
    width: calc(95% - 110px);
}

/* chart-line1から営業部へのライン */
.chart-line3{
    top: calc(17.5% + 175px);
    left: calc(2.5% + 55px);
    height: 50px;
}

/* chart-line1から企画・マーケティング室へのライン */
.chart-line4{
    top: calc(17.5% + 175px);
    right: calc(2.5% + 55px);
    height: 50px;
}

}




