/**
 * トップページ専用スタイル
 * 
 * 親テーマ（GeneratePress）のスタイルを上書きするため、
 * より具体的なセレクタを使用しています
 */

/* ============================================
   ヒーローセクション
   ============================================ */
.home-hero {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2));
}

.hero-content {
    position: absolute;
    left: 32px;
    top: 273.75px;
    max-width: 629.8px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-title {
    font-family: Arial, sans-serif;
    font-size: 48px;
    line-height: 48px;
    color: #fff;
    font-weight: normal;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title-line {
    display: block;
}

.hero-title-line:first-child {
    white-space: nowrap;
}

.hero-title-period {
    color: #e76f51;
}

.hero-description {
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 32.5px;
    color: #fff;
    opacity: 0;
    transform: translateY(30px);
    margin: 0;
}

/* ============================================
   事業内容セクション
   ============================================ */
.home-services {
    background-color: #f8e9da;
    padding: 96px 32px;
}

.services-container {
    max-width: 1087px;
    margin: 0 auto;
}

.services-header {
    text-align: center;
    margin-bottom: 48px;
}

.services-title {
    font-family: Arial, sans-serif;
    font-size: 36px;
    line-height: 40px;
    color: #4a4a4a;
    margin: 0 0 16px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.services-subtitle {
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 28px;
    color: #8b8b8b;
    margin: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.8s ease-out;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(40px);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 8px 12px -2px rgba(0, 0, 0, 0.15), 0px 4px 8px -4px rgba(0, 0, 0, 0.1);
}

.service-card-image {
    position: relative;
    width: 100%;
    height: 256px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

.service-card-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-icon img {
    width: 24px;
    height: 24px;
}

/* Font Awesomeアイコン用 */
.service-card-icon i {
    font-size: 24px;
    color: #e76f51;
}

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

.service-card-title {
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 28px;
    color: #4a4a4a;
    margin: 0;
}

.service-card-subtitle {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #8b8b8b;
    margin: 0;
}

.service-card-description {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: rgba(74, 74, 74, 0.8);
    margin: 0;
}

/* ============================================
   採用セクション
   ============================================ */
.home-recruit {
    background-color: #fff;
    padding: 96px 32px;
    position: relative;
}

.recruit-container {
    max-width: 1151px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 80px;
    position: relative;
}

.recruit-images {
    position: relative;
    width: 519.6px;
    height: 500px;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.recruit-image-large {
    position: absolute;
    left: 0;
    top: 180px;
    width: 311.75px;
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
}

.recruit-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recruit-image-small-top {
    position: absolute;
    left: 233.83px;
    top: 0;
    width: 285.775px;
    height: 225px;
    overflow: hidden;
    border-radius: 8px;
}

.recruit-image-small-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recruit-image-small-bottom {
    position: absolute;
    left: 233.83px;
    top: 225px;
    width: 259.8px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.recruit-image-small-bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recruit-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-top: 126.75px;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.recruit-title {
    font-family: Arial, sans-serif;
    font-size: 36px;
    line-height: 40px;
    color: #4a4a4a;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.recruit-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recruit-description {
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 29.25px;
    color: #4a4a4a;
    margin: 0;
}

.recruit-link-btn {
    background-color: #e76f51;
    color: #fff;
    padding: 0 32px;
    height: 48px;
    border-radius: 50px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 48px;
    text-decoration: none;
    display: inline-block;
    width: fit-content;
    transition: background-color 0.3s ease;
}

.recruit-link-btn:hover {
    background-color: #d65a40;
    color: #fff;
}

/* ============================================
   ニュース・お知らせセクション
   ============================================ */
.home-news {
    background-color: #fff;
    padding: 96px 0;
}

.news-container {
    max-width: 1151px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.news-header {
    text-align: center;
    margin-bottom: 48px;
    width: 100%;
    max-width: 832px;
}

.news-title {
    font-family: Arial, sans-serif;
    font-size: 36px;
    line-height: 40px;
    color: #4a4a4a;
    margin: 0 0 16px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.news-subtitle {
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 28px;
    color: #8b8b8b;
    margin: 0;
}

.news-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    width: 100%;
    max-width: 832px;
    justify-content: flex-start;
}

.news-filter-select {
    background-color: #fff;
    border: 0.8px solid rgba(232, 211, 190, 0.4);
    border-radius: 10px;
    padding: 10px 40px 10px 16px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #4a4a4a;
    appearance: none;
    background-image: url('../images/common/icon-chevron-down.svg');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
    width: 100%;
    max-width: 832px;
}

.news-list.is-scrollbox {
    overflow-y: scroll;
    overflow-x: hidden;
    /* スクロールバーのスタイル（Webkit系ブラウザ） */
    scrollbar-width: thin;
    scrollbar-color: rgba(231, 111, 81, 0.3) transparent;
}

.news-list.is-scrollbox::-webkit-scrollbar {
    width: 8px;
}

.news-list.is-scrollbox::-webkit-scrollbar-track {
    background: transparent;
}

.news-list.is-scrollbox::-webkit-scrollbar-thumb {
    background-color: rgba(231, 111, 81, 0.3);
    border-radius: 4px;
}

.news-list.is-scrollbox::-webkit-scrollbar-thumb:hover {
    background-color: rgba(231, 111, 81, 0.5);
}

.news-no-posts {
    width: 100%;
    max-width: 832px;
    padding: 16px;
    border: 1px dashed rgba(74, 74, 74, 0.2);
    border-radius: 8px;
    text-align: center;
    color: rgba(74, 74, 74, 0.8);
}

.news-no-posts p {
    margin: 0;
}

.news-item {
    background-color: #f8e9da;
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease, opacity 0.6s ease-out, transform 0.6s ease-out;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    transform: translateY(30px);
}

.news-item:hover {
    background-color: #f5e0cc;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.news-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.news-item-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-date-icon {
    width: auto;
    height: auto;
    font-size: 16px;
    color: #8b8b8b;
    display: inline-block;
}

.news-date-text {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #8b8b8b;
}

.news-item-category {
    padding: 4px 12px;
    border-radius: 50px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
    display: inline-block;
}

.news-category-お知らせ,
.news-category-announcement,
.news-category--announcement {
    background-color: #8ab17d;
    color: #fff;
}

.news-category-イベント,
.news-category-event,
.news-category--event {
    background-color: rgba(231, 111, 81, 0.2);
    color: #e76f51;
}

.news-category-採用,
.news-category-recruit,
.news-category--recruit {
    background-color: #dbeafe;
    color: #1447e6;
}

.news-item-title {
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 27px;
    color: #4a4a4a;
    margin: 0;
    flex: 1;
}

.news-more {
    text-align: center;
}

.news-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    border: 1.6px solid #e76f51;
    border-radius: 50px;
    padding: 12px 32px;
    text-decoration: none;
    color: #e76f51;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.news-more-btn:hover {
    background-color: #e76f51;
    color: #fff;
}

.news-more-icon {
    width: auto;
    height: auto;
    font-size: 20px;
    color: #e76f51;
    display: inline-block;
    transition: color 0.3s ease;
}

.news-more-btn:hover .news-more-icon {
    color: #fff;
}

/* ============================================
   レスポンシブ対応
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .recruit-container {
        flex-direction: column;
        gap: 48px;
    }
    
    .recruit-content {
        padding-top: 0;
    }
    
    .recruit-images {
        width: 100%;
        max-width: 519.6px;
        margin: 0 auto;
    }
    
    .news-container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .home-hero {
        height: auto;
        min-height: 50vh;
        max-height: 90vh;
    }
    
    .hero-content {
        left: 20px;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        max-width: none;
    }
    
    .hero-title {
        font-size: 32px;
        line-height: 40px;
    }
    
    .hero-description {
        font-size: 16px;
        line-height: 24px;
    }
    
    .home-services {
        padding: 64px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .recruit-images {
        height: 400px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .recruit-image-large {
        width: 200px;
        height: 250px;
        top: 130px;
    }
    
    .recruit-image-small-top {
        left: 150px;
        width: 180px;
        height: 150px;
    }
    
    .recruit-image-small-bottom {
        left: 150px;
        top: 150px;
        width: 160px;
        height: 130px;
    }
    
    .home-news {
        padding: 64px 0;
    }
    
    .news-header {
        padding: 0 20px;
    }
    
    .news-filters {
        padding: 0 20px;
        flex-direction: column;
    }
    
    .news-list {
        padding: 0 20px;
    }
    
    .news-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-item-title {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .home-hero {
        min-height: 45vh;
        max-height: 85vh;
    }
    
    .hero-content {
        left: 16px;
        right: 16px;
    }
    
    .hero-title {
        font-size: 24px;
        line-height: 32px;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 20px;
    }
    
    .home-services {
        padding: 48px 16px;
    }
    
    .services-title,
    .recruit-title,
    .news-title {
        font-size: 28px;
        line-height: 36px;
    }
    
    .services-subtitle,
    .news-subtitle {
        font-size: 16px;
        line-height: 24px;
    }
    
    .home-recruit {
        padding: 64px 16px;
    }
    
    .recruit-images {
        height: 300px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .recruit-image-large {
        width: 150px;
        max-width: 48%;
        height: 200px;
        top: 110px;
    }
    
    .recruit-image-small-top {
        left: 120px;
        width: 140px;
        max-width: calc(100% - 130px);
        height: 120px;
    }
    
    .recruit-image-small-bottom {
        left: 120px;
        top: 120px;
        width: 120px;
        max-width: calc(100% - 130px);
        height: 100px;
    }
    
    .recruit-content {
        gap: 32px;
    }
    
    .recruit-description {
        font-size: 16px;
        line-height: 24px;
    }
    
    .home-news {
        padding: 48px 0;
    }
    
    .news-container {
        padding: 0 16px;
    }
    
    .news-filters {
        flex-direction: column;
        gap: 12px;
    }
    
    .news-filter-select {
        width: 100%;
    }
    
    .news-item {
        padding: 16px;
    }
    
    .news-item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ============================================
   アニメーション用スタイル
   ============================================ */

/* フェードイン・上方向 */
.fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* フェードイン */
.fade-in {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* サービスカードのホバー効果を強化 */
.service-card {
    will-change: transform;
}

.service-card-icon {
    transition: transform 0.6s ease-out;
    will-change: transform;
}

/* 採用セクションの画像ホバー効果 */
.recruit-image-large img,
.recruit-image-small-top img,
.recruit-image-small-bottom img {
    transition: transform 0.5s ease-out;
    will-change: transform;
}

/* パフォーマンス最適化 */
.hero-background,
.recruit-image-large,
.recruit-image-small-top,
.recruit-image-small-bottom {
    will-change: transform;
}

/* スムーズなスクロール */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

