@charset "UTF-8";

.l-contents * {
	font-family: 'Zen Kaku Gothic New', sans-serif;
}

.contents__inner {
    width: 1140px;
    margin: 0 auto;
}
.contents__ttl {
    font-family: "Poppins", sans-serif;
    font-size: clamp(60px, 9.2vw, 105px);
    font-weight: 400;
    line-height: 1;
    color: #003163;
    display: block;
    z-index: 10;
    position: relative;
}
.contents__ttl > span:not(.business-title) {
    font-size: clamp(16px, 2.1vw, 24px);
    font-weight: 500;
    color: #000000;
    display: block;
    margin-top: 10px;
    padding-left: 16px;
    position: relative;
}

.business-title {
    display: inline-block;
    font-size: 0;
    letter-spacing: 0;
}

.business-char {
    display: inline-block;
    opacity: 0;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    font-size: clamp(60px, 9.2vw, 105px);
    font-weight: 400;
    line-height: 1;
    color: #003163;
}

.business-char.is-visible {
    animation: colorBlink 0.6s ease-in-out 8, fadeIn 0.7s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes colorBlink {
    0%, 100% {
        opacity: 0.3;
        color: #7EBDFF;
    }
    25% {
        opacity: 0.6;
        color: #4A9EFF;
    }
    50% {
        opacity: 1;
        color: #003163;
    }
    75% {
        opacity: 0.6;
        color: #4A9EFF;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
        color: #003163;
    }
}
.contents__ttl > span:not(.business-title)::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	margin: auto;
	width: 6px;
	height: 6px;
	background: #003163;
	border-radius: 50%;
	z-index: 0;
}

.main-view {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.main-view__area {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: -1;
}

.main-view__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* メインビューのキャッチ画像スライダー */
.main-view__catch-wrapper .swiper-wrapper {
    transition-duration: 0ms !important;
    transition-timing-function: linear !important;
}

.main-view__catch-wrapper .swiper-slide {
    transition: none !important;
}

.main-view__catch-img {
    width: 100%;
    height: auto;
    display: block;
}
.main-view__catch-wrapper {
    max-width: 600px;
    max-height: 424px;
    margin: auto;
    overflow: hidden;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}


/*テキストコンテンツ*/
.dream {
	min-height: 100vh;
	padding: 0;
	background: #FFFFFF;
	scroll-margin-top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
    overflow: hidden;
}

.dream .contents__wrapper--dream {
	width: 100%;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.dream .contents__inner {
	width: 100%;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* pin-spacerに背景色を引き継ぐ */
/* dreamセクション */
.pin-spacer:has(.dream),
.l-contents > .pin-spacer:has(.dream),
.pin-spacer.dream-pin-spacer {
	background: #FFFFFF;
}

/* businessセクション */
.pin-spacer:has(.business),
.l-contents > .pin-spacer:has(.business),
.pin-spacer.business-pin-spacer {
	background: #f5f5f5;
}

/* companyセクション */
.pin-spacer:has(.company),
.l-contents > .pin-spacer:has(.company),
.pin-spacer.company-pin-spacer {
	background: #FFFFFF;
}

/* historyセクション */
.pin-spacer:has(.history),
.l-contents > .pin-spacer:has(.history),
.pin-spacer.history-pin-spacer {
	background: #f5f5f5;
}

/* 固定時に画面高さいっぱいにする */
.dream.is-pinned {
	height: 100vh;
	padding: 0;
	position: relative;
	overflow: hidden;
}

.dream.is-pinned .contents__wrapper--dream {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
}

.dream.is-pinned .contents__inner {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dream.is-pinned .dream__inner {
	margin: 0 auto;
	position: relative;
}

.dream__inner {
    display: flex;
    flex-direction: row-reverse;
    gap: 63px;
    width: 660px;
    margin: 0 auto;
    position: relative;
    justify-content: center;
}

.dream.is-pinned .dream__inner {
    margin: 0 auto;
}

.dream__inner::before {
    content: "";
    background: #000000;
    width: 1px;
    height: 328px;
    position: absolute;
    top: -380px;
    right: 63px;
    opacity: 0;
    transform: translateY(-100px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.dream__inner.is-visible::before {
    opacity: 1;
    transform: translateY(0);
}
.dream__text {
	writing-mode: vertical-rl;
	font-size: 24px;
	font-weight: 400;
	line-height: 2.43;
}

.dream__text span.fade-in-up {
	display: block;
	position: relative;
}

/* 縦書きテキスト用のアニメーション */
/* GSAPで制御するため、transitionは無効化 */
.dream__text span.fade-in-up {
    opacity: 0;
    transform: translateY(100px);
    transition: none;
}

.dream__text span.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 1つ目のテキスト内の各段落の段階的アニメーション */
.dream__inner > p:first-child span.fade-in-up:nth-of-type(1) {
    transition-delay: 0s;
}
.dream__inner > p:first-child span.fade-in-up:nth-of-type(2) {
    transition-delay: 0.5s;
}
.dream__inner > p:first-child span.fade-in-up:nth-of-type(3) {
    transition-delay: 0.8s;
}
.dream__inner > p:first-child span.fade-in-up:nth-of-type(4) {
    transition-delay: 1.0s;
}

/* 2つ目のテキスト内の各段落の段階的アニメーション */
.dream__inner > p:last-child span.fade-in-up:nth-of-type(1) {
    transition-delay: 1.3s;
}
.dream__inner > p:last-child span.fade-in-up:nth-of-type(2) {
    transition-delay: 1.6s;
}
.dream__inner > p:last-child span.fade-in-up:nth-of-type(3) {
    transition-delay: 1.9s;
}
.dream__inner > p:last-child span.fade-in-up:nth-of-type(4) {
    transition-delay: 2.2s;
}
.dream__inner > p:last-child span.fade-in-up:nth-of-type(5) {
    transition-delay: 2.5s;
}


/*事業内容*/
.business {
    background: #f5f5f5;
    padding: 184px 0 200px;
    position: relative;
    overflow: hidden;
}

.business::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: var(--deco-width, 0%);
    height: 100%;
    background: url(/images/top/deco.svg) no-repeat left center;
    background-size: cover;
    z-index: 0;
    will-change: width;
}
.business__area {
    margin-top: 35px;
    position: relative;
    z-index: 1;
}
.business__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    min-height: 600px;
}
[class*="business__item--"] {
    background: #FFFFFF;
    padding: 40px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 10px;
    will-change: transform;
}
.business__item--consulting::before {
    background: url(/images/top/icn_business-consulting.svg) no-repeat center center / cover;
}   
.business__item--ai-system::before {
    background: url(/images/top/icn_business-ai-system.svg) no-repeat center center / cover;
}
.business__item--marketing::before {
    background: url(/images/top/icn_business-marketing.svg) no-repeat center center / cover;
}
.business__item--site-production::before {
    background: url(/images/top/icn_business-site-production.svg) no-repeat center center / cover;
}
[class*="business__item--"]::before {
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    bottom: 25px;
    left: 25px;
}
.business__item-label {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #FFFFFF;
    display: block;
    padding: 2px 9px 3px;
    width: fit-content;
    border-radius: 5px;
    position: absolute;
    top: 25px;
    left: 25px;
}
.business__item--consulting .business__item-label {
    background: #7EBDFF;
}
.business__item--ai-system .business__item-label {
    background: #F3A1AC;
}
.business__item--marketing .business__item-label {
    background: #EFA1F3;
}
.business__item--site-production .business__item-label {
    background: #89E08C;
}
.business__item-inner {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.business__item-text {
    flex: 1;
    padding-left: 30px;
    padding-top: 149px;
    /* width: 320px; */
    /* flex-shrink: 0; */
}
.business__item-text h3 {
    font-size: 32px;
    font-weight: 500;
    color: #003163;
    display: block;
    margin-bottom: 13px;
}
.business__item-text p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #000000;
    letter-spacing: 0;
}
.business__item-img {
    max-width: 29.479vw;
    max-height: 21.875vw;
}

.business__item-img img {
    width: 100%;
    height: 100%;
}

/*企業情報*/
.company {
    padding: 184px 0 250px;
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
}

.company__area {
    margin-top: 8px;
    position: relative;
}
.company__map-contents {
    position: relative;
    z-index: -1;
}

.company__map {
    padding-right: 35px;
    max-width: 631px;
    width: 100%;
    height: auto;
    max-height: 597px;
    aspect-ratio: 631 / 597;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: block;
    z-index: -1;
    object-fit: contain;
}

[class*="company__map-others-"] {
    position: absolute;
}

.company__map-others-1 {
    top: 84px;
    left: 10px;
}
.company__map-others-2 {
    top: 397px;
    right: 20px;
}
.company__map-others-3 {
    top: 267px;
    right: 190px;
}
.company__map-others-4 {
    top: 467px;
    right: 293px;
}
.company__map-others-5 {
    top: 166px;
    left: 264px;
}
.company__map-others-6 {
    top: 339px;
    left: 110px;
}

/* モーダルコンテンツ */
.map-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    background: #FFFFFF;
    pointer-events: none;
    padding-top: 50px;
}
#urumaContent.map-content {
    flex-direction: row-reverse;
}
#nahaContent.map-content::before {
    content: "";
    position: absolute;
    top: -231px;
    right: -390px;
    width: 945px;
    height: 797px;
    background: url(/images/top/map-naha.webp) no-repeat center center;
    background-size: cover;
    z-index: 0;
}

#urumaContent.map-content::before {
    content: "";
    position: absolute;
    top: -215px;
    left: -297px;
    width: 1554px;
    height: 800px;
    background: url(/images/top/map-uruma.webp) no-repeat center center;
    background-size: cover;
}
.map-content .content-overlay {
    background: rgba(255, 255, 255, 0.95);
    max-width: clamp(400px, 48vw, 555px);
    width: clamp(400px, 48vw, 555px);
    pointer-events: auto;
    padding: clamp(20px, 2.5vh, 30px);
}

.map-content .content-overlay h3 {
    font-size: clamp(18px, 2.5vh, 24px);
    font-weight: 500;
    color: #003163;
    padding-bottom: clamp(6px, 0.8vh, 8px);
    border-bottom: 2px solid #003163;
    margin-bottom: clamp(20px, 3vh, 32px);
}

.map-content .content-overlay dl {
    display: flex;
    padding-bottom: clamp(12px, 1.8vh, 17px);
    border-bottom: 1px solid #E9E9E9;
    margin-bottom: clamp(12px, 1.8vh, 17px);
    line-height: 1.6;
}

.map-content .content-overlay dt {
    font-weight: 500;
    color: #003163;
    min-width: clamp(80px, 9vw, 100px);
    margin-right: clamp(8px, 1vw, 10px);
    font-size: clamp(14px, 1.6vh, 16px);
}

.map-content .content-overlay dd {
    color: #000000;
    flex: 1;
    padding: 0 clamp(20px, 4vw, 40px) 0 0;
    font-size: clamp(14px, 1.6vh, 16px);
}

.map-content .content-overlay a {
    position: relative;
    z-index: 11;
    pointer-events: auto;
    cursor: pointer;
    text-decoration: underline;
    color: #000000;
}

.map-content .content-overlay a:hover {
    color: #003163;
}


/*沿革*/
.history {
    background: #f5f5f5;
    padding: 184px 0 200px;
}
.history__area {
    margin-top: clamp(60px, 11.4vw, 131px);
    width: 100%;
}
.history__list {
    display: flex;
    gap: 30px;
    position: relative;
    will-change: transform;
}
.history__list::before {
    content: "";
    position: absolute;
    top: -63px;
    left: 180px;
    width: 3503px;
    height: 1px;
    background: #003163;
    z-index: 1;
}
.history__item {
    width: 360px;
    height: 360px;
    flex-shrink: 0;
    background: #FFFFFF;
    border-radius: 10px;
    display: flex;
    padding: 32px 40px 40px;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.history__item::before {
	content: "";
	position: absolute;
	top: -63px;
	left: 0;
	right: 0;
	margin: auto;
	width: 1px;
	height: 63px;
	background: #C5DEF8;
}
.history__item::after {
	content: "";
	position: absolute;
	top: -76px;
	left: 0;
	right: 0;
	margin: auto;
	width: 11px;
	height: 11px;
	background: #003163;
	border-radius: 50%;
	border: 8px solid #C5DEF8;
	z-index: 0;
}

.history__item-year {
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #003163;
}
.history__item-img {
    margin-top: 25px;
}
.history__item-text {
    margin-top: 12px;
    line-height: 1.6;
    height: 51px;
}

/*採用情報*/
.recruit {
    background: url(/images/top/bg_recruit.webp) no-repeat center center;
    padding: 40px 0;
    overflow: hidden;
    z-index: 0;
    position: relative;
}
.recruit__area {
    display: flex;
    flex-direction: row;
    gap: 60px;
    height: 720px;
    width: 1140px;
    position: relative;
}
.recruit__img {
    width: 580px;
    /* height: 650px; */
    display: flex;
    justify-content: space-between;
}
.recruit__img-area{
  height: 100%;
  position: relative;
}

/* スライドの動き等速 */
.swiper-wrapper {
    transition-timing-function: linear;
}
.recruit__img-item.swiper-slide {
    width: 280px;
    height: 100%;
    border-radius: 10px;    
}
.recruit__img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.recruit__text-area {
    padding-top: 176px;
}
.recruit__text {
    margin-top: 56px;
    line-height: 1.6;
}

.recruit .cv__btn {
    position: relative;
    margin: 30px 0 0 10px;
}

.recruit .cv__btn a {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 16px;
    padding: 0 0 0 30px;
    width: 269px;
}

/* 高さ800px以下の時、固定位置を上にずらす */
@media screen and (max-height: 800px) {
    .business-char,
    .company-char,
    .history-char,
    .recruit-char {
        font-size: clamp(50px, 7.4vw, 85px);
    }
    .contents__ttl {
        font-size: clamp(50px, 7.4vw, 85px);
    }
    .dream {
        scroll-margin-top: 60px;
    }
    
    .business {
        scroll-margin-top: 60px;
    }
    [class*="business__item--"] {
        height: 75%;
        /* width: 80%; */
    }
    .business__item-inner {
        height: 100%;
    }
    .business__item-text {
        padding-top: 3rem;
        padding-left: 5rem;
    }
    .business__item-img img {
        height: 100%;
    }
    .business__list {
        min-height: min(600px, calc(100vh - 300px));
    }
    .company {
        scroll-margin-top: 60px;
        padding: 184px 0 300px;
    }
    .company__map {
        max-width: 571px;
        max-height: 447px;
    }
    .company__map-others-1 {
        top: 84px;
        left: 10px;
    }
    .company__map-others-2 {
        top: 237px;
        right: 20px;
    }
    .company__map-others-3 {
        top: 117px;
        right: 190px;
    }
    .company__map-others-4 {
        top: 307px;
        right: 293px;
    }
    .company__map-others-5 {
        top: 166px;
        left: 264px;
    }
    .company__map-others-6 {
        top: 339px;
        left: 110px;
    }
    .business__area {
        margin-top: clamp(0px, 10.4vw, 29px);
    }
    .history__area {
        margin-top: clamp(60px, 11.4vw, 98px);
    }
}

/* ノートPCサイズ（高さ768px〜1080px）向けの調整 */
@media screen and (min-height: 768px) and (max-height: 1080px) {
    .company__map {
        /* max-height: min(550px, calc(100vh - 400px)); */
    }
    .recruit__area {
        height: min(720px, calc(100vh - 180px));
    }
}

/* 大きい画面（高さ1080px以上）では制限を解除 */
@media screen and (min-height: 1081px) {
    .company__map {
        max-height: 597px;
    }
    .recruit__area {
        height: 720px;
    }
}
/* 高さ800px以下の時、固定位置を上にずらす */
@media screen and (max-height: 900px) {
    .business__item-text {
        padding-top: 3rem;
        padding-left: 5rem;
    }
}