/*
Theme Name: Nomura G Custom
Description: ノムラ合成株式会社専用カスタムテーマ - 断熱材加工・施工会社向け
Version: 1.13.0
Author: HP移行プロジェクト
*/

/* 独立コンポーネント CSS は functions.php で読み込み */

/* ========================================
   CSS Variables
======================================== */
:root {
    /* カラーパレット */
    --primary-color: #336699;
    --primary-color-dark: #1e2a4a;
    --primary-color-light: #4d7fb8;
    --contact-red: #c61a1a;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --border-light: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;

    /* スペーシング */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* フォントサイズ */
    --size-lg: 1.125rem;
    --size-responsive-6xl: clamp(2.5rem, 5vw, 4rem);

    /* フォントウェイト */
    --weight-semibold: 600;
}

/* ========================================
   Background Classes
======================================== */
.bg-primary {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.bg-primary .section-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
}

.bg-primary .section-title {
    color: var(--white) !important;
}

.bg-primary .section-description {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ========================================
   Feature Card - Default Layout
======================================== */
.feature-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-card__number {
    flex-shrink: 0;
    order: 1;
    align-self: center;
    line-height: 1.2;
}

.feature-card__title {
    flex: 1;
    order: 2;
    text-align: left;
    margin: 0;
    align-self: center;
    line-height: 1.2;
}

/* プロダクトカード内でのタイトル順序修正 */
.feature-card--product .feature-card__title {
    order: 0;
}


.bg-white {
    background-color: var(--white);
}

.bg-gray {
    background-color: var(--bg-gray);
}

.bg-light {
    background-color: var(--bg-light);
}



/* レイアウトは assets/css/layout.css に移動済み */


/* タイポグラフィは assets/css/typography.css に移動済み */


/* ========================================
   Sections
======================================== */
/* section-subtitle は components.css で統一定義済み */

/* section-title は components.css で統一定義済み */

.section-header .section-subtitle + .section-title {
    margin-top: 0;
}




/* ボタンスタイルは components.css で統一定義済み */

.btn-hero-primary {
    background: var(--contact-red);
    color: var(--white);
    border: 2px solid var(--contact-red);
    padding: 16px 32px;
    font-size: var(--size-lg);
    font-weight: var(--weight-semibold);
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(198, 26, 26, 0.2);
}

.btn-hero-primary:hover {
    background: var(--white);
    color: var(--contact-red);
    border-color: var(--contact-red);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(198, 26, 26, 0.3);
    text-decoration: none;
}

.btn-hero-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(198, 26, 26, 0.3);
}

/* ========================================
   Hero Section - Modern Design
======================================== */
.hero-modern {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    animation: zoomOut 6s infinite;
}

.hero-slide.active {
    opacity: 1;
}

@keyframes zoomOut {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

.hero-content {
    position: relative;
}

.hero-title {
    font-size: var(--size-responsive-6xl);
    font-weight: var(--weight-semibold);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.title-line-main {
    display: block;
    font-size: 0.85em;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.title-line-highlight {
    display: block;
    font-weight: var(--weight-bold);
}

.emphasis-word {
    font-size: 1.5em;
    font-weight: var(--weight-bold);
}

.emphasis-word:first-of-type {
    color: var(--primary-color-light);
    text-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.emphasis-word:last-of-type {
    color: #f97316;
    text-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

.hero-subtitle {
    font-size: 0.55rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    opacity: 0.8;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.02em;
}

/* 統一感のある円形・円周装飾 - テキストフォーカス */
.hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: slowRotate 60s linear infinite;
    z-index: 1;
}

.hero-content::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    animation: slowRotate 45s linear infinite reverse;
    z-index: 1;
}

/* 中央の精密円 */
.hero-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: conic-gradient(from 0deg,
        rgba(255, 255, 255, 0) 0deg,
        rgba(255, 255, 255, 0.05) 90deg,
        rgba(255, 255, 255, 0) 180deg,
        rgba(255, 255, 255, 0.05) 270deg);
    border-radius: 50%;
    animation: slowRotate 30s linear infinite;
    z-index: 1;
}

.hero-modern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 1px dashed rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    animation: slowRotate 25s linear infinite reverse;
    z-index: 1;
}

/* 外側の大きな円周 */
.hero-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    animation: slowRotate 90s linear infinite;
    z-index: 1;
}

.hero-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: conic-gradient(from 0deg,
        rgba(255, 255, 255, 0) 0deg,
        rgba(255, 255, 255, 0.02) 180deg,
        rgba(255, 255, 255, 0) 360deg);
    border-radius: 50%;
    animation: slowRotate 75s linear infinite reverse;
    z-index: 1;
}

@keyframes slowRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 回転ナビゲーションは assets/css/rotating-navigation.css に移動済み */

/* ========================================
   Hero Section - ウォータージェット技術テーマ
======================================== */
.hero-section {
    background: 
        radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(30, 64, 175, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 40% 80%, rgba(8, 145, 178, 0.1) 0%, transparent 30%),
        linear-gradient(135deg, var(--primary-color-dark) 0%, var(--primary-color) 50%, var(--info-blue) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}


.hero-content h1,
.hero-title {
    font-size: var(--size-responsive-5xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--spacing-lg);
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p,
.hero-subtitle {
    font-size: var(--size-xl);
    margin-bottom: var(--spacing-xl);
    color: var(--white);
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Cards & Grid
======================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: var(--spacing-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

/* 断熱材層構造デザイン */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-color-dark) 0%, 
        var(--info-blue) 33%, 
        var(--accent-color) 66%, 
        var(--primary-color) 100%
    );
}

/* ビジネスカード背景画像 */
.business-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.business-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 1;
    pointer-events: none;
}

.business-card h3,
.business-card p,
.business-card .btn {
    position: relative;
    z-index: 2;
}

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

.card-icon {
    font-size: var(--size-5xl);
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.card-icon img {
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.card h3 {
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

.card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

/* Business Cards */
.business-card {
    text-align: center;
    transition: all 0.3s ease;
}

.business-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.business-card .card-icon {
    display: block;
    margin-bottom: var(--spacing-lg);
}

.business-card h3 {
    font-size: var(--size-2xl);
    margin-bottom: var(--spacing-sm);
}

.business-card p {
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

/* PR Banner Section は削除済み - カタログコンポーネントを使用 */

/* stats-sectionはsections.cssで統一管理 */


/* Company Cards Horizontal は削除済み - カタログコンポーネントを使用 */

/* Simple Contact Section は削除済み - カタログコンポーネントを使用 */

/* Company Banners は削除済み - カタログコンポーネントを使用 */

/* ========================================
   YouTube Video
======================================== */
.video-container,
.youtube-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: var(--spacing-xl) 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.video-container iframe,
.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 会社セクション内でYouTubeと3枚カードの間隔を狭く */
.company-section .video-container {
    margin-bottom: var(--spacing-lg);
}

.company-section .company-cards-compact {
    margin-top: 0;
}

/* Brand Section は削除済み - カタログコンポーネントを使用 */

/* イノベーションセクションは assets/css/innovation-section.css に移動済み */

/* Contact Section - 工業技術テーマ は削除済み - カタログコンポーネントを使用 */

/* ========================================
   Footer
======================================== */
.site-footer {
    background: var(--text-color);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-lg);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    /* Typography adjustments */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* Hero section */
    .hero-content h1,
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-content p,
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Section headers */
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Cards */
    .card-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    /* 削除したセクションのレスポンシブコードはコメントアウト */
    
    /* Contact */
    .contact-info {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .btn-footer-contact {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Spacing adjustments */
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet adjustments */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* company-banners は削除済み */
}

/* ========================================
   WordPress Block Editor Support
======================================== */
.wp-block-group {
    margin-bottom: var(--spacing-lg);
}

.wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.wp-block-column {
    flex: 1;
    min-width: 280px;
}

.wp-block-button .wp-block-button__link {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wp-block-button .wp-block-button__link:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* VK Blocks対応 */
.vk-blocks-container {
    max-width: 100%;
}

.vk-blocks-card {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.vk-blocks-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* コンタクトボタンは components.css で統一定義済み */


/* ========================================
   Utilities
======================================== */
/* ユーティリティクラスは base.css で統一定義済み */

/* ========================================
   Print Styles
======================================== */
@media print {
    .site-footer,
    .hero-buttons,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .section {
        page-break-inside: avoid;
    }
}