/* Reset & Basic Styles */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
}

html {
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: scroll;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 72px; /* Header height */
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, p, ul, li, a, form, input, textarea, button {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    overflow-wrap: break-word;
}

/* --- Header Navigation CSS --- */
.main-header {
    width: 100%;
    padding: 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    height: 72px;
}

.header-container {
    /* ▼▼▼ 変更: 1280px から 1920px に変更 ▼▼▼ */
    max-width: 1920px;
    /* ▲▲▲ 変更ここまで ▲▲▲ */
    margin: 0 auto;
    padding: 0 40px; /* 左右の余白 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* .main-header の高さに合わせる */
}


.logo-link {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.logo-link img {
    width: 170px;
    height: auto;
    vertical-align: middle;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-item {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
    white-space: nowrap;
}

.nav-item:hover {
    border-bottom-color: #0056b3;
}

.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-contact-btn, .nav-catalog-btn {
    font-size: 16px;
    color: #fff;
    /* ▼▼▼ 変更: paddingを調整 ▼▼▼ */
    padding: 8px 15px;
    /* ▲▲▲ 変更ここまで ▲▲▲ */
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, box-shadow 0.3s;
    white-space: nowrap;
}

.nav-contact-btn {
    background-color: #0056b3;
}
.nav-contact-btn:hover {
    background-color: #004494;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-catalog-btn {
    background-color: #28a745;
}
.nav-catalog-btn:hover {
    background-color: #218838;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ▼▼▼ 追加: LINEボタン用スタイル ▼▼▼ */
.nav-line-btn {
    font-size: 16px;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, box-shadow 0.3s;
    white-space: nowrap;
    background-color: #06C755; /* LINE Green */
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.nav-line-btn:hover {
    background-color: #05b34c;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* ▲▲▲ 追加ここまで ▲▲▲ */

.header-buttons a img {
    vertical-align: middle;
    /* ▼▼▼ 変更: 高さを調整 ▼▼▼ */
    height: 42px; 
    /* ▲▲▲ 変更ここまで ▲▲▲ */
    width: auto;
}


/* --- Hamburger Menu CSS --- */
.hamburger-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}
.hamburger-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    position: absolute;
    left: 5px;
    transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}
.hamburger-btn span:nth-child(1) { top: 8px; }
.hamburger-btn span:nth-child(2) { top: 18px; }
.hamburger-btn span:nth-child(3) { top: 28px; }

.menu-open .hamburger-btn span {
    background-color: #333;
}
.menu-open .hamburger-btn span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.menu-open .hamburger-btn span:nth-child(2) {
    opacity: 0;
}
.menu-open .hamburger-btn span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* --- Breadcrumbs CSS --- */
#breadcrumbs-container {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.breadcrumbs-list {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 14px;
}
.breadcrumbs-item {
    display: flex;
    align-items: center;
}
#breadcrumbs-container .breadcrumbs-item:not(:first-child)::before {
    content: '>';
    margin: 0 10px;
    color: #888;
}
.breadcrumbs-link {
    color: #0056b3;
    text-decoration: none;
}
.breadcrumbs-link:hover {
    text-decoration: underline;
}
.breadcrumbs-current {
    color: #333;
}

/* --- General Page Section Layout --- */
.page-section {
    padding: 60px 20px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.page-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
}

.btn-detail {
    display: inline-block;
    background-color: #0056b3;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-detail:hover {
    background-color: #004494;
}

/* --- Responsive Base Styles --- */
@media (max-width: 960px) {
    .main-header {
        flex-direction: row; 
        padding: 0;
        height: 60px;
    }
    .header-container {
        padding: 0 15px; /* スマホ用の左右余白 */
    }
    body {
        padding-top: 60px;
    }
    .logo-link {
        margin-bottom: 0; 
    }
    .logo-link img {
        width: 120px;
    }
    .main-nav {
        display: none;
    }
    .hamburger-btn {
        display: block;
    }
    .main-nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        gap: 20px;
        z-index: 1000; 
    }
    .main-nav.is-open .nav-item {
        font-size: 20px;
    }
    .main-nav.is-open .header-buttons {
        flex-direction: column;
        gap: 15px;
        width: 80%;
        max-width: 300px;
    }
    .main-nav.is-open .nav-contact-btn,
    .main-nav.is-open .nav-catalog-btn {
        text-align: center;
        width: 100%;
    }
    .main-nav.is-open .header-buttons a img {
        height: auto;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    html {
        overflow-y: auto;
    }

    .page-section {
        padding: 40px 15px;
    }

    .page-title {
        font-size: 28px;
    }
    
    .breadcrumbs-list {
        padding: 0 15px;
    }
}

/* --- フッタースタイル --- */
footer {
    background-color: #343a40;
    color: white;
    padding: 0; /* padding は .footer-container で制御 */
}

.footer-container {
    /* ▼▼▼ 変更: 1280px から 1920px に変更 ▼▼▼ */
    max-width: 1920px;
    /* ▲▲▲ 変更ここまで ▲▲▲ */
    margin: 0 auto;
    padding: 20px 40px; /* ヘッダーの .header-container の padding (0 40px) と合わせる */
    text-align: center;
}

.footer-nav {
    margin-bottom: 15px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.footer-nav a:hover {
    text-decoration: underline;
}

@media (max-width: 960px) {
    .footer-container {
        padding: 20px 15px; /* スマホ用の余白 */
    }
}