.s20-fred {
    color: #FD494C !important;
}

.s20-ft-des {
    background-color: #CDB270;
}

.s20-ft-member {
    background-color: #2DBECD;
}

.s20-ft-member .fl-member-box .item-mem {
    border: 1px solid #2DBECD;
    background: #fff;
}

.s20-ft-member .fl-member-box .item-mem:nth-child(2), .s20-ft-member .fl-member-box .item-mem:nth-child(3), .s20-ft-member .fl-member-box .item-mem:nth-child(6), .s20-ft-member .fl-member-box .item-mem:nth-child(7) {
    background: #fff;
}

.s20-ft-member .fl-member-box .item-mem h4 {
    color: #2DBECD;
}

.s20-ft-member .fl-member-box .item-mem p {
    color: #000;
}

.fixed-bottom-bar-sp {
    display: none;
}

.pr-20 {
    padding-right: 20px;
}

.pc-hidden {
    display: none !important;
}

.icon-black-circle {
    font-size: 2.0em !important;
    color: #000 !important;
    vertical-align: middle;
    position: relative;
    top: -3px; /* Có thể tăng giảm số này để căn chỉnh lên xuống chính xác */
}

.s20-comm-header .s20-perf {
    background-color: #fff !important;
    text-align: center !important;
}

.s20-comm-header .s20-cominfo {
    padding: 0 !important;
    gap: 10px;
    margin-bottom: 10px;
}

.s20-comm-header .s20-perf .s20-container{
    background-image: none !important;
}

@media screen and (min-width: 769px) {
    .s20-comm-header .s20-container {
        width: auto !important;
        max-width: 1088px;
    }
}

.s20-cominfo .ci-logo a .logo-area {
    font-size: 12px;
    font-weight: 400 !important;
    padding-top: 5px;
}

.ci-search form.ci-search-b input {
    background: #fff !important;
    border-radius: 2px 0 0 2px !important;
}

.ci-search form.ci-search-b button {
    display: block;
    width: 40px;
    background: #2DBECD url(../images/2026-new/magnifying-glass-solid.svg) no-repeat 50% 50%;
    background-size: 21px;
    border: none;
    padding-left: 2px;
    padding-right: 12px;
    border-radius: 0px 2px 2px 0px;
}

.vsg-header__tel {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 26px;
    font-weight: 700;
    font-style: normal;
    line-height: 100%;
    color: #2DBECD;
    text-decoration: none;
    white-space: nowrap;
}

.vsg-header__tel-icon {
    width: 30px !important;
    height: 19px !important;
    flex: 0 0 34px !important;
}

.vsg-header__tel-note {
    font-family: var(--font-zen-kaku);
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}

.s20-cominfo .ci-search {
    flex-basis: auto !important;
    flex-grow: 0 !important;
    margin-left: auto;
}

.s20-cominfo .ci-inquiry {
    align-self: center;
}

.menu-list-area {
    background-color: #2DBECD;
}

footer.all-footer {
    color: #000 !important;
    background-color: #fff !important;
}

.fl-box .fl-item a {
    color: #000 !important;
}

footer .copyright {
    background-color: #2DBECD;
    color: #fff !important;
    padding-bottom: 10px;
    padding-top: 10px;
}

@media screen and (min-width: 769px) {
    .menu-list {
        display: flex;
        align-items: center;
        gap: 24px;
        padding: 8px 0;
        list-style: none;
    }

    .menu-list li a, .menu-list li div {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #fff;
        text-decoration: none;
        font-size: 16px;
        line-height: 24px;
    }

    .menu-list li a img {
        width: 16px;
        height: 16px;
        display: block;
    }

    .menu-list-area .menu-list img {
        width: 20px;
        height: 20px;
        transform: translateY(-2px);
    }

    /* Dropdown menu for 相続手続き サービス */
    .menu-list li.menu-has-dropdown {
        position: relative;
    }

    .menu-list li.menu-has-dropdown .menu-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 280px;
        margin: 0;
        padding: 0;
        list-style: none;
        z-index: 999;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .menu-list li.menu-has-dropdown.short .menu-dropdown {
        width: 200px;
    }

    .menu-list li.menu-has-dropdown:hover .menu-dropdown {
        display: block;
    }

    .menu-list li.menu-has-dropdown .menu-dropdown li {
        width: 200px;
        height: 40px;
        background-color: #E0FCFF;
        border: 1px solid #CCCCCC;
        border-top: none;
    }

    .menu-list li.menu-has-dropdown .menu-dropdown.menu-long-dropdown li {
        width: 280px !important;
    }

    .menu-list li.menu-has-dropdown .menu-dropdown li:first-child {
        border-top: 1px solid #CCCCCC;
    }

    .menu-list li.menu-has-dropdown .menu-dropdown li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 100%;
        padding: 0 12px 0 30px;
        color: #333;
        font-size: 15px;
        font-weight: 700;
        line-height: 21px;
        text-decoration: none;
        box-sizing: border-box;
    }

    .menu-list li.menu-has-dropdown .menu-dropdown li a img {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .menu-list li.menu-has-dropdown .menu-dropdown li:hover {
        background-color: #C8F5FA;
    }
}

/* PC default: hide SP elements */
.logo-sp, .logo-perf-sp {
    display: none;
}

.vsg2026-simulation__head h3 {
    font-size: 28px;
    line-height: 42px;
    letter-spacing: 0;
}

.s20-ft-member .fl-member-box {
    max-width: 1088px;
}

footer .s20-flexbox {
    max-width: 1088px;
    margin: 0 auto;
}

/* Header Overrides */
@media screen and (min-width: 769px) {
    .s20-cominfo .ci-search.ci-search-kyoten {
        flex-basis: 240px !important;
        width: 240px;
    }
}

.logo-area-kyoten {
    background: #CDB270;
    width: fit-content;
}

.logo-area-kyoten .aname-kyoten {
    font-size: 14px;
    line-height: 21px;
    font-weight: 400;
    color: #fff;
    padding: 0 10px;
    letter-spacing: 0;
}

.logo-area-kyoten .aname-kyoten.tokyo-center-aname {
    font-weight: 700;
}

.logo-area-kyoten .aname-kyoten span.kyoten-main {
    font-size: 18px;
    line-height: 21px;
    font-weight: 700;
    padding-right: 10px;
}

.logo-area-kyoten .aname-kyoten span.kyoten-sub {
    position: relative;
    top: -1px;
}

.s20-cominfo .ci-logo.ci-logo-kyoten {
    flex-basis: 435px;
}

.s20-cominfo .ci-logo.ci-logo-kyoten .logo-pc{
    width: 260px;
}

.s20-cominfo .ci-logo a .logo-area.logo-area-kyoten{
    margin-top: 10px;
}

.ci-tel {
    margin-top: 0;
}
    

@media only screen and (max-width: 768px) {
    .logo-area-kyoten {
        display: block !important;
        width: 100vw !important;
        margin-left: -10px !important;
        text-align: center;
        box-sizing: border-box;
    }
}

/* SP styles */
@media screen and (max-width: 768px) {
    /* Hide PC elements */
    .logo-pc,
    .s20-perf,
    .s20-cominfo .ci-search,
    .ci-tel,
    .ci-inquiry,
    .menu-list-area,
    .s20-sp-perf,
    .s20-ft-des,
    .sp-hidden {
        display: none !important;
    }

    .pc-hidden {
        display: initial !important;
    }

    body.page-template-content-kyoten {
        margin-top: 85px !important;
    }

    .fixed-bottom-bar-sp {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100px;
        z-index: 9999;
        padding: 0;
        box-sizing: border-box;
        background-color: #2DBECD;
        transition: transform 0.3s ease;
    }

    .fixed-bottom-bar-sp.is-footer-visible {
        transform: translateY(100%);
    }

    .all-footer {
        padding-bottom: 100px;
    }

    .fixed-bottom-bar-sp__left {
        flex: 0 0 calc(45%);
        justify-content: right;
    }

    .fixed-bottom-bar-sp__right {
        flex: 0 0 calc(55%);
        display: flex;
        align-items: center;
        height: 100%;
    }

    .fixed-bottom-bar-sp__left img,
    .fixed-bottom-bar-sp__right img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Show SP elements */
    .logo-sp {
        display: block;
        width: 100%;
        max-width: 250px;
    }


    .logo-perf-sp {
        display: block;
        font-size: 11px;
        color: #333;
        margin-top: 5px;
        white-space: nowrap;
    }

    /* Layout for header */
    .s20-comm-header .s20-cominfo {
        padding: 10px 0 0 10px!important;
        position: relative;
        display: block !important;
        margin-bottom: 0;
    }

    .s20-comm-header .s20-cominfo.s20-kyoten {
        padding: 0 !important;
    }

    .s20-cominfo .ci-logo a .logo-area.logo-area-kyoten {
        margin-top: 0;
    }

    .logo-area-kyoten .aname-kyoten {
        font-size: 13px;
        line-height: 21px;
        padding: 0;
    }

    .logo-area-kyoten .aname-kyoten span.kyoten-main {
        font-size: 16px;
    }

    .logo-area-kyoten .aname-kyoten span {
        font-size: 12px;
    }

    .logo-area-kyoten .aname-kyoten.tokyo-center-aname {
        padding: 5px;
    }

    .s20-cominfo .ci-logo.ci-logo-kyoten .logo-sp {
        width: 180px;
        padding-bottom: 5px;
        padding-top: 5px;
    }
    
    .ci-logo {
        width: 80%; /* Space for hamburger */
    }

    /* Hamburger menu */
    #s20-sp-bt {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        right: 0;
        width: 54px;
        height: 54px;
        background-color: #2DBECD;
        border-radius: 0px;
        font-size: 0;
        color: transparent;
        cursor: pointer;
        z-index: 100;
        margin-top: 0;
        margin-right: 0 !important;
        border: none !important;
        filter: none !important; 
    }
    
    #s20-sp-bt .drawer-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 18px;
        margin-top: -10px;
        margin-left: -10px;
    }
    
    #s20-sp-bt .drawer-icon .icon-bar {
        width: 100%;
        height: 2px;
        background-color: #ffffff;
        display: block;
        margin: 0;
    }

    #sp-dw-close {
        background-color: #2DBECD !important;
    }

    #sp-dw-close img {
        padding-top: 10px;
    }

    .sp-search form.ci-search-b input {
        border-radius: 7px 0 0 7px !important;
    }

    .sp-dw-menu-2023 .dr-sp-menu li a, .sp-dw-menu-2023 li#menu-article-sp ul.article-sp li a {
        background-image: url(../images/2026-new/nav_menu_icon/chevron-right-solid.svg);
        background-size: 20px !important;
    }

    .sp-dw-menu-2023 .dr-sp-menu li.li-icon {
        background-image: url(../images/2026-new/nav_menu_icon/home_blue.svg);
    }

    .sp-dw-menu-2023 .dr-sp-menu li#menu-service-sp span, .sp-dw-menu-2023 .dr-sp-menu li#menu-column-sp span, 
    .sp-dw-menu-2023 .dr-sp-menu li#menu-article-sp span {
        background-image: url(../images/2026-new/nav_menu_icon/plus-solid.svg);
        background-size: 31px !important;
    }

    .sp-dw-menu-2023 .dr-sp-menu li#menu-service-sp.on span,
    .sp-dw-menu-2023 .dr-sp-menu li#menu-column-sp.on span,
    .sp-dw-menu-2023 .dr-sp-menu li#menu-article-sp.on span {
        background-image: url(../images/2026-new/nav_menu_icon/minus-solid.svg) !important;
        background-size: 40px !important;
    }

    .sp-dw-menu-2023 li#menu-service-sp ul.serv-sp, .sp-dw-menu-2023 li#menu-column-sp ul.column-sp,
    .sp-dw-menu-2023 li#menu-article-sp ul.article-sp
    {
        background: #E0FCFF;
    }

    #s20-sp-drawerbox {
        background-color: #2DBECD;
    }

    .ci-search form.ci-search-b button {
        border: 1px solid #fff;
        border-radius: 0px 7px 7px 0px !important;
    }

    .dr-sp-ftmenu {
        justify-content: center;
        margin-left: 0;
    }

    .dr-sp-menu ul, .dr-sp-submenu ul {
        margin-top: 0;
    }

    .s20-ft-member {
        background-color: #CDB270;
        padding: 0;
    }

    .s20-ft-member .fl-member-box .item-mem:nth-child(1), .s20-ft-member .fl-member-box .item-mem:nth-child(3), .s20-ft-member .fl-member-box .item-mem:nth-child(5) {
        background: #fff;
    }

    .s20-ft-member .fl-member-box .item-mem:nth-child(2), .s20-ft-member .fl-member-box .item-mem:nth-child(4), .s20-ft-member .fl-member-box .item-mem:nth-child(6) {
        background: #fff;
    }

    .s20-ft-member .fl-member-box {
        margin-bottom: 0;
    }

    .s20-ft-member h3 {
        padding-top: 25px;
    }

    footer.all-footer {
        margin-bottom: 44px;
    }
}
