/* 
 * 会社概要ページ専用スタイル
 * ファイル: page-about.css
 * 対象: page-templates/page-about.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;
}

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

/* 代表挨拶セクション */
.greeting-section {
    padding: 100px 0;
    background: white;
}

.greeting-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.greeting-message p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 16px;
}

.company-philosophy {
    margin-bottom: 40px;
}

.philosophy-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #e74c3c;
}

.philosophy-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.philosophy-text h4 {
    color: #1f4e79;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.president-signature {
    text-align: right;
    padding: 24px;
    background: linear-gradient(135deg, #1f4e79, #3a7bc8);
    border-radius: 12px;
    color: white;
}

.president-name {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.president-signature-text {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.greeting-image {
    position: relative;
}

.greeting-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.image-caption {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

/* 会社情報セクション */
.company-info-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.company-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.company-info-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.company-table {
    width: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.company-table th,
.company-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.company-table th {
    background: #f8f9fa;
    font-weight: 700;
    color: #1f4e79;
    width: 30%;
}

.company-table td {
    color: #666;
}

.company-table td a {
    color: #e74c3c;
    text-decoration: none;
}

.company-table td a:hover {
    text-decoration: underline;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

.business-info {
    display: grid;
    gap: 24px;
}

.company-image-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
}

.company-building-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    max-height: 600px;
}

.company-map {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.company-map iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

.info-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f4e79;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e74c3c;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.info-card li:last-child {
    border-bottom: none;
}

/* 沿革セクション */
.history-section {
    padding: 100px 0;
    background: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e74c3c;
}

.timeline-item {
    display: flex;
    margin-bottom: 60px;
    position: relative;
}

.timeline-year {
    width: 120px;
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #1f4e79, #3a7bc8);
    color: white;
    border-radius: 12px;
    margin-right: 40px;
    position: relative;
    z-index: 2;
}

.timeline-year span {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.timeline-year small {
    font-size: 12px;
    opacity: 0.8;
}

.timeline-year::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid #3a7bc8;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
}

.timeline-content {
    flex: 1;
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #e74c3c;
}

.timeline-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1f4e79;
    margin-bottom: 8px;
}

.timeline-content p {
    color: #666;
    margin: 0;
}

/* アクセスセクション */
.access-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.access-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.access-info {
    display: grid;
    gap: 40px;
}

.access-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f4e79;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e74c3c;
}

.access-address p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.transport-item,
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #666;
}

.transport-item i,
.contact-item i {
    color: #e74c3c;
    width: 20px;
}

.contact-item a {
    color: #e74c3c;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.access-map {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .page-breadcrumb {
        margin-top: 60px;
        padding: 12px 0;
    }
    
    .page-breadcrumb .container {
        padding: 0 20px;
    }
    
    .breadcrumb-nav {
        font-size: 13px;
    }
    
    .greeting-content,
    .company-info-grid,
    .access-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .timeline::before {
        left: 60px;
    }
    
    .timeline-year {
        width: 80px;
        margin-right: 30px;
        padding: 12px;
    }
    
    .timeline-year span {
        font-size: 18px;
    }
    
    .timeline-year::after {
        right: -15px;
        border-left-width: 15px;
        border-top-width: 15px;
        border-bottom-width: 15px;
    }
    
    .philosophy-item {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

/* ==========================================================================
   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;
}

.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;
}

.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/nc-machining.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: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 64px;
    align-items: center;
}

.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:not(.intro-signature) {
    color: #555;
    line-height: 1.8;
    margin: 0;
    font-size: 16px;
}

.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;
}

.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;
}

/* About page heading alignment */
.about-page h2 {
    text-align: center;
}

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

.intro-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    max-width: 520px;
    margin: 0 auto;
}

.intro-main-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(30, 52, 78, 0.18);
}

.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);
}

.intro-signature {
    margin-top: 8px;
    text-align: right;
    font-weight: 700;
    font-size: 16px;
    color: #1f4e79;
    letter-spacing: 0.08em;
}

.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, #1f4e79);
    margin-bottom: 16px;
    line-height: 1.3;
}

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

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

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

    .intro-content {
        gap: 48px;
    }

    .intro-text {
        padding: 40px;
    }

    .intro-main-image {
        height: 380px;
    }

    .company-map iframe {
        height: 360px;
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .business-hero-section {
        min-height: 100vh;
        margin-top: 0;
        padding-top: 70px;
    }
    
    .hero-main-content {
        position: relative;
        height: 100vh;
        min-height: 100vh;
    }
    
    .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;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .intro-text {
        order: 1;
        padding: 0;
    }
    
    .intro-image {
        order: 2;
        max-width: 100%;
    }
    
    .intro-main-image {
        height: 320px;
    }
    
    .intro-signature {
        font-size: 15px;
    }
    
    .company-info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .company-info-left {
        gap: 30px;
    }

    .company-building-image {
        max-height: 400px;
    }

    .company-map iframe {
        height: 300px;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.feature-item i {
    font-size: 20px;
    color: var(--color-primary, #4A8DD1);
}

.feature-item span {
    font-weight: 600;
    color: var(--color-neutral-700, #334155);
}

/* 480px以下での調整 */
@media (max-width: 480px) {
    .business-hero-section {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .hero-text-content {
        width: 95%;
        padding: 16px;
    }

    .intro-text {
        padding: 0;
    }

    .company-map iframe {
        height: 240px;
    }

    .intro-main-image {
        height: 260px;
    }

    .intro-signature {
        font-size: 14px;
    }
}
