/**
 * Single News Page Styles - Modern Minimal Design
 * お知らせ個別ページ専用スタイル（single-works.phpデザイン継承）
 * 
 * Design Concept:
 * - Single-works.phpのデザインを参考にしたクリーンレイアウト
 * - Modern industrial aesthetic
 * - Typography-focused design
 */

/* ========================================
   Variables
======================================== */
:root {
    --news-primary: #059669;
    --news-primary-dark: #047857;
    --news-primary-light: rgba(5, 150, 105, 0.08);
    --news-accent: #ea580c;
    --news-important: #dc2626;
    --news-text-primary: #1f2937;
    --news-text-secondary: #6b7280;
    --news-text-light: #9ca3af;
    --news-bg-primary: #ffffff;
    --news-bg-secondary: #f9fafb;
    --news-border: #e5e7eb;
    --news-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --news-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --news-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Single News Layout
======================================== */
.single-news-wrapper {
    position: relative;
    z-index: 1;
}

/* ========================================
   Hero Section with Split Layout
======================================== */
.news-hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, 
        var(--news-bg-secondary) 0%, 
        var(--news-bg-primary) 100%);
}

.news-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    min-height: 50vh;
}

.news-hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

/* 日付 - 最上位表示 */
.news-date {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--news-text-secondary);
    background: var(--news-bg-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    display: inline-block;
    align-self: flex-start;
    border: 1px solid var(--news-border);
}

/* Meta badges */
.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.news-meta-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-meta-badge.important {
    background: var(--news-important);
    color: white;
    animation: pulse-glow 2s infinite;
}

.news-meta-badge.category {
    background: var(--news-primary);
    color: white;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
    }
    50% { 
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
    }
}

/* タイトル */
.news-title {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--news-text-primary);
    margin: 0;
}

/* リード文 */
.news-lead {
    font-size: 1.8rem;
    line-height: 1.6;
    color: var(--news-text-secondary);
    font-weight: 400;
}

/* Hero Image */
.news-hero-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--news-shadow-lg);
    background: var(--news-bg-secondary);
}

.news-hero-image .hero-img {
    width: 100%;
    height: 100% !important;
    min-height: 400px;
    object-fit: cover;
    object-position: center;
}

/* Hero Placeholder */
.news-hero-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--news-shadow-lg);
}

.placeholder-content {
    text-align: center;
    padding: 2rem;
}

.hero-logo {
    max-width: 200px;
    max-height: 120px;
    opacity: 0.7;
}

/* ========================================
   News Information Section
======================================== */
.news-info {
    padding: 4rem 0;
    background: var(--news-bg-primary);
}

.info-container {
    max-width: 900px;
    margin: 0 auto;
}

.info-heading {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--news-text-primary);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.info-heading::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--news-primary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--news-bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--news-border);
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: var(--news-shadow-md);
    border-color: var(--news-primary);
}

.info-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--news-text-secondary);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--news-text-primary);
    line-height: 1.4;
}

.info-value.important-text {
    color: var(--news-important);
    font-weight: 600;
}

.external-link {
    color: var(--news-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.external-link:hover {
    color: var(--news-primary-dark);
    text-decoration: underline;
}

.external-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.external-link:hover .external-icon {
    transform: translate(2px, -2px);
}

/* ========================================
   News Content Section
======================================== */
.news-content {
    padding: 5rem 0;
    background: var(--news-bg-primary);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.news-body {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--news-text-primary);
}

.news-body h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--news-primary);
    margin: 3rem 0 1.5rem;
    border-left: 4px solid var(--news-primary);
    padding-left: 1.5rem;
}

.news-body h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--news-text-primary);
    margin: 2.5rem 0 1rem;
}

.news-body p {
    margin-bottom: 2rem;
}

.news-body ul, 
.news-body ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.news-body li {
    margin-bottom: 0.8rem;
}

.news-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: var(--news-shadow-md);
}

.news-body blockquote {
    background: var(--news-bg-secondary);
    border-left: 4px solid var(--news-primary);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    font-style: italic;
}

/* Related Link in Content */
.related-link-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--news-border);
}

.related-link-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--news-primary);
    margin-bottom: 1.5rem;
}

.related-link-content .external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--news-primary);
    color: white;
    text-decoration: none;
    padding: 1.2rem 2.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    box-shadow: var(--news-shadow-md);
}

.related-link-content .external-link:hover {
    background: var(--news-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--news-shadow-lg);
    text-decoration: none;
    color: white;
}

.related-link-content .external-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.related-link-content .external-link:hover .external-icon {
    transform: translate(2px, -2px);
}

/* ========================================
   Related News Section
======================================== */
.news-related {
    padding: 5rem 0;
    background: var(--news-bg-secondary);
}

.related-heading {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--news-text-primary);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.related-heading::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--news-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.related-card {
    background: var(--news-bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--news-shadow-md);
    transition: all 0.4s ease;
    border: 1px solid var(--news-border);
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--news-shadow-lg);
}

.related-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--news-bg-secondary);
}

.related-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

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

.related-image-placeholder {
    height: 220px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.related-logo {
    max-width: 120px;
    max-height: 60px;
    opacity: 0.6;
}

.related-content {
    padding: 2.4rem;
    position: relative;
}

.related-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1.2rem;
}

.related-date {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--news-text-secondary);
    background: var(--news-bg-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

.meta-tag {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-tag.important {
    background: var(--news-important);
    color: white;
}

.meta-tag:not(.important) {
    background: rgba(5, 150, 105, 0.1);
    color: var(--news-primary);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.related-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--news-text-primary);
    line-height: 1.3;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-excerpt {
    font-size: 1.4rem;
    color: var(--news-text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    font-size: 1.8rem;
    color: var(--news-primary);
    transition: transform 0.3s ease;
}

.related-card:hover .related-arrow {
    transform: translateX(4px);
}

/* View All Button */
.related-view-all {
    text-align: center;
    grid-column: 1 / -1;
}

.view-all-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--news-primary);
    color: white;
    text-decoration: none;
    padding: 1.2rem 2.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    box-shadow: var(--news-shadow-md);
}

.view-all-button:hover {
    background: var(--news-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--news-shadow-lg);
    text-decoration: none;
    color: white;
}

.button-arrow {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.view-all-button:hover .button-arrow {
    transform: translateX(4px);
}

/* No Related */
.no-related {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.no-related p {
    font-size: 1.6rem;
    color: var(--news-text-secondary);
    margin-bottom: 2rem;
}

.view-all-link {
    color: var(--news-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: var(--news-primary-dark);
    text-decoration: underline;
}

/* ========================================
   Navigation Section
======================================== */
.news-navigation {
    padding: 4rem 0;
    background: var(--news-bg-primary);
    border-top: 1px solid var(--news-border);
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
}

.nav-item.nav-prev {
    justify-content: flex-start;
}

.nav-item.nav-center {
    justify-content: center;
}

.nav-item.nav-next {
    justify-content: flex-end;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--news-text-primary);
    background: var(--news-bg-secondary);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--news-border);
    transition: all 0.3s ease;
    min-width: 200px;
}

.nav-link:hover {
    background: var(--news-primary);
    color: white;
    border-color: var(--news-primary);
    transform: translateY(-2px);
    box-shadow: var(--news-shadow-md);
    text-decoration: none;
}

.nav-link.center {
    background: var(--news-primary);
    color: white;
    border-color: var(--news-primary);
    font-weight: 600;
}

.nav-link.center:hover {
    background: var(--news-primary-dark);
    border-color: var(--news-primary-dark);
}

.nav-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.nav-label {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-arrow {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.nav-link:hover .nav-arrow {
    opacity: 1;
}

.nav-item.nav-prev .nav-link:hover .nav-arrow {
    transform: translateX(-3px);
}

.nav-item.nav-next .nav-link:hover .nav-arrow {
    transform: translateX(3px);
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1024px) {
    .news-hero-split {
        gap: 4rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 3rem 0;
    }
    
    .news-hero-split {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .news-hero-content {
        align-items: center;
    }
    
    .news-date {
        align-self: center;
    }
    
    .news-meta {
        justify-content: center;
    }
    
    .news-hero-image .hero-img,
    .news-hero-placeholder {
        min-height: 280px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .news-content {
        padding: 3rem 0;
    }
    
    .news-body {
        font-size: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .nav-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-item {
        justify-content: center !important;
    }
    
    .nav-link {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .news-hero {
        padding: 2rem 0;
    }
    
    .news-title {
        font-size: clamp(2.2rem, 6vw, 3rem);
    }
    
    .news-lead {
        font-size: 1.6rem;
    }
    
    .news-hero-image .hero-img,
    .news-hero-placeholder {
        min-height: 220px;
    }
    
    .info-card {
        padding: 1.2rem;
    }
    
    .related-content {
        padding: 1.8rem;
    }
    
    .related-title {
        font-size: 1.6rem;
    }
    
    .nav-link {
        padding: 1.2rem 1.5rem;
        min-width: auto;
    }
}