/* top.css */

/* メインコンテンツ */
.main-content {
    position: relative;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* ヒーローセクション */
.hero {
    position: relative;
    height: 420px;
    /* background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%); */
}

.hero-background {
    position: relative;
    /* height: 528px; */
    /* background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%); */
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    top: 60px;
}

.hero-text {
    /* position: absolute; */
    left: 45px;
    top: 149px;
    color: #333333;
    bottom: 50px;
}

.main-text {
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.35em;
    text-align: justify;
    text-align-last: justify;
    padding-left: 0.2em;
    /* 左に1文字分の余白を作る */
    text-indent: -0.2em;
    /* 最初の行の文字を左に1文字分ずらす */
}

.main-text span {
    display: inline-block;
}

.main-text .kaisei-harunoumi-regular::first-letter {
    font-size: 40px;
}

.sub-text {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 16px;
    line-height: 29.5px;
    letter-spacing: 6.08px;
    margin-bottom: 8px;
}

.bottom-text {
    font-family: 'Kaisei Tokumin', serif;
    font-size: 16px;
    line-height: 30px;
    letter-spacing: 7.68px;
}

.logo-main {
    position: absolute;
    left: 50%;
    top: 283px;
    transform: translateX(-50%);
    width: 119.97px;
    height: 132.861px;
}

.hero .logo {
    width: 170px;
    height: 170px;
    position: relative;
    top: 10px;
    /* position: absolute; */
}

/* ヒーローセクション intro */
.intro-height .hero {
    height: 100vh;
    position: relative;
}

.hero {
    transition: 1s ease;
}


.hero:after {
    content: "";
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    inset: 0;
    background: linear-gradient(180deg, #EFBDB0 10.5%, #E9B6C6 38%, #BCADE2 63%, #6F9EEC 89%);
    opacity: 0;
    transition: opacity 2s ease;
}

.intro-bg .hero:after {
    opacity: 0.5;
}

.intro-txt .hero-background {
    top: 20%;
}

.hero-background {
    transition: 0.7s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.hasPlayed .logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hasPlayed .for-anime {
    display: none;
}

.for-static {
    display: none;
}

.hasPlayed .for-static {
    display: block;
    width: 57%;
    position: absolute;
    top: 38px;
}

/* サイドバー */
.sidebar {
    position: absolute;
    left: 0;
    top: 50%;
    translate: 0 -50%;
    width: 40px;
    height: 360px;
    background: white;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    z-index: 1;
    background: linear-gradient(180deg, #EFBDB0 10.5%, #E9B6C6 38%, #BCADE2 63%, #6F9EEC 89%);
}

.sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Tsukushi A Round Gothic', sans-serif;
    font-weight: bold;
    font-size: 13px;
    color: #333333;
    text-align: center;
    line-height: 24px;
    letter-spacing: 0.6em;
    width: 24px;
}

/* サービスカテゴリ */
.services {
    /* margin-top: 80px; */
    display: flex;
    flex-direction: column;
    gap: 1px;
    position: relative;
}

.service-item {
    position: relative;
    height: 140px;
    width: auto;
    overflow: hidden;
    transform: translateY(0);
    /* transition: 1s ease; */
    /* cursor: pointer; */
}

.service-item > a {
    display: block;
}

.services .service-item:nth-child(1) {
    transition: .4s 0.6s cubic-bezier(0.65, 0.05, 0.36, 1);
    background: url('../images/top/cate01.jpg') center center no-repeat;
    background-size: cover;
}

.services .service-item:nth-child(2) {
    transition: .4s 0.8s cubic-bezier(0.65, 0.05, 0.36, 1);
    background: url('../images/top/cate02.jpg') center center no-repeat;
    background-size: cover;
}

.services .service-item:nth-child(3) {
    transition: .4s 1s cubic-bezier(0.65, 0.05, 0.36, 1);
    background: url('../images/top/cate03.jpg') center center no-repeat;
    background-size: cover;
}

.intro-height .service-item {
    /* height: 0; */
    transform: translateY(100%);
}

.service-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* .web-service .service-background {
    background-position: 0% 15.85%;
    background-size: 100.06% 159.2%;
}

.design-service .service-background {
    background-position: 0% 15.85%;
    background-size: 100% 123.01%;
}

.media-service .service-background {
    background-position: 0% 51.06%;
    background-size: 100% 167.41%;
} */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    gap: 16px;
    padding: 24px 28px 16px 57px;
    color: white;
}

.web-service .service-overlay {
    background: rgba(0, 0, 0, 0.45);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.45)), linear-gradient(0deg, rgba(43, 172, 232, 0.1));
}

.design-service .service-overlay {
    background: rgba(0, 0, 0, 0.4);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.4)), linear-gradient(0deg, rgba(228, 130, 193, 0.1));
}

.media-service .service-overlay {
    background: rgba(0, 0, 0, 0.2);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2)), linear-gradient(0deg, rgba(238, 190, 45, 0.1));
}

.web-service > a:hover .service-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    linear-gradient(0deg, rgba(43, 172, 232, 0.3), rgba(43, 172, 232, 0.3));
}

.design-service > a:hover .service-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        linear-gradient(0deg, rgba(228, 130, 193, 0.25), rgba(228, 130, 193, 0.25));
}

.media-service > a:hover .service-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        linear-gradient(0deg, rgba(238, 190, 45, 0.25), rgba(238, 190, 45, 0.25));

}



.service-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 2px;
    text-shadow: rgba(0, 0, 0, 0.5) 0px 2px 4px;
    white-space: nowrap;
}

.service-description {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: normal;
    font-size: 14px;
    letter-spacing: 1.4px;
    line-height: 24px;
    text-shadow: rgba(0, 0, 0, 0.5) 0px 2px 4px;
}

.service-accent {
    position: absolute;
    right: 0;
    top: 0;
    width: 10px;
    height: 100%;
}

.service-accent.cyan {
    background-color: #70c5ec;
}

.service-accent.magenta {
    background-color: #e482c1;
}

.service-accent.yellow {
    background-color: #eebe2d;
}

/* 新着情報 */
.news {
    margin: 80px 0;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* align-items: center; */
}

.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* width: 327px; */
}

.news-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: normal;
    font-size: 20px;
    letter-spacing: 2px;
    color: #333333;
}

.news-title .accent-text {
    color: #7c7cba;
    font-size: 32px;
}

.news-link {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: normal;
    font-size: 14px;
    letter-spacing: 1.4px;
    color: #174ea6;
    text-decoration: none;
}

.news-link:hover {
    text-decoration: underline;
}

.news-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    transition: background-color 0.3s ease; 
}

.news-item a:hover {
    background: #F7F7F7;
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-date {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: normal;
    font-size: 14px;
    letter-spacing: 1.4px;
    color: #333333;
    white-space: nowrap;
}

.news-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: normal;
    font-size: 14px;
    letter-spacing: 1.4px;
    color: #333333;
    line-height: 24px;
}

.arrow-right {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* 会社概要 */
.about {
    margin-top: 80px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* align-items: center; */
}

.about-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: normal;
    font-size: 20px;
    letter-spacing: 2px;
    color: #333333;
    width: 327px;
}

.about-title .accent-text {
    color: #e482c1;
    font-size: 32px;
}

.about-description {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: normal;
    font-size: 14px;
    letter-spacing: 1.4px;
    color: #333333;
    line-height: 24px;
}

.about-link {
    display: inline;
    width: 100%;
    align-self: flex-start;
    font-weight: normal;
    font-size: 16px;
    letter-spacing: 1.6px;
    color: #174ea6;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.about-link:hover {
    text-decoration: underline;
}


/* シンボルマークの装飾（簡略版） */
.symbol-petals, .symbol-petals-main, .footer-symbol-petals {
    position: absolute;
    width: 100%;
    height: 100%;
}

.symbol-center, .symbol-center-main, .footer-symbol-center {
    position: absolute;
    top: 14.5%;
    left: 13.6%;
    right: 13.59%;
    bottom: 16.25%;
    background: linear-gradient(135deg, #DCE842 0%, #EFC22E 25%, #70C5EC 50%, #67A537 75%, #4D87E5 100%);
}

.oshibe, .oshibe-main, .footer-oshibe {
    position: absolute;
    top: 32.5%;
    left: 35%;
    right: 35%;
    bottom: 37.5%;
    background: radial-gradient(circle, #8EBCBA 0%, #E2AFA8 50%, #DD897D 100%);
    border-radius: 50%;
}

.divider {
    width: 100px;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, #7C7CBA 16.5%, #E482C1 38.5%, #F0CBBD 56%, #EEBE2D 65%, #E482C1 85.5%);
}

@media screen and (min-width: 768px) {
    .main-content {
    }

    .hero {
        height: 510px;
    }

    .hero-background {
        flex-flow: row;
        gap: 0;
        top: 150px;
        align-items: center;
    }

    .hero-text.kaisei-harunoumi-regular {
    }

    .main-text {
        font-size: 24px;
    }

    .main-text .kaisei-harunoumi-regular::first-letter {
        font-size: 60px;
        line-height: 1.6;
    }

    .hero .logo {
        width: 210px;
        height: 210px;
        top: 14px;
    }

    .intro-txt .hero-background {
        top: 35%;
    }

    .hasPlayed .for-static {
        top: 46px;
    }

    .services {
        display: flex;
        flex-direction: row;
        /* overflow: hidden; */
        gap: 2px;
        padding-left: 82px;
    }

    .service-item {
        width: 33.33333%;
        height: 315px;
    }

    .service-item a:after {
        content: "";
        display: block;
        width: 56px;
        height: 56px;
        position: absolute;
        right: 48px;
        bottom: 61px;
        background: url(/images/top/services-arrow.svg);
        transition: opacity 2s ease;
    }

    .service-item.web-service {
        /* width: auto; */
    }

    .service-background {
    }

    .service-overlay {
    justify-content: flex-start;
    padding: 40px 28px 24px 40px;
    }

    .service-title {
    font-size: 30px;
    }

    .service-description {
    font-size: 16px;
    }

    .service-accent {
        top: unset;
        bottom: 0 !important;
        width: 100%;
        height: 10px;
    }

    .service-accent.cyan {
    }

    .service-item.design-service {
    }

    .service-accent.magenta {
    }

    .service-item.media-service {
    }

    .service-accent.yellow {
    }

    .sidebar {
    top: auto;
    bottom: 0;
    translate: 0 0;
    width: 80px;
    height: 345px;
    }

    .sidebar-text {
    font-size: 16px;
    letter-spacing: 0.2em;
    }

    .news {
        max-width: 1000px;
        margin: 100px auto;
    }

    .news-header {
        max-width: 1000px;
    }

    .news-title {
    font-size: 24px;
    }

    .accent-text {
    }

    .news-link {
    font-size: 16px;
    }

    .news-items {
    }

    .news-item {
    }

    .news-content {
    }

    .news-date {
    font-size: 16px;
    }

    .news-text {
    font-size: 16px;
    }

    .arrow-right {
    }

    .about {
        width: 1000px;
        margin: 100px auto;
    }

    .about-title {
    font-size: 24px;
    }

    .about-description {
    font-size: 16px;
    }

    .about-link {
        width: auto;
    }
}
