/*
 * === 通常ページのCSS ===
 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #006030;
    margin: 0;
    background-color: #fff;
    padding-top: 150px;
}

.content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.header {
    background-color: #fff;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 40px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 80px;
}

.header-contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
}

.header-message {
    color: #006030;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.header-contact {
    display: flex;
    align-items: center;
}

.header-contact img {
    height: 50px;
    margin-left: 10px;
}

/* PC表示では電話番号の画像をクリックできないようにする */
.header-contact a,
.footer-contact-tel a {
    pointer-events: none;
}

.global-nav {
    width: 100%;
    margin-top: 0;
    border-top: 1px solid #006030;
    border-bottom: 1px solid #006030;
    /* 一時的にナビゲーションを非表示にする */
    /* display: none; */ /* ここはコメントアウトを解除しました */
}

.nav-list {
    display: flex;
    justify-content: space-around;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-item {
    width: 20%;
    text-align: center;
    font-size: 18px;
}

.nav-item a {
    display: block;
    padding: 15px 0; /* 元のpadding */
    line-height: 1.2; /* 新しく追加 */
    text-decoration: none;
    color: #000;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-item a::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background-color: #ef9f56;
    transition: width 0.3s ease;
    margin: 5px auto 0;
}

.nav-item a:hover::after {
    width: 100%;
}

.current-page {
    background-color: #70bfa2;
    color: #fff; /* 文字色を白に指定し直しました */
    font-weight: bold;
    cursor: default;
}
/* current-pageのa要素の文字色も上書きする */
.current-page a {
    color: #fff;
}


.main-visual {
    width: 100%;
    overflow: hidden;
}

.main-visual img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.main-content {
    padding: 60px 0;
}

.top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.mockup-left {
    width: 45%;
}

.mockup-image {
    width: 100%;
    height: auto;
    display: block;
}

.mockup-right {
    width: 50%;
    font-size: 16px;
    line-height: 1.8;
    color: #000;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title .title-text {
    display: inline-block;
    color: #70bfa2;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.section-title .title-line {
    display: block;
    width: 300px;
    height: 2px;
    background-color: #70bfa2;
    margin: 0 auto;
    border-bottom: 2px dashed #70bfa2;
}

.service-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.service-item {
    width: 48%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.item-header {
    background-color: #70bfa2;
    color: #fff;
    text-align: center;
    padding: 15px;
}

.item-header h3 {
    font-size: 24px;
}

.item-body {
    background-color: #c8e8db;
    padding: 20px;
    color: #006030;
}

.footer {
    background-color: #c8e8db;
    border-top: 1px solid #006030;
    padding: 40px 0;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-info {
    display: flex;
    flex-direction: column;
}

.footer-info .logo img {
    height: 80px;
    margin-bottom: 15px;
}

.contact-info {
    color: #006030;
    font-size: 18px;
    line-height: 1.6;
}

.footer-contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-contact-tel {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-contact-tel img {
    height: 50px;
    margin-left: 10px;
}

.sns-buttons a img {
    height: 60px;
    margin-left: 10px;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    color: #006030;
    font-size: 14px;
}

.scroll-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: none;
    width: 150px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #006030;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.scroll-to-top.show {
    display: block;
}

/* ここからスマートフォン用の調整 */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .content-wrapper,
    .footer-inner {
        padding: 0 10px;
    }
    
    .header-inner {
        padding: 10px;
    }

    .header-top {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    
    .logo img {
        height: 40px;
    }

    .header-contact-wrapper {
        margin-top: 5px;
        margin-right: 0;
    }

    .header-message {
        font-size: 14px;
        text-align: center;
        margin-bottom: 5px;
    }

    .header-contact {
        justify-content: center;
        width: 100%;
    }
    .header-contact img {
        height: 25px;
        margin: 0 5px;
    }
    
    /* スマホ表示ではリンクを有効にする */
    .header-contact a,
    .footer-contact-tel a {
        pointer-events: auto;
    }

    .global-nav {
        margin-top: 15px;
        border-top: 1px solid #006030;
        border-bottom: 1px solid #006030;
    }
    .nav-list {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
    }
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #006030;
        box-sizing: border-box;
    }
    
    .current-page {
        background-color: #70bfa2;
        color: #fff;
    }
    .nav-item a, .current-page a {
        padding: 15px 0 8px;
        text-align: center;
        display: block;
        line-height: 1;
    }

    .nav-item:last-child {
        border-bottom: none;
    }
    
    .main-content {
        padding: 30px 0;
    }
    .top-section {
        flex-direction: column;
        margin-bottom: 30px;
    }
    .mockup-left,
    .mockup-right {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    .mockup-left {
        margin-bottom: 20px;
    }
    .mockup-image {
        width: 100%;
        height: auto;
        display: block;
    }

    .section-title {
        margin-bottom: 30px;
        padding: 0 10px;
    }
    .section-title .title-line {
        width: 100%;
    }
    .service-items {
        flex-direction: column;
        padding: 0 10px;
    }
    .service-item {
        width: 100%;
    }
    
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-info .logo img {
        height: 40px;
        margin-bottom: 10px;
    }

    .contact-info {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .footer-contact-wrapper {
        align-items: center;
        margin-top: 10px;
        width: 100%;
    }

    .footer-contact-tel {
        justify-content: center;
        width: 100%;
    }
    .footer-contact-tel img {
        height: 25px;
        margin: 0 5px;
    }
    .sns-buttons {
        margin-top: 10px;
        justify-content: center;
    }
    .sns-buttons a img {
        height: 30px;
        margin: 0 5px;
    }
    
    .scroll-to-top {
        width: 120px;
    }
}