html {
    overflow-y: scroll;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* === 変数定義 === */
:root {
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
    --text-anim-duration: 1.2s; 
    --curtain-open-speed: 1.2s;
    --dark-fade-speed: 0.8s;
    
    --color-dark-curtain: #1F1F1F;
    --text-color-dark: #1F1F1F;
    --text-color-light: #ffffff;
}

#main-visual {
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 0 70px;
    background-color: #1F1F1F;
}

.mv-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; 
    transition: opacity 0.1s ease;
}

body.is-loaded .mv-image {
    opacity: 1;
    filter: grayscale(100%) saturate(0) contrast(115%) brightness(50%);
    animation: sepiaToNormal 5s ease forwards;
    animation-delay: 0.8s;
}
@keyframes sepiaToNormal {
    from {
        filter: grayscale(100%) saturate(0) contrast(115%) brightness(50%);
    }
    to {
        filter: none;
    }
}

#loading-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

#loading-layer.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.dark-panel {
    position: fixed;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--color-dark-curtain);
    z-index: 1002; 
    opacity: 0;
    will-change: transform, opacity;
}

.dark-panel-top {
    top: 0;
    transform-origin: top;
}

.dark-panel-bottom {
    bottom: 0;
    transform-origin: bottom;
}

.dark-panel.is-visible {
    opacity: 1;
    transition: opacity var(--dark-fade-speed) ease;
}

.dark-panel.is-open-top {
    transform: translateY(-100%);
    transition: transform var(--curtain-open-speed) var(--ease-in-out-quart);
}

.dark-panel.is-open-bottom {
    transform: translateY(100%);
    transition: transform var(--curtain-open-speed) var(--ease-in-out-quart);
}

#loading-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color-dark);
    transition: opacity 0.5s ease;
}

#loading-content.is-hidden {
    opacity: 0;
}

#mv-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-right: 8%;
    padding-top: 8%;
    color: var(--text-color-light);
    
    /* 初期状態は非表示 */
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.is-loaded #mv-content {
    opacity: 1;
}

.mv-copy {
    font-size: 3.2vw;
    letter-spacing: 0.5em;
    line-height: 1.75;
    margin: 0;
    visibility: hidden;
    font-family: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
    font-weight: 600;
    transform: scaleX(0.95);
}

#mv-copy {
    font-size: 3.8vw;
    visibility: visible;
    line-height: 1.85;
    letter-spacing: 0.25em;
    font-family: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
    font-weight: 600;
    transform: scaleX(0.95);
}

.mv-copy.is-initialized {
    visibility: visible;
}

body.is-loaded .mv-copy {
    text-shadow: 1px 2px 8px rgba(0,0,0,0.95);
}

.char-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom; 
    line-height: 1.2; 
    padding-bottom: 0.1em; 
}

#loading-content .char-animate {
    display: inline-block;
    transform: translateY(110%);
    transition: transform var(--text-anim-duration) var(--ease-out-expo);
    will-change: transform;
    color: inherit; 
}

.is-anim-active {
    transform: translateY(0) !important;
}

@media (max-width: 1023px) {
    #main-visual {
        height: 100svh;
        padding: 0 20px;
    }

    .mv-image {
        object-position: 27% 50%;
    }

    #mv-content {
        padding-right: 15%;
    }

    #loading-copy {
        padding-left: 10%;
    }

    #mv-copy,
    .mv-copy {
        font-size: 2.3rem;
    }

    #mv-copy {
        writing-mode: vertical-rl;
        min-width: 84px;
    }
}

@media (max-width: 768px) {
    
}

/* ============================
	top-about
============================ */
#top-about {
    background-color: #1F1F1F;
}

#top-about .sec-inner {
    padding-top: 120px;
    padding-bottom: 120px;
}

#top-about .sec-ttl-box {
    margin-bottom: 30px;
}

#top-about .sec-ttl {
    font-size: 3.4rem;
    color: #fff;
}

#top-about .sec-ttl .about-ttl-border {
    display: inline-block;
    position: relative;
}

#top-about .sec-ttl .about-ttl-border::after {
    content: "";
    width: 102%;
    height: 1px;
    background-color: #fff;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

#top-about .content-box {
    background-color: #ebebeb;
    border-radius: 38px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#top-about .content-box .about-content-inner {
    border-radius: 38px;
    padding: 50px 40px;
    backdrop-filter: blur(12px) brightness(105%) opacity(90%);
}

#top-about .content-box .about-content-inner p {
    color: #fff;
    font-size: 2rem;
    letter-spacing: 0.05em;
    line-height: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

#top-about .sec-ttl,
#top-about .content-box .about-content-inner p {
    color: #fff;
}

#top-about .content-box {
    background-color: transparent;
    border-radius: none;
    box-shadow: none;
}

#top-about .content-box .about-content-inner {
    padding: 0;
    backdrop-filter: none;
    border-radius: none;
}

#top-about .about-business-list {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
    padding-left: 112px;
}

#top-about .about-business-list .img-box {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#top-about .about-business-list.is-visible .img-box {
    opacity: 1;
    transform: translateY(0);
}

#top-about .about-business-list.is-visible .img-box:nth-child(1) {
    transition-delay: 0.4s;
}

#top-about .about-business-list.is-visible .img-box:nth-child(3) {
    transition-delay: 0.6s;
}

#top-about .about-business-list.is-visible .img-box:nth-child(2) {
    transition-delay: 0.8s;
}

#top-about .about-business-list.is-visible .img-box:nth-child(4) {
    transition-delay: 1.0s;
}

@media screen and (max-width: 1023px) {
    #top-about .sec-inner {
        padding-top: 60px;
        padding-bottom: 50px;
    }

    #top-about .sec-ttl {
        font-size: 2.2rem;
    }

    #top-about .content-box .about-content-inner p {
        font-size: 1.4rem;
    }

    #top-about .about-business-list {
        flex-wrap: wrap;
        gap: 20px;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
    }

    #top-about .about-business-list .img-box {
        width: calc((100% - 20px) / 2);
        max-width: 160px;
    }

    #top-about .about-business-list .img-box img {
        transform: scale(0.8);
    }
}

/* ============================
	top-news
============================ */
#top-news {
    position: relative;
    margin-top: 120px;
    background-color: #fff;
    width: calc(1330 / 1440 * 100vw);
    max-width: 95%;
    border-radius: 0 50px 50px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#top-news .news-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#top-news .sec-inner {
    padding: 0;
}

#top-news .top-news-wrap {
    width: 100%;
    padding-left: calc(110 / 1440 * 100vw);
    border-radius: 0 50px 50px 0;
    backdrop-filter: blur(12px) brightness(105%) opacity(90%);
    position: relative;
    z-index: 2;
}

#top-news .news-inner {
    padding-top: 80px;
    padding-bottom: 80px;
}

#top-news .content-width {
    display: flex;
    column-gap: 9%;
    position: relative;
}

#top-news .content-width .sec-ttl-box {
    flex-shrink: 0;
    margin-bottom: 0;
}

#top-news .content-width .sec-ttl-box .sec-ttl {
    font-size: 6.8rem;
}

#top-news .content-width .sec-ttl-box .top-news-border {
    width: 158px;
    height: 1px;
    background: #E78BA7;
    background: linear-gradient(90deg,rgba(231, 139, 167, 1) 0%, rgba(233, 153, 177, 1) 40%, rgba(162, 180, 244, 1) 80%, rgba(156, 196, 239, 1) 100%);
    position: absolute;
    top: 38px;
    left: -208px;
    opacity: 0;
    animation: horizonLine 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

#top-news .deco-news-01 {
    position: absolute;
    bottom: -30px;
    right: 18%;
    z-index: 1;
}

#top-news .deco-news-02 {
    position: absolute;
    top: 0;
    right: 1%;
    z-index: 1;
}

#top-news .deco-news-03 {
    position: absolute;
    top: 50px;
    left: calc(376 / 1440 * 50vw);
    z-index: 1;
}

#top-news .deco-news-01 img {
    width: 350px;
}

#top-news .deco-news-02 img {
    width: 180px
}

#top-news .deco-news-03 img {
    width: 250px;
}

@keyframes horizonLine {
    0% { 
        transform: scaleX(0);
        transform-origin: left;
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scaleX(1);
        transform-origin: left;
        opacity: 0;
    }
}

#top-news .content-width .content-box {
    flex-grow: 1;
}

@media screen and (max-width: 1023px) {
    #top-news {
        width: calc(100% - 20px);
        max-width: initial;
        margin-top: 60px;
    }

    #top-news .top-news-wrap {
        padding-left: 0;
    }

    #top-news .news-inner {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    #top-news .content-width {
        flex-direction: column;
        row-gap: 30px;
    }

    #top-news .content-width .sec-ttl-box .sec-ttl {
        font-size: 4rem;
    }

    #top-news .deco-news-01 {
        bottom: 30px;
        right: -15px;
    }

    #top-news .deco-news-02 {
        right: unset;
        left: 4%;
    }

    #top-news .deco-news-03 {
        display: none;
    }

    #top-news .deco-news-01 img {
        width: 200px;
    }
}

/* ============================
	top-business
============================ */
.top-business-wrap {
    padding-bottom: 240px;
}

#top-business .sec-inner {
    padding-top: 120px;
}

#top-business .sec-ttl-box {
    margin-bottom: 150px;
}

#top-business .business-section {
    width: 100%;
    overflow: hidden;
    padding: 100px 0;
}

#top-business .business-row {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#top-business .business-row:last-child {
    margin-bottom: 0;
}

#top-business .business-img-area {
    width: 100%;
    height: 340px;
    position: relative;
    overflow: hidden;
}

#top-business .business-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#top-business #business-04-block .business-img-area {
    background-color: #393939;
}

#top-business #business-04-block .business-img-area img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    object-fit: contain;
}

#top-business .business-text-area {
    width: 100%;
    padding: 60px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    position: relative;
}

#top-business .business-row .business-text-area::after {
    content: url('../images/home/top_business_text_bg.svg');
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 1;
}

#top-business .text-content {
    max-width: 440px;
    width: 100%;
    color: #fff;
}

#top-business .btn-link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    border-bottom: 1px solid #fff;
    padding-bottom: 4px;
    transition: all 0.3s;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#top-business .btn-link svg {
    margin-left: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#top-business .btn-link:hover svg {
    transform: translateX(6px);
}

@media (min-width: 1024px) {
    #top-business .business-row {
        flex-direction: row;
        align-items: flex-start;
        min-height: auto; 
        height: auto;
        margin-bottom: 270px;
        padding-right: 70px;
    }

    #top-business .business-row.reverse {
        flex-direction: row-reverse;
        padding-left: 70px;
        padding-right: 0;
    }

    #top-business .business-img-area {
        width: 50%;
        height: 460px;
        top: 110px;
        z-index: 2;
    }
    
    #top-business .business-img-area img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #top-business #business-01-block .business-img-area img {
        object-position: bottom;
        border-radius: 0 20px 20px 0;
    }

    #top-business #business-02-block .business-img-area img {
        border-radius: 20px 0 0 20px;
    }

    #top-business #business-03-block .business-img-area img {
        border-radius: 0 20px 20px 0;
    }

    #top-business #business-04-block .business-img-area {
        border-radius: 20px 0 0 20px;
    }

    #top-business .business-row .business-text-area {
        width: 50%;
        padding: 70px 5% 90px;
        background-color: transparent;
    }

    #top-business .business-row .business-text-area::before {
        content: "";
        width: calc(100% + 150px);
        height: 100%;
        background-color: #000;
        position: absolute;
        top: 0;
        right: 0;
        border-radius: 20px;
        z-index: 1;
    }

    #top-business .business-row.reverse .business-text-area::before {
        right: unset;
        left: 0;
    }

    #top-business .business-row .business-text-area::after {
        content: url('../images/home/top_business_text_bg.svg');
        font-size: 0;
        line-height: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
    }

    #top-business .text-content {
        position: relative;
        z-index: 2;
    }
}

@media screen and (max-width: 1023px) {
    .top-business-wrap {
        padding-bottom: 60px;
    }
    
    #top-business .sec-inner {
        padding-top: 60px;
        padding-bottom: 0;
    }

    #top-business .sec-ttl-box {
        margin-bottom: 50px;
    }
}

/* --- Text Styling --- */

/* タイトル */
#top-business .business-text-area .text-content h3 {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1.3;
    margin: 0 0 30px;
}

#top-business .business-text-area .text-content h3 span {
    display: inline-block;
    font-size: 3.6rem;
    font-weight: 400;
    padding-top: 8px;
}

#top-business #business-04-block .business-text-area .text-content h3 span {
    font-size: 4rem;
}

#top-business .business-text-area .text-content p {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.1em;
    margin: 0 0 50px;
}

@media screen and (max-width: 1023px) {
    #top-business .business-text-area .text-content h3 {
        font-size: 1.6rem;
    }

    #top-business .business-text-area .text-content h3 span {
        font-size: 2.2rem;
    }

    #top-business #business-04-block .business-text-area .text-content h3 span {
        font-size: 2.2rem;
    }

    #top-business .business-text-area .text-content p {
        font-size: 1.4rem;
        margin: 0 0 40px;
    }

    #top-business .btn-link {
        font-size: 1.4rem;
    }
}

/* ============================
	top-company
============================ */
#top-company {
    position: relative;
}

#top-company .company-bg-wrap {
    position: relative;
    z-index: 2;
    overflow: hidden;
}

#top-company .sec-inner {
    padding: 0;
    background: rgba(159, 195, 245, 0.9);
}

#top-company .sec-sub-ttl::before {
    background: url('../images/common/icon_sec_sub_ttl_w.svg') no-repeat center / contain;
}

#top-company .content-width {
    position: relative;
    padding-top: 100px;
    padding-bottom: 130px;
}

#top-company .content-width::before {
    content: "";
    width: 560px;
    height: 365px;
    background: url('../images/home/top_comapny_bg_logo.svg') no-repeat center / contain;
    margin-top: -186px;
    position: absolute;
    top: 50%;
    right: -120px;
}

#top-company .content-width .sec-ttl-box .top-company-border {
    width: 158px;
    height: 1px;
    background: #E78BA7;
    background: linear-gradient(90deg,rgba(231, 139, 167, 1) 0%, rgba(233, 153, 177, 1) 40%, rgba(162, 180, 244, 1) 80%, rgba(156, 196, 239, 1) 100%);
    position: absolute;
    top: 48px;
    left: -208px;
    opacity: 0;
    animation: horizonLine 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

#top-company .sec-ttl {
    color: #fff;
}

#top-company .sec-sub-ttl {
    color: #fff;
}

#top-company .top-company-info {
    color: #fff;
    font-size: 2rem;
    font-weight: 500;
    margin: 0;
}

@media screen and (max-width: 1023px) {
    #top-company .company-bg-wrap {
        overflow: visible;
    }

    #top-company .content-width {
        padding: 60px 20px;
    }

    #top-company .content-width::before {
        content: "";
        width: 400px;
        height: 262px;
        margin-top: -131px;
        right: -20px;
    }

    #top-company .top-company-info {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 767px) {
    #top-company .content-width::before {
        content: "";
        width: 120px;
        height: 80px;
        margin-top: 0;
        top: 60px;
        right: 20px;
    }
}
