/* Home Page Specific Styles */

/* ホームページは背景グラデーションと波パターンを無効化 */
body.home::before {
    display: none !important;
}

body.home::after {
    display: none !important;
}

/* ホームページではフローティングCTAボタンを非表示 */
body.home .fixed-cta {
    display: none !important;
}

/* 背景画像をCSSで直接設定 */

/* ページのデフォルト背景と背景画像設定 */
body.home {
    background-color: #000; /* 黒 */
    background-image: url('../images/home背景.png'); /* デスクトップ用背景 */
    background-position: center 80px; /* ヘッダーの高さ分下から背景画像を開始 */
    background-size: cover; /* PCで横幅最大まで表示 */
    background-repeat: no-repeat;
    background-attachment: scroll; /* 通常のスクロール */
    padding-top: var(--header-height, 80px); /* ヘッダーの高さ分パディング */
}

/* モバイル時は背景画像を切り替え */
@media (max-width: 768px) {
    body.home {
        background-image: url('../images/fv-homeスマホ.png'); /* モバイル用背景 */
        background-position: center 60px; /* ヘッダーの高さ分下から背景画像を開始 */
        background-size: contain; /* モバイルは全体表示優先 */
        padding-top: var(--header-height, 60px);
    }
}

/* ABOUT US以降のコンテンツに背景画像を適用 */
.content-wrapper {
    position: relative;
    min-height: 100vh; /* 背景は固定画像、足りない部分は黒 */
}

/* Hero Section */
.hero {
    height: 100svh;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: -80px; /* ヘッダーの高さ分上にずらす */
    padding-top: 80px; /* コンテンツ用のパディング */
    background: transparent; /* 背景は固定画像に一本化 */
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.hero-title .line-1 {
    color: #FFF;
    font-family: 'Inter';
    font-size: clamp(24px, 3vw, 36px);
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    opacity: 0.81;
    letter-spacing: 0.05em;
    animation: slideIn 1s ease;
    margin-bottom: 30px;
}

.line-2-wrapper {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 auto;
}

.hero-title .line-2 {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-size: min(6vw, 80px);
    line-height: 1.2;
    letter-spacing: 0.02em;
    white-space: nowrap;
    display: inline-block;
}

.hero-title .line-2.layer-base {
    position: relative;
    visibility: hidden;
    display: block;
    text-align: center;
}

.hero-title .line-2:not(.layer-base) {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.hero-title .line-2.layer-1 {
    color: #FFFFFF;
    z-index: 5;
    transform: translateX(calc(-50% + 0.4vw));
}

.hero-title .line-2.layer-2 {
    color: #FFFF00;
    z-index: 4;
    transform: translateX(calc(-50% + 0.5vw));
}

.hero-title .line-2.layer-3 {
    color: #00EEFF;
    z-index: 3;
    transform: translateX(calc(-50% + 0.3vw));
}

.hero-title .line-2.layer-4 {
    color: #000DFF;
    z-index: 2;
    transform: translateX(-50%);
}

.hero-title .line-2.layer-5 {
    color: #FF0900;
    z-index: 1;
    transform: translateX(calc(-50% + 0.8vw));
}

/* Hero background styles removed - using SVG pattern instead */
/* ヒーロー直下の余白を作らない */
.hero + section {
    margin-top: 0 !important;
    padding-top: var(--spacing-sm);
}

/* About Teaser Section */
.about-teaser {
    padding: 0 0 var(--spacing-3xl); /* 上部パディング削除、セクション間の重複解消 */
    position: relative;
}

/* Hero直後の最初のセクションのみ上部パディング追加 */
.hero + .about-teaser {
    padding-top: var(--spacing-3xl);
}

.about-teaser .section-header {
    text-align: left;
}

.about-teaser .section-title {
    text-align: left;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    color: #FFFFFF;
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.title-underline {
    display: block;
    position: absolute;
    top: calc(100%);
    left: 0;
    width: 100%;
    height: 10px;
    background: url('../images/線.png') left center no-repeat;
    background-size: 100% 100%;
}

.about-teaser .section-subtitle {
    font-size: 3rem;
    font-weight: 900;
    text-align: left;
    color: #FFFFFF;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 40px;
}

.about-content h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-lg);
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #FFFFFF;
    margin-bottom: var(--spacing-md);
    white-space: normal;
    max-width: 100%;
    text-align: left;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
    border: none;
    font-weight: var(--font-weight-bold);
    font-size: 1.125rem;
    margin-top: var(--spacing-xl);
    transition: transform var(--transition-normal);
    text-decoration: none;
    text-align: center;
}

.read-more-btn img {
    max-width: 350px;
    width: 100%;
    height: auto;
    display: block;
}

.read-more-btn:hover {
    transform: translateY(-2px);
}

/* Services Summary Section */
.services-summary {
    padding: 0 0 var(--spacing-3xl); /* 上部パディング削除、セクション間の重複解消 */
}

.services-summary .section-header {
    text-align: left;
    margin-bottom: var(--spacing-xl);
}

.services-summary .section-title {
    text-align: left;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.services-summary .section-title::after {
    content: '';
    display: block;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    height: 10px;
    background: url('../images/線.png') left center no-repeat;
    background-size: 100% 100%;
}

.services-summary .section-subtitle {
    text-align: left;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    color: #FFFFFF;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    max-width: 100%;
    margin: 0;
}

.service-card {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
}

.service-card-image {
    padding: 0;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.service-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(69, 238, 255, 0.2);
    border-color: var(--primary-color);
    background: var(--gray-200);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* 画像カードのフローティングアニメーション */
.service-card-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: floating 2s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(-10px) scale(1.02);
    }
    50% {
        transform: translateY(-15px) scale(1.02);
    }
}

.service-card-image:hover img {
    transform: scale(1.05);
}

/* 水色の枠線を削除 */
.service-card-image::before {
    display: none;
}

.service-card-image:hover::before {
    display: none;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: inline-block;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Office Tour CTA Section */
.office-tour-cta {
    background: transparent;
    color: var(--text-dark);
    padding: 0 0 var(--spacing-3xl); /* 上部パディング削除、セクション間の重複解消 */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.office-tour-cta::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    top: 0;
    bottom: 0;
    background: transparent;
    z-index: -1;
}

.office-tour-cta h2 {
    color: #fff;
}

.office-tour-cta p {
    color: #ccc;
}


.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: #fff;
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    color: #fff;
    line-height: 1.8;
}

.cta-btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
    font-weight: var(--font-weight-bold);
    font-size: 1.125rem;
    transition: transform var(--transition-normal);
    border: none;
    text-decoration: none;
}

.cta-btn-large img {
    max-width: 360px;
    width: 100%;
    height: auto;
    display: block;
}

.cta-btn-large:hover {
    transform: translateY(-3px);
}

/* Contact & Recruit Section - Moved to style.css for global use */

/* Responsive */
@media (max-width: 768px) {
    .cr-grid {
        grid-template-columns: 1fr;
    }
    .cr-block {
        padding: 40px 20px;
    }
}

.feature-section .section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

/* Feature Section - Using News Card Styles */
.feature-section {
    padding: 0 0 var(--spacing-3xl); /* 上部パディング削除、セクション間の重複解消 */
    position: relative;
}

/* Background removed for feature-section */

.feature-section .section-title {
    text-align: left;
    margin-bottom: var(--spacing-2xl);
}

.feature-section .section-title::after {
    content: '';
    display: block;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    height: 10px;
    background: url('../images/線.png') left center no-repeat;
    background-size: 100% 100%;
}

/* Feature Section now uses News Card styles from news.css */
.feature-section .news-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-section .news-card {
    background: #000000;
    border-radius: 12px;
    border: 1px solid #ffffff;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-section .news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.feature-section .news-card-image {
    width: 100%;
    height: 200px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feature-section .news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: all var(--transition-normal);
}

.feature-section .news-card-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-section .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(69, 238, 255, 0.2);
    border-color: var(--primary-color);
}

.feature-section .news-card:hover .news-card-image img {
    transform: scale(1.1);
    opacity: 1;
}

.feature-section .news-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.feature-section .news-meta time {
    font-size: 0.875rem;
    color: #b0b0b0;
    font-weight: var(--font-weight-medium);
}

.feature-section .news-category {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(69, 238, 255, 0.1);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
    border: 1px solid rgba(69, 238, 255, 0.3);
}

.feature-section .news-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: #f0f0f0;
    line-height: 1.4;
    font-weight: var(--font-weight-medium);
}

.latest-news .section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.latest-news .section-title::after {
    content: '';
    display: block;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    height: 10px;
    background: url('../images/線.png') left center no-repeat;
    background-size: 100% 100%;
}

/* Latest News Section */
.latest-news {
    padding: 0 0 var(--spacing-3xl); /* 上部パディング削除、セクション間の重複解消 */
    position: relative;
}

/* Background removed for latest-news */

.latest-news .news-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.latest-news .news-card {
    background: #000000;
    border-radius: 12px;
    border: 1px solid #ffffff;
    transition: all var(--transition-normal);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.latest-news .news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.latest-news .news-card-image {
    width: 100%;
    height: 200px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.latest-news .news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: all var(--transition-normal);
}

.latest-news .news-card-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.latest-news .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(69, 238, 255, 0.2);
    border-color: var(--primary-color);
}

.latest-news .news-card:hover .news-card-image img {
    transform: scale(1.1);
    opacity: 1;
}

.latest-news .news-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.latest-news .news-meta time {
    font-size: 0.875rem;
    color: #b0b0b0;
    font-weight: var(--font-weight-medium);
}

.latest-news .news-category {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(69, 238, 255, 0.1);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
    border: 1px solid rgba(69, 238, 255, 0.3);
}

.latest-news .news-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: #f0f0f0;
    line-height: 1.4;
    font-weight: var(--font-weight-medium);
}

.latest-news .news-excerpt {
    display: none;
}

.latest-news .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.view-all {
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
}


/* Recruit Teaser Section */
.recruit-teaser {
    padding: 0 0 var(--spacing-3xl); /* 上部パディング削除、セクション間の重複解消 */
    background: var(--black);
}

.recruit-positions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.position-card {
    background: var(--gray-100);
    color: var(--text-dark);
    padding: var(--spacing-xl);
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.position-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, 
        rgba(69, 238, 255, 0.2) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.position-card:hover {
    transform: translateY(-5px);
    background: var(--gray-200);
    border-color: var(--primary-color);
}

.position-card:hover::after {
    opacity: 1;
}

.position-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.position-card p {
    color: var(--gray-300);
    position: relative;
    z-index: 1;
    margin: 0;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    font-size: 1.125rem;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    width: fit-content;
}

.view-more-btn:hover {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        height: calc(100vh - 60px);
        margin-top: 0;
        padding-top: 0;
    }
    
    /* 続きを読むボタンのレスポンシブ対応 */
    .read-more-btn {
        min-width: 200px;  /* より小さくサイズダウン */
        max-width: 250px;  /* 最大幅も縮小 */
        min-height: 60px;  /* 高さも小さく */
        padding: 20px 40px;  /* パディングも調整 */
        font-size: 0.95rem;  /* フォントサイズも小さく */
        margin: var(--spacing-xl) auto 0;  /* 中央揃え */
        display: flex;  /* flexboxで中央揃え */
    }
    
    /* SERVICE section - 左寄せを維持 */
    .services-summary .section-header {
        text-align: left;
    }
    
    .services-summary .section-title {
        text-align: left;
        display: inline-block;
    }
    
    .services-summary .section-title::after {
        left: 0;
        transform: none;
    }
    
    .services-summary .section-subtitle {
        text-align: left;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);  /* モバイルでも2×2グリッド表示 */
        gap: 10px;  /* モバイルでは間隔を狭く */
        max-width: 100%;
        margin: 0;
    }
    
    /* FEATURE section responsive */
    .feature-section .news-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-section .news-card-content {
        text-align: left;
    }
    
    .feature-section .news-meta {
        justify-content: flex-start;
    }
    
    .feature-section .news-title {
        text-align: left;
    }
    
    /* NEWS section responsive */
    .latest-news .section-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }
    
    .latest-news .view-all {
        align-self: flex-start;
    }
    
    .latest-news .news-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .latest-news .news-card-content {
        text-align: left;
    }
    
    .latest-news .news-meta {
        justify-content: flex-start;
    }
    
    .latest-news .news-title {
        text-align: left;
    }
    
    .recruit-positions {
        grid-template-columns: 1fr;
    }
    
    /* ABOUT section - モバイル時のフォントサイズ調整 */
    .about-teaser .section-subtitle {
        font-size: 1.75rem;  /* 3rem → 1.75rem */
    }
    
    .about-content {
        padding-left: 0;  /* モバイル時はインデントを削除 */
    }
    
    .about-content p {
        font-size: 0.95rem;  /* 1.125rem → 0.95rem */
        line-height: 1.7;
    }
    
    /* Office Tour CTA - モバイル時のフォントサイズ調整 */
    .cta-content h2 {
        font-size: 2rem;  /* 4rem → 2rem */
    }
    
    .cta-content p {
        font-size: 1rem;  /* 2rem → 1rem */
        line-height: 1.6;
    }
    
    .cta-btn-large {
        min-width: 200px;  /* さらに小さく */
        min-height: 60px;  /* 高さも小さく */
        padding: 20px 40px;  /* パディングも調整 */
        font-size: 0.95rem;  /* フォントサイズも小さく */
    }
}

/* スマホ用の追加レスポンシブ対応 */
@media (max-width: 375px) {
    .cta-btn-large {
        min-width: 180px;  /* さらに小さく */
        max-width: 220px;
        padding: 18px 35px;
    }
    
    .read-more-btn {
        min-width: 180px;  /* さらに小さく */
        max-width: 220px;
        padding: 18px 35px;
    }
}