/* ========================================
   Variables & Reset
======================================== */
:root {
    --primary-color: #C41E3A;
    --primary-dark: #8B0000;
    --secondary-color: #1a1a1a;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f8f8;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    text-decoration: none;
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 2px;
}

/* ロゴ画像スタイル */
.logo-image {
    height: 45px;
    width: auto;
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-list a:not(.btn-contact):hover,
.nav-list a.active {
    color: var(--primary-color);
}

.nav-list a:not(.btn-contact)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-list a:not(.btn-contact):hover::after,
.nav-list a.active::after {
    width: 100%;
}

.btn-contact {
    background: var(--primary-color);
    padding: 10px 25px;
    border-radius: 5px;
    transition: var(--transition);
}

.btn-contact:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 20px 0;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-list li {
    padding: 15px 20px;
}

.mobile-nav-list a {
    text-decoration: none;
    color: var(--white);
    font-size: 18px;
    font-weight: 500;
}

.mobile-nav-list a.active {
    color: var(--primary-color);
}

/* ========================================
   Hero Section
======================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--secondary-color);
}

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

/* Animated Gradient Background */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        #1a1a1a 0%,
        #2a0a0a 25%,
        #C41E3A 50%,
        #2a0a0a 75%,
        #1a1a1a 100%
    );
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    opacity: 0.6;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Particle Effect */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(196, 30, 58, 0.3);
    pointer-events: none;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Geometric Pattern Overlay */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(196, 30, 58, 0.03) 35px,
            rgba(196, 30, 58, 0.03) 70px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.03) 35px,
            rgba(255, 255, 255, 0.03) 70px
        );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 60px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 3px;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 50px;
    background: var(--white);
    margin: 0 auto 10px;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.3;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.scroll-indicator p {
    color: var(--white);
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 300;
}

/* ========================================
   Section Styles
======================================== */
.section-title {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 15px;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 20px auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 60px;
}

/* ========================================
   Services Section
======================================== */
.services {
    padding: 100px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 50px 40px;
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-icon {
    margin-bottom: 30px;
}

.service-logo {
    width: 200px;
    height: auto;
}

.service-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.service-features li {
    padding: 12px 0;
    color: var(--text-color);
    border-bottom: 1px solid #f0f0f0;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features i {
    color: var(--primary-color);
    margin-right: 10px;
}

.btn-service {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-service:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========================================
   Philosophy Section
======================================== */
.philosophy {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    min-height: 600px;
}

/* Background with gradient and animation */
.philosophy-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        #1a1a1a 0%,
        #2a0a0a 25%,
        #C41E3A 50%,
        #8B0000 75%,
        #1a1a1a 100%
    );
    background-size: 200% 200%;
    animation: philosophyGradient 20s ease infinite;
    z-index: 1;
}

@keyframes philosophyGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Geometric pattern overlay */
.philosophy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    opacity: 0.5;
}

.philosophy-section-title {
    position: relative;
    z-index: 10;
    color: var(--white) !important;
}

.philosophy-section-title::after {
    background: var(--white) !important;
}

.philosophy-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 60px auto 0;
}

.philosophy-main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.philosophy-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: center;
    line-height: 1.6;
    position: relative;
    padding-bottom: 25px;
}

.philosophy-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.philosophy-text {
    color: var(--text-color);
    line-height: 2;
    text-align: center;
}

.philosophy-text p {
    margin-bottom: 30px;
    font-size: 16px;
}

.philosophy-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   News Section
======================================== */
.news {
    padding: 100px 0;
    background: var(--white);
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: var(--transition);
    margin-bottom: 20px;
}

.news-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.news-date {
    font-weight: 500;
    color: var(--text-light);
    min-width: 100px;
}

.news-label {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
}

.news-title {
    flex: 1;
    color: var(--text-color);
    font-weight: 500;
}

/* ========================================
   CTA Section
======================================== */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-dark));
    text-align: center;
}

.cta-content {
    color: var(--white);
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-cta {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 20px 60px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: var(--transition);
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

/* フッターロゴ画像スタイル */
.footer-logo-image {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
    display: block;
}

.footer-company {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-address,
.footer-contact {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.7;
    margin-bottom: 15px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-nav-column h4 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
}

.footer-nav-column ul {
    list-style: none;
}

.footer-nav-column li {
    margin-bottom: 12px;
}

.footer-nav-column a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
    font-size: 14px;
}

.footer-nav-column a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.6;
}

/* ========================================
   Back to Top Button
======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
}

/* ========================================
   Page Header
======================================== */
.page-header {
    margin-top: 80px;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-dark));
    text-align: center;
    color: var(--white);
}

.page-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 3px;
    opacity: 0.8;
}

/* ========================================
   Page Content
======================================== */
.page-content {
    padding: 100px 0;
    background: var(--bg-light);
}

/* Philosophy in Page Content (company page) */
.page-content .philosophy-content {
    background: transparent;
}

.page-content .philosophy-main {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ========================================
   Animations
======================================== */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========================================
   News Detail
======================================== */
.news-detail-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-item {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.news-detail-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.news-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.news-detail-content {
    color: var(--text-color);
    line-height: 2;
}

.news-detail-content p {
    margin-bottom: 20px;
}

.news-detail-content p:last-child {
    margin-bottom: 0;
}