/*
Theme Name: watanabe-exp-from-gridalicious
Description: Watanabe Express theme based on Gridalicious with fullscreen hero slider
Version: 1.9
Author: Hashizaka Information Technology Lab
*/

/* Basic reset */
* { box-sizing: border-box; }

:root {
    --corporate-navy: #1a237e;
    --modern-white: #ffffff;
    --accent-gold: #ffd700;
    --shadow-dark: rgba(26, 35, 126, 0.3);
    --bg-overlay: rgba(26, 35, 126, 0.15);
    --glass-primary: rgba(255, 255, 255, 0.15);
    --glass-secondary: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.25);
    --text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    --navy-text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
    --subtle-nav-bg: rgba(255, 255, 255, 0.02);
    --subtle-nav-hover: rgba(255, 255, 255, 0.04);
    --subtle-nav-active: rgba(255, 255, 255, 0.06);
    --subtitle-accent: rgba(255, 215, 0, 0.9);
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
}

/* === EMPLOYMENT PAGE UNIFIED DESIGN - 採用情報ページ統一デザイン === */
/* FORCE OVERRIDES - 強制適用 20250728 */

/* 採用情報ページ全体の基本設定 */
body.page-template-page-employment-php,
body.page-id-employment,
.page-id-employment .main-content,
.page-id-employment #main {
    background: #ffffff !important;
}

/* 既存ヘッダーを隠す */
.page-id-employment .page-header,
.page-id-employment .entry-header,
.page-id-employment h1.entry-title,
.page-id-employment .site-header + div h1:first-child {
    display: none !important;
}

/* 統一ヘッダー - 他のページと完全一致 */
.page-id-employment .unified-page-header {
    position: relative !important;
    height: 150px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #1e3a8a 100%) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 100 !important;
}

.page-id-employment .unified-page-header::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?q=80&w=1200&auto=format&fit=crop') !important;
    background-size: cover !important;
    background-position: center !important;
    filter: brightness(0.3) blur(1px) !important;
    opacity: 0.6 !important;
    z-index: 0 !important;
}

.page-id-employment .unified-page-header::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 300px !important;
    height: 100% !important;
    background: radial-gradient(ellipse at center right, rgba(255, 255, 255, 0.1) 20%, transparent 60%) !important;
    z-index: 1 !important;
}

.page-id-employment .unified-page-header-content {
    position: relative !important;
    z-index: 101 !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0 20px !important;
}

.page-id-employment .unified-page-title {
    font-family: inherit !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    line-height: 1.3 !important;
    letter-spacing: 0.02em !important;
}

.page-id-employment .unified-page-subtitle {
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0.5rem 0 0 0 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    padding: 0 !important;
    background: none !important;
}

/* コンテンツエリア - 他のページと完全統一 */
.page-id-employment .content-wrapper {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    background: #ffffff !important;
}

/* 見出しの強制統一スタイル - ブルーの縦線 */
.page-id-employment .content-wrapper h1,
.page-id-employment .entry-content h1,
.page-id-employment article h1 {
    font-size: 1.8rem !important;
    color: #333333 !important;
    border-left: 4px solid #3b82f6 !important;
    padding-left: 15px !important;
    margin: 40px 0 20px 0 !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.page-id-employment .content-wrapper h2,
.page-id-employment .entry-content h2,
.page-id-employment article h2 {
    font-size: 1.5rem !important;
    color: #333333 !important;
    border-left: 4px solid #3b82f6 !important;
    padding-left: 15px !important;
    margin: 40px 0 20px 0 !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.page-id-employment .content-wrapper h3,
.page-id-employment .entry-content h3,
.page-id-employment article h3 {
    font-size: 1.2rem !important;
    color: #333333 !important;
    border-left: 3px solid #3b82f6 !important;
    padding-left: 12px !important;
    margin: 30px 0 15px 0 !important;
    font-weight: 700 !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.page-id-employment .content-wrapper h4,
.page-id-employment .entry-content h4,
.page-id-employment article h4 {
    font-size: 1.1rem !important;
    color: #333333 !important;
    border-left: 2px solid #3b82f6 !important;
    padding-left: 10px !important;
    margin: 25px 0 12px 0 !important;
    font-weight: 700 !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 段落の標準スタイル */
.page-id-employment .content-wrapper p,
.page-id-employment .entry-content p,
.page-id-employment article p {
    color: #555555 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin: 0 0 20px 0 !important;
    background: none !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* 画像の標準化 */
.page-id-employment .content-wrapper img,
.page-id-employment .entry-content img,
.page-id-employment article img {
    max-width: 100% !important;
    height: auto !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* リンクの標準化 */
.page-id-employment .content-wrapper a,
.page-id-employment .entry-content a,
.page-id-employment article a {
    color: #3b82f6 !important;
    text-decoration: underline !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.page-id-employment .content-wrapper a:hover,
.page-id-employment .entry-content a:hover,
.page-id-employment article a:hover {
    color: #1e40af !important;
    text-decoration: underline !important;
}

/* 強調テキスト */
.page-id-employment .content-wrapper strong,
.page-id-employment .entry-content strong,
.page-id-employment article strong {
    font-weight: 700 !important;
    color: #333333 !important;
    background: none !important;
    padding: 0 !important;
}

/* リストの標準化 */
.page-id-employment .content-wrapper ul,
.page-id-employment .content-wrapper ol,
.page-id-employment .entry-content ul,
.page-id-employment .entry-content ol,
.page-id-employment article ul,
.page-id-employment article ol {
    margin: 20px 0 !important;
    padding-left: 30px !important;
    background: none !important;
}

.page-id-employment .content-wrapper li,
.page-id-employment .entry-content li,
.page-id-employment article li {
    color: #555555 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin: 8px 0 !important;
    padding: 0 !important;
    background: none !important;
}

/* カスタム装飾要素を完全除去 */
.page-id-employment .premium-card,
.page-id-employment .glass-effect,
.page-id-employment .animated-element,
.page-id-employment .custom-button,
.page-id-employment .gradient-text,
.page-id-employment .shadow-effect,
.page-id-employment .hover-effect {
    display: none !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-id-employment .unified-page-header {
        height: 120px !important;
    }
    
    .page-id-employment .unified-page-title {
        font-size: 1.8rem !important;
    }
    
    .page-id-employment .unified-page-subtitle {
        font-size: 0.85rem !important;
    }
    
    .page-id-employment .content-wrapper {
        padding: 20px 15px !important;
    }
    
    .page-id-employment .content-wrapper h2 {
        font-size: 1.3rem !important;
    }
    
    .page-id-employment .content-wrapper h3 {
        font-size: 1.1rem !important;
    }
    
    .page-id-employment .content-wrapper h4 {
        font-size: 1rem !important;
    }
}

/* === END EMPLOYMENT PAGE UNIFIED DESIGN === */

/* Fullscreen Hero Slider */
.hero-slider-section {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    will-change: transform;
    contain: layout style paint;
}

.hero-slider {
    position: relative;
    height: 100%;
    width: 100%;
    will-change: transform;
    backface-visibility: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    z-index: 1;
}

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

/* Real image backgrounds - 指定された順番 */
.slide-facility {
    background-image: url('https://watanabe-exp.co.jp/wp-content/uploads/2019/11/DSC_0073-Quon10tWithBackground.jpg');
}

.slide-equipment {
    background-image: url('https://watanabe-exp.co.jp/wp-content/uploads/2019/10/DSC_6087m-NewRefrigeratedWarehouseNoon.jpg');
}

.slide-truck {
    background-image: url('https://watanabe-exp.co.jp/wp-content/uploads/2019/10/DSC_6116m-NewRefrigeratedWarehouseNight.jpg');
}

.slide-default {
    background-image: url('https://watanabe-exp.co.jp/wp-content/uploads/2019/08/DSC_6096.jpg');
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    max-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.hero-title-container {
    position: absolute;
    bottom: 15%;
    left: 5%;
    z-index: 4;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    /* Unified container for both title and subtitle */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-main-title {
    font-size: 4.2rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
    color: var(--corporate-navy);
    position: relative;
    z-index: 5;
    
    /* Enhanced Glass Morphism Effect for Navy Text */
    background: linear-gradient(
        145deg, 
        rgba(255, 255, 255, 0.18) 0%, 
        rgba(255, 255, 255, 0.15) 100%
    );
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    
    /* Stronger border for navy text visibility */
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    
    border-radius: 16px;
    padding: 20px 28px;
    
    /* Enhanced shadow system for navy text */
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(255, 255, 255, 0.15);
    
    /* White text shadow for navy text contrast */
    text-shadow: 
        0 2px 8px rgba(255, 255, 255, 0.9),
        0 4px 16px rgba(255, 255, 255, 0.6),
        0 1px 3px rgba(255, 255, 255, 0.8);
    
    letter-spacing: -0.02em;
    
    /* Animation properties */
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-main-title::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        145deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0.15) 100%
    );
    border-radius: 18px;
    z-index: -1;
    opacity: 0.9;
}

.hero-main-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 30% 30%, 
        rgba(255, 255, 255, 0.08) 0%, 
        transparent 50%
    );
    border-radius: 16px;
    z-index: -1;
    pointer-events: none;
}

.hero-main-title:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 0 rgba(255, 255, 255, 0.2);
}

/* Subtitle as appendage to main title */
.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin: 0;
    padding: 0;
    color: var(--subtitle-accent);
    position: relative;
    z-index: 5;
    
    /* More subtle, complementary styling */
    background: linear-gradient(
        135deg, 
        rgba(255, 215, 0, 0.08) 0%, 
        rgba(255, 215, 0, 0.05) 50%,
        rgba(255, 215, 0, 0.06) 100%
    );
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    
    /* Subtle border to connect with main title */
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-top: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 0 0 12px 12px;
    
    /* Smaller padding to show dependency */
    padding: 12px 28px 16px 28px;
    
    /* Subtle shadow to complement main title */
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 215, 0, 0.15);
    
    /* Refined text shadow for gold text */
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.2);
    
    letter-spacing: 0.08em;
    text-align: center;
    font-style: italic;
    
    will-change: transform;
    transform: translate3d(0, -8px, 0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.4) 50%, 
        transparent 100%
    );
    z-index: 1;
}

.hero-subtitle:hover {
    transform: translate3d(0, -9px, 0);
    background: linear-gradient(
        135deg, 
        rgba(255, 215, 0, 0.12) 0%, 
        rgba(255, 215, 0, 0.08) 50%,
        rgba(255, 215, 0, 0.10) 100%
    );
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 3px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 215, 0, 0.2);
}

/* Synchronized hover effects */
.hero-title-container:hover .hero-main-title {
    transform: translate3d(0, -2px, 0);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 0 rgba(255, 255, 255, 0.2);
}

.hero-title-container:hover .hero-subtitle {
    transform: translate3d(0, -10px, 0);
    background: linear-gradient(
        135deg, 
        rgba(255, 215, 0, 0.12) 0%, 
        rgba(255, 215, 0, 0.08) 50%,
        rgba(255, 215, 0, 0.10) 100%
    );
}

.hero-cta {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.hero-cta:hover {
    background: #005a8b;
}

/* Subtle Hero Navigation Menu - さりげないデザイン */
.hero-nav-menu {
    position: absolute;
    bottom: 15%;
    right: 5%;
    z-index: 4;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.hero-nav-menu:hover {
    opacity: 1;
}

.hero-nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-nav-menu li {
    margin: 0;
}

.hero-nav-menu a {
    display: block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    letter-spacing: 0.03em;
    
    /* Extremely subtle glass effect */
    background: var(--subtle-nav-bg);
    backdrop-filter: blur(8px) saturate(110%);
    -webkit-backdrop-filter: blur(8px) saturate(110%);
    
    /* Minimal border for subtle definition */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    
    /* Subtle shadow for depth without being obvious */
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    
    /* Minimal text shadow for readability */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    
    will-change: transform, background, color;
    transform: translate3d(0, 0, 0);
}

.hero-nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.02) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.01) 100%
    );
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hero-nav-menu a:hover {
    background: var(--subtle-nav-hover);
    color: rgba(255, 255, 255, 0.95);
    transform: translate3d(-1px, -1px, 0);
    
    /* Slightly more prominent on hover, but still subtle */
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    
    /* Subtle color shift on hover */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-nav-menu a:hover::before {
    opacity: 1;
}

.hero-nav-menu a:active {
    background: var(--subtle-nav-active);
    transform: translate3d(0, 0, 0);
}

/* Enhanced sophistication: Subtle animation on menu appearance */
.hero-nav-menu li {
    animation: subtleMenuAppear 0.6s ease-out forwards;
    opacity: 0;
}

.hero-nav-menu li:nth-child(1) { animation-delay: 0.1s; }
.hero-nav-menu li:nth-child(2) { animation-delay: 0.2s; }
.hero-nav-menu li:nth-child(3) { animation-delay: 0.3s; }
.hero-nav-menu li:nth-child(4) { animation-delay: 0.4s; }
.hero-nav-menu li:nth-child(5) { animation-delay: 0.5s; }

@keyframes subtleMenuAppear {
    from {
        opacity: 0;
        transform: translateY(10px) translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.nav-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.nav-dot.active,
.nav-dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 20px 15px;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s ease;
    z-index: 10;
}

.slider-arrows:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

/* スクロール時ヘッダー */
.scroll-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, 
        rgba(25, 57, 163, 0.45) 0%, 
        rgba(25, 57, 163, 0.35) 50%, 
        rgba(25, 57, 163, 0.4) 100%);
    backdrop-filter: blur(25px) saturate(160%) brightness(105%);
    -webkit-backdrop-filter: blur(25px) saturate(160%) brightness(105%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 4px 24px rgba(25, 57, 163, 0.25),
        0 2px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(25, 57, 163, 0.15);
    z-index: 1000;
    padding: 15px 0;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.scroll-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.scroll-header .site-title {
    font-size: 1.8rem;
    color: white;
    margin: 0;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 320px;
}

.scroll-header .site-title a {
    text-decoration: none;
    color: white;
}

.scroll-header .main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    overflow: visible;
}

.scroll-header .main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 6px;
    border-radius: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: block;
    text-align: center;
}

.scroll-header .main-navigation a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Fixed header for fullscreen hero */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    z-index: 1000;
    backdrop-filter: blur(10px);
    text-align: left;
}

.site-header .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

.site-header .site-title {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
    min-width: 280px;
    flex-shrink: 0;
}

.site-header .site-title a {
    text-decoration: none;
    color: inherit;
}

.site-header .site-description {
    display: none; /* Hide description in fixed header */
}

.main-navigation {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 12px;
    white-space: nowrap;
}

.main-navigation a:hover {
    color: #007cba;
}

/* Main content padding - different for front page vs other pages */
/* Front page needs more padding due to hero slider */
.home .main-content {
    padding-top: 120px;
    margin-bottom: 40px;
}

/* Other pages get minimal top padding */
.main-content {
    padding-top: 80px; /* Reduced from 120px to 80px */
    margin-bottom: 40px;
}

/* Grid layout inspired by Gridalicious */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.grid-item-content {
    padding: 20px;
}

.grid-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #333;
}

.grid-item .excerpt {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

/* スクロールヘッダーのモバイル対応 */
@media (max-width: 768px) {
    .scroll-header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 0 15px;
    }
    
    .scroll-header .site-title {
        font-size: 1.4rem;
        min-width: auto;
    }
    
    .scroll-header .main-navigation {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .scroll-header .main-navigation a {
        font-size: 0.85rem;
        padding: 4px 8px;
    }
}

/* モバイル表示 - ヒーローセクションタイトル縦中央配置 */
@media (max-width: 768px) {
    .hero-title-container {
        /* 縦中央配置のための設定 */
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 400px !important;
        text-align: center !important;
        gap: 8px !important;
    }
    
    .hero-main-title {
        font-size: 2.5rem !important;
        padding: 16px 20px !important;
        /* 省略表示防止 - 重要 */
        text-overflow: clip !important;
        overflow: visible !important;
        white-space: normal !important;
        max-width: none !important;
        width: auto !important;
        min-width: auto !important;
        -webkit-line-clamp: none !important;
        -webkit-box-orient: unset !important;
        display: block !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.2 !important;
        letter-spacing: -0.02em !important;
        text-align: center !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        padding: 8px 20px 12px 20px !important;
        letter-spacing: 0.05em !important;
        text-align: center !important;
        /* 省略表示防止 */
        text-overflow: clip !important;
        overflow: visible !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    
    /* ナビゲーションメニューの位置調整 */
    .hero-nav-menu {
        bottom: 5% !important;
        right: 50% !important;
        transform: translateX(50%) !important;
        text-align: center !important;
    }
    
    .hero-nav-menu ul {
        flex-direction: row !important;
        gap: 4px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .hero-nav-menu a {
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
        border-radius: 12px !important;
    }
    
    .site-header .site-title {
        font-size: 1.4rem;
        min-width: auto;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-navigation {
        gap: 10px;
        justify-content: center;
    }
    
    .main-navigation a {
        padding: 6px 8px;
        font-size: 0.9rem;
    }
    
    /* Mobile spacing adjustments */
    .home .main-content {
        padding-top: 140px;
    }
    
    .main-content {
        padding-top: 100px; /* Slightly more on mobile due to stacked header */
    }
}

/* タブレット対応 */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-main-title {
        font-size: 3.5rem;
        padding: 18px 24px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        padding: 10px 24px 14px 24px;
    }
    
    .hero-title-container {
        bottom: 18%;
        left: 4%;
        gap: 6px;
    }
    
    .hero-nav-menu {
        bottom: 12%;
        right: 4%;
    }
}

/* 小さなスマートフォン対応 */
@media (max-width: 480px) {
    .hero-main-title {
        font-size: 2.2rem !important;
        padding: 14px 18px !important;
        line-height: 1.1 !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        padding: 6px 18px 10px 18px !important;
    }
    
    .hero-title-container {
        width: 95% !important;
        max-width: 350px !important;
    }
}

/* 超小型スマートフォン対応 */
@media (max-width: 375px) {
    .hero-main-title {
        font-size: 2rem !important;
        padding: 12px 16px !important;
        letter-spacing: -0.03em !important;
    }
    
    .hero-subtitle {
        font-size: 0.85rem !important;
        padding: 6px 16px 8px 16px !important;
    }
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .site-title {
        font-size: 2em;
    }
}
/* === Slider Fix - 2025-12-28 === */
.hero-slider-section .hero-slide {
    opacity: 0 !important;
    transition: opacity 1s ease-in-out !important;
    z-index: 1 !important;
}

.hero-slider-section .hero-slide.active {
    opacity: 1 !important;
    z-index: 2 !important;
}

.slider-nav {
    z-index: 100 !important;
}

.slider-arrows {
    z-index: 100 !important;
}
