/* common.css */

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    /* height: 100%; */
    font-family: 'Noto Sans JP', sans-serif;
    background-color: white;
    color: #333333;
    overflow-x: hidden;
}

ul, ol, li {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
    width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: inherit;
    text-decoration: none;
}

/* font */
.kaisei-harunoumi-regular {
    font-family: "Kaisei HarunoUmi", serif;
    font-weight: 400;
    font-style: normal;
}

.kaisei-tokumin-regular {
    font-family: "Kaisei Tokumin", serif;
    font-weight: 400;
    font-style: normal;
}

.noto-sans-jp {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.noto-serif-jp {
    font-family: "Noto Serif JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/* 共通 */
body {
    margin-top: 79px;
}

.breadcrumb {
    font-size: 14px;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 24px 0;
}

.breadcrumb span {
    color: #ccc;
}

/* メニュー */
.menu_sp {
    height: 420px;
    height: 100vh;
    background: #eee;
    font-size: 16px;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #EFBDB0 10.5%, #E9B6C6 38%, #BCADE2 63%, #6F9EEC 89%);
    z-index: 10;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateX(-100%);
    visibility: hidden;
    transition: all 0.4s 0s ease;
}

.menu_sp.active {
    transform: translateX(-10%);
    visibility: visible;
}

.menu_sp-list {
    display: flex;
    flex-flow: column;
    gap: 32px;
    /* top: -10%; */
    /* position: relative; */
    transform: translateX(10%);
}

.menu_sp-list li {
    list-style-type: none;
}

.menu_sp .sub-menu {
    margin: 1rem 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu_sp .sub-menu li {
    line-height: 1.8;
}

.menu_sp .sub-menu li:before {
    content: "-";
    padding-right: 0.5rem
}

.menu_sp-contact-btn {
    width: 196px;
    border: 1px solid #333;
    border-radius: 50px;
    padding: 17px;
    position: relative;
    top: 48px;
    text-align: center;
    transform: translateX(10%);
}

.menu_sp-contact-btn:hover, [data-page="contact"] .menu_sp-contact-btn {
    color: #7C7CBA;
    background: #fff;
    border-color: #fff;
}

.menu_sp-close-btn {
    display: block;
    position: relative;
    width: 32px;
    height: 32px;
    position: absolute;
    top: 40px;
    right: 25px;
    cursor: pointer;
}

.menu_sp-close-btn::before, .menu_sp-close-btn::after {
    /* 共通設定 */
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    /* 棒の幅（太さ） */
    height: 32px;
    /* 棒の高さ */
    background: #333;
}

.menu_sp-close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu_sp-close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.overlay {
    position: fixed;
}

.overlay {
    display: block;
    position: fixed;
    z-index: 7;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: #000;
    transition: all 200ms ease;
    opacity: 0;
    pointer-events: none;
}

.active .overlay {
    opacity: .25;
    pointer-events: all
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 79px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.05);
    z-index: 5;
}

.header-content {
    position: relative;
    height: 100%;
    margin: 0 auto;
    /* overflow: hidden; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-horizontal {
    position: absolute;
    left: 16px;
    top: 36px;
    width: 139px;
    height: 35px;
    display: flex;
    align-items: center;
}

.sakura-brains-logo {
    display: flex;
    flex-direction: column;
    position: relative;
}

.sakura-text {
    font-size: 16px;
    color: #595959;
    font-weight: normal;
    line-height: 1;
}

.brains-text {
    font-size: 12px;
    color: #595959;
    font-weight: normal;
    line-height: 1;
    margin-top: 2px;
}

.mark {
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
}

.hamburger-menu {
    position: absolute;
    right: 24px;
    top: 39px;
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.hamburger-line {
    width: 32px;
    height: 1.5px;
    background-color: #7c7cba;
}


/* フッター */
.footer {
    margin-top: 80px;
    background-color: #f8f8f8;
    padding: 32px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-symbol {
    width: 56px;
    height: 56px;
    position: relative;
    overflow: hidden;
}

.footer-company-name {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: normal;
    font-size: 14px;
    letter-spacing: 1.4px;
    color: #333333;
    text-align: center;
    white-space: nowrap;
}

.footer-description {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: normal;
    font-size: 12px;
    letter-spacing: 3.6px;
    color: #333333;
    text-align: center;
    line-height: normal;
    /* width: 375px; */
}

.footer-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.footer-link .about-link {
    width: 100%;
    color: #174ea6;
    text-align: center;
    font-size: 14px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px 10px 16px;
    border: 1px solid #7c7c7c;
    border-radius: 50px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: normal;
    font-size: 13px;
    letter-spacing: 1.3px;
    color: #333333;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    background: transparent;
    transition: all 0.3s ease; 
}

.contact-button:hover {
    color: #fff;
    background: #7C7CBA;
    border-color: #7C7CBA;
}

.footer-copyright {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: normal;
    font-size: 12px;
    letter-spacing: 0.6px;
    color: #333333;
    white-space: nowrap;
}


/* レスポンシブ調整 */
@media (max-width: 375px) {
    .main-content, .header-content {
        width: 100%;
    }

    .service-item {
        width: 100%;
    }
}

.menu_pc {
    display: none;
}

.sp-only {
    /* display: block; */
}

.pc {
    display: none !important;
}
.sp {
    display: block !important;
}

/* TAB & PC */
@media screen and (min-width: 768px) {
    /* 共通 */
    body {
        margin-top: 88px;
    }

    #header {
        min-width: 1024px;
    }
    .sp-only {
        display: none;
    }
    .pc {
        display: block !important;
    }
    .sp {
        display: none !important;
    }

    .header {
        height: 88px;
    }

    .logo-horizontal {
        top: 28px;
    }

    .logo-horizontal .logo {
    }

    .logo-horizontal .logo img {
        width: 225px;
        height: auto;
    }

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

    .menu_pc-list {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0 50px;
        font-size: 16px;
        color: #595959;
    }

    .menu_pc-list li {
        list-style-type: none;
        margin: 0 0%;
    }

    .menu_pc-list > li a:hover {
        border-bottom: 1px solid #A9A9DD;
    }

    .menu_pc-list li.nav-company a {
        border-bottom: none;
        cursor: pointer;
    }

    .menu_pc-list li.nav-company {
        position: relative;
    }

    .nav-company:after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 34px;
    }

    .menu_pc-list li.nav-company .sub-menu {
        display: none;
        position: absolute;
        top: 55px;
        left: -40px;
        background: #fff;
        box-shadow: 0px 4px 5px 0px #0000001A;
        width: 178px;
        padding: 0 0 20px 40px;
        box-sizing: border-box;
        flex-direction: column;
        gap: 16px;
    }
    
    .menu_pc-list li.nav-company:hover .sub-menu {
        display: flex;
    }

    .menu_pc-list li.nav-company .sub-menu li {
        line-height: 1.8;
    }

    .menu_pc-list li.nav-company .sub-menu li a:hover {
        border-bottom: 1px solid #A9A9DD;    
    }

    .menu_pc-contact-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 16px 10px 16px;
        border: 1px solid #D6D5D5;
        border-radius: 50px;
        font-family: 'Noto Sans JP', sans-serif;
        font-weight: normal;
        font-size: 13px;
        color: #595959;
        letter-spacing: 1.3px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 20px;
        transition: all 0.3s ease; 
    }

    .menu_pc-contact-btn:hover,
    [data-page="contact"] .menu_pc-contact-btn {
        color: #fff;
        background: #7C7CBA;
        border-color: #7C7CBA;
    }

    [data-page="top"] .nav-top,
    [data-page="company"] .nav-company,
    [data-page="news"] .nav-news,
    [data-page="about"] .nav-about,
    [data-page="contact"] .menu_pc-contact-btn {
        cursor: default;
        pointer-events: none; 
    }

    [data-page="top"] .nav-top,
    [data-page="company"] .nav-company,
    [data-page="news"] .nav-news,
    [data-page="about"] .nav-about {
        border-bottom: 1px solid #A9A9DD;
    }

    .footer-company-name {
        font-size: 16px;
    }

    .footer-description {
        font-size: 14px;
    }

    .footer-description br {
        display: none;
    }
}

@media screen and (min-width: 1300px) {
    .menu_pc-list {
        gap: 0 88px;
    }
}