body {
    box-sizing: border-box;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
}
/*header*/
header {
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    margin: 20px auto;
}
.header-top {
    display: flex;
    justify-content: space-between;
    margin: 20px 40px;
}
.logo {
    max-width: 300px;
}
.header-top-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}
.company-tel {
    text-align: center;
    color: rgba(0, 62, 153, 1);
}
.company-tel h3 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.1rem;
}
.company-tel p {
    letter-spacing: 0.1rem;
    font-size: 0.75rem;
}
.talking {
    color: #fff;
    background-color: rgba(0, 135, 37, 1);
    padding: 15px 35px;
    border-radius: 10px;
    border: 1px solid rgba(0, 135, 37, 1);
    transition: all 0.3s ease-in-out;
}
.talking:hover {
    opacity: 0.8;
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
}
/*nav*/
.nav-pc ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 100px;
    gap: 50px;
}
.nav-pc li {
    color: #333;
    font-size: 0.875rem;
}
.nav-pc li:hover {
    transform: scale(1.05);
    color: rgba(45, 101, 205, 1);
}
/*footer*/
footer {
    display: flex;
    flex-direction: column;
}
.footer-message-bottom {
    text-align: right;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 20px;
    margin-right: 20px;
}
.footer-message {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px;
}
.footer-message p {
    margin-bottom: 15px;
    text-align: center;
    color: #333;
    font-weight: 700;
}
.footer-message ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.footer-message li {
    color: #333;
    font-size: 0.75rem;
}
.footer-message li:hover {
    transform: scale(1.05);
    color: rgba(45, 101, 205, 1);
}
.footer-message ul:nth-of-type(2) {
    margin-right: 80px;
}
/*button-back-to-top*/
#backToTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 40px;
    height: 40px;
    background-color: rgba(71, 115, 180, 1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 999;
}
#backToTop:hover {
    background-color: #555;
}
#backToTop::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-left: 3px solid white;
    border-top: 3px solid white;
    transform: rotate(45deg);
    margin: 12px auto;
}
.title-container {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(45, 101, 205, 1);
    text-align: center;
    border-top: 2px solid rgba(45, 101, 205, 1);
    border-bottom: 2px solid rgba(45, 101, 205, 1);
    margin: 0 15px;
}
.title-container h3 {
    padding-top: 20px;
    padding-bottom: 20px;
}
/*menu*/
.menu-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    height: 60px;
    width: 60px;
    justify-content: center;
    align-items: center;
    z-index: 90;
    background-color: #E7E7E7;
    border-radius: 10px;
    border: 1px solid #666666;
}
.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: #666666;
    position: absolute;
}
.menu-btn span:before {
    bottom: 8px;
}
.menu-btn span:after {
    top: 8px;
}
#menu-btn-check:checked ~ .menu-btn span {
    background-color: rgba(255, 255, 255, 0);/*メニューオープン時は真ん中の線を透明にする*/
}
#menu-btn-check:checked ~ .menu-btn span::before {
    bottom: 0;
    transform: rotate(45deg);
    transition: all 0.3s ease-in-out;
}
#menu-btn-check:checked ~ .menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
    transition: all 0.3s ease-in-out;
}
.menu-btn span::before,
.menu-btn span::after,
.menu-btn span {
    transition: all 0.3s ease-in-out;
}
.hamburger-menu {
    display: none;
}

/* ✅ ✅ 【新增】背景遮罩（可选） */
.menu-bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 70;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
#menu-btn-check:checked ~ .menu-bg {
    opacity: 1;
    visibility: visible;
}

/*menu*/
.menu-content {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    background-color: #fff;

    /* ✅ ✅ 【新增】添加滑入动画的初始状态 */
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

/* ✅ ✅ 【新增】勾选菜单时显示 */
#menu-btn-check:checked ~ .menu-content {
    transform: translateX(0);
}

.menu-content ul {
    padding: 70px 10px 0;
}
.menu-content ul li {
    border-bottom: solid 1px rgba(221, 221, 221, 1);
    list-style: none;
}
.menu-content ul li a {
    display: block;
    width: 100%;
    font-size: 15px;
    box-sizing: border-box;
    color: rgba(112, 112, 112, 1);
    text-decoration: none;
    padding: 9px 15px 10px 0;
    position: relative;
}
.menu-btn {
    display: none;
}
#menu-btn-check {
    display: none;
}


@media (max-width: 768px) {
    .nav-pc {
        display: none;
    }
    .header-top {
        display: flex;
        flex-direction: column;
    }
    .header-top-right {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    .footer-message {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .footer-message-bottom {
        text-align: center;
    }
    .hamburger-menu {
        display: block;
    }
    .footer-message ul {
        display: none;
    }
    .menu-btn {
        position: fixed;
        top: 10px;
        right: 10px;
        display: flex;
        height: 60px;
        width: 60px;
        justify-content: center;
        align-items: center;
        z-index: 90;
        background-color: #E7E7E7;
        border-radius: 10px;
        border: 1px solid #666666;
    
    }
}