@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@500;700&display=swap');

/* common */

* {
    position: relative;
    box-sizing: border-box;
}

body{
    /* min-width: 1430px; */
}

body,
input,
select,
textarea {
    font-family: "Hiragino Sans W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "游ゴシック", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    ;
    font-family: "Noto Sans JP";
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.06em;
    color: #333;
}

a {
    color: rgb(47, 68, 160);
}

.btn a {
    display: inline-block;
    margin: 0.5em;
    padding: 0.5em;
    min-width: 1.5em;
    font-size: 80%;
    text-align: center;
    background: #eee;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
}

.btn a:hover {
    color: #333;
    background: #fff;
}

.google-map-wrap {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 0;
    padding-top: 60%;
}

.google-map-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gnav__toggle,
.sp-title {
    display: none;
}

/* css animation (prefixes are cut) */
.animation {
    opacity: 0;
}

.fadeup {
    transform-origin: center top;
    animation: fadeup 1s both;
}

.slidein-left {
    transform-origin: right center;
    animation: slidein_left 1s both;
}

.slidein-right {
    transform-origin: left center;
    animation: slidein_right 1s both;
}

.d3 {
    animation-delay: .3s;
}

.d5 {
    animation-delay: .5s;
}

.d10 {
    animation-delay: 1s;
}

.d15 {
    animation-delay: 1.5s;
}

.d20 {
    animation-delay: 2s;
}

.d25 {
    animation-delay: 2.5s;
}

.d30 {
    animation-delay: 3s;
}

.d35 {
    animation-delay: 3.5s;
}

.d40 {
    animation-delay: 4s;
}

.d45 {
    animation-delay: 4.5s;
}

.d50 {
    animation-delay: 5s;
}

.d55 {
    animation-delay: 5.5s;
}

.d60 {
    animation-delay: 6s;
}

@keyframes fadeup {
    0% {
        transform: translate(0, 2em);
        opacity: 0;
    }

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

@keyframes slidein_left {
    0% {
        transform: translate(-2em, 0);
        opacity: 0;
    }

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

@keyframes slidein_right {
    0% {
        transform: translate(2em, 0);
        opacity: 0;
    }

    100% {
        transform: translate(0, 0);
        opacity: 1;
    }
}
main {
    position: relative;
    background-image: url(../img/d-light_bg.webp);
    overflow: hidden;
}
main::before {
    position: absolute;
    content: "";
    margin: auto;
    width: 40%;
    height: 250px;
    background-image: url(../img/kumiki_d.webp);
    background-size: 50%;
    border: 5px solid #1a1a1a;
    border-left: 0;
    top: 332px;
    right: -5px;
    box-shadow: 5px 5px 10px #000;
}
/* header */
header {
    background-image: url(../img/d-light_bg.webp);
    overflow: hidden;
}
.header-title-wrap {
    display: flex;
    justify-content: space-between;
    max-width: 1430px;
    margin: auto;
}

.header-title {
    padding: .5rem;
}

.header-title>a {
    display: block;
    width: 500px;
    height: 60px;
    text-indent: -100%;
    background-image: url("../img/logo-wh.webp");
    background-repeat: no-repeat;
    background-size: contain;
    overflow: hidden;
}
.header-sub-container {
    display: flex;
    height: 100%;
}
.header-sub-menu {
    display: flex;
    align-items: center;
}

.header-sub-menu .free-tel {
    display: block;
    padding-left: 40px;
    padding-right: 1rem;
    font-size: 1.3rem;
    background-image: url('../img/free-tel.webp');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 33px 26px;
    color: #fff;
}
@media screen and (max-width: 1020px) {
    .header-title>a {
        width: 400px;
    }
    .header-sub-menu .free-tel {
        font-size: 1rem;
    }
}
.header-sub-menu .header-access,
.header-sub-menu .header-line {
    width: 160px;
    height: 100%;
}

.header-sub-menu .icon-pin {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    height: 100%;
    color: #fff;
    font-weight: bold;
    background-color: #b3b3b3;
}

.header-sub-menu .icon-pin>* {
    display: inline-block;
    padding-left: 35px;
}

.header-sub-menu .icon-pin>*::before {
    position: absolute;
    content: '';
    margin: auto;
    width: 22px;
    height: 33px;
    background-image: url('../img/icon-pin.webp');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 22px 33px;
    top: 0;
    bottom: 0;
    left: 0;
}
.header-sub-menu .icon-line {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    height: 100%;
    color: #fff;
    font-weight: bold;
    background-color: #06c755;
}
.header-sub-menu .icon-line>*::before {
    position: absolute;
    content: '';
    margin: auto;
    width: 33px;
    height: 33px;
    background-image: url('../img/line-icon.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 33px 33px;
    top: 0;
    bottom: 0;
    left: 0;
}
.header-line span {
    color: #fff;
    padding-left: 40px;
}
.header-menu-wrap {
    margin-bottom: 2rem;
    background-color: #eb1c24;
}

.header-menu-wrap::before {
    position: absolute;
    content: '';
    margin: auto;
    width: 100%;
    height: .5rem;
    background-color: #fff;
    bottom: -8px;
    left: 0;
}

.header-menu {
    display: flex;
    justify-content: space-between;
    max-width: 1430px;
    margin: auto;
}

.header-menu-item {
    width: 100%;
}

.header-menu-item-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
    width: 100%;
    height: 100%;
    color: #fff;
    text-align: center;
    font-weight: bold;
    background-repeat: no-repeat;
    z-index: 10;
    transition: .2s;
}

.header-menu-item.current .header-menu-item-link,
.header-menu-item:hover .header-menu-item-link {
    color: #333;
}

.header-menu-item.current::before,
.header-menu-item:hover::before {
    position: absolute;
    content: '';
    margin: auto;
    width: 100%;
    height: 100%;
    background-color: #fff;
    top: 0;
    left: 0;
    z-index: 1;
    transform: skew(20deg);
}

.header-menu-item.current .header-menu-item-link::after {
    position: absolute;
    content: '';
    margin: auto;
    height: calc(18px / 2 * tan(60deg));
    width: 18px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    background-color: #fff;
    top: calc(100% + .5rem);
    left: 0;
    right: 0;
}

.header-menu-item.current .header-menu-item-link::before {
    position: absolute;
    content: '';
    margin: auto;
    height: calc(30px / 2 * tan(60deg));
    width: 30px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    background-color: #333;
    top: calc(100% + .5rem);
    left: 0;
    right: 0;
}

.main-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 250px);
    height: calc(100dvh - 250px);
    z-index: 5;
    background-image: url(../img/d-light_bg.webp);
    overflow: hidden;
}
.kumiki_bg {
    position: absolute;
    content: "";
    margin: auto;
    width: 40%;
    height: 250px;
    background-image: url(../img/kumiki_d.webp);
    background-size: 50%;
    border: 5px solid #1a1a1a;
    border-left: 0;
    top: 20%;
    left: -5px;
    box-shadow: 5px 5px 10px #000;
}

.topics-wrap {
    position: absolute;
    padding: 1rem 3rem;
    min-width: 310px;
    background-color: #fff;
    box-shadow: 2px 2px 5px #aaa;
    border-radius: 4px;
    overflow: hidden;
    z-index: 50;
}

.topics-wrap::before,
.topics-wrap::after {
    position: absolute;
    content: '';
    margin: auto;
    width: 50px;
    height: 50px;
    background-color: #eb1c24;
    top: -25px;
    left: -25px;
    transform: rotate(45deg);
    transform-origin: center;
}

.topics-wrap::after {
    top: auto;
    bottom: -25px;
    left: auto;
    right: -25px;
}

.topics-header {
    font-size: 1.3rem;
    font-weight: bold;
}

.info-list-item {
    display: flex;
    padding: .5rem 0;
    margin-bottom: .5rem;
    border-bottom: 1px dashed #ccc;
}

.info-list-item-title {
    margin-left: 1rem;
}

.main-image-div {
    display: flex;
    flex-direction: column;
    width: 50%;
    height: 100%;
}

.main-image-item {
    padding-top: 2rem;
    width: 100%;
    height: 50%;
    overflow: hidden;
}

.main-image-item:before {
    position: absolute;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    top: 0;
    left: 0;
    transition: .2s;
}

.main-image-item.maintenance:before {
    /* background-image: url("../img/main-maintenance.webp"); */
    background-image: url("../img/main-gaikan.webp");
}

.main-image-item.bodywork:before {
    /* background-image: url("../img/main-bodywork.webp"); */
    background-image: url("../img/car-con.webp");
}

.main-image-item.d-light {
    height: 100%;
}

.main-image-item.d-light:before {
    /* background-image: url("../img/main-d-light.webp"); */
    background-image: url("../img/d-style-gaikan.webp");
}

.main-image-header {
    display: inline-block;
    padding: .5rem .5rem .5rem 50px;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: #fff;
    border-radius: 0 25px 25px 0;
    background-position: 16px center;
    background-repeat: no-repeat;
    background-size: auto 1.3em;
    box-shadow: 2px 2px 5px #aaa;
    z-index: 10;
}

.main-image-header.icon-tool {
    background-image: url("../img/icon-tool.webp");
}

.main-image-header.icon-bodywork {
    background-image: url("../img/icon-bodywork.webp");
}

.main-image-header.icon-car {
    padding-left: 70px;
    background-image: url("../img/icon-car.webp");
}

.main-image-link {
    position: absolute;
    margin: auto;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .1);
    top: 0;
    left: 0;
    z-index: 1;
    transition: .2s;
}

.main-image-item:hover .main-image-link {
    background-color: rgba(0, 0, 0, 0);
}

.main-image-item:hover:before {
    -moz-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

/* lease banner */
.lease-banner-wrap  {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.lease-banner-wrap .lease-banner-link {
    display: block;
    margin: 1rem;
    width: 100%;
    max-width: 1200px;
}

.lease-banner-wrap .lease-banner-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

@media screen and (max-width: 1020px) {
    .lease-banner-wrap {
        padding: 0;
    }
}

/* content */
.content-wrap {
    margin: auto;
    max-width: 1430px;
    padding: 1rem 3rem;
}

#page .content-wrap{
    max-width: 1200px;
}

main .content-wrap:last-child {
    margin-bottom: 3rem;
}

.content-wrap img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.content-wrap p {
    margin-bottom: 1.3rem;
}

.content-wrap ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
}

.content-wrap ol>li {
    margin-bottom: 1rem;
}

#page main h3{
    margin-bottom: 2rem;
    padding: 1rem;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

#page main h3::before{
    position: absolute;
    content: '';
    height: 3px;
    width: 100%;
    background-color: #eb1c24;
    bottom: 5px;
    left: 0;
}

#page main h3::after{
    position: absolute;
    content: '';
    height: 1px;
    width: 100%;
    background-color: #000;
    bottom: 0;
    left: 0;
}

#page main h4,
.header-1 {
    display: table;
    margin: auto;
    padding: 3rem 120px;
    font-size: 1.8rem;
    font-weight: bold;
}

#page main h4::before,
.header-1::before,
#page main h4::after,
.header-1::after {
    position: absolute;
    content: '';
    margin: auto;
    width: 100px;
    height: 1px;
    background-color: #eb1c24;
    top: 0;
    bottom: 0;
    left: 0;
}

#page main h4::after,
.header-1::after {
    left: auto;
    right: 0;
}

#page main h4 {
    margin-bottom: 1.5rem;
}

#page main h5,
.header-2 {
    padding: 1rem 0 .5rem 30px;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
    /* border-bottom: 3px dashed #ccc; */
}
#page main h5 p,
#page main h5 span {
    font-size: 14px;
}
#page main h5::before,
.header-2::before {
    position: absolute;
    content: '';
    margin: auto;
    width: 1rem;
    height: 1rem;
    background-color: #eb1c24;
    border-radius: 50%;
    top: 1.6rem;
    left: 0;
}

#page main h5 {
    margin-bottom: 1.5rem;
}

.content-flex {
    display: flex;
    flex-wrap: wrap;
}

.content-flex-col-1 {
    width: calc(100% / 12 * 1);
}

.content-flex-col-2 {
    width: calc(100% / 12 * 2);
}

.content-flex-col-3 {
    width: calc(100% / 12 * 3);
}

.content-flex-col-4 {
    width: calc(100% / 12 * 4);
}

.content-flex-col-5 {
    width: calc(100% / 12 * 5);
}

.content-flex-col-6 {
    width: calc(100% / 12 * 6);
}

.content-flex-col-7 {
    width: calc(100% / 12 * 7);
}

.content-flex-col-8 {
    width: calc(100% / 12 * 8);
}

.content-flex-col-9 {
    width: calc(100% / 12 * 9);
}

.content-flex-col-10 {
    width: calc(100% / 12 * 10);
}

.content-flex-col-11 {
    width: calc(100% / 12 * 11);
}

.content-flex-col-12 {
    width: 100%;
}

.service-wrap {
    justify-content: space-around;
}

.service-wrap .service-item {
    width: 30%;
    margin: .5rem .5rem 1.5rem;
    border: 2px solid #333;
    border-radius: 4px;
}

.service-item-header {
    display: table;
    margin: -3rem auto 0;
    padding: 1rem 2rem;
    font-size: 1.3rem;
    font-weight: bold;
    background-color: #fff;
}

.service-item-header::before,
.service-item-header::after {
    position: absolute;
    content: '';
    margin: auto;
    width: 8px;
    height: 32px;
    background-image: url("../img/double-line.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 8px 18px;
    top: 0;
    bottom: 0;
    left: 0;
}

.service-item-header::after {
    left: auto;
    right: 0;
}

.service-item-header>* {
    display: inline-block;
    padding-left: 2.5rem;
}

.service-item-header>*::before {
    position: absolute;
    content: '';
    margin: auto;
    width: 2rem;
    height: 2rem;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    top: 0;
    bottom: 0;
    left: 0;
}

.service-item-header.icon-syaken>*::before {
    background-image: url("../img/icon-syaken.webp");
}

.service-item-header.icon-tool>*::before {
    background-image: url("../img/icon-tool.webp");
}

.service-item-header.icon-bodywork>*::before {
    background-image: url("../img/icon-bodywork.webp");
}

.service-item-header.icon-used>*::before {
    background-image: url("../img/icon-used.webp");
}

.service-item-header.icon-car>*::before {
    background-image: url("../img/icon-car.webp");
}

.service-item-header.icon-hoken>*::before {
    background-image: url("../img/icon-hoken.webp");
}

.service-item-image {
    margin-bottom: 1rem;
    max-height: 180px;
    border-radius: 4px;
    overflow: hidden;
}

.service-item-image>* {
    object-fit: cover;
    width: 100%;
    height: 100% !important;
}

.service-item-link {
    margin-bottom: 0 !important;
    text-align: right;
}

.instagram-wrap {
    position: relative;
    margin: auto;
    padding: 0 1rem;
    max-width: 1200px;
}
.sbi_header_link {
    display: table;
}
.sbi_feedtheme_header_text h3 {
    color: #fff;
}
.web-reserve-wrap-container {
    background-image: url(../img/d-light_bg.webp);
    overflow: hidden;
}
.web-reserve-wrap {
    display: flex;
    margin: auto;
    width: 900px;
    border: 3px solid #eb1c24;
}

.web-reserve-image {
    max-width: 250px;
}

.web-reserve-image>* {
    object-fit: cover;
    width: 100%;
    height: 100% !important;
    border-radius: 0 !important;
}

.web-reserve-content {
    width: 100%;
}

.web-reserve-header {
    padding: .5rem;
    width: 100%;
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    background-color: #eb1c24;
}

.web-reserve-link {
    display: block;
    padding: 1rem 0 0;
    text-align: right;
}
.web-reserve-link a {
    color: rgb(47, 68, 160);
}

.web-reserve-description {
    margin-bottom: 0 !important;
    padding: 1rem;
    color: #333;
    background-color: #fff;
}
#page .web-reserve-description {
    color: #333;
}

.d-light-warp {
    background-image: url(../img/d-light_bg.webp);
    overflow: hidden;
}

.d-light-warp:before {
    position: absolute;
    content: "";
    margin: auto;
    width: 40%;
    height: 250px;
    background-image: url(../img/kumiki_d.webp);
    background-size: 50%;
    border: 5px solid #1a1a1a;
    border-left: 0;
    top: 150px;
    left: -5px;
    box-shadow: 5px 5px 10px #000
}

.d-light-warp .content-wrap h2 span {
    display: table;
    margin: 1rem auto;
    width: 320px;
    height: 180px;
    font-size: 100%;
    text-align: left;
    text-indent: -100%;
    background-image: url(../img/d-light_logo.svg);
    background-size: contain;
    background-repeat: no-repeat;
    overflow: hidden
}

.d-light-warp .content-wrap h2 span::before,
.d-light-warp .content-wrap h2 span::after {
    display: none
}

.d-light-warp .grid_4 {
    display: grid;
    grid-template-columns: 25% 25% 25% 25%
}

.d-light-warp .grid_4 .grid_item {
    margin: 2%;
    transition: .3s
}

.d-light-warp .grid_4 .grid_item div {
    height: 200px;
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
    transition: .3s
}

.d-light-warp .grid_4 .grid_item:hover div {
    background-size: auto 110%
}

.d-light-warp .grid_4 .grid_item div h3 {
    position: absolute;
    margin: auto;
    padding: .5em;
    color: #fff;
    font-size: 90%;
    background: #000;
    background: linear-gradient(180deg, rgb(0, 0, 0) 0%, rgb(75, 75, 75) 100%);
    top: -0.5em;
    left: -0.5em;
    z-index: 10
}

.d-light-warp .grid_4 .grid_item div h3:before {
    position: absolute;
    content: "";
    margin: auto;
    width: 32px;
    height: 1px;
    background-color: #333;
    top: 0;
    bottom: 0;
    left: 99%;
    z-index: 1
}

.d-light-warp .grid_4 .grid_item div h3 span {
    font-size: 80%
}

.d-light-warp .grid_4 .grid_item div p {
    position: absolute;
    margin: auto;
    padding: .5em .5em .5em 1em;
    font-size: 90%;
    background: linear-gradient(495deg, transparent 10px, #fff 10px);
    background-position: top left;
    background-repeat: no-repeat;
    bottom: -0.5em;
    right: -0.5em
}

.d-light-warp .grid_4 .grid_item div p span {
    font-weight: bold
}

.d-light-warp .grid_4 .grid_item>p {
    padding: 1em 0;
    color: #aaa;
    font-size: 80%;
    text-align: right;
    right: -0.5em
}

.d-light-warp .grid_4 .grid_item>a {
    position: absolute;
    content: "";
    margin: auto;
    width: 100%;
    height: 100%;
    text-indent: -100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 10
}

#Dlight_image,
#Dlight_image.slick-slider .slick-track,
#Dlight_image.slick-slider .slick-list,
#Dlight_image.slick-slider .slick-list p {
    height: 100%;
    min-height: 320px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat
}

#Dlight_image.slick-slider .slick-list p span {
    position: absolute;
    padding: 1em;
    width: 100%;
    font-size: 80%;
    color: #fff;
    background: rgba(0, 0, 0, .8);
    bottom: 0;
    left: 0
}

#gmap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 400px;
    overflow: hidden
}

#page .page-title-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    background-color: #e6e6e6;
}

#page .content-wrap *{
    color: #fff;
}

#page .content-wrap input,
#page .content-wrap select,
#page .content-wrap textarea{
    color: #333;
}

#page .page-title {
    padding: 2rem 3rem;
    font-size: 2rem;
    font-weight: bold;
}

#page .page-title::before{
    position: absolute;
    content: '';
    margin: auto;
    width: 2rem;
    height: 2rem;
    background-image: url(../img/icon-syaken.webp);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    top:0;
    bottom: 0;
    left:0;
}

#page main table.content-flex,
#page main table.content-flex>tbody {
    display: block;
}

#page main table.content-flex>tbody>tr {
    display: flex;
    justify-content: space-between;
}

#page main table.content-flex>tbody>tr>td {
    padding: 1rem;
    width: 100%;
}

#page table:not(.content-flex) {
    margin-bottom: 1.5rem;
    width: 100%;
    border-spacing: 0;
    border-collapse: separate !important;
    border: 1px solid #aaa;
    border-radius: 4px;
}

#page table:not(.content-flex)>tbody>tr>th,
#page table:not(.content-flex)>tbody>tr>td {
    padding: .8rem;
    /* font-size: .9rem; */
}

#page table:not(.content-flex)>tbody>tr>th {
    color: #333;
    background-color: #ccc;
    border-bottom: 1px solid #fff;
    white-space: pre;
}

#page table:not(.content-flex)>tbody>tr>th+th {
    border-left: 1px solid #fff;
}

#page table:not(.content-flex) td {
    border-bottom: 1px solid #aaa;
}

#page table:not(.content-flex) td+td {
    border-left: 1px solid #aaa;
}

#page table:not(.content-flex) tbody tr:last-of-type th,
#page table:not(.content-flex) tbody tr:last-of-type td {
    border-bottom: 0;
}

#page ul,
#page ol {
    list-style-type: disc;
    margin: 20px 0;
    padding: 0 0 0 20px;
  }

  #page ol {
    list-style-type: decimal;
  }

  #page ul li,
  #page ol li  {
    margin-top: 10px;
  }

#page form .form-label{
    display: block;
    margin-bottom: .3rem;
    width: 100%;
    letter-spacing: 0.05em;
    font-weight: bold;
}

#page form input[type=text],
#page form input[type=tel],
#page form input[type=email],
#page form input[type=date],
#page form select,
#page form textarea{
    min-height: 1.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding:.3rem;
    width: 100%;
    max-width: 410px;
    background: #eaedf2;
}

.form-checkbox label{
    display: inline-block;
}

#page form input[type=submit]{
    padding: .5rem 2rem;
    color: #fff;
    background-color: #eb1c24;
    border: 1px solid #eb1c24;
    border-radius: 4px;
    transition: .3s;
}

#page form input[type=submit]:hover{
    color: #eb1c24;
    background-color: #fff;
}

.align-items-center {
    align-items: center;
}

.mt-1 {
    margin-top: 1rem;
}

.p-1 {
    padding: 1rem;
}

.pt-1 {
    padding-top: 1rem;
}

.text-end {
    text-align: end;
}
#page main::before {
    top: 140px;
    left: -26%;
    right: auto;
}
@media screen and (max-width:1400px) {
    #page main::before {
        left: -30%;
    }
}
@media screen and (max-width:1300px) {
    #page main::before {
        left: -36%;
    }
}

#page p, #page span {
    color: #fff;
}
#page tbody {
    color: #fff;
}
#page .page-block td {
    width: 50%;
}
#page .page-block {
    justify-content: space-between;
    border: none;
}
#page .page-block td {
    border-left: none !important;
}
#page .page-block h5 {
    margin-bottom: 0;
}
#page .support-text {
    display: block;
    color: #fff;
    margin-left: 1rem;
}
#page .footer-address-info {
    color: #333;
}
.d-light-7max {
    display: table;
    padding: 8px 12px;
    border-radius: 8px;
    border: solid 1px #aaa;
    margin: 0 auto;
    background-color: #aaa;
    color: #fff;
    font-size: 1.2rem;
    transition: 0.3s;
}
.d-light-7max:hover {
    color: #333;
    background-color: #fff;
    border: solid 1px #333;
}

/* footer */
.footer {
}
.footer-wrap {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin: auto;
    padding: 1rem;
    max-width: 1430px;
    padding: 0 3rem;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    border-radius: 4px;
}

.footer-menu-item {
    padding: .5rem 1rem;
}

.footer-menu-item::after {
    position: absolute;
    content: '';
    margin: auto;
    width: 1px;
    height: 70%;
    background: #ccc;
    top: 0;
    bottom: 0;
    right: 0;
}

.footer-menu-item:last-child::after {
    background-color: transparent;
}

.footer-menu-item>* {
    color: #333;
}

.footer-address-wrap {
    margin-bottom: 1.3rem;
    background-color: #fff;
    border-radius: 4px;
}

.footer-address-wrap::before {
    position: absolute;
    content: '';
    margin: auto;
    width: 62px;
    height: 16px;
    background-repeat: no-repeat;
    background-size: contain;
    bottom: 0;
    right: 1rem;
}

.footer-address-title {
    margin: .3rem 0;
    width: 350px;
    height: 40px;
    text-indent: -100%;
    background-image: url("../img/logo.webp");
    background-repeat: no-repeat;
    background-size: contain;
    overflow: hidden;
}

.footer-address-info {
    font-size: .9rem;
}

.footer-address-tel {
    font-size: 2rem;
}

.footer-copyright {
    margin-bottom: 0;
    padding: .3rem;
    width: 100%;
    text-align: center;
    font-size: .7rem;
}


@media screen and (max-width:1000px) {
    #page table.large_table{
        width:96% !important;
        margin-left:auto;
        margin-right:auto;
        border-top: 0;
        border-right: 0;
        border-bottom: 0;
    }

    #page table.large_table tr:first-of-type{
        border-top: 2px #47806f solid;
    }

    #page table.large_table tr:last-of-type{
    }

    #page table.large_table strong{
        word-break: keep-all;
    }

    #page table.large_table{
        display: block;
        height:auto !important;
        overflow-x: scroll;
        table-layout:fixed;
        box-sizing: border-box;
    }

    #page table.large_table td,
    #page table.large_table th{
        white-space: nowrap;
    }

    #page table.large_table {
        overflow: auto;
    }

    #page table.large_table th{
        vertical-align:middle;
        padding:.5em;
        font-size:90%;
    }

    #page table.large_table td{
        padding:.5em;
        font-size:90%;
        border-top:1px solid #fff;
    }

    #page table.large_table tr td:last-child{
        border-right:1px solid #fff;
    }

    #page table::-webkit-scrollbar{
        height: 10px;
    }

    #page table::-webkit-scrollbar-thumb{
        background: #eb1c24;
        border-radius: 10px;
    }
    #page table::-webkit-scrollbar-track-piece:start{
        background: #fff;
        border-radius: 10px 0 0 10px;
    }
    #page table::-webkit-scrollbar-track-piece:end{
        background: #fff;
        border-radius: 0 10px 10px 0;
    }
}
@media screen and (max-width:850px) {
    .header-wrap {
        display: block;
        height: auto;
    }

    .header-menu-wrap {
        display: flex;
        justify-content: space-between;
        padding-left: 70px;
    }

    .header-menu-wrap::before {
        position: absolute;
        content: '';
        margin: auto;
        width: 800px;
        height: 150px;
        background-image: url(../img/header-bg.webp);
        background-size: auto 800px;
        background-repeat: no-repeat;
        background-position: left top;
        top: 0;
        left: -385px;
    }

    .header-wrap::before,
    .header-menu-wrap::before {
        display: none;
    }

    .header-title>a{
        margin: auto;
    }

    .header-title-wrap {
        flex-wrap: wrap;
        margin-right: auto;
    }

    .header-title-wrap > *{
        justify-content: space-around;
        width: 100%;
    }

    .header-menu-wrap::before{
        width: 100%;
    }

    .gnav__toggle {
        display: block;
    }

    .gnav__toggle {
        position: fixed;
        display: table;
        margin: auto;
        padding: 1em 0 1em 20px;
        height: 50px;
        color: #fff;
        font-size: 80%;
        font-weight: bold;
        line-height: 2.3;
        text-align: center;
        box-sizing: border-box;
        top: 1rem;
        left: 1.5rem;
        z-index: 9995;
        cursor: pointer
    }

    .gnav__toggle #close_toggle {
        display: block;
        padding: 1em;
        text-align: right
    }

    .gnav__toggle:before {
        position: absolute;
        content: '';
        width: 50px;
        height: 50px;
        background: #eb1c24;
        border-radius: 50%;
        top: 0;
        left: -12px;
        z-index: -1;
        transition: .2s;
    }

    .gnav__toggle__icon {
        position: absolute;
        display: block;
        margin: auto;
        width: 25px;
        height: 3px;
        background: #fff;
        transition: .2s;
        top: 0;
        bottom: 0;
        left: 0
    }

    .gnav__toggle__icon:before,
    .gnav__toggle__icon:after {
        position: absolute;
        display: block;
        content: "";
        width: 25px;
        height: 3px;
        background: #fff;
        transition: .3s;
        top: 50%;
        left: 0
    }

    .gnav__toggle__icon:before {
        margin-top: -11px
    }

    .gnav__toggle__icon:after {
        margin-top: 9px
    }

    .gnav__toggle__icon.close {
        background: rgba(0, 0, 0, 0)
    }

    .gnav__toggle__icon.close:before,
    .gnav__toggle__icon #panel-btn .close:after {
        margin-top: 0
    }

    .gnav__toggle__icon.close:before {
        margin-top: -1px;
        transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg)
    }

    .gnav__toggle__icon.close:after {
        margin-top: -1px;
        transform: rotate(-135deg);
        -webkit-transform: rotate(-135deg)
    }

    .sp-title {
        display: none;
        text-align: center;
        color: #000;
        background-color: transparent;
    }

    .header-menu-wrap .header-menu {
        display: block;
        padding-top: 36px;
        width: 100%;
        position: fixed;
        background-color: #fff;
        z-index: 100;
        top: -630px;
        left: 0;
        transition: .3s;
    }

    .header-menu-item-link{
        padding: 1.3rem 1rem;
        color: #000;
    }

    .header-menu-item.current .header-menu-item-link::before,
    .header-menu-item.current .header-menu-item-link::after{
        display: none;
    }

    .header-menu-item.current::before, .header-menu-item:hover::before{
        background-color: #eb1c24;
        height: 3px;
        top: auto;
        bottom: 0;
    }

    .header-menu-wrap.open .header-menu {
        top: 0;
    }
    .header-sub-menu .header-access,
    .header-sub-menu .header-line {
        width: 160px;
    }
    .header-sub-menu .icon-pin,
    .header-sub-menu .icon-line {
        padding: 1rem 2rem;
    }

    .main-image-wrap {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .topics-wrap{
        order: 4;
        width: 95%;
        position: relative;
    }

    .info-list-item{
        flex-direction: column;
    }

    .info-list-item-title{
        margin-left: 0;
    }

    .main-image-link{
        background-color: transparent;
    }

    .main-image-div{
        order: 1;
        width: 100%;
        height: auto;
    }

    .main-image-item,
    .main-image-item.d-light{
        margin-bottom: 1rem;
        height: 200px;
    }

    .content-flex {
        /* display: block; */
    }

    /* .content-flex>* {
        padding: 1rem 0;
        width: 100%;
    } */

    .service-wrap .service-item{
        width: calc(50% - 1rem);
    }

    .content-wrap{
        overflow: hidden;
    }
    #page main::before {
        left: -34%;
    }
    #page main table.content-flex>tbody>tr {
        display: block;
    }

    #page main table.content-flex>tbody>tr>td {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }

    .web-reserve-wrap{
        width: 100%;
    }

    .web-reserve-image{
        display: none;
    }
    /*--表の組み換え_SP--*/
    #page .page-block td {
        width: 100%;
    }
    #page .page-block {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    #page .page-block-reverse {
        flex-direction: column-reverse;
    }
    /* #page .table-flex tr {
        flex-direction: column;
        justify-content: space-between;
    }
    #page .table-flex-reverse tr {
        flex-direction: column-reverse;
        justify-content: space-between;
    }
    #page table {
        width: 100%;
        margin-bottom: 10px;
        border-collapse: collapse;
        }
    #page tr {
        width: 100%;
    }
    #page th,
    #page td {
        display: block;
        border: none;
        }
    #page th {
        width: 100%;
        padding: 6px;
        background-color: transparent;
        text-align: left;
    }
    #page td {
        background-color: transparent;
        width: 100%;
        padding: 6px;
    } */

}

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

    body,
    input,
    select,
    textarea {
        font-size: 16px;
    }

    .header-title {
        padding: .5rem 1rem;
        height: 80px;
    }

    .header-menu-wrap .header-menu {
        padding-top: 28px;
    }

    .header-menu-wrap {
        display: block;
        padding-left: 55px;
        margin-bottom: 1rem;
        background-color: #eb1c24;
    }

    .header-title{
        height: auto;
    }

    .header-title>a{
        height: 0;
        padding-top: 10%;
        margin-right: 0;
        margin-left: auto;
        width: calc(100% - 60px);
    }

    .header-title-wrap > *{
        justify-content: space-between;
    }
    .header-sub-container {
        width: 100%;
    }
    .header-sub-menu {
        display: flex;
        flex-direction: column;
        margin: auto;
    }
    .header-sub-item {
        margin: 1rem 0;
    }
    .header-sub-menu .icon-pin, .header-sub-menu .icon-line {
        padding: 1rem;
    }
    .header-sub-menu .header-access,
    .header-sub-menu .header-line {
        width: 50%;
    }

    .header-sub-menu .icon-pin>*{
        padding-left: 22px;
    }

    .header-sub-menu .icon-pin>*::before{
        width: 16px;
        height: 22px;
        background-size: contain;
    }

    .header-sub-menu .free-tel{
        font-size: 1rem;
    }

    .head-address {
        display: none;
    }

    .header-menu-wrap::before {
        display: none;
    }

    .gnav__toggle:before{
        height: 40px;
        width: 40px;
        top: 5px;
        left: -9px;
    }

    .gnav__toggle__icon{
        height: 2px;
        width: 22px;
    }

    .gnav__toggle__icon:before, .gnav__toggle__icon:after{
        height: 2px;
        width: 22px;
    }

    .gnav__toggle__icon:before{
        margin-top: -9px;
    }

    .gnav__toggle__icon:after{
        margin-top: 7px;
    }

    .header-menu-item-link {
        font-size: 1rem;
    }

    .icon-train {
        background-size: 34px 23px;
    }

    .icon-box {
        background-size: 25px 23px;
    }

    .icon-clock {
        background-size: 26px 24px;
    }

    .icon-bear {
        background-size: 26px 24px;
    }

    .icon-mail {
        background-size: 25px 16px;
    }

    .slide-item {
        height: 300px;
    }
    #page main::before {
        content: none;
    }
    .main-image-wrap::after {
        display: none;
    }

    .main-image-header{
        font-size: 1rem;
        max-width: 95%;
    }

    .main-image-header > span{
        display: inline-block;
    }

    .main-image-item, .main-image-item.d-light{
        height: 300px;
    }

    .service-wrap .service-item {
        padding: 1rem;
        width: calc(100% - 1rem);
    }

    .content-wrap {
        padding: 1rem;
    }

    .content-flex{
        flex-direction: column;
    }
    .content-flex > *{
        width: 100%;
        padding: 0;
    }

    .header-1 {
        padding: 1.3rem 0 3rem;
        font-size: 1.3rem;
    }

    #page .page-title-wrap{
        padding: 1rem;
    }

    #page .page-title{
        padding: 0 0 0 45px;
        font-size: 1.3rem;
    }
    #page main h3{
        font-size: 1.3rem;
        padding-left: 0;
    }

    .web-reserve-header{
        font-size: 1.1rem;
    }

    .footer-menu-item {
        width: 100%;
    }

    .footer-menu-item::after{
        display: none;
    }

    .footer-address-title{
        width: 280px;
    }

    .footer-wrap{
        padding: 1rem;
    }
}