:root {
    --primary-color: #0070B7;
}

body {
    overflow-x: hidden;
    font-size:  calc(14px + 0.3vw);
}

img{
    max-width: 100%;
}
.navbar {
    background-color: var(--primary-color) !important;
    padding: 1.5rem 1rem;
    position:fixed;
    width: 100%;
    z-index: 99999999;
}

.navbar-brand img {
    height: 80px;
}

.nav-item{
    padding: 0 3px;
    font-size:  calc(16px + 0.3vw);
}
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 0 1rem;
}

.navbar-nav .nav-link:hover {
    color: white;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}


.contact-button {
    position: fixed;
    right: 0;
    top: 40%;
    background-color: black;
    color: white;
    padding: 20px 5px;
    writing-mode: vertical-rl;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    line-height: 2.5;
}

.contact-button img {
    width: 24px;
    height: 24px;
    margin-bottom: 10px;
    line-height: 0;
    margin-left: -5px;
}

/* オフキャンバスメニューのカスタマイズ */
.offcanvas {
    background-color: rgba(0,0,0, 0.8);
    width: 80%;
}

.offcanvas-header .btn-close {
    background-color: white;
    opacity: 1;
}

.offcanvas-body .nav-link {
    color: white;
    font-size: 1.2rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* メインビジュアル */
.overlay-text{
    position: relative;
}

.main-visual {
    width: 100%;
    margin-bottom: 150px;
}

@media (max-width: 576px) {
    .main-visual {
        margin-bottom: 50px;
    }
}

.main-bg{
    width: 100%;
    display: flex;
    align-items: center;
    background: url(/assets/img/top/main.webp) 50% 100% no-repeat;
    background-size: cover;
    min-height: 1400px;
    padding: 20px;
}

.main-bg p{
    position: inherit;
    max-width: 1200px;
    margin: 0 auto;
}

.main-bg img{
    width: 1100px;
}

/* ニュースセクションのスタイル */
.news-section {
    max-width: 90%;
    margin: 0 auto;
}

.news-date {
    color: #666;
    font-size:  calc(14px + 0.3vw);
    margin-right: 2em;
}

.news-title {
    font-size:  calc(14px + 0.3vw);
}

/* サービスセクションのスタイル */
.services-section{
    width: 100%;
    padding: 20px;
}
.services-section .card {
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.services-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #005a94;
    border-color: #005a94;
}
.rel{
    position: relative;
}
.rel .card-body{
    position: absolute;
    width: 100%;
    top: 50%;
    padding: 80px 40px;
    color: #fff;
    transform: translateY(-50%);
}


/* レスポンシブ調整 */
@media (max-width: 992px) {
    .main-bg {
        min-height: 800px;
    }
    .main-bg p{
        width: 100%;
    }
    
    .main-bg img {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 1rem 1rem;
    }
    
    .navbar-brand img {
        height: 50px;
    }
    .main-bg {
        min-height: 500px;
    }
    
    .news-item .d-flex {
        flex-direction: column;
    }
    
    .news-date {
        margin-bottom: 5px;
    }
}
.hedding{
    margin-top: 100px;
}

.line-text {
    display: inline-flex;
    align-items: center;
    margin-bottom: 50px;
}
@media (max-width: 576px) {
    .hedding{
        margin-bottom: 50px;
    }
    
    .line-text {
        margin-bottom: 0px;
    }
    .services-section{
        max-width: 90%;
        margin: 0 auto;
    }
}
.line-text::before {
    content: "";
    width: 100px; /* 罫線の横幅 */
    height: 1px;
    background-color: black;
    margin-right: 10px; /* 罫線とテキストの間隔 */
}

/* ここから横スクロールスライダー用のスタイル */
/* 横スクロールスライダー用のスタイル */
.scroll-slider-section {
    max-width: 90%;
    margin: 0 auto;
    padding: 40px 0px;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-left: 5%; /* 左の余白 */
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.slide {
    flex: 0 0 auto;
    width: 80%;
    max-width: 400px;
    overflow: hidden;
    scroll-snap-align: start;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slide-content {
    width: 100%;
    height: 100%;
}

.nav-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 0px;
    padding-right: 5%;
}

.nav-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1.2rem;
}

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

@media (max-width: 992px) {
    .slide {
        width: 85%;
    }
}

@media (max-width: 768px) {
    .slide {
        width: 90%;
    }
}

@media (max-width: 576px) {
    .slide {
        width: 65%;
    }
}

/* 会社概要セクションのスタイル */
.about-section {
    background: url(/assets/img/top/about.webp) no-repeat bottom center;
    background-size: cover;
    position: relative;
    padding: 0;
    color: white;
    min-height: 400px;
    margin-bottom: 220px;
}

.about-container {
    width: 50%;
    background: #fff;
    position: relative;
}

.about-content {
    padding: 80px 40px;
    background-color: #fff;
    color: #000;
}
@media (max-width: 768px) {
    .about-section {
        background: none;
        background-size: 100%;
        position: relative;
        padding: 0;
        color: white;
        min-height: 400px;
        margin-bottom: 50px;
        margin-top: 50px;
    }
    .about-container {
        width: 100%;
        background: none;
        position: relative;
    }
    .about-content{
        background-color:none;
        background:none;
    }
}


.about-content h2 {
    display: inline-block;
    font-size:  calc(24px + 0.5vw);
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
    margin: 0;
}

.about-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-content hr {
    border-color: white;
    opacity: 0.5;
}

@media (max-width: 992px) {
    .about-content {
        width: 70%;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .about-content {
        width: 100%;
        padding: 20px;
    }
}
.bnr {
    gap: 0;
    padding: 0;
}
.bnr div,
.footer div{
    padding: 0;
}
.bnr img{
    width: 100%;
}

.footer{
    background: #000;
    color: #fff;
}
.footer ul{
    max-width: 550px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.footerLinks{
    padding: 3rem 5rem;
}
.footerLinks a{
    color: #fff;
}
.footerLinks h2,
.footerLinks p{
    text-align: center;
    margin-bottom: 30px;
}
@media (max-width: 768px) {

    .footerLinks p{
        text-align: left;
        font-size: 0.8rem;
    }
    .footerLinks li{
        font-size: 0.8em;
    }
}

footer iframe{
    display: block;
}

.cp{
    background: #0071BA;
    padding: 20px;
    text-align: center;
    color: #fff;
    margin-bottom: 0;
}

.contact-button a{
    text-decoration: none;
    color: #fff;
}

@media (max-width: 768px) {
    .footerLinks{
        padding: 2em 1em !important;
    }
    .footer ul{
        padding: 0 1em;
    }
    .contact-button{
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 0;
        writing-mode: horizontal-tb;
        width: 100%;
        height:50px;
        text-align: center;
        background: none;
    }
    .contact-button a{
        display: flex;
        align-items:center;
        text-align: center;
        background: #000;
        margin: 0 auto;
        padding: 0 50px;
        border-radius: 10px;
    }
    .contact-button a img{
        margin-right: 10px;
        margin-top: 8px;
    }
}

.page-hedding img{
    width: 100%;
}

.privacy h3{
    font-size: 20px;
    font-weight: bold;
    margin:30px 0;
}
.privacy h3::after{
    content: "";
    display: block;
    width: 100px;
    padding-bottom: 15px;
    border-bottom: 1px solid #000;
}

.company table{
    width: 100%;
}
.company tr{
    border: 1px solid #ccc;
    border-left:none;
    border-right:none;
}
.company th,
.company td{
    padding: 15px;
}
.company th{
    width: 250px;
}

.bg-container{
    display: flex;
    color: #fff;
    padding: 50px 0;
}
.bg-container h2{
    margin-bottom: 20px;
    font-weight: bold;
}
.bg-container .inner{
    display: flex;
    max-width: 1200px;
}



.icon-grid{
    display: grid;
    padding: 0 80px;
    /* max-width: 1280px;
    margin: 0 auto; */
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 200px;
}
@media (max-width: 768px) {
    .icon-grid{
        grid-template-columns: 1fr;
        margin-bottom: 50px;
        padding: 0 20px;
    }
    .hedding{
        margin: 50px 0;
    }
}

.icon-list{
    border: 1px solid #000;
    padding: 50px 30px;
    text-align: center;
    font-size: clamp(14px, 1.5vw, 24px);
}
.icon-list img{
    max-width: 250px;
}

.form{
    margin-top: 100px;
    margin-bottom: 200px;
}
.form-intro h3{
    font-size: 24px;
    font-weight: bold;
    line-height:1.5;
    letter-spacing: 1px;
}
.form-intro p{
    margin:0 0 3em 0;
    line-height:1.5;
    letter-spacing: 1px;
}
.form-table table{
    width: 100%;
    border-top: 1px solid #ccc;
    border-right: 1px solid #ccc;
}
.form-table th,
.form-table td{
    padding: 15px;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
}
.form-table th{
    background: #eee;
    width: 250px;
}
.required{
    color: #f00;
    font-weight: normal;
    font-size: 12px;
}
 

.form-short{
    width: 25%;
}
.form-middle{
    width: 50%;
}

.bg-sale1,.bg-sale2,.bg-sale3,
.bg-buy1,.bg-buy2,.bg-buy3 {
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.bg-sale1 { background: url(/assets/img/pages/sale/bg1.webp) no-repeat; background-size:cover;}
.bg-sale2 { background: url(/assets/img/pages/sale/bg1.webp) no-repeat; background-size:cover;}
.bg-sale3 { background: url(/assets/img/pages/sale/bg1.webp) no-repeat; background-size:cover;}
.bg-buy1 { background: url(/assets/img/pages/sale/bg1.webp) no-repeat; background-size:cover;}
.bg-buy2 { background: url(/assets/img/pages/sale/bg1.webp) no-repeat; background-size:cover;}
.bg-buy3 { background: url(/assets/img/pages/sale/bg1.webp) no-repeat; background-size:cover;}

.btn{
    font-size:  calc(14px + 0.3vw);
}
h2{
    font-size:  calc(24px + 1vw);
}

.lineup{
    display: grid;
    grid-template-columns:1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 200px;
}
.lineup a{
    text-decoration: none;
    color: #000;
    font-size:  calc(14px + 0.3vw);
}
.lineup a:hover{
    color: #0070B7;
}
.lineup img{
    margin-bottom: 15px;
}
.lineup img:hover{
    opacity: 0.8;
}
p.label{
    display: inline-block;
    background: #333;
    font-size:  calc(10px + 0.3vw);
    padding: 5px 10px;
    color: #fff;
}

.itemMenu{
    background:#0070B7;
    padding: 5px 15px 5px 15px;
    margin-bottom: 30px;
}
.itemMenu h3{
    font-size:  calc(14px + 0.3vw);
    color: #fff;
    margin: 15px 0 20px 0;
}
.itemMenu ul{
    list-style-type: none;
    padding: 0;
}
.itemMenu li a{
    display: block;
    margin-bottom: 10px;
    background: #fff;
    text-align: center;
    font-size:  calc(12px + 0.3vw);
    text-decoration: none;
    color: #000;
    padding: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}
.lineup-items dt{
    margin-bottom: 10px;
}
@media (max-width: 768px) {
        .bg-sale1,.bg-sale2 img,.bg-sale3 img,
        .bg-buy1 img,.bg-buy2 img,.bg-buy3 img {
        display: none;
    }

    .form-intro h3 br{
        display: none;
    }
    .lineup{
        display: grid;
        grid-template-columns:1fr;
        gap: 20px;
    }

}
.detail dl{
    font-size:  calc(18px + 0.3vw);
    letter-spacing: 1px;
}

.gallery-container {
    width: 100%;
    background-color: white;
    overflow: hidden;
    margin-bottom: 50px;
}

.main-image-container {
    position: relative;
    width: 100%;
    /* height: 600px;
    overflow: hidden; */
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    transition: transform 0.3s ease;
}

.main-image.active {
    display: block;
}

.thumbnail-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 10px 0;
    scrollbar-width: thin;
}

.thumbnail {
    flex: 0 0 auto;
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 0.9;
}

.thumbnail.active {
    border-color: #3498db;
    opacity: 1;
}

.main-image-container .navigation {
    position: absolute !important;
    top: 50% !important;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%) !important;
    padding: 0 16px;
}

.nav-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: background-color 0.2s;
}

.nav-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}


.item th{
    width: 150px;
}

#pagetop{
    position: fixed;
    bottom: 0;
    right: 0;
}
#pagetop img{
    width: 50px;
    height: 50px;  
}

@media (max-width: 768px) {
    tbody, td, tfoot, th, thead, tr{
        border: none;
        display: block;
    }
    
    .form-table table,
    .form-table table th,
    .form-table table td,
    .form table {
        border: none;
    }
    .recruit-table,
    .recruit-table th,
    .recruit-table td{
        display: block;
        width: 100%;
        border: none;
    }
    .recruit-table td,
    .form-table td,
    .company td{
        padding: 15px 0;
        margin-bottom: 15px;
    }
    .company th{
        display: block;
        width: 100%;
        padding: 10px;
        background: #eee;
    }
    
    .company tr{
        border: none;
    }
    .form-table th{
        width:100%;
        padding: 12px;
        border: none;
    }
    .form td{
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .py-5{
        padding: 0 !important;
    }
    .container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl{

    }
    .form{
        margin-top: 50px;
        margin-bottom: 50px;
    }
    .form p.mt-5{
        margin-top: 0 !important;
    }
}
.offcanvas.offcanvas-end{
    z-index: 999999999999999;
}

.offcanvas-header h5{
    display: none;
}
.offcanvas-header{
    margin: 10px 10px 0 0;
    text-align: right;
    justify-content: end;
}

@media (max-width: 768px) {
    .page-hedding,
    .main-visual{
        padding-top: 92px;
    }
}

.contact-list{
    display: grid;
    gap: 20px;
    align-items: start;
    grid-template-columns: 1fr 1fr;
}
.contact-list div{
    border: 1px solid #000;
    padding: 20px;
}

.container .navigation{
    position: relative;
}
.navigation.pagination {
    text-align: center;
    margin: 20px 0;
}

.navigation.pagination .nav-links {
    display: inline-block;
}

.navigation.pagination a,
.navigation.pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 5px;
}

.navigation.pagination .current {
    background: #0073aa;
    color: #fff;
    border: 1px solid #0073aa;
}

.navigation.pagination a:hover {
    background: #0073aa;
    color: #fff;
}

/* #wpmem_register_form フォーム全体のスタイル */

#wpmem_reg{
    width: 100% !important;
    margin: 0 auto !important;

}
#wpmem_reg input{
    margin-bottom: 1em !important;
}
 #wpmem_register_form {
    width: 100% !important;
    padding: 0 20px !important;
    border: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 8px;
}
.button_div{
    text-align: center !important;
}
#wpmem_register_form .buttons{
    width: auto !important;
    margin:0 auto;
    padding: 1em 3em !important; 
}

/* ラベルのスタイル */
 #wpmem_register_form label.text {
    display: block;
    font-weight: bold;
    margin-top: 10px;
}

/* 必須マークのスタイル */
 #wpmem_register_form .req {
    color: red;
    font-weight: bold;
    margin-left: 5px;
}

/* 入力フィールド */
 #wpmem_register_form .div_text input.textbox {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 5px;
    box-sizing: border-box;
}

/* 送信ボタン */
 #wpmem_register_form .button_div input.buttons {
    width: 100%;
    background-color: #0073aa;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
}

 #wpmem_register_form .button_div input.buttons:hover {
    background-color: #005f8d;
}

/* フォームの必須項目説明 */
 #wpmem_register_form .req-text {
    font-size: 0.9em;
    color: #555;
    margin-top: 10px;
}
#wpmem_register_form legend{
    display: block;
    margin-bottom: 1em !important;
}