/* ========================================
   トップページ専用スタイル
   ======================================== */

/* ヒーローセクション */
.hero {
    position: relative;
    height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(16, 185, 129, 0), rgba(5, 150, 105, 0));
    z-index: 10;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 20;
    text-align: center;
    max-width: 1024px;
    padding: 0 1rem;
}

/* ヒーロータイトル用キーフレーム */
@keyframes heroTitleIn {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroLineExpand {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes heroLinePulse {
    0%, 100% { opacity: 0.85; box-shadow: 0 0 8px rgba(255, 255, 255, 0.4); }
    50% { opacity: 1; box-shadow: 0 0 16px rgba(255, 255, 255, 0.6); }
}

.hero-title {
    font-family: 'Shippori Mincho', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    position: relative;
    line-height: 1.25;
}

.hero-title-inner {
    display: inline-block;
    background: linear-gradient(165deg, #fff 0%, #f0fdf4 30%, #bbf7d0 70%, #86efac 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5))
            drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35))
            drop-shadow(0 0 40px rgba(16, 185, 129, 0.2));
    /* ローダー非表示（約1.5s）後に開始。5.7s～タイトル、6.4s～下線、7.2s～パルス */
    animation: heroTitleIn 1s cubic-bezier(0.22, 1, 0.36, 1) 5.7s both;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.hero-title-inner:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5))
            drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35))
            drop-shadow(0 0 50px rgba(16, 185, 129, 0.35));
}

.hero-title::after {
    content: '';
    display: block;
    width: 720px;
    height: 5px;
    margin: 1rem auto 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
    transform-origin: center;
    /* 6.4s～下線伸び、7.2s～パルス繰り返し */
    animation: heroLineExpand 0.7s cubic-bezier(0.22, 1, 0.36, 1) 6.4s both,
               heroLinePulse 2.5s ease-in-out 7.2s infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-btn {
    display: inline-block;
    background-color: #fff;
    color: #10b981;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 2.125rem;
}

.hero-btn:hover {
    background-color: #f0fdf4;
    transform: translateY(-2px);
}

/* トップページのボタン */
.recruit-btn,
.service-btn,
.interview-btn {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 1.25rem 3rem;
    border-radius: 9999px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 1.125rem;
}

.recruit-btn:hover,
.service-btn:hover,
.interview-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
}

@media (min-width: 769px) {
    .hero-content {
        transform: translateY(-100px);
    }

    .hero-title {
        font-size: 4.25rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        margin-bottom: 2rem;
    }

    .hero-btn {
        margin-top: 12rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 450px;
    }

    .hero-image {
        object-fit: cover;
        object-position: center;
    }

    .hero-content {
        transform: translateY(-50px);
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
        letter-spacing: 0.04em;
        white-space: nowrap;
    }

    .hero-title::after {
        width: 320px;
        height: 4px;
        margin-top: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-btn {
        font-size: 1.125rem;
        margin-top: 4rem;
    }

    .recruit-btn,
    .service-btn,
    .interview-btn {
        font-size: 1rem;
        padding: 1rem 2rem;
    }
}

/* 自動スクロール写真スライダー */
.auto-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.auto-slider-track {
    display: flex;
    width: fit-content;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.auto-slider-item {
    flex-shrink: 0;
    backface-visibility: hidden;
    transform: translateZ(0);
    height: 300px;
    margin-right: 8px;
}

.auto-slider-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .auto-slider-item {
        height: 100px;
    }
}

/* 経営理念（筆書風フォント） */
.philosophy-text {
    font-family: 'Zen Antique', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    font-size: 1.375rem;
    line-height: 2.2;
    color: #1f2937;
    font-weight: 500;
}

@media (max-width: 768px) {
    .company-philosophy {
        max-width: none !important;
        padding: 1.5rem 0px !important;
        background: transparent !important;
        border-radius: 0 !important;
        border-left: none !important;
    }

    .philosophy-text {
        font-size: 0.775rem;
        line-height: 2;
    }
}

/* 代表挨拶（写真なし） */
.greeting-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.greeting-name {
    font-size: 1.5rem;
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 2rem;
}

.greeting-text {
    text-align: left;
    padding: 2.5rem 2rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #10b981;
}

.greeting-text p {
    color: #4b5563;
    line-height: 2;
    font-size: 1.0625rem;
    margin-bottom: 1.5rem;
}

.greeting-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .greeting-name {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .greeting-text {
        padding: 1.5rem 1.25rem;
    }

    .greeting-text p {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }
}

/* SNSリンクカード */
.sns-link-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sns-link-inner {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.sns-link-icon {
    margin-bottom: 1rem;
}

.sns-link-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* TikTok埋め込みのレスポンシブ対応 */
.tiktok-embeds-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.tiktok-embed-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* 採用情報サマリー（PC: 2x2、スマホ: 縦1列） */
.recruitment-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .recruitment-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tiktok-embeds-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .tiktok-embed {
        max-width: 100% !important;
        min-width: 100% !important;
    }
}

/* 出張買取事業セクション（2カラムレイアウト） */
.service-business-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 3rem auto;
}

.service-business-content {
    display: flex;
    flex-direction: column;
}

.service-business-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.service-business-text {
    font-size: 1.0625rem;
    line-height: 2;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.service-business-text:last-of-type {
    margin-bottom: 2rem;
}

.service-business-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.0625rem;
    transition: all 0.3s;
    width: fit-content;
    text-decoration: none;
    align-self: center;
}

.service-business-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
}

.service-business-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-business-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    .service-business-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* スマホ時のみ：画像を上に */
    .service-business-image {
        order: -1;
    }

    .service-business-content {
        order: 1;
    }

    .service-business-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .service-business-text {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }

    .service-business-btn {
        justify-content: center;
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
    }
}
