@charset "UTF-8";
/*-----------------------------------------------------
/////header.css/////
-----------------------------------------------------*/

/* ===== Header ===== */
header {
    background: #ffffff;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* ページ内リンクのスクロール位置補正（固定ヘッダー分） */
.block,
[id] {
    scroll-margin-top: 165px;
}

@media screen and (max-width: 1100px) {
    .block,
    [id] { scroll-margin-top: 122px; }
}

@media screen and (max-width: 767px) {
    .block,
    [id] { scroll-margin-top: 75px; }
}

/* #header_col の高さはJSで動的に設定（固定ヘッダースペーサー） */
#header_col {
    margin-bottom: 50px;
}

.header-top {
    padding: 10px 0;
}

.header-top .h-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* ===== Logo ===== */
.h-logo a {
    display: block;
}

.h-logo img {
    height: 100px;
    width: auto;
    display: block;
}

/* ===== Mobile SNS ===== */
.h-mobile-sns {
    display: none;
    align-items: center;
    gap: 12px;
    order: 2;
}

.h-mobile-sns-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eef7d0;
    color: #222222;
    font-size: 20px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.h-mobile-sns-icon:hover {
    background: #90C31F;
    color: #ffffff;
}

/* ===== Mobile Menu Toggle ===== */
.h-mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.h-mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #90C31F;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
    display: block;
}

.h-mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
}

.h-mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.h-mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* ===== Header Right ===== */
.h-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.h-header-right-bottom {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* base.css の「header a { color: #fff }」を上書き */
header .h-sns-icon:link,
header .h-sns-icon:visited,
header .h-sns-icon:active {
    color: #222222;
}

header .h-sns-icon:hover {
    color: #ffffff;
}

header .h-mobile-sns-icon:link,
header .h-mobile-sns-icon:visited,
header .h-mobile-sns-icon:active {
    color: #222222;
}

header .h-mobile-sns-icon:hover {
    color: #ffffff;
}

/* ===== SNS Icons ===== */
.h-header-sns {
    display: flex;
    gap: 10px;
    margin-right: 5px;
}

.h-sns-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    color: #222222;
    font-size: 24px;
    text-decoration: none;
    transition: 0.3s;
}

.h-sns-icon:hover {
    background: #90C31F;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ===== CTA Buttons ===== */
.h-header-btns-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.h-btn-header {
    padding: 14px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    text-align: center;
    min-width: 120px;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
}

.h-btn-header:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    color: #ffffff;
    text-decoration: none;
}

.h-btn-trial {
    background: #90C31F;
}

.h-btn-line {
    background: #06C755;
}

/* ===== Main Navigation ===== */
.h-main-nav {
    background: #90C31F;
    width: 100%;
}

.h-container-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.h-main-nav ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}

.h-main-nav ul li {
    flex: 1;
}

.h-main-nav ul li a {
    display: block;
    padding: 13px 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    transition: 0.3s;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
}

.h-main-nav ul li:last-child a {
    border-right: none;
}

.h-main-nav ul li a:hover {
    background: rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

/* ===== Responsive: 1100px ===== */
@media screen and (max-width: 1100px) {
    .h-main-nav {
        display: none;
    }
}

/* ===== Responsive: 991px ===== */
@media screen and (max-width: 991px) {
    .h-header-sns {
        display: none;
    }

    .h-btn-header {
        min-width: 100px;
        font-size: 13px;
        padding: 11px 14px;
    }
}

/* ===== Responsive: 767px ===== */
@media screen and (max-width: 767px) {
    .h-mobile-menu-toggle {
        display: flex;
        order: 3;
    }

    .header-top .h-container {
        flex-wrap: wrap;
    }

    .h-logo {
        order: 1;
    }

    .h-logo img {
        height: 55px !important;
    }

    .h-mobile-sns {
        display: flex;
        order: 2;
    }

    .h-header-right {
        order: 4;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: #ffffff;
        padding: 15px 0 20px;
        border-top: 1px solid #eee;
    }

    .h-header-right.active {
        display: flex;
    }

    .h-header-right-bottom {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .h-header-sns {
        display: flex;
        justify-content: center;
        margin-right: 0;
        gap: 15px;
    }

    .h-sns-icon {
        width: 51px;
        height: 51px;
        font-size: 22px;
    }

    .h-header-btns-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 0 15px;
    }

    .h-btn-header {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        border-radius: 10px;
        text-align: center;
    }

    .h-main-nav {
        display: none;
        background: #ffffff;
        padding: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .h-main-nav.active {
        display: block;
    }

    .h-main-nav ul {
        flex-direction: column;
    }

    .h-main-nav ul li {
        border-bottom: 2px solid #eef7d0;
    }

    .h-main-nav ul li:last-child {
        border-bottom: none;
    }

    .h-main-nav ul li a {
        padding: 18px 25px;
        font-size: 16px;
        border-right: none;
        text-align: left;
        color: #6C6C6C;
    }

    .h-main-nav ul li a:hover,
    .h-main-nav ul li a:active {
        background: #eef7d0;
        color: #90C31F;
        padding-left: 30px;
    }

    body.h-menu-open {
        overflow: hidden;
    }

    body.h-menu-open header {
        overflow-y: auto;
        max-height: 100vh;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== Responsive: 480px ===== */
@media screen and (max-width: 480px) {
    .h-logo img {
        height: 48px !important;
    }
}
