body {
    padding-top: 80px;
}

a {
    text-decoration: none;
}

/* ヘッダー */
.header-banner {
    width: 45%;
    min-width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-banner img {
    width: auto;
    height: 100%;
    max-height: 80px;
    object-fit: contain;
}

.header-container {
    display: flex;
    align-items: center;
    height: 80px;
    background: linear-gradient(to bottom, #b0e47c, #96b872);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.header-container-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-banner-wrapper {
    flex: 0 0 auto;
}

/* ヘッダーメニュー */
.header-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    flex: 1 1 auto;
    justify-content: center;
}

.idx-main-menu {
    position: relative;
    padding: 5px 10px;
}

.idx-main-menu__title {
    font-size: 16px;
    margin: 0;
}

.idx-main-menu__title,
.idx-main-menu__title a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.idx-main-menu__title:hover,
.idx-main-menu__title a:hover {
    color: #2c5012;
}

.idx-main-menu__list {
    display: none;
    position: absolute;
    top: calc(100% - 15px);
    left: 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 0;
    min-width: 150px;
    z-index: 1000;
    border-radius: 4px;
    border-top: 3px solid #9ec17a;
}

.idx-main-menu::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

.idx-main-menu:hover .idx-main-menu__list {
    display: block;
}

.idx-sub-menu {
    list-style: none;
    padding: 8px 15px;
    transition: all 0.2s ease;
}

.idx-sub-menu:hover {
    background-color: #f1f8e9;
    padding-left: 20px;
}

.idx-sub-menu a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
}

.idx-sub-menu a:hover {
    color: #2c5012;
}

/* ヘッダー認証 */
.header-auth {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

.header-auth a {
    color: #fff;
    font-weight: 600;
}

.header-auth a:hover {
    color: #2c5012;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown span {
    color: #fff;
    cursor: pointer;
    padding: 5px 10px;
    font-weight: 600;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;
    border-top: 3px solid #9ec17a;
    z-index: 1000;
}

.dropdown-content span {
    display: block;
    padding: 8px 15px;
    transition: all 0.2s ease;
}

.dropdown-content span:hover {
    background-color: #f1f8e9;
    padding-left: 20px;
}

.dropdown-content a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    display: block;
    width: 100%;
}

.dropdown-content a:hover {
    color: #2c5012;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* レスポンシブ */
@media (max-width: 900px) {
    .header-banner {
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 1000px) {
    .header-banner {
        width: 40%;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .header-container {
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    .header-container-inner {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        position: relative;
    }

    .hamburger {
        position: absolute;
        left: 15px;
        margin: 0;
        width: 25px;
        height: 20px;
        z-index: 1001;
    }

    .header-banner-wrapper {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-banner {
        height: 60px;
    }

    .header-banner img {
        max-height: 60px;
    }

    .header-auth {
        position: absolute;
        right: 15px;
        margin: 0;
        gap: 10px;
    }
}

@media (min-width: 1000px) {
    .header-banner {
        background-size: 100% auto;
    }
}

/* フッター */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
    padding-right: 20px;
}

.footer-section h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.9em;
}

.footer-section a:hover {
    text-decoration: underline;
    color: white;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    border-top: 1px solid #555;
    padding-top: 20px;
}

@media (max-width: 767px) {
    .footer-menu {
        flex-direction: column;
    }

    .footer-section {
        width: 100%;
        padding-right: 0;
    }
}

/* ハンバーガーメニュー */
.hamburger,
.slide-menu,
.menu-overlay {
    display: none;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        position: fixed;
        left: 20px;
        top: 20px;
        z-index: 2500;
    }

    .hamburger span {
        width: 30px;
        height: 3px;
        background: #fff;
        border-radius: 3px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .slide-menu {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(142, 196, 73, 0.98);
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        z-index: 2000;
        overflow-y: auto;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        visibility: hidden;
    }

    .slide-menu.active {
        left: 0;
        visibility: visible;
        z-index: 1500;
    }

    .hamburger.active {
        position: fixed;
        left: 20px;
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1400;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }

    .header-container .header-menu {
        display: none;
    }

    .slide-menu .header-menu {
        display: block;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .slide-menu.active .header-menu {
        opacity: 1;
    }

    .slide-menu .idx-main-menu {
        width: 100%;
        text-align: left;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.4);
    }

    .slide-menu .idx-main-menu__title {
        font-size: 16px;
        color: #fff;
        padding: 0;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
        cursor: pointer;
        user-select: none;
    }

    .slide-menu .idx-main-menu__list {
        position: static;
        display: none;
        background: none;
        box-shadow: none;
        padding: 0;
        border: none;
        transition: all 0.3s ease;
        list-style-type: none;
        margin-top: 8px;
    }

    .slide-menu .idx-main-menu.active .idx-main-menu__list {
        opacity: 1;
        transform: translateY(0);
        display: block;
    }

    .slide-menu .idx-sub-menu {
        padding: 8px 0 8px 25px;
        position: relative;
        border-left: 2px solid rgba(255, 255, 255, 0.4);
        margin-left: 10px;
    }

    .slide-menu .idx-sub-menu::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 12px;
        height: 2px;
        background-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-50%);
    }

    .slide-menu .idx-sub-menu a {
        color: #fff;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
        font-size: 14px;
        display: block;
        padding-left: 5px;
    }

    .slide-menu .idx-main-menu__list {
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .slide-menu .idx-main-menu.active .idx-main-menu__list {
        opacity: 1;
        transform: translateY(0);
        display: block;
    }

    .slide-menu .idx-sub-menu {
        text-align: left;
        padding: 5px 0 5px 20px;
        position: relative;
        transition: all 0.3s ease;
    }

    .slide-menu .idx-sub-menu a {
        color: #fff;
        font-size: 13px;
        padding-left: 5px;
        transition: color 0.3s ease;
    }

    .slide-menu .idx-sub-menu:hover {
        background-color: transparent;
        padding-left: 20px;
    }

    .slide-menu .idx-sub-menu:hover a {
        color: #333;
    }
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 1600;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay.active {
    display: block;
}

.hamburger-menu {
    z-index: 2000;
    position: relative;
}