/* =========================================================
 * style.css
 * 共通リセット、基本レイアウト、ヘッダー、フッター、パンくずリスト
 * 適用テンプレート: @Layout.latte (全ページ)
 * ========================================================= */

/* ---------------------------------------------------------
 * 1. リセット/共通基本スタイル
 * --------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;

	width: 100%;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: #4a4a4a;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

/* 共通のインナー幅（コンテンツの横幅制限） */
.inner-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* セクションの共通スタイル */
section {
    padding: 60px 0;
}

h2 {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #2a2a2a;
}

/* ---------------------------------------------------------
 * 2. ヘッダーとナビゲーション (#header, #global-nav)
 * --------------------------------------------------------- */
#header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.site-logo a {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* PCナビゲーション */
#global-nav ul {
    display: flex;
}
#global-nav ul li a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
}

/* ヘッダーお問い合わせリンク */
.header-contact {
    margin-left: 20px;
    z-index: 10;
}

.tel-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #ff5722;
    color: #fff;
    border: 2px solid #ff5722;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    transition: background-color 0.3s, opacity 0.3s;
}

.tel-link:hover {
    background-color: #e64a19;
    opacity: 0.9;
}

/* PCではハンバーガーボタンを非表示 */
.nav-toggle {
    display: none;
}

/* ナビのお問い合わせリンク強調 */
.contact-link a {
    color: #fff;
    background-color: #2196f3;
    border-radius: 4px;
    padding: 10px 20px;
    margin-left: 10px;
}
.contact-link a:hover {
    background-color: #1976d2;
    opacity: 1;
}

/* ---------------------------------------------------------
 * 3. パンくずリスト (#breadcrumb)
 * --------------------------------------------------------- */
#breadcrumb {
    background-color: #f5f5f5;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

#breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

#breadcrumb li {
    display: flex;
    align-items: center;
}

#breadcrumb li a {
    color: #555;
    padding: 0 5px;
}

/* 区切り文字 */
#breadcrumb li:not(:last-child)::after {
    content: "›";
    padding-left: 5px;
    color: #aaa;
}

/* 現在地 */
#breadcrumb li:last-child span {
    color: #000;
    font-weight: bold;
    padding-left: 5px;
}

/* ---------------------------------------------------------
 * 4. フッター (#footer)
 * --------------------------------------------------------- */
#footer {
    background-color: #333;
    color: #fff;
    padding: 30px 20px;
    font-size: 14px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

/* フッターナビ */
.footer-nav {
    margin-bottom: 10px;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-nav a {
    color: #ccc;
    padding: 5px 10px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #fff;
}

/* フッターアドレス */
.footer-address {
    font-style: normal;
    margin-bottom: 20px;
    color: #ccc;
    line-height: 1.6;
}

.footer-address p {
    margin: 5px 0;
}

.footer-address a {
    color: #fff;
    font-weight: bold;
    border-bottom: 1px solid #fff;
    transition: opacity 0.3s;
}

/* 著作権表示 */
.copyright {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #555;
    color: #888;
}

/* ---------------------------------------------------------
 * 5. レスポンシブ対応 (共通)
 * --------------------------------------------------------- */
@media (max-width: 768px) {
    /* 共通設定 */
    section {
        padding: 40px 0;
    }
    h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    /* ヘッダー */
    #header {
        height: 60px;
    }
    .header-inner {
        padding: 0 20px;
        height: 100%;
    }
    .site-logo a {
        font-size: 20px;
    }
    .tel-link {
        font-size: 16px;
        padding: 6px 12px;
    }

    /* ハンバーガーメニューアイコン */
    .nav-toggle {
        display: block;
        width: 40px;
        height: 40px;
        position: relative;
        z-index: 200;
    }
    .icon-bar {
        display: block;
        width: 25px;
        height: 2px;
        background-color: #333;
        margin: 6px 0;
        transition: 0.3s;
    }
    .nav-toggle.active .icon-bar:nth-child(2) { opacity: 0; }
    .nav-toggle.active .icon-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.active .icon-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* モバイルナビゲーション（オーバーレイ） */
    #global-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        z-index: 150;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #global-nav.active {
        opacity: 1;
        visibility: visible;
    }
    #global-nav ul {
        flex-direction: column;
        text-align: center;
    }
    #global-nav ul li a {
        padding: 15px 20px;
        font-size: 18px;
    }
    .contact-link {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    .contact-link a {
        display: block;
        width: 200px;
        margin: 15px auto;
    }

    /* フッター */
    .footer-nav ul {
        flex-direction: column;
        gap: 5px;
    }
}