body {
    margin: 0;
    padding-top: 100px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}



.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 5px 15px;
}

.header-left {
    flex: 1;
}

.logo {
    height: 80px;
    margin-top: 10px;
}

.header-right {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 20px;
}

.top-menu,
.bottom-menu {
    display: flex;
    margin: 5px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 5px 0;
}

.nav-menu a {
    text-decoration: none;
    color: #000;
    padding-left: 10px;
    padding-right: 10px;
}

.nav-menu a:hover {
    color: #007bff;
}

.highlight {
    background-color: #000;
    color: #fff;
    padding: 10px;
    border: 1px solid #000;
}

.top-menu,
.bottom-menu {
    height: 40px;
}

.header-right {
    height: 90px;
}

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

.top-menu {
    padding-right: 20px;
}

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
    border-bottom: 1px solid #ddd;
}

#mobile-header {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: #000;
    transition: 0.3s;
}

.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 100;
}

.overlay-menu ul {
    list-style: none;
    text-align: center;
    padding: 0;
}

.overlay-menu ul li {
    margin: 20px 0;
}

.overlay-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 24px;
}


.overlay-menu.open {
    transform: translateX(0);
}

/* ✅ ハンバーガーメニューが開いたときのアニメーション */
.menu-icon.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-icon.open span:nth-child(2) {
    opacity: 0;
}

.menu-icon.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


@media (max-width: 1170px) {
    .header {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    .menu-icon {
        display: flex;
    }

    #mobile-header {
        display: flex;
    }

    .logo {
        height: 60px;
        margin-top: 2px;
    }

    body {
        padding-top: 80px;
    }

}




.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}

.slides-wrapper {
    display: flex;
    transition: transform 1s ease;
}

.slide {
    min-width: 100%;
    display: block;
}

.slide img {
    width: 100%;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.fade {
    animation: fadeEffect 1.5s;
}

@keyframes fadeEffect {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

.c_info {
    text-align: center;
    background-color: #eff9ff;
    padding: 30px;
}

.c_info_h1 {
    font-size: 30px;
    font-weight: 600;
    margin: 0;
}

.c_info_h2 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.c_info_p {
    font-size: 22px;
    line-height: 1.6;
}

.c_info_p span {
    font-size: 26px;
}

.c_info_p_div {
    background-color: white;
    border: 2px solid #cfcfcf;
    box-shadow: 10px 14px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px 60px;
    margin: 30px auto;
    max-width: 750px;
}

.o_b {
    text-align: center;
    padding: 30px;
}

.o_b_p {
    font-size: 22px;
    line-height: 1.8;
}

.o_p {
    text-align: center;
    padding: 30px;
}

.o_p_p {
    font-size: 22px;
    line-height: 1.8;
    margin: 12px 0;
}

.o_b_imgg {
    height: auto;
    width: 60%;
    margin-top: 30px;
}

.o_b_imgg2 {
    height: auto;
    width: 50%;
    margin: 30px 0;
}

.opup {
    text-align: center;
    padding: 30px 0;
}

.opup_h1 {
    font-size: 44px;
    font-weight: 600;
    margin: 0;
}

.opup_h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.opup_b {
    background-color: rgb(188, 227, 255);
    margin: 0;
    padding: 50px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.cpup_container {
    display: flex;
    gap: 40px;
}

.cpup_box {
    width: 200px;
    padding: 20px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.cpup_box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.p_l {
    text-align: center;
    background-image: url('./media/Group\ 72.png');
    background-size: cover;
    background-position: center;
    padding: 30px;
}

.p_l_p {
    font-size: 20px;
    line-height: 1.8;
    margin: 12px 0;
    letter-spacing: 1px;
}

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

.slider {
    display: flex;
    animation: slide 30s linear infinite;
}

.slider img {
    height: 100%;
    flex-shrink: 0;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.slider_img_div {
    height: 300px;
    width: auto;
    margin: 0 15px;
}



.b_l_container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: center;
    max-width: 900px;
}

.b_l_box {
    width: 200px;
    padding: 20px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.b_l_box img {
    width: 100%;
    height: auto;
    border-radius: 2px;
}

.b_l_box:nth-child(1) {
    border: 2px solid rgba(255, 165, 0, 0.4);
    box-shadow: 10px 14px 10px rgba(255, 165, 0, 0.2);
}

.b_l_box:nth-child(2) {
    border: 2px solid rgba(138, 43, 226, 0.4);
    box-shadow: 10px 14px 10px rgba(138, 43, 226, 0.2);
}

.b_l_box:nth-child(3) {
    border: 2px solid rgba(199, 21, 133, 0.4);
    box-shadow: 10px 14px 10px rgba(199, 21, 133, 0.2);
}

.b_l_box:nth-child(4) {
    border: 2px solid rgba(0, 128, 0, 0.4);
    box-shadow: 10px 14px 10px rgba(0, 128, 0, 0.2);
}

.b_l_box:nth-child(5) {
    border: 2px solid rgba(255, 105, 180, 0.4);
    box-shadow: 10px 14px 10px rgba(255, 105, 180, 0.2);
}


@media screen and (max-width: 1024px) {
    .b_l_box {
        width: 45%;
    }
}

@media screen and (max-width: 768px) {
    .b_l_box {
        width: 100%;
    }
}


.b_l {
    text-align: center;
    padding: 30px;
}


.b_l_b {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}



.a_o_c {
    text-align: center;
    background-image: url('./media/私たちの会社について.png');
    background-size: cover;
    background-position: center;
    padding: 30px;
}

.a_o_c_img {
    height: auto;
    width: 450px;
}




.t_v {
    text-align: center;
    background-image: url('./media/社員インタビュー\ .png');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
}


.profile-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 650px;
    margin: 0 auto;
}

.profile-container_koike {
    margin-top: 110px;
}

.profile-box {
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 20px 20px 10px 20px;
    text-align: center;
}

.profile-box img {
    width: 170px;
    height: 170px;
    border-radius: 50%;
}

.title {
    font-size: 16px;
    color: #555;
    margin: 10px 0;
}

.name {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

.description {
    font-size: 14px;
    color: #333;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.more-text {
    display: none;
}

.expanded .description {
    max-height: 2000px;
}

.expanded .more-text {
    display: inline;
}

.toggle-btn {
    background: none;
    border: none;
    color: #007BFF;
    cursor: pointer;
    font-size: 17px;
    padding: 10px;
    margin-top: 10px;
}

.profile-box.empty {
    visibility: hidden;
    background: none;
    box-shadow: none;
}


.contact-container {
    width: 80%;
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #000;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.contact-container h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
}

.contact-form textarea {
    height: 100px;
    resize: none;
}

.contact-form button {
    display: block;
    width: 20%;
    margin: 5px auto;
    padding: 10px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #0056b3;
}



.footer {
    background-color: #f8f8f8;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    width: 100%;
}

.footer-logo {
    display: flex;
    justify-content: flex-start;
    flex: 1;
}

.footer-logo .logo-img {
    height: 100px;
}

.footer-address {
    flex: 2;
    text-align: left;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 10px;
}

.footer-links ul li {
    font-size: 14px;
    color: #007BFF;
}

.footer-links ul li a {
    color: #007BFF;
    text-decoration: none;
}

.footer-links ul li a:hover {
    text-decoration: underline;
}

.footer-logo-text {
    width: 100%;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-top: 10px;
    text-align: center;
}



@media (max-width: 700px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
        margin-bottom: 10px;
    }

    .footer-address {
        flex: none;
        margin-bottom: 20px;
    }

    .footer-links {
        flex: none;
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 0;
        margin: 0;
        justify-content: center;
    }

    .footer-logo-text {
        margin-top: 20px;
    }
}




.m_profile {
    display: none;
    flex-direction: column;
}



@media (max-width: 1000px) {
    .c_info_p {
        font-size: 18px;
        line-height: 1.6;
    }

    .c_info_p span {
        font-size: 21px;
    }

    .o_b_p {
        font-size: 18px;
        line-height: 1.8;
    }

    .o_p_p {
        font-size: 18px;
        line-height: 1.8;
        margin: 10px 0;
    }

    .cpup_container {
        display: flex;
        gap: 40px;
        flex-direction: column;
    }

    .opup_h1 {
        font-size: 30px;
        font-weight: 600;
        margin: 0;
    }

    .opup_h2 {
        font-size: 14px;
        font-weight: 600;
        margin: 0;
    }

    .p_l_p {
        font-size: 17px;
        line-height: 1.7;
        margin: 12px 0;
        letter-spacing: 1px;
    }

    .slider_img_div {
        height: 200px;
        width: auto;
        margin: 0 15px;
    }

    .a_o_c_img {
        height: auto;
        width: 350px;
    }

    .sto {
        margin: 40px 15px 0 15px;
    }

    .pnmd {
        margin-right: 15px;
    }

    .profile-container_koike {
        margin: 110px 15px 0 15px;
    }

    .o_b_imgg {
        height: auto;
        width: 75%;
        margin-top: 30px;
    }

    .o_b_imgg2 {
        height: auto;
        width: 70%;
        margin-top: 30px;
    }

}


@media (max-width: 500px) {
    .c_info_p {
        font-size: 18px;
        line-height: 1.6;
    }

    .c_info_p span {
        font-size: 21px;
    }

    .o_b_p {
        font-size: 18px;
        line-height: 1.8;
    }

    .o_p_p {
        font-size: 18px;
        line-height: 1.8;
        margin: 10px 0;
    }

    .cpup_container {
        display: flex;
        gap: 40px;
        flex-direction: column;
    }

    .opup_h1 {
        font-size: 30px;
        font-weight: 600;
        margin: 0;
    }

    .opup_h2 {
        font-size: 14px;
        font-weight: 600;
        margin: 0;
    }

    .p_l_p {
        font-size: 16px;
        line-height: 1.7;
        margin: 12px 0;
        letter-spacing: 1px;
    }

    .slider_img_div {
        height: 150px;
        width: auto;
        margin: 0 15px;
    }

    .a_o_c_img {
        height: auto;
        width: 250px;
    }

    .o_b_imgg {
        height: auto;
        width: 100%;
        margin-top: 30px;
    }

    .o_b_imgg2 {
        height: auto;
        width: 90%;
        margin-top: 30px;
    }

}


@media (max-width: 650px) {

    .m_profile {
        display: flex;
    }

    .profile-container {
        display: none;
    }

    .profile-box {
        margin: 20px 15px;
    }

}



.purchase-button {
    background-color: #333333;
    color: #fff;
    font-size: 18px;
    padding: 15px 80px;
    margin-top: 70px;
    border: none;
    border-radius: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.purchase-button:hover {
    background-color: #2c2c2c;
}