
/* widthはみ出し防止 */
#sportsdoc {
    box-sizing: border-box;
}

/* 企業インタビューリスト */
.interview_company_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width:  100%;
}

/* 10番目の要素を中央寄せ */
.interview_company_list_item:nth-child(10) {
    grid-column: 2 / 3;
}

.interview_company_list_item {
    padding: 0.5rem 1rem;
    background: #000257;
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    border: 1px solid #000;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    flex-direction: column;
}
/* ホバー時背景色変更 */
.interview_company_list_item:hover {
    background: #fff;
}

.interview_company_list_item > a {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
/* リンクのホバー時下線非表示 */
#SportsContent .interview_company_list_item a:hover {
    text-decoration: none;
}

.interview_company_list_item_text {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.interview_company_list_item_number {
    font-size: 1rem;
    color: #fff;
}

.interview_company_list_item_name {
    font-size: 0.8rem;
    line-height: 1.2;
    color: #fff;
}
/* hover */
.interview_company_list_item:hover .interview_company_list_item_number,
.interview_company_list_item:hover .interview_company_list_item_name {
    color: #000257;
}

/* まだない記事用スタイル */
.list_item_none {
    background: #a5a5a5;
    border-radius: 10px;
    cursor: default;
    pointer-events: none;
    position: relative;
    color: #000;
}

.list_item_none::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) skewX(-15deg) rotate(-5deg);
    width: 100px;
    height: 40px;
    background: rgba(217, 28, 28, 0.45);
    z-index: 1;
}

/* 回数の位置を変更 */
.list_item_none .interview_company_list_item_text {
    justify-content: start;
    align-items: start;
}

/* まだない記事の回数タイトル */
.list_item_none .interview_company_list_item_number {
    color: #000;
    font-size: 0.8rem;
}

.list_item_none .interview_company_list_item_name {
    color: #000;
}

.list_item_none:after {
    content: "1月以降\A順次公開予定";
    white-space: pre-line;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 100%;
    color: #fff;
    font-weight: bold;
    line-height: 1.2;
    font-size: 0.8rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* まだない記事用スタイルここまで */

/* 
    ################
    ## リストアイテム ##
    ################
*/
/* インタビューリスト（目次のリンク） */
.interview_list_item {
    text-decoration: underline;
    color: #0000ff;
}
.interview_list_item:hover {
    color: #00a8d8;
}

.sportsdoc_border {
    padding: 8px;
    margin-bottom: 1.5em;
    background-color: #fff;
    border: solid 1px #aaa;
    border-radius: 3px;
}

/*
    ################################
    ## スポーツドックの実施内容　測定項目 ##
    ################################
*/
/* 各種目用のfloat要素 */
.sportsdoc_float {
    overflow: hidden; /* float解除 */
}
.space {
    float: right; /* 右に配置 */
    height: 4em;  /* 画像上の余白の高さ */
}
/* 反復横跳び用 */
.space-H9 {
    height: 9em;
}

.sportsdoc_float_image {
    float: right; /* 右に配置 */
    clear: right; /* spaceの下に配置する */
    max-width: 245px;
    margin-left: 8px;
}
/* 画像 */
#SportsContent #MainContent .sportsdoc_float_image img {
    float: right; /* 右に配置 */
    clear: both;
    max-width: 180px;
}

/* 立ち幅跳び用 */
.content_flex_column {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
}
/* 立ち幅跳び用 */
.sportsdoc_flex_image_column {
    width: 100%;
}
/* 立ち幅跳び専用 */
#SportsContent #MainContent .sportsdoc_flex_image_column img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
/* 右側 */
.sportsdoc_flex_left_colum{
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
}
.sportsdoc_flex_left_text_column{
    width: 300px;
}
/* 東京スポーツドックの実施内容体力測定とはここまで */


/* 東京スポーツドックのメリット */
/* float要素 */
.float_right_image {
    float: right;
    max-width: 245px;
    margin-left: 8px;
}

.float_right_image img {
    height: auto;
    display: block;
}
/* float要素を解除 */
.clear__fix:after {
    content: "";
    display: table;
    clear: both;
}

/* 1000px以下で2列レイアウトに変更 */
@media screen and (max-width: 1000px) {
    .interview_company_list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* まだない記事用スタイル */
    .list_item_none::before {
        width: 80px;
        height: 30px;
    }

    /* スポーツドックの実施内容　測定項目 */
    /* 各種目用のfloat要素　*/
    /* float要素を上にテキスト、下に画像の配置に変更 */
    .sportsdoc_float {
        display: flex;
        flex-direction: column;
    }
    /* 余白用の要素は不要なので非表示 */
    .space {
        display: none; 
    }
    /* 画像を下に配置 */
    .sportsdoc_float_image {
        float: none;
        clear: none;
        max-width: 100%;
        margin: 0 auto;
        order: 2;
    }
    /* テキストを上に配置 */
    .sportsdoc_float_right_text {
        order: 1;
    }
    /* 画像 */
    #SportsContent #MainContent .sportsdoc_float_image img {
        float: none;
        clear: none;
        max-width: 300px;
    }

    /* メリットのfloat要素 */
    .float_right_image {
        float: none;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }
}

@media screen and (max-width: 960px) {
    .sportsdoc_flex_left_colum {
        flex-direction: column;
        gap: 0;
    }

    #SportsContent #MainContent .sp_margin > li {
        margin: 0 0 0 1rem;
    }
}

/* 600px以下で1列レイアウトに変更 */
@media screen and (max-width: 600px) {
    .interview_company_list {
        grid-template-columns: 1fr;
    }

    .interview_company_list_item:nth-child(10) {
        grid-column: 1 / 2;
    }
    
}

@media screen and (max-width: 480px) {
    #SportsContent #MainContent .sportsdoc_flex_image_column > img {
        height: 125px;
    }
}

