/* 
 * 設備紹介ページ専用スタイル
 * ファイル: page-machine.css
 * 対象: page-templates/page-machine.php
 */

/* ==========================================================================
   パンくずナビゲーション
   ========================================================================== */
.page-breadcrumb {
    background: #ffffff;
    padding: 16px 0;
    margin-top: 70px; /* ヘッダー固定分のオフセット */
    position: relative;
}

.page-breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.breadcrumb-item {
    color: #8b94a6;
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.breadcrumb-item:not(:first-child)::before {
    content: '/';
    margin: 0 16px;
    color: #d1d5db;
    font-size: 12px;
    flex-shrink: 0;
}

.breadcrumb-item a {
    color: #4A8DD1;
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.breadcrumb-item a:hover {
    color: #e74c3c;
}

.breadcrumb-item.active {
    color: #374151;
    font-weight: 600;
}

/* ページベース */
.machine-page {
    background: #f8f9fa;
}

/* ==========================================================================
   3D画像ヒーローセクション
   ========================================================================== */

.business-hero-section {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 80px;
}

.business-hero-section .container {
    max-width: none;
    width: 100%;
    padding: 0;
    display: flex;
    justify-content: flex-start;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    display: flex;
    height: 100vh;
}

.hero-main-content {
    display: flex;
    width: 100%;
    align-items: center;
    height: 100vh;
    gap: 0;
}

.machine-page .hero-text-content {
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40%;
    padding: 0 var(--spacing-8, 2rem);
    z-index: 4;
    text-align: left;
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: var(--spacing-4, 1rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.text-3d-white {
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-4, 1rem);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 6px 18px rgba(9, 18, 31, 0.55);
}

.hero-description {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.75;
    margin-bottom: var(--spacing-8, 2rem);
    max-width: 520px;
    color: rgba(240, 246, 255, 0.9);
    text-shadow: 0 8px 22px rgba(9, 18, 31, 0.55);
    border-left: 3px solid rgba(231, 244, 255, 0.45);
    padding-left: 18px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-4, 1rem);
    flex-wrap: wrap;
    align-items: center;
}

.hero-buttons .btn {
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary, #e74c3c), #c0392b);
    color: white;
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(231, 76, 60, 0.4);
    color: white;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    color: white;
}

.hero-image-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}

.hero-3d-box {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    width: 100%;
    height: 100%;
    margin: 0;
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-decoration-text {
    position: absolute;
    top: 90%;
    right: max(2%, 20px);
    transform: translateY(-50%) rotate(90deg);
    transform-origin: right center;
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.06);
    font-family: 'Arial Black', sans-serif;
    letter-spacing: -0.05em;
    user-select: none;
    pointer-events: none;
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-8, 2rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1px;
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0); 
        opacity: 0.6;
    }
    40% { 
        transform: translateY(-10px); 
        opacity: 1;
    }
    60% { 
        transform: translateY(-5px); 
        opacity: 0.8;
    }
}

/* ヒーロー背景 */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/trial-production.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 141, 209, 0.95) 0%, rgba(58, 123, 200, 0.85) 50%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 2;
}

/* フローティング要素 */
.hero-float-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: none;
    z-index: 2;
}

.hero-float-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-float-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}

.hero-float-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 5%;
    animation-delay: 4s;
}

@keyframes float3d {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}


/* セクションスタイル - 新デザイン */
.business-intro-section {
    padding: 120px 0 100px;
    background: white;
    position: relative;
    z-index: 10;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
    min-height: 500px;
}

.intro-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.intro-text h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: var(--color-primary, #4A8DD1);
    margin-bottom: 24px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.intro-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

.intro-text p:last-of-type {
    margin-bottom: 32px;
}

.highlight-message {
    background: linear-gradient(135deg, var(--color-primary, #4A8DD1) 0%, #3a7bc8 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}

/* Machine page heading alignment */
.machine-page h2 {
    text-align: center;
}

.machine-page .intro-text h2 {
    text-align: left;
}

.highlight-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-secondary, #e74c3c);
}

.highlight-message p {
    margin: 0;
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.intro-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
}

.intro-main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    transition: none;
}

.intro-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 24px;
    border-radius: 0 0 12px 12px;
}

.intro-stats-mini {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.stat-mini {
    text-align: center;
    color: white;
}

.stat-mini-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.stat-mini-label {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

.equipment-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.feature-item:hover {
    border-left-color: var(--color-secondary, #e74c3c);
    transform: translateX(4px);
    background: #f0f4f8;
}

.feature-item i {
    font-size: 20px;
    color: var(--color-primary, #4A8DD1);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.feature-item span {
    font-weight: 600;
    color: var(--color-primary, #4A8DD1);
    font-size: 14px;
}

.overview-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 300px;
    margin: 0 auto;
}

.stat-card {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary, #4A8DD1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary, #4A8DD1);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-neutral-600, #64748b);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 技術特長セクション */
.technical-features-section {
    padding: 100px 0;
    background: #f8f9fa;
    scroll-margin-top: 100px;
}

.section-header-center {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary, #e74c3c);
    background: rgba(231, 76, 60, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title-large {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    color: var(--color-primary, #4A8DD1);
    margin-bottom: 16px;
    line-height: 1.3;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 48px;
}

.feature-card {
    background: white;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(31, 78, 121, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.12);
}

.feature-number {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-secondary, #e74c3c), #c0392b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.highlight-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 24px;
    position: relative;
}

.highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.feature-card:hover .highlight-image img {
    opacity: 0.95;
}

.highlight-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--color-secondary, #e74c3c), #c0392b);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary, #4A8DD1);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.highlight-year {
    color: var(--color-secondary, #e74c3c);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
}

.feature-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 15px;
}

.feature-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-tags span {
    background: linear-gradient(135deg, rgba(31, 78, 121, 0.1), rgba(31, 78, 121, 0.05));
    color: var(--color-primary, #4A8DD1);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(31, 78, 121, 0.1);
}

/* 品質保証セクション */
.quality-assurance-section {
    padding: 120px 0;
    background: white;
}

/* 設備一覧テーブル */
.equipment-table-container {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    background: white;
}

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

.equipment-table thead th {
    background: linear-gradient(135deg, var(--color-primary, #4A8DD1), #3a7bc8);
    color: white;
    padding: 20px 16px;
    text-align: left;
    font-weight: 600;
    border: none;
    font-size: 14px;
}

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

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

.equipment-table tbody tr {
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.equipment-table tbody tr:hover {
    background: #f8f9fa;
}

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

.equipment-table tbody td {
    padding: 16px;
    vertical-align: top;
    border: none;
}

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

/* CTAセクションのスタイルはstyle.cssで統一管理 */

/* ==========================================================================
   レスポンシブデザイン - タブレット (1024px以下)
   ========================================================================== */
@media (max-width: 1024px) {
    .business-hero-section {
        padding-top: 80px;
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .page-breadcrumb {
        margin-top: 0;
        padding: 12px 0;
    }
    
    .page-breadcrumb .container {
        padding: 0 20px;
    }
    
    .breadcrumb-nav {
        font-size: 13px;
    }
    
    .machine-hero-section,
    .business-hero-section {
        min-height: 100vh;
        margin-top: 0;
        padding-top: 70px;
    }
    
    .hero-main-content {
        position: relative;
        height: 100vh;
        min-height: 100vh;
    }
    
    .machine-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;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        text-align: center;
        letter-spacing: 0.12em;
    }
    
    .hero-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        border-left: none;
        padding-left: 0;
    }
    
    .hero-image-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    
    .hero-decoration-text {
        display: none;
    }
    
    .hero-float-element {
        display: none;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .feature-card {
        padding: 32px 24px;
    }
    
    .equipment-table-container {
        border-radius: 8px;
        /* 横スクロールの見た目を改善 */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #4A8DD1 #f1f3f4;
        position: relative;
    }
    
    /* 横スクロール可能であることを示すヒント */
    .equipment-table-container::after {
        content: '';
        position: absolute;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        color: #6b7280;
        text-align: center;
        pointer-events: none;
    }
    
    /* 横スワイプアイコン */
    .equipment-table-container::before {
        content: '↔'; /* 左右矢印記号 */
        position: absolute;
        top: 12px;
        right: 12px;
        background: rgba(74, 141, 209, 0.9);
        color: white;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: bold;
        z-index: 10;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        animation: swipeHint 2s ease-in-out infinite;
        pointer-events: none;
        border: 2px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    
    @keyframes swipeHint {
        0%, 100% {
            transform: translateX(0);
            opacity: 0.7;
        }
        50% {
            transform: translateX(-4px);
            opacity: 1;
        }
    }
    
    .equipment-table {
        min-width: 600px; /* 最小幅を設定して横スクロールを確実に */
    }
    
    .equipment-table thead th {
        padding: 16px 12px;
        font-size: 13px;
        white-space: nowrap; /* ヘッダーテキストの改行を防ぐ */
        min-width: 80px; /* 各列の最小幅を設定 */
    }
    
    .equipment-table tbody td {
        padding: 12px;
        font-size: 13px;
        white-space: nowrap; /* セル内容の改行を防ぐ */
        min-width: 80px; /* 各列の最小幅を設定 */
    }
    
    /* 特定の列により多くのスペースを確保 */
    .equipment-table thead th:nth-child(6),
    .equipment-table tbody td:nth-child(6) {
        min-width: 120px; /* 特徴列を広く */
    }
    
    .equipment-table thead th:nth-child(1),
    .equipment-table tbody td:nth-child(1) {
        min-width: 100px; /* 設備名列を広く */
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-subtitle {
        text-align: center;
    }
}

/* 480px以下での更なる改善 */
@media (max-width: 480px) {
    .equipment-table-container {
        margin: 0 -16px; /* 画面端まで使用 */
        border-radius: 0;
    }
    
    .equipment-table-container::after {
        bottom: -30px;
        font-size: 11px;
    }
    
    .equipment-table-container::before {
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .equipment-table {
        min-width: 500px; /* より小さなサイズでも横スクロール確保 */
    }
    
    .equipment-table thead th {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .equipment-table tbody td {
        padding: 10px 8px;
        font-size: 12px;
    }
}
