@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

html{
	font-size: 62.5%;
}

/*----------------------
	共通
----------------------*/
:root {
  --contents-width: 1180px;
}


main .en {
    font-family: "Libre Baskerville", serif;
    font-weight: 400;
    font-style: italic;
}

header .casainfo,
body {
    background: #e6e0c0;
}

/*----------------------
	#lineup
----------------------*/
#lineup {
    padding: 80px 0;

    @media only screen and (max-width : 767px) {
        padding: 60px 0;
    }

    h2.title {
        text-align: left;
    }

    .table-container {
        overflow-x: auto;
        margin-right: calc(50% - 50vw);

        table {
            width: 100%;
            table-layout: fixed;
            border: 1px solid #595757;
            border-collapse: collapse;
            border-left: none;

            th,
            td {
                line-height: 1.4;
                text-align: center;
                border: 1px solid #595757;
                padding: 10px;
                font-size: 86%;
            }

            thead th,
            tbody th {
                background: #cfc591;
            }

            .fixed-col {
                width: 70px;
                background: #bbad6d;

                @media only screen and (max-width : 767px) {
                    width: 52px;
                }
            }

            thead {
                th:not(.fixed-col) {
                    width: 230px;
                    vertical-align: text-top;

                    a {
                        display: block;
                        position: relative;
                        transition: all 300ms 0s ease;

                        &:after {
                            content: "";
                            position: absolute;
                            bottom: 4px;
                            right: 0;
                            display: inline-block;
                            width: 22px;
                            height: 16px;
                            background: url(../../../assets/images/lineup/special/casa/arrow.svg) no-repeat right center;
                            background-size: contain;
                            transition: all 300ms 0s ease;
                        }
                        &:hover {
                            opacity: 0.7;
                        }
                        &:hover:after {
                            right: -10px;
                        }

                        dt {
                            margin-bottom: 10px;
                        }

                        dd {
                            height: 43px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                        }
                    }
                }
            }

            tbody {
                tr:last-of-type td {
                    vertical-align: top;

                    ul li,
                    .asterisk {
                        line-height: 1.4;
                        text-align: left;
                        padding-left:1em;
                        text-indent:-1em;
                        margin-bottom: 8px;
                    }
                }
            }

            thead th {
                /* 縦スクロール時に固定する */
                position: -webkit-sticky;
                position: sticky;
                top: 0;
                /* tbody内のセルより手前に表示する */
                z-index: 1;
            }

            thead th:first-child {
                /* 行内の他のセルより手前に表示する */
                z-index: 2;
            }

            th:first-child {
                /* 横スクロール時に固定する */
                position: -webkit-sticky;
                position: sticky;
                left: 0;
                border-left: none;
                border-right: none;

                &::before {
                    content : "";
                    position : absolute;
                    top : 0;
                    left : 0;
                    width : 100%;
                    height : 100%;
                    border-left : 1px solid #595757;
                }

                &::after {
                    content : "";
                    position : absolute;
                    top : 0;
                    right : 0;
                    width : 100%;
                    height : 100%;
                    border-right : 1px solid #595757;
                }
            }

            thead th:nth-child(2),
            tbody td:first-of-type {
                border-left: none;
            }
        }
    }
}

