:root {
    --main-color: #66BB6A;
}

/* ==========================================
   Grin Guvnor トップページ用カスタムCSS
   ファイル保存先: /store/html/user_data/assets/css/top-custom.css
========================================== */

/* ==========================================
   リセット＆基本設定
========================================== */
#main_contents {
    width: 100%;
    overflow: hidden;
}

/* ==========================================
   ヘッダーのカスタマイズ
========================================== */

/* ヘッダー全体 */
.ec-layoutRole__header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.ec-headerNaviRole .ec-headerNaviRole__search {
    margin-top: 0;
}

.ec-headerNaviRole {
    background: #fff;
    padding: 15px 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* ロゴエリア */
.ec-headerNaviRole__left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.ec-headerNaviRole__left .logo {
    margin: 0;
}

.ec-headerNaviRole__left .logo img {
    max-height: 55px;
    width: auto;
    transition: opacity 0.3s ease;
}

.ec-headerNaviRole__left .logo:hover img {
    opacity: 0.8;
}

/* 検索フォーム */
.ec-headerNaviRole__search {
    flex: 1;
    max-width: 500px;
}

.ec-headerSearch {
    display: flex;
    gap: 10px;
}

.ec-headerSearch__category {
    flex: 0 0 auto;
}

.ec-headerSearch__category .ec-select {
    min-width: 150px;
}

.ec-headerSearch__category select {
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 10px 35px 10px 15px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.ec-headerSearch__category select:hover {
    border-color: var(--main-color);
    background-color: #fff;
}

.ec-headerSearch__category select:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.1);
}

.ec-headerSearch__keyword {
    flex: 1;
    position: relative;
}

.ec-headerSearch__keyword .ec-input {
    position: relative;
    display: flex;
}

.ec-headerSearch__keyword input[type="search"] {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    background: #F5F5F5;
    transition: all 0.3s ease;
}

.ec-headerSearch__keyword input[type="search"]:hover {
    border-color: var(--main-color);
    background-color: #fff;
}

.ec-headerSearch__keyword input[type="search"]:focus {
    outline: none;
    border-color: var(--main-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.1);
}

.ec-headerSearch__keywordBtn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.ec-headerSearch__keywordBtn:hover {
    opacity: 0.7;
}

.ec-headerSearch__keywordBtn .ec-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(55%) sepia(47%) saturate(454%) hue-rotate(74deg) brightness(95%) contrast(86%);
}

/* SPナビボタン */
.ec-headerRole__navSP {
    display: none;
}

.ec-headerNavSP {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--main-color);
    border-radius: 8px;
    background-color: var(--main-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ec-headerNavSP i {
    color: #fff;
    font-size: 20px;
}

/* 右側ナビゲーション */
.ec-headerNaviRole__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ec-headerNav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ec-headerNav__item {
    margin: 0;
}

.ec-headerNav__item a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #F0F8F0;
    border-radius: 8px;
    text-decoration: none;
    color: #2E7D32;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ec-headerNav__item a:hover {
    background: var(--main-color);
    color: #fff;
    transform: translateY(-1px);
}

.ec-headerNav__itemIcon {
    font-size: 16px;
}

.ec-headerNav__itemLink {
    display: inline;
}

/* カートエリア */
.ec-headerRole__cart {
    position: relative;
}

.ec-cartNaviWrap {
    position: relative;
}

.ec-cartNavi {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #FFB74D 0%, #FFA726 100%);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.ec-cartNavi:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.3);
}

.ec-cartNavi__icon {
    position: relative;
    font-size: 22px;
}

.ec-cartNavi__badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #F44336;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.ec-cartNavi__label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ec-cartNavi__price {
    font-size: 16px;
    font-weight: bold;
}

/* カートの中身表示（ホバー時） */
.ec-cartNaviNull,
.ec-cartNaviIsset {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 300px;
    z-index: 100;
}

.ec-cartNaviWrap:hover .ec-cartNaviNull,
.ec-cartNaviWrap:hover .ec-cartNaviIsset {
    display: block;
}

.ec-cartNaviNull__message {
    color: #666;
    font-size: 14px;
    text-align: center;
    padding: 10px 0;
}



/* ==========================================
   レスポンシブ対応
========================================== */
@media (min-width: 769px) {
    .ec-headerNaviRole .ec-headerNaviRole__left {
        width: 80%;
    }
    .searchform {
        min-width: 190px;
    }

    .ec-headerNaviRole {
        padding: 15px 20px;
    }
}

@media (max-width: 768px) {

    .ec-headerNaviRole .ec-headerNaviRole__left {
        width: 90%;
    }

    .ec-headerNavSP {
        top: 4px;
    }

    .ec-headerNav .ec-headerNav__item {
        display: none;
    }

    /* ヘッダー */
    .ec-headerNaviRole {
        padding: 8px 10px 8px 60px;
    }

    .ec-headerNaviRole__left {
        width: 100%;
        gap: 15px;
    }

    .ec-headerNaviRole__left .logo img {
        max-height: 40px;
    }

    .ec-headerNaviRole__search {
        display: none;
    }

    .ec-headerRole__navSP {
        display: block;
    }

    .ec-headerNaviRole__right {
        display: none;
    }

    /* カート（SP） */
    .ec-headerRole__cart {
        margin-left: auto;
    }

    .ec-cartNavi {
        padding: 8px 15px;
    }

    .ec-cartNavi__icon {
        font-size: 20px;
    }

    .ec-cartNavi__price {
        font-size: 14px;
    }

    /* フッター */
    .ec-footerRole__inner {
        padding: 40px 20px 20px;
    }

    .ec-footerNavi {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    .ec-footerTitle__logo a {
        font-size: 20px;
    }

    /* メインコンテンツ */
    .hero-section {
        height: 400px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .content-section {
        padding: 50px 20px;
    }

    .concerns-grid {
        grid-template-columns: 1fr;
    }

    .point-item,
    .point-item:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .point-item:nth-child(even) .point-image {
        order: 0;
    }

    .placeholder-section h2 {
        font-size: 24px;
    }

    .points-section,
    .concerns-section,
    .qa-section,
    .system-section {
        padding: 50px 20px;
    }

    .leaf-decoration::before,
    .leaf-decoration::after {
        font-size: 40px;
    }

    .cta-button {
        padding: 15px 35px;
        font-size: 14px;
    }

    .step-description {
        padding-left: 0;
    }

    .step-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {

    /* ヘッダー */

    .ec-headerNaviRole__left .logo img {
        max-height: 35px;
    }

    .ec-cartNavi {
        padding: 6px 12px;
    }

    .ec-cartNavi__price {
        font-size: 13px;
    }

    /* フッター */
    .ec-footerRole__inner {
        padding: 30px 15px 15px;
    }

    .ec-footerNavi__link a {
        font-size: 13px;
    }

    .ec-footerTitle__logo a {
        font-size: 18px;
    }

    .ec-footerTitle__copyright {
        font-size: 11px;
    }

    /* メインコンテンツ */
    .hero-title {
        font-size: 28px;
    }

    .concerns-title,
    .qa-title,
    .system-title {
        font-size: 22px;
    }

    .points-title {
        font-size: 22px;
    }

    .point-item {
        padding: 20px;
    }

    .point-content {
        padding: 5px;
    }

    .leaf-decoration::before,
    .leaf-decoration::after {
        display: none;
    }
}

/* ==========================================
   ドロワーメニュー（SP用）
========================================== */
.ec-drawerRole {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 9999;
}

.ec-drawerRole.is_active {
    right: 0;
}

.ec-drawerRoleClose {
    left: 310px;
    background: var(--main-color);
}

.ec-drawerRoleClose.is_active {
    z-index: 999999;
}

.ec-drawerRoleClose:hover {
    background: #4CAF50;
}

.ec-drawerRoleClose i {
    color: #fff;
    font-size: 20px;
}

.ec-overlayRole {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.ec-overlayRole.is_active {
    opacity: 1;
    visibility: visible;
}

/* ドロワー内コンテンツ */
.ec-headerCategoryArea {
    margin-bottom: 30px;
}

.ec-headerCategoryArea__heading {
    background: var(--main-color);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.ec-headerCategoryArea__heading p {
    margin: 0;
    font-weight: bold;
    font-size: 15px;
}

.ec-itemNav__nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ec-itemNav__nav>li {
    border-bottom: 1px solid #E0E0E0;
}

.ec-itemNav__nav>li>a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ec-itemNav__nav>li>a:hover {
    background: #F0F8F0;
    color: #2E7D32;
    padding-left: 20px;
}

.ec-itemNav__nav>li ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #F5F5F5;
}

.ec-itemNav__nav>li ul li a {
    display: block;
    padding: 10px 15px 10px 30px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.ec-itemNav__nav>li ul li a:hover {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 20px;
}

/* ドロワー内リンクエリア */
.ec-drawerRole .ec-headerLinkArea {
    background: var(--main-color);
    padding: 20px;

}

.ec-headerLink__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ec-drawerRole .ec-headerLinkArea .ec-headerLink__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #F0F8F0;
    border-radius: 8px;
    color: #2E7D32;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ec-headerLink__item:hover {
    background: var(--main-color);
    color: #fff;
    transform: translateX(5px);
}

.ec-headerLink__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    font-size: 18px;
}

/* ドロワー内検索 */
.ec-drawerRole .ec-headerSearch {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ec-drawerRole .ec-headerSearch__category,
.ec-drawerRole .ec-headerSearch__keyword {
    width: 100%;
    max-width: none;
}

.ec-headerSearch .ec-headerSearch__category .ec-select select,
.ec-headerSearch .ec-headerSearch__category .ec-select.ec-select_search {
    width: 100%;
    background: var(--main-color);
}