/*
 * 旋盤加工ページ専用スタイル
 * ファイル: page-lathe.css
 * 対象: page-templates/page-lathe.php
 */

/* ページベース */
.lathe-page {
    background: var(--color-neutral-50);
}

/* ==========================================================================
   3Dヒーローセクション（page-machine.css / page-business.css と共通構造）
   ========================================================================== */

/* ヒーローバッジ（style.css の .hero-badge を上書きするためスコープ付き） */
.lathe-page .hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.lathe-page .hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    letter-spacing: 0.03em;
    position: relative;
    overflow: visible;
}

.lathe-page .hero-badge::before {
    display: none;
}

/* lathe-page ヒーローテキスト差分 */
.lathe-page .hero-text-content {
    margin-bottom: var(--spacing-md);
}

/* ==========================================================================
   旋盤加工とは
   ========================================================================== */
.lathe-about-section {
    padding: 100px 0 80px;
    background: white;
}

.lathe-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.lathe-about-text p {
    color: var(--color-neutral-600);
    line-height: 1.9;
    font-size: 15px;
    margin-bottom: 20px;
}

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

.lathe-about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.lathe-about-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   特徴セクション（ダークブルー背景）
   ========================================================================== */
.lathe-features-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, #2a6cb7 100%);
}

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

/* 5枚目のカードを中央に配置 */
.lathe-features-grid .lathe-feature-card:nth-child(4) {
    grid-column: 1 / 2;
}
.lathe-features-grid .lathe-feature-card:nth-child(5) {
    grid-column: 2 / 3;
}

.lathe-feature-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 36px 28px 28px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.lathe-feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.14);
}

.lathe-feature-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.lathe-feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    line-height: 1.4;
}

.lathe-feature-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.lathe-feature-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lathe-feature-tags span {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.4);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   対応加工セクション
   ========================================================================== */
.lathe-process-section {
    padding: 100px 0;
    background: var(--color-neutral-50);
}

.lathe-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lathe-process-card {
    background: white;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}

.lathe-process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--color-secondary);
}

.lathe-process-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    font-size: 22px;
}

.lathe-process-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.lathe-process-card p {
    font-size: 14px;
    color: var(--color-neutral-600);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   対応材質セクション（ダークブルー背景）
   ========================================================================== */
.lathe-material-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.lathe-material-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.lathe-material-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.lathe-material-table thead th {
    background: var(--color-primary-dark);
    color: white;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border: none;
}

.lathe-material-table thead th:first-child {
    border-top-left-radius: 12px;
}

.lathe-material-table thead th:last-child {
    border-top-right-radius: 12px;
}

.lathe-material-table tbody tr {
    border-bottom: 1px solid var(--color-neutral-100);
}

.lathe-material-table tbody tr:last-child {
    border-bottom: none;
}

.lathe-material-table tbody td {
    padding: 14px 20px;
    border: none;
    color: var(--color-neutral-700, #334155);
}

.lathe-material-table tbody td:first-child {
    color: var(--color-primary);
    font-weight: 600;
}

.lathe-material-note {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   対応サイズ・精度セクション
   ========================================================================== */
.lathe-spec-section {
    padding: 100px 0;
    background: white;
}

.lathe-spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lathe-spec-card {
    background: var(--color-neutral-50);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.lathe-spec-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.lathe-spec-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.1;
    margin-bottom: 12px;
}

.lathe-spec-unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-neutral-500, #64748b);
}

.lathe-spec-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-neutral-600);
    letter-spacing: 0.03em;
}

/* ==========================================================================
   保有設備セクション（ダークブルー背景）
   ========================================================================== */
.lathe-equipment-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.lathe-equipment-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.lathe-equipment-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.lathe-equipment-table thead th {
    background: var(--color-primary-dark);
    color: white;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    border: none;
}

.lathe-equipment-table thead th:first-child {
    border-top-left-radius: 12px;
}

.lathe-equipment-table thead th:last-child {
    border-top-right-radius: 12px;
}

.lathe-equipment-table tbody tr {
    border-bottom: 1px solid var(--color-neutral-100);
}

.lathe-equipment-table tbody tr:last-child {
    border-bottom: none;
}

.lathe-equipment-table tbody td {
    padding: 14px 20px;
    border: none;
    color: var(--color-neutral-700, #334155);
}

.lathe-equipment-table tbody td:first-child {
    font-weight: 600;
    color: var(--color-primary);
}

.lathe-equipment-note {
    text-align: center;
    margin-top: 32px;
}

.lathe-equipment-note p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin-bottom: 16px;
}

.lathe-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 2px;
    transition: border-color 0.3s ease;
}

.lathe-link:hover {
    border-color: white;
    color: white;
}

/* ==========================================================================
   加工実績セクション
   ========================================================================== */
.lathe-works-section {
    padding: 100px 0;
    background: var(--color-neutral-50);
}

.lathe-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.lathe-work-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.lathe-work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.lathe-work-card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.lathe-work-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.lathe-work-card:hover .lathe-work-card__image img {
    transform: scale(1.05);
}

.lathe-work-card__body {
    padding: 20px;
}

.lathe-work-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.lathe-work-card__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lathe-work-card__tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--color-neutral-50);
    border-radius: 12px;
    font-size: 12px;
    color: var(--color-neutral-600);
    font-weight: 500;
}

.lathe-works-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-neutral-500, #64748b);
    padding: 60px 20px;
}

.lathe-works-more {
    text-align: center;
}

.lathe-works-more .btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: white;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid var(--color-primary);
    transition: all 0.3s ease;
}

.lathe-works-more .btn-more:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* ==========================================================================
   品質管理体制セクション（ダークブルー背景）
   ========================================================================== */
.lathe-quality-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.lathe-quality-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.lathe-quality-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
}

.lathe-quality-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.2);
    color: var(--color-secondary-light, #ff6b5a);
    font-size: 22px;
}

.lathe-quality-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.lathe-quality-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   CTAセクション
   ========================================================================== */
.lathe-cta-section {
    padding: 80px 0;
    background: white;
}

.lathe-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.lathe-cta-content h2 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.lathe-cta-content > p {
    color: var(--color-neutral-600);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.lathe-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.lathe-page .btn-lg {
    padding: 18px 40px;
    font-size: 17px;
}

.lathe-cta-hours {
    font-size: 13px;
    color: var(--color-neutral-500, #64748b);
}

/* ==========================================================================
   FAQセクション
   ========================================================================== */
.lathe-faq-section {
    padding: 100px 0;
    background: var(--color-neutral-50);
}

.lathe-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lathe-faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid var(--color-neutral-100);
}

.lathe-faq-question {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 15px;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background 0.2s ease;
}

.lathe-faq-question::-webkit-details-marker {
    display: none;
}

.lathe-faq-question::before {
    content: 'Q';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.lathe-faq-question::after {
    content: '';
    margin-left: auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-neutral-400, #94a3b8);
    border-bottom: 2px solid var(--color-neutral-400, #94a3b8);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.lathe-faq-item[open] .lathe-faq-question::after {
    transform: rotate(-135deg);
}

.lathe-faq-question:hover {
    background: var(--color-neutral-50);
}

.lathe-faq-answer {
    padding: 0 24px 20px 72px;
}

.lathe-faq-answer p {
    color: var(--color-neutral-600);
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* ==========================================================================
   関連コンテンツセクション
   ========================================================================== */
.lathe-related-section {
    padding: 100px 0;
    background: white;
}

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

.lathe-related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    border: 1px solid var(--color-neutral-100);
}

.lathe-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.lathe-related-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.lathe-related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.lathe-related-card:hover .lathe-related-card__image img {
    transform: scale(1.05);
}

.lathe-related-card__body {
    padding: 24px;
}

.lathe-related-card__en {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.lathe-related-card__body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.lathe-related-card__body p {
    font-size: 13px;
    color: var(--color-neutral-600);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   レスポンシブデザイン
   ========================================================================== */
@media (max-width: 768px) {
    /* ヒーロー */
    .lathe-page .hero-text-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: clamp(260px, 82%, 480px);
        text-align: center;
        padding: 24px 20px;
        background: linear-gradient(180deg, rgba(5, 17, 36, 0.88) 0%, rgba(5, 17, 36, 0.72) 100%);
        border-radius: 18px;
        border: 1px solid rgba(231, 244, 255, 0.15);
        box-shadow: 0 18px 36px rgba(5, 17, 36, 0.45);
        z-index: 3;
    }

    .lathe-page .hero-badges {
        justify-content: center;
    }

    /* 旋盤加工とは */
    .lathe-about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .lathe-about-image img {
        height: 250px;
    }

    /* 特徴 */
    .lathe-features-grid {
        grid-template-columns: 1fr;
    }

    .lathe-features-grid .lathe-feature-card:nth-child(4),
    .lathe-features-grid .lathe-feature-card:nth-child(5) {
        grid-column: auto;
    }

    /* 対応加工 */
    .lathe-process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* 対応材質 */
    .lathe-material-table-wrap {
        border-radius: 8px;
    }

    .lathe-material-table {
        min-width: 500px;
    }

    /* 対応サイズ */
    .lathe-spec-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .lathe-spec-value {
        font-size: 2rem;
    }

    /* 設備テーブル */
    .lathe-equipment-table-wrap {
        border-radius: 8px;
    }

    .lathe-equipment-table {
        min-width: 500px;
    }

    /* 加工実績 */
    .lathe-works-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* 品質管理 */
    .lathe-quality-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* CTA */
    .lathe-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .lathe-cta-buttons .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* FAQ */
    .lathe-faq-answer {
        padding-left: 24px;
    }

    /* 関連コンテンツ */
    .lathe-related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .lathe-process-grid {
        grid-template-columns: 1fr;
    }

    .lathe-spec-grid {
        grid-template-columns: 1fr;
    }

    .lathe-works-grid {
        grid-template-columns: 1fr;
    }

    .lathe-quality-grid {
        grid-template-columns: 1fr;
    }

    .lathe-spec-value {
        font-size: 1.8rem;
    }
}
