@charset "UTF-8";

/* ==========================================================================
   Font Definitions
   ========================================================================== */


/* ==========================================================================
   Utility Classes
   ========================================================================== */
.pc {
    display: block;
}

a {
    transition: opacity 0.3s ease-out, color 0.3s ease-out;
}

.sp {
    display: none;
}

.padleftright {
    padding-left: 0;
    padding-right: 0;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
/* Header Styles */
header.service {
    padding-top: 25px;
    padding-bottom: 25px;
    padding-left: 10px;
    padding-right: 10px;
    position: fixed;
    /* Global Fixed Header */
    width: 100%;
    /* Ensure full width */
    background: transparent;
    /* Global Transparent (blends with body bg) */
    top: 0;
    z-index: 10000;
    transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out;
}

header.service.scrolled {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 
   Global Body Padding
   Required because Fixed Header floats over content.
   Standard pages need this to prevent content from hiding behind header.
*/
body {
    padding-top: 112px;
}

/* 
   Hero Page Exceptions:
   Pages with Hero sections (Home, LP, Pricing, About) should have NO padding
   so the header overlays the hero image/video.
*/
body.home,
body.page-template-page-yoriaiseo,
body.page-template-page-lp-yoriaiseo,
body.page-template-page-pricing,
body.page-template-page-about {
    padding-top: 0 !important;
}

/* Full width header for non-LP pages */
body:not(.page-template-page-lp-yoriaiseo) header.service .headservicediv.wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 40px;
    padding-right: 40px;
}

html {
    scroll-padding-top: 112px;
}

header.service img {
    height: auto;
    margin: 0;
    width: 230px;
    vertical-align: bottom;
}

.headservicediv {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.headul li {
    list-style: none;
}

.headul li a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    /* Increased weight for better visibility */
    font-size: 15px;
    font-family: "Hiragino Sans", sans-serif;
    transition: color 0.3s ease;
}

.headul li a:hover {
    color: var(--color-brand);
}

/* Header Navigation */
.headul ul {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.headul li {
    list-style: none;
    position: relative;
    /* Context for dropdown */
    padding: 10px 0;
    /* Increase touch area/visual spacing */
}

/* Dropdown Menu (Sub-menu) */
.headul .sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 220px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    flex-direction: column;
    /* Stack items vertically */
    gap: 0;
}

/* Show Sub-menu on Hover */
.headul li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Sub-menu Items */
.headul .sub-menu li {
    padding: 0;
    display: block;
    text-align: left;
}

.headul .sub-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s;
    font-weight: normal;
}

.headul .sub-menu li a:hover {
    background-color: var(--color-base);
    color: var(--color-brand);
}

/* Triangle Arrow for Dropdown */
.headul .sub-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}

.headflex {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.headbtn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.headbtn div {
    width: 180px;
    text-align: center;
}

.headbtn div a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-family: "LINE Seed JP", sans-serif;
    font-size: 15px;
    padding: 18px 0;
    display: block;
    transition: all 0.3s ease;
    line-height: 1;
}

.headbtn div:first-child a {
    background: var(--color-brand);
    /* Brand Blue */
    border-radius: 50px 0 0 50px;
}

.headbtn div:nth-child(2) a {
    background: var(--color-main);
    /* Vermilion Red */
    border-radius: 0 50px 50px 0;
}

/* Hover effects */
.headbtn div a:hover {
    opacity: 0.9;
    filter: brightness(1.05);
}

/* Mobile Menu Base State */
#humMenu {
    display: none;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
footer.site-footer {
    position: relative;
    z-index: 1;
    padding-top: 50px;
    background-color: #2c2c2c;
    /* Dark background for white text/logo */
    color: #fff;
    padding-bottom: 20px;
}

footer.site-footer .wrapper {
    max-width: 1500px;
    /* Keep footer wide as per design */
}

footer.site-footer h2,
footer.site-footer .footer-cta-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    padding-bottom: 15px;
    text-align: center;
    font-family: var(--font-base);
}

footer.site-footer h2 span,
footer.site-footer .footer-cta-title span {
    font-size: 38px;
    margin-left: -20px;
}

.footp1 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 10px;
    text-align: center;
    font-family: "Hiragino Sans", sans-serif;
}

.footp2 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 40px;
    text-align: center;
    font-family: "Hiragino Sans", sans-serif;
}

.footseo {
    max-width: 635px;
    width: 100%;
    display: block;
    margin: 0 auto 45px;
}

.footprofile {
    max-width: 735px;
    width: 100%;
    padding-bottom: 30px;
}

.cp {
    font-size: 17px;
    font-family: 'LINE Seed JP', sans-serif;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.footcontent {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.cominkadiv {
    display: flex;
    flex-wrap: wrap;
    max-width: 345px;
    width: 100%;
    gap: 25px;
}

.comimg {
    max-width: 72px;
    width: 100%;
}

.comimg img {
    width: 100%;
}

.cominkatext {
    max-width: 250px;
    color: #fff;
}

.cominkatext h4,
.cominkatext .footer-company-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px;
}

.cominkatext p {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    margin: 0;
}

/* Footer Navigation */
.footnav {
    margin-bottom: 60px;
    width: 100%;
}

.footnav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

/* Top Level Items */
.footnav>div>ul>li {
    text-align: left;
}

.footnav>div>ul>li>a {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    font-family: "LINE Seed JP", sans-serif;
    display: block;
    margin-bottom: 15px;
    pointer-events: none;
    /* Top level are section headers */
}

/* Sub-menus */
.footnav .sub-menu {
    display: flex !important;
    /* Override flex from top ul if inherited */
    flex-direction: column;
    gap: 12px;
}

.footnav .sub-menu li {
    text-align: left;
}

.footnav .sub-menu li a {
    font-size: 14px;
    color: #ddd;
    font-weight: normal;
    text-decoration: none;
    font-family: "LINE Seed JP", sans-serif;
    transition: opacity 0.3s ease;
    display: inline-block;
    padding: 0;
}

.footnav .sub-menu li a:hover {
    opacity: 0.7;
    color: #fff;
}

.flexfoot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
}

.copydiv {
    font-size: 12px;
    font-family: 'LINE Seed JP', sans-serif;
    color: #fff;
    text-align: end;
}

.lawfootdiv {
    text-align: right;
    margin-bottom: 5px;
}

.lawfootdiv a {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
}

/* Links inside footer */
footer.site-footer a {
    color: #fff;
}

/* Footer Banner */
.footbanner {
    position: fixed;
    max-width: 420px;
    right: 1%;
    bottom: 12px;
    border-radius: 12px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10000;
}

.footbanner img {
    border-radius: 12px;
    display: block;
    width: 100%;
    border: 3px solid #45C476;
}

.footbanner-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background 0.2s ease;
}

.footbanner-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Header Mobile & Tablet */
@media screen and (max-width: 1280px) {
    .headbtn {
        display: none !important;
    }

    .pc {
        display: none;
    }

    .sp {
        display: block;
    }

    /* Header Mobile */
    header.service {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    header.service img {
        width: 100px;
    }

    .headflex {
        width: auto;
    }

    .headul {
        display: none !important;
    }

    .headbtn {
        display: none !important;
    }

    /* Mobile Menu */
    #humMenu {
        float: right;
        display: block;
    }

    #humCheck,
    #humClose {
        display: none;
    }

    #humOpen {
        display: block;
        width: 32px;
        cursor: pointer;
    }

    #humOpen img {
        display: block;
        width: 100%;
    }

    #humCheck:checked~nav {
        transform: translateX(0);
    }

    #humCheck:checked~#humClose {
        display: block;
    }

    #humMenu nav {
        position: fixed;
        right: 0;
        top: 0;
        height: 100%;
        z-index: 10003;
        width: 300px;
        /* Slightly wider for better breathing room */
        transform: translateX(100%);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background-color: rgba(255, 255, 255, 0.98);
        /* More opaque */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        /* Enable scrolling */
        -webkit-overflow-scrolling: touch;
        padding-bottom: 40px;
    }

    #humClose {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10002;
    }

    #humMenu nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: block;
        padding-top: 80px;
        /* More space for close button */
        width: 100%;
    }

    /* Top Level Items */
    #humMenu nav>ul>li {
        padding: 0;
        border-bottom: 1px solid #eee;
    }

    #humMenu nav>ul>li>a {
        font-size: 16px;
        color: #333;
        font-weight: 700;
        display: block;
        text-decoration: none;
        padding: 20px 25px;
        transition: background-color 0.2s;
        font-family: "LINE Seed JP", sans-serif;
    }

    #humMenu nav>ul>li>a:hover {
        background-color: #f5f5f5;
        color: var(--color-brand);
    }

    /* Sub Menu Items */
    #humMenu nav .sub-menu {
        display: block;
        background-color: #fafafa;
        border-top: 1px solid #f0f0f0;
    }

    #humMenu nav .sub-menu li {
        border-bottom: 1px solid #f0f0f0;
    }

    #humMenu nav .sub-menu li:last-child {
        border-bottom: none;
    }

    #humMenu nav .sub-menu li a {
        font-size: 14px;
        color: #555;
        font-weight: 500;
        padding: 15px 25px 15px 40px;
        /* Indent */
        display: block;
        font-family: "LINE Seed JP", sans-serif;
    }

    #humMenu nav .sub-menu li a::before {
        content: "-";
        margin-right: 8px;
        color: var(--color-brand);
        opacity: 0.5;
    }

    #humMenu nav .sub-menu li a:hover {
        color: var(--color-brand);
        background-color: #f0f0f0;
    }

    /* Mobile Menu Buttons */
    .hum-buttons {
        margin-top: auto;
        padding: 40px 25px 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .hum-buttons a {
        display: block;
        text-align: center;
        padding: 16px;
        border-radius: 50px;
        font-weight: bold;
        text-decoration: none;
        font-size: 15px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        font-family: "LINE Seed JP", sans-serif;
    }

    .hum-buttons a:active {
        transform: scale(0.98);
    }

    .hum-buttons .btn-shiryou {
        background: var(--color-brand);
        color: #fff;
        box-shadow: 0 4px 12px rgba(34, 158, 189, 0.3);
    }

    .hum-buttons .btn-trial {
        background: var(--color-main);
        color: #fff;
        box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
    }

    /* Footer Mobile */
    footer.site-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footnav {
        margin-bottom: 40px;
    }

    .footnav ul {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .footnav>div>ul>li {
        text-align: center;
        width: 100%;
    }

    .footnav .sub-menu li {
        text-align: center;
    }

    .flexfoot {
        flex-direction: column;
        align-items: center;
    }

    .footprofile {
        width: 100%;
    }

    .copydiv {
        text-align: center;
        width: 100%;
        margin-top: 20px;
    }

    .lawfootdiv {
        text-align: center;
    }

    .footseo {
        margin-bottom: 30px;
    }

    .footbanner {
        max-width: 200px !important;
    }
}