/* ==========================================================================
   TOP PAGE STYLES - トップページのみ
   ========================================================================== */

.home {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ==========================================================================
   HERO SECTION - トップページのみ
   ========================================================================== */

.hero-section {
    position: relative;
    height: 812px;
    width: 100%;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
}
.hero-background::after{
	content: '';
    position: absolute;
    bottom: 0;
	right: 0;
	left: 0;
	height: 20%;
background: linear-gradient(180deg,rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

.hero-bg-image {
    position: absolute;
    width: 102%;
    height: auto;
    left: 50%;
    top: 50%;
    object-fit: cover;

	transform: translate(-50%,-50%);}


@media (max-width: 1440px) {
	.hero-bg-image {
    width: auto;
    height: 102%;
	}}
.hero-content {
    position: relative;
    height: 100%;
    width: 100%;
	max-width: 1440px;
	margin: 0 auto;
}

.main-title {
	
    position: absolute;
    left: 30px;
    top: 100.69px;
    width: 590px;
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.title-unleash {
	font-family: "Jost", sans-serif;
    font-size: 3rem;
    line-height: 1.2;
    color: white;
    font-weight: 600;
    margin: 0;
}

.title-gradient {
	font-family: "Jost", sans-serif;
    font-size: 5rem;
    line-height: 1.2;
    background: linear-gradient(to right, #7facff, #feb6b7 99.99%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    margin: 0;
}

.title-subtitle {
	ffont-family: "Jost", sans-serif;
    font-size: 2.5rem;
    line-height: 1.4;
    color: white;
    font-weight: 600;
    margin: 0;
}

.tagline {
    position: absolute;
    right: 30px;
    top: 90.69px;
    display: flex;
    gap: 32px;
    align-items: start;
    justify-content: center;
	flex-direction: row-reverse;
}

.tagline-text {
    width: 60px;
    font-size: 4rem;
    line-height: 1.4;
	font-weight: 600;
    color: white;
    writing-mode: vertical-rl;
	text-orientation: upright; /* これを追加 */
    margin: 0;
}
/* 英語ページ用のスタイル調整 (.en-lang クラスが付いた場合) */
.tagline.en-lang {
    position: absolute;
    right: 30px;
    top: 90.69px;
    display: block;
    gap: 0px;
    align-items: start;
    justify-content: flex-end;
	flex-direction: row-reverse;
	width: 2em;
	height: auto;
}
.tagline.en-lang .tagline-text {
    width: auto;
	height: 1em;
    font-size: 3rem;
    line-height: 1.4;
	font-weight: 600;
    color: white;
    writing-mode: horizontal-tb;
	text-orientation: mixed;/* これを追加 */
    margin: 0;
	transform: rotate(90deg);
	 transform-origin: top left;
	position: relative;
	right: 0em;
	top:0em;
	white-space: nowrap;
}

.tagline.en-lang .tagline-text:nth-child(n+2) {
	right: 1.5em;
	top:-1em;
}
.hero-button {
    position: absolute;
    left: 30px;
    top: 501.53px;
    width: 352px;
}

.button-gradient {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%), 
                linear-gradient(90deg, rgb(0, 144, 255) 0%, rgb(255, 57, 60) 99.99%);
    border: 1px solid white;
    border-radius: 500px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.8;
    cursor: pointer;
    transition: transform 0.3s ease;
	text-decoration: none;
}

.button-gradient:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   MAIN CONTENT SECTIONS - トップページのみ
   ========================================================================== */

.main-content {
    display: flex;
    flex-direction: column;
}

/* About Section */
.about-section {
    padding: 64px 0;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.8;
    color: black;
    margin-bottom: 32px;
    font-weight: normal;
}

.about-content {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 32px;
}

.about-image {
    position: relative;
    width: 544px;
    flex-shrink: 0;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.about-img-overlay {
    position: absolute;
    width: 235px;
    height: 256px;
    left: 333px;
    top: 199.69px;
    object-fit: cover;
    border-radius: 8px;
}

.about-text {
    width: 542px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: black;
    margin-bottom: 16px;
}

.service-button {
    border: 1px solid #ff3a4c;
    border-radius: 500px;
    padding: 10px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ff3a4c;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.8;
    cursor: pointer;
    max-width: 300px;
    transition: background-color 0.3s ease, color 0.3s ease;
	text-decoration: none;
}

.service-button:hover {
    background-color: #ff3a4c;
    color: white;
}

/* Services Section */
.services-section {
    position: relative;
    padding: 120px 0 0;
}

.services-background {
    position: absolute;
    inset: 0;
    background-image: url(../images/top_bg01.jpg);
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    pointer-events: none;
}

.services-grid {
    display: flex;
    gap: 64px;
    position: relative;
    z-index: 1;
}

.service-item {
    flex: 1;
    max-width: 352px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.service-image {
    /*aspect-ratio: 297/210;*/
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap:0px;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-title {
    font-size: 1.75rem;
    font-weight: bold;
    line-height: 1.4;
    color: black;
    text-align: center;
    margin: 0;
}

.service-subtitle {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.8;
    color: #444444;
    text-align: center;
    margin: 0;
}

.service-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #444444;
    margin: 0;
}

/* Business Section */
.business-section {
    padding: 96px 0;
}

.business-item {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 60px;
	justify-content: space-between;
}

.business-item.reverse {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.business-image {
    max-width: 699px;
    flex-shrink: 0;
}

.business-item .business-image {
	margin-right: -200px;
}
.business-item.reverse .business-image {
	margin-left: -200px;
	margin-right: 0px;
}
.business-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.7;
}

.business-content {
    width: 544px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.business-title {
    display: flex;
    gap: 24px;
    align-items: start;
}

.business-number {
    font-size: 2rem;
    line-height: 1.4;
    color: #444444;
    flex-shrink: 0;
	font-family: "Jost", sans-serif;
    font-weight: 500;
}

.business-title h3 {
    font-size: 1.75rem;
    font-weight: bold;
    line-height: 1.4;
    color: #444444;
    margin: 0;
}

.business-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #444444;
    margin: 0;
    padding-left: 56px;
}

/* Recruitment Section */
.recruitment-section {
    position: relative;
    overflow: hidden;
    background-image: url(../images/top_bg02.jpg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
	
}
.recruitment-section::before {
    content: '';
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg,rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 80%);
	position: absolute;
	top: 0;
	left: 0;
	
}




.recruitment-content {
    position: relative;
    z-index: 1;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    width: 564px;
	
}

.recruitment-title {
    font-size: 1.5625rem;
    font-weight: bold;
    line-height: 1.4;
    color: white;
    margin: 0;
}

.recruitment-description {
    font-size: 1rem;
    line-height: 1.8;
    color: white;
    margin: 0;
}

.job-titles {
    display: flex;
    align-items: center;
	justify-content: center;
    gap: 6px;
    padding: 5px 10px;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
}

.job-title {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.8;
    color: white;
    white-space: nowrap;
}

.job-divider {
    color: white;
}

.recruitment-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid white;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    line-height: 1.8;
    cursor: pointer;
    transition: background-color 0.3s ease;
	text-decoration: none;
}

.recruitment-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* News Section */
.news-section {
    background-color: #f5f5f5;
    padding: 120px 0;
}

.news-content {
    display: flex;
    gap: 80px;
    align-items: start;
}

.news-header {
    width: 254px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: start;
}

.news-title {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.4;
    color: #444444;
    margin: 0;
}

.news-link-button {
    border: 1px solid #ff3a4c;
    border-radius: 500px;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ff3a4c;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.8;
    cursor: pointer;
    max-width: 300px;
    transition: background-color 0.3s ease, color 0.3s ease;
	text-decoration: none;
}

.news-link-button:hover {
    background-color: #ff3a4c;
    color: white;
}

.news-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.news-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 24px;
    border-bottom: 1px solid #b6b6b6;
}

.news-date {
    font-size: 1rem;
    line-height: 1.8;
    color: #444444;
    margin: 0;
}

.news-headline {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.8;
    color: #444444;
    margin: 0;
}
.news-headline a {
    color: #444444;
	text-decoration: none;
	cursor: pointer!important;
}
.news-headline a:hover {
    color: #C40003;
	cursor: pointer!important;
}

/* ==========================================================================
   TOP PAGE RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1200px) {
    .hero-section {
        height: 600px;
    }
    
    .main-title {
        left: 50px;
        top: 80px;
        width: 500px;
    }
    
    .title-gradient {
        font-size: 3.75rem;
    }
    
    .tagline {
    }
    .tagline.en-lang .tagline-text {
    font-size: 2rem;
}
    .hero-button {
        left: 50px;
        top: 400px;
        width: 300px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 500px;
    }
    
    .main-title {
        left: 20px;
        top: 50px;
        width: auto;
    }
    .section-title {
font-size: 4.5vw;
}
    .title-unleash {
        font-size: 2rem;
    }
    
    .title-gradient {
        font-size: 2.5rem;
    }
    
    .title-subtitle {
        font-size: 1.5rem;
    }
    
    .tagline {
        /*display: none;*/
		right: 20px;
  top: 40px;
		gap: 10px;
    }
	.tagline-text {
  font-size: 2rem;
}
	.tagline.en-lang {
    right: 0px;
    top: 30px;
}
.tagline.en-lang .tagline-text {
    font-size: 2rem;
}

.tagline.en-lang .tagline-text:nth-child(n+2) {
	right: 1.5em;
	top:-1em;
}
    .button-gradient {
  font-size: .9rem;
}
    .hero-button {
        left: 20px;
        top: 300px;
        width: calc(40% - 40px);
    }
    
    .about-content {
        flex-direction: column;
        align-items: center;
		gap: 80px;

    }
    
    .about-image {
        width: 100%;
        max-width: 544px;
    }
    
    .about-text {
        width: 100%;
    }
    
    .services-grid {
        /*flex-direction: column;*/
        gap: 20px;
    }
    
    .business-item,
    .business-item.reverse {
        flex-direction: column;
        align-items: center;
		margin-bottom: 0px;
    }
    
    .business-image,
    .business-content {
        width: 100%;
       /* max-width: 600px;*/
    }
    
    .business-description {
        padding-left: 0;
    }
    .recruitment-section::before {
  background: linear-gradient(90deg,rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0.2) 100%);
}
    .news-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .news-header {
        width: 100%;
        align-items: center;
    }
	.news-list {
  width: 100%;
}
	.recruitment-content {
  height: auto;
}
}

@media (max-width: 480px) {
	  .main-title {
    width: auto;
  }
	 .hero-button {
    top: 240px;
    width: calc(60% - 40px);
  }
	 .tagline {
    right: auto;
		 left: 20px;
    top: auto;
		 bottom: 60px;
    gap:0px;
		 flex-direction: column;
  }
	.tagline-text {
  writing-mode: horizontal-tb;
		font-size: 1.6rem;
		
    text-orientation: mixed;
}
	.tagline-text {
  width: auto;
}
	.tagline.en-lang {
    right: auto;
    left: 20px;
    top: auto;
    bottom: 60px;
}
  .tagline.en-lang .tagline-text {
    width: auto;
    height: auto;
    font-size: 1.6rem;
    line-height: 1.4;
    font-weight: 600;
    color: white;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    margin: 0;
    transform: rotate(0deg);
    transform-origin: top left;
    position: relative;
    right: 0em;
    top: 0em;
    white-space: nowrap;
  }

.tagline.en-lang .tagline-text:nth-child(n+2) {
	right: 0em;
	top:0em;
}
    .title-unleash {
        font-size: 1.5rem;
    }
    
    .title-gradient {
        font-size: 2rem;
    }
    
    .title-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 6.5vw;
		margin-bottom: 20px;
    }
	.about-section {
  padding: 40px 0;
}
	.about-text {
  gap: 0px;
}
	
	
	.about-content {
    gap: 2vw;
  }
	.services-section {
  padding: 60px 0 0;
}
	.services-grid {
    flex-direction: column;
  }
	.business-section {
  padding: 60px 0;
}
	.business-content {
  width: 100%;
  gap: 10px;
}
	.business-item {
  gap: 0px;
}
	.business-number {
  font-size: 8vw;
}
	.business-title h3 {
  font-size: 6vw;
}
	.job-titles {
flex-direction: column;
}
	.job-divider {
  display: none;
}
	.news-section {
  padding: 60px 0;
}
	.recruitment-content {
  width: 100%;
}
	
}


       /*
         * アニメーションの定義
         * 上下(Y)に加えて左右(X)の動きとわずかな回転(rotate)を追加し、
         * よりランダムで自然な「うねうね感」を表現します。
         */
        @keyframes wobbleRandom {
            0%, 100% {
                /* translate(X, Y)で左右と上下を同時に指定 */
                transform: translate(0, 0) scale(1.0) rotate(0deg); 
            }
            25% { 
                /* 左上へわずかに移動し、拡大、わずかに右回転 */
                transform: translate(-3px, -3px) scale(1.002) rotate(0.2deg); 
            }
            50% { 
                /* 右下へ移動し、縮小、わずかに左回転 */
                transform: translate(5px, 5px) scale(0.998) rotate(-0.5deg); 
            }
            75% { 
                /* 再び左上へわずかに移動し、拡大、わずかに右回転 */
                transform: translate(-2px, -2px) scale(1.001) rotate(0.1deg); 
            }
        }
        
        /* 共通のアニメーション設定 */
        .business-section .business-image img {
            display: block;
            width: 100%;
            height: auto;
            object-fit: cover;
            border-radius: 12px;
            /* 共通アニメーション適用: 周期を10秒にしてゆったりと */
            animation: wobbleRandom 10s ease-in-out infinite; 
        }

        /* 項目ごとにアニメーション開始時間をずらし、同期しないランダム感を演出 */
        .business-section .business-item:nth-child(1) .business-image img {
            animation-delay: 0s;
        }
        .business-section .business-item:nth-child(2) .business-image img {
            animation-delay: -2.5s; /* 2.5秒遅延 */
        }
        .business-section .business-item:nth-child(3) .business-image img {
            animation-delay: -5s; /* 5秒遅延 */
        }
        .business-section .business-item:nth-child(4) .business-image img {
            animation-delay: -7.5s; /* 7.5秒遅延 */
        }

        /* ---------------------------------------------------- */
        /* ★汎用 スクロール時のフェードインアニメーション設定 */
        /* ---------------------------------------------------- */
        
        /* フェードインアイテムの初期状態（非表示・下方向へ少しオフセット） */
        .js-fadein-item {
            opacity: 0;
            transform: translateY(30px);
            /* フェードインと移動を0.8秒かけて滑らかに実行 */
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
            will-change: opacity, transform;
        }

        /* is-visible クラスが付与されたら表示状態へ移行 */
        .js-fadein-item.is-visible {
            opacity: 1;
            transform: translateY(0);
        }
