/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8; /* 仮の背景色 */
    /* padding-bottom はメディアクエリ内で設定 */
    padding-bottom: 0;
}

.container {
    max-width: 1200px; /* PC版の最大幅 */
    margin: 0 auto;
    padding: 0 20px; /* 左右の余白 */
}

/* Header */
.site-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    max-height: 50px; /* 仮のロゴサイズ */
}

/* PC Global Navigation */
.global-nav ul {
    list-style: none;
    display: flex;
}

.global-nav li {
    margin-left: 30px;
}

.global-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    transition: color 0.3s ease;
}

.global-nav a:hover {
    color: #ff9900; /* 仮のホバー色 */
}

/* Mobile Burger Menu Icon */
.burger-menu-wrapper { /* Wrapper class for icon and text */
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 110; /* Higher z-index to be above the menu */
}

.burger-menu-icon {
    width: 25px; /* Adjusted icon width */
    height: 20px; /* Adjusted icon height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-right: 5px; /* Space between icon and text */
    transition: all 0.3s ease;
}

.burger-menu-icon span {
    display: block;
    width: 100%;
    height: 2px; /* Adjusted line thickness */
    background-color: #333; /* Line color */
    transition: all 0.3s ease;
}

/* Margin between lines */
.burger-menu-icon span:not(:last-child) {
    margin-bottom: 6px; /* Space between lines */
}


.burger-menu-icon.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

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

.burger-menu-text {
    font-size: 14px; /* Text size */
    color: #333; /* Text color */
    font-weight: bold;
    white-space: nowrap; /* Prevent text wrapping */
}


/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Initial state: outside screen */
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #fff; /* 仮の背景色 */
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 105; /* Below icon, above content */
    padding: 20px;
    overflow-y: auto; /* Enable scrolling for long menus */
}

.mobile-menu.open {
    right: 0; /* Open state */
}

.mobile-menu .close-icon {
    font-size: 30px;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.mobile-menu nav ul {
    list-style: none;
    margin-top: 60px; /* Avoid overlap with close icon */
}

.mobile-menu nav li {
    margin-bottom: 20px;
}

.mobile-menu nav a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    display: block; /* Expand clickable area */
    padding: 10px 0;
}


/* Hero Section */
.hero-section {
    background-color: #ffe5b4; /* 仮の背景色 */
    padding: 80px 0; /* パディングを調整 */
    text-align: center;
}

.hero-section .container {
     display: flex;
     flex-direction: column;
     align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
}

.hero-text h1 { /* h2 から h1 に変更 */
    font-size: 40px; /* フォントサイズを調整 */
    margin-bottom: 20px;
    color: #333;
}

.hero-text p {
    font-size: 20px; /* フォントサイズを調整 */
    margin-bottom: 40px; /* マージンを調整 */
    color: #555;
}

.btn-primary,
.btn-secondary { /* btn-secondary は削除したがスタイルは残しておく */
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease;
    margin: 0 10px; /* PC版のマージン */
}

.btn-primary {
    background-color: #ff9900; /* 仮の色 */
    color: #fff;
}

.btn-primary:hover {
    background-color: #e68a00; /* 仮のホバー色 */
}

.btn-secondary {
    background-color: #fff;
    color: #ff9900; /* 仮の色 */
    border: 2px solid #ff9900; /* 仮の色 */
}

.btn-secondary:hover {
    background-color: #ff9900; /* 仮の色 */
    color: #fff;
}


/* Content Sections */
.content-section {
    padding: 80px 0; /* パディングを調整 */
}

.content-section h2 {
    text-align: center;
    font-size: 32px; /* フォントサイズを調整 */
    margin-bottom: 50px; /* マージンを調整 */
}

.bg-light-green {
    background-color: #e0f7fa; /* 仮の色 */
}

/* Service Introduction Section Styling */
.service-items {
    display: flex;
    justify-content: space-around; /* アイテム間にスペース */
    gap: 30px; /* アイテム間の隙間 */
     flex-wrap: wrap; /* モバイルで折り返す */
}

.service-item {
    text-align: center;
    flex-basis: 300px; /* アイテムの最小幅 */
    flex-grow: 1; /* 画面幅に合わせて伸びる */
    margin-bottom: 40px; /* モバイルでの下マージン */
}

.service-item img {
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Achievements Section Styling */
.achievement-content {
    text-align: center;
}

.achievement-content p {
    font-size: 18px;
    margin-bottom: 15px;
}

.achievement-content a {
    color: #00bfa5; /* 仮のリンク色 */
    text-decoration: underline;
}

.achievement-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
     flex-wrap: wrap; /* モバイルで折り返す */
}

.achievement-images img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd; /* 仮の枠線 */
}


/* Recommendation Section Styling */
.recommend-list {
    list-style: none;
    max-width: 600px; /* リストの最大幅 */
    margin: 0 auto; /* 中央寄せ */
}

.recommend-list li {
    font-size: 18px;
    margin-bottom: 15px;
    padding-left: 1.2em; /* チェックマークのための左パディング */
    position: relative;
}

.recommend-list li::before {
    content: '✔'; /* 仮のチェックマーク */
    color: #00bfa5; /* 仮の色 */
    position: absolute;
    left: 0;
}


/* Contact Section Styling */
.contact-section {
    background-color: #ff9900; /* 仮の色 */
    color: #fff;
    padding: 80px 0; /* パディングを調整 */
    text-align: center;
}

.contact-section h2 {
    color: #fff;
    margin-bottom: 20px; /* マージンを調整 */
}

.contact-section p {
    font-size: 18px;
    margin-bottom: 40px; /* マージンを調整 */
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0; /* パディングを調整 */
    text-align: center;
    font-size: 14px;
}


/* Responsive Adjustments */

/* Hide elements based on device */
.pc-only {
    display: block;
}

.mobile-only {
    display: none; /* デフォルトは非表示 */
}

@media (max-width: 768px) { /* 仮のブレークポイント */
    .pc-only {
        display: none;
    }

    /* mobile-only クラスは通常 display: none; で、ブレークポイント内で適切な display に上書き */
    /* 各要素のスタイルで display を指定する */


    .site-header .container {
        padding: 0 15px; /* モバイルの余白調整 */
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

     /* ハンバーガーメニューラッパーはモバイルでのみ表示 */
     .burger-menu-wrapper.mobile-only {
        display: flex;
     }


    .hero-section {
        padding: 40px 0; /* モバイルでのパディング調整 */
    }

    .hero-text h1 {
        font-size: 30px; /* モバイルでのフォントサイズ調整 */
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .btn-primary,
    .btn-secondary {
        display: block; /* ボタンを縦に並べる */
        margin: 15px auto; /* 中央寄せ */
        max-width: 280px; /* ボタンの最大幅 */
    }

    .content-section {
        padding: 40px 0; /* モバイルでのパディング調整 */
    }

    .content-section h2 {
        font-size: 26px; /* モバイルでのフォントサイズ調整 */
        margin-bottom: 30px;
    }

    /* Service Introduction Section - Mobile */
    .service-items {
        flex-direction: column; /* 縦並び */
        gap: 40px; /* アイテム間の隙間 */
    }

    .service-item {
         flex-basis: auto; /* 幅指定を自動に */
         margin-bottom: 0; /* 下マージンをリセット */
    }


    /* Achievements Section - Mobile */
    .achievement-content p {
        font-size: 16px;
    }

    .achievement-images {
        flex-direction: column; /* 縦並び */
        gap: 15px;
    }


    /* Recommendation Section - Mobile */
    .recommend-list {
        padding: 0 15px; /* 左右パディング */
    }

    .recommend-list li {
        font-size: 16px;
        margin-bottom: 10px;
    }


    /* Contact Section - Mobile */
     .contact-section {
        padding: 40px 0; /* モバイルでのパディング調整 */
    }

     .contact-section h2 {
        font-size: 26px; /* モバイルでのフォントサイズ調整 */
         margin-bottom: 15px;
    }

     .contact-section p {
        font-size: 16px;
        margin-bottom: 30px;
    }


     /* Fixed Mobile Footer Menu - 再度追加 */
    .fixed-mobile-footer.mobile-only { /* mobile-only クラスを追加 */
        position: fixed; /* 画面に固定 */
        bottom: 0; /* 下端に配置 */
        left: 0;
        width: 100%; /* 幅いっぱい */
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* 上部に影 */
        z-index: 1000; /* 最前面に表示 */
        display: flex; /* アイテムを横並びに */
        align-items: stretch; /* アイテムの高さを揃える */
        padding: 0; /* パディングをリセット */
        height: 50px; /* 高さ - 画像に合わせて調整 */
    }

    .fixed-mobile-footer .footer-item {
        flex-basis: 0; /* Flexアイテムの基準サイズを0に */
        text-align: center;
        display: flex; /* 中のコンテンツをFlexboxで制御 */
        justify-content: center; /* 横方向中央揃え */
        align-items: center; /* 縦方向中央揃え */
        padding: 5px 0; /* 上下のパディングを調整 */
    }

    /* 電話と問い合わせボタンはflex-grow: 1 で残りの幅を均等に */
    .fixed-mobile-footer .tel-link,
    .fixed-mobile-footer .contact-link {
        flex-grow: 1;
    }

    /* ページトップボタンの幅を固定 */
    .fixed-mobile-footer .scroll-top {
        flex-grow: 0; /* 伸びない */
        flex-shrink: 0; /* 縮まない */
        width: 60px; /* 画像から推定した固定幅 */
        padding: 0; /* padding は 0 */
    }


    .fixed-mobile-footer a {
        display: flex; /* アイコンとテキストをFlexboxで制御 */
        flex-direction: row; /* アイコンとテキストを横並びに */
        align-items: center; /* 縦方向中央揃え */
        text-decoration: none;
        font-size: 10px; /* テキストサイズ - 画像に合わせて調整 */
        font-weight: bold; /* テキストを太く */
        line-height: 1.2; /* 行間を調整 */

        /* リンク全体をfooter-itemいっぱいに広げる */
        width: 100%;
        height: 100%;
        justify-content: center; /* リンク内のコンテンツを中央揃え */
        gap: 4px; /* アイコンとテキストの間隔 - 画像に合わせて調整 */
    }

     /* ページトップボタン内のリンクスタイル（アイコンのみ） */
     .fixed-mobile-footer .scroll-top a {
         font-size: 0; /* テキストを完全に非表示にする（HTMLから削除したが念のため） */
         flex-direction: column; /* ページトップボタンはアイコンのみなので縦並びに */
         gap: 0; /* ギャップは不要 */
     }


     .fixed-mobile-footer svg {
        width: 24px; /* アイコンのサイズを調整 */
        height: 24px; /* アイコンのサイズを調整 */
     }

    /* ページトップアイコンはテキストがないのでmargin-bottomは不要 */
    .fixed-mobile-footer .scroll-top svg {
         margin-bottom: 0; /* アイコンの下マージンをリセット */
    }


    .fixed-mobile-footer .tel-link {
        background-color: #00bfa5; /* 電話リンクの背景色 - 画像の色 */
    }

    .fixed-mobile-footer .tel-link a {
        color: #fff; /* 電話リンクのテキスト色 - 画像の色 */
    }

     .fixed-mobile-footer .tel-link svg {
        fill: #fff; /* 電話アイコンの色 - 仮の色 */
     }

    .fixed-mobile-footer .contact-link {
        background-color: #ff9900; /* 問い合わせリンクの背景色 - 仮の色 */
        padding: 5px 0; /* 上下のパディングを調整 */
    }

     .fixed-mobile-footer .contact-link a {
        color: #fff; /* 問い合わせリンクのテキスト色 - 仮の色 */
        font-weight: bold;
     }

     .fixed-mobile-footer .contact-link svg {
        fill: #fff; /* 問い合わせアイコンの色 - 仮の色 */
     }

    .fixed-mobile-footer .scroll-top {
          background-color: #444; /* ページトップの背景色 - 画像の色に合わせて調整 */
           padding: 0; /* padding をリセット */
    }

     .fixed-mobile-footer .scroll-top a {
         color: #fff; /* ページトップリンクの色 - 仮の色 */
     }

     .fixed-mobile-footer .scroll-top svg {
        fill: #fff; /* ページトップアイコンの色 - 仮の色 */
     }


     /* Body bottom padding to prevent content from being hidden by the fixed footer */
     body {
         padding-bottom: 50px; /* 固定フッターの高さに合わせて調整 */
     }

}

/* PC表示では固定フッターを非表示 */
@media (min-width: 769px) { /* 仮のブレークポイント */
    .fixed-mobile-footer {
        display: none;
    }
     /* PC表示ではbodyのpadding-bottomをリセット */
     body {
         padding-bottom: 0;
     }
}