/* 全局设置 */
:root {
    --brand-red: #8a1a1a;
    --brand-black: #1a1a1a;
    --bg-color: #fdfcfc;
    --text-main: #2c2c2c;
    --text-light: #666;
    --font-serif: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    --font-sans: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: 15px; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg-color); font-family: var(--font-sans); color: var(--text-main); line-height: 1.7; overflow-x: hidden; }

/* 顶部导航条 */
.top-bar { display: flex; align-items: center; justify-content: center; padding: 15px 0; width: 100%; position: relative; z-index: 10; background: rgba(255,255,255,0.95); }
.top-bar .line { flex-grow: 1; height: 1px; background: repeating-linear-gradient(to right, var(--brand-red) 0, var(--brand-red) 2px, transparent 2px, transparent 4px); margin: 0 20px; }
.brand-badge {
    background-color: var(--brand-red);
    color: white;
    padding: 4px 30px;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(138, 26, 26, 0.3);
    letter-spacing: 0.2em;
}
.brand-badge .diamond { font-size: 0.7rem; color: #ffcccc; }

/* Hero Section */
.hero-section { height: 80vh; position: relative; display: flex; justify-content: center; align-items: center; overflow: hidden; margin-bottom: 40px; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.9); }

/* 【修改】蒙版紧贴Logo */
.hero-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.6); 
    padding: 30px; /* 适中的内边距 */
    width: auto;
    display: inline-block;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(3px);
    border-radius: 4px;
}

/* 【修改】Logo尺寸增大 */
.logo-symbol { 
    width: 180px; 
    margin: 0 auto; 
    line-height: 0;
}
.logo-symbol img { width: 100%; height: auto; display: block; }

/* Origin Section */
.brand-origin { background-color: #f9f1f1; padding: 70px 20px; text-align: center; }
.quote-box { max-width: 800px; margin: 0 auto 40px; border-bottom: 1px solid var(--brand-red); padding-bottom: 25px; }
.quote-source { color: var(--brand-red); font-size: 0.9rem; margin-bottom: 12px; font-weight: 500; }
.quote-text { font-family: var(--font-serif); font-size: 1.6rem; color: var(--brand-red); margin-bottom: 15px; line-height: 1.4; }
.quote-meaning { color: var(--brand-red); font-size: 0.95rem; line-height: 1.8; opacity: 0.9; }
.brand-mission { background-color: var(--brand-red); color: white; padding: 18px; max-width: 900px; margin: 0 auto; font-size: 1.1rem; font-weight: 500; }

/* Timeline */
.timeline-section { background-color: var(--brand-red); color: white; padding: 60px 20px; }
.timeline-container { max-width: 900px; margin: 0 auto; }
.timeline-item { display: flex; gap: 20px; margin-bottom: 30px; border-left: 1px solid rgba(255,255,255,0.3); padding-left: 25px; position: relative; }
.timeline-item .icon { position: absolute; left: -9px; top: 0; background: var(--brand-red); color: white; font-size: 0.9rem; }
.timeline-item h3 { font-size: 1.3rem; margin-bottom: 10px; border-bottom: 1px dashed rgba(255,255,255,0.4); display: inline-block; padding-bottom: 5px; font-family: var(--font-serif); line-height: 1.4; }
.timeline-item p { margin-bottom: 6px; font-size: 0.95rem; opacity: 0.9; line-height: 1.6; }
.highlight { font-weight: bold; color: #ffeaa7; margin-top: 5px; }

/* Logic */
.brand-logic { padding: 80px 20px; max-width: 1100px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2rem; font-family: var(--font-serif); color: var(--brand-red); margin-bottom: 50px; position: relative; display: table; margin-left: auto; margin-right: auto; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--brand-red); margin: 15px auto 0; }
.logic-row { display: flex; align-items: center; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.main-box { background-color: var(--brand-red); color: white; width: 120px; height: 120px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 4px solid #e0e0e0; outline: 2px dashed var(--brand-red); outline-offset: 5px; margin: 15px; position: relative; }
.main-box .character { font-size: 2.5rem; font-family: var(--font-serif); }
.main-box .sub-text { writing-mode: vertical-lr; position: absolute; right: -35px; top: 0; color: var(--brand-red); font-weight: bold; border: 1px solid var(--brand-red); padding: 8px 4px; height: 112px; font-size: 0.85rem; background: #fff; letter-spacing: 3px; }
.arrow { color: var(--brand-red); font-size: 1.8rem; margin: 0 25px; }
.detail-box { background-color: white; color: var(--brand-red); padding: 18px 30px; border-radius: 2px; flex-grow: 1; max-width: 600px; border: 1px solid var(--brand-red); box-shadow: 4px 4px 0 rgba(138,26,26,0.1); }
.detail-box ul { list-style: none; text-align: center; font-size: 0.95rem; }
.detail-box li { margin: 6px 0; font-weight: 500; }

/* Operation */
.operation-plan { padding: 70px 0; display: flex; justify-content: center; background: #fafafa; border-top: 1px dashed #ddd; border-bottom: 1px dashed #ddd; }
.diagram-container { position: relative; width: 400px; height: 400px; display: flex; justify-content: center; align-items: center; }
.center-circle { width: 130px; height: 65px; border: 2px solid var(--brand-red); background: var(--brand-red); color: white; display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 1.2rem; z-index: 3; font-family: var(--font-serif); }
.satellite { position: absolute; width: 90px; height: 90px; border-radius: 50%; border: 2px solid var(--brand-red); display: flex; justify-content: center; align-items: center; text-align: center; writing-mode: vertical-rl; color: var(--brand-red); background: white; z-index: 2; font-weight: bold; font-size: 1rem; box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.s1 { top: 10px; } .s2 { right: 10px; } .s3 { bottom: 10px; } .s4 { left: 10px; }
.cross-lines { position: absolute; width: 200px; height: 200px; border: 10px solid rgba(138, 26, 26, 0.15); transform: rotate(45deg); z-index: 1; }

/* Philosophy */
.philosophy { padding: 70px 20px; background: #fff; }
.philosophy-cols { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.col { flex: 1; max-width: 420px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.triangle-down { width: 0; height: 0; border-left: 80px solid transparent; border-right: 80px solid transparent; border-top: 100px solid var(--brand-red); position: relative; margin-bottom: 30px; display: flex; justify-content: center; }
.triangle-down span { position: absolute; top: -75px; color: white; font-size: 1.4rem; font-family: var(--font-serif); left: -20px; width: 40px; text-align: center; }
.card { border: 1px solid var(--brand-red); padding: 18px; color: var(--brand-red); text-align: center; width: 100%; margin: 10px 0; background: #fff; font-weight: 500; font-size: 0.95rem; }
.card.outline { box-shadow: 5px 5px 0 rgba(139, 0, 0, 0.1); }
.arrow-down { color: var(--brand-red); font-size: 1.4rem; margin: 5px 0; }

/* Manifesto */
.manifesto { position: relative; height: 55vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.manifesto-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.manifesto-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); }
.manifesto-overlay-darkness { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 2; }
.manifesto-content { position: relative; z-index: 3; text-align: center; padding: 0 20px; }
.manifesto-content p { font-size: 1.8rem; color: white; margin: 20px 0; font-family: var(--font-serif); text-shadow: 0 2px 10px rgba(0,0,0,0.5); line-height: 1.6; }

/* Gallery */
.gallery { padding: 60px 20px; background-color: #fdfcfc; }
.section-header-bar { background-color: var(--brand-red); color: white; text-align: center; padding: 10px; margin-bottom: 40px; font-family: var(--font-serif); letter-spacing: 1px; font-size: 1rem; }
.intro-text { text-align: center; font-family: var(--font-serif); font-size: 1.4rem; color: var(--brand-red); margin-bottom: 60px; font-weight: bold; letter-spacing: 0.05em; }
.gallery-group { max-width: 1200px; margin: 0 auto 80px; }
.group-header { border-left: 5px solid var(--brand-red); padding-left: 20px; margin-bottom: 25px; }
.group-header h3 { color: var(--brand-red); font-size: 1.6rem; margin-bottom: 10px; font-family: var(--font-sans); font-weight: bold; }
.group-desc { font-size: 0.95rem; color: var(--text-light); line-height: 1.8; max-width: 800px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; grid-auto-flow: dense; }
.gallery-item { position: relative; overflow: hidden; background: #eee; border-radius: 2px; min-height: 250px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.large { grid-column: span 2; grid-row: span 2; min-height: 515px; }
.gallery-item.wide { grid-column: span 2; min-height: 250px; }
.gallery-item.vertical { grid-row: span 2; min-height: 515px; }
.overlay { position: absolute; bottom: 20px; left: 20px; border: 1px solid white; padding: 10px 25px; color: white; font-family: var(--font-serif); background: rgba(0,0,0,0.3); backdrop-filter: blur(3px); letter-spacing: 2px; }

/* Company Profile */
.company-profile { padding: 70px 20px; background-color: #fff; display: flex; justify-content: center; color: var(--brand-black); }
.profile-content { display: flex; flex-direction: column; align-items: center; max-width: 600px; width: 100%; }
.profile-logo-section { margin-bottom: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.logo-symbol.black-theme { width: 70px; margin: 0 auto 10px; }
.logo-symbol.black-theme img { filter: grayscale(100%) brightness(0); opacity: 0.9; }
.profile-name-jp { font-family: var(--font-sans); font-weight: bold; font-size: 1.8rem; letter-spacing: 2px; margin-top: 5px; margin-bottom: 3px; color: var(--brand-black); }
.profile-name-en { font-family: var(--font-sans); font-size: 0.9rem; letter-spacing: 1px; color: var(--text-light); text-transform: uppercase; }
.profile-details { width: 100%; display: flex; flex-direction: column; gap: 25px; }
.detail-block-main { display: flex; gap: 15px; align-items: center; }
.pill-bar { width: 6px; height: 45px; background-color: var(--brand-black); border-radius: 3px; }
.company-title { font-size: 1.5rem; font-weight: bold; line-height: 1.2; margin-bottom: 2px; }
.tag { background: var(--brand-black); color: white; padding: 2px 6px; border-radius: 3px; font-size: 0.8rem; vertical-align: middle; margin-left: 8px; }
.company-subtitle { font-size: 0.9rem; color: var(--text-light); }
.detail-block-info { display: flex; gap: 15px; }
.line-bar { width: 2px; background-color: var(--brand-black); margin-left: 2px; }
.info-content { font-family: var(--font-sans); font-size: 1rem; line-height: 1.8; }
.contact-row { margin-top: 12px; font-weight: 500; }
.social-row { margin-top: 15px; display: flex; align-items: center; gap: 15px; font-size: 0.95rem; color: var(--brand-black); }
.social-link { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--brand-black); transition: color 0.3s; font-weight: 500; }
.social-link:hover { color: var(--brand-red); }
.social-icon { width: 18px; height: 18px; }
.divider { color: #ccc; }

/* Footer */
footer { text-align: center; padding: 40px 20px; color: #999; font-size: 0.75rem; background: #fdfcfc; border-top: 1px solid #eee; }
footer .line { height: 1px; background: var(--brand-red); margin-bottom: 20px; opacity: 0.3; max-width: 1200px; margin-left: auto; margin-right: auto; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-title { font-size: 2.8rem; }
    
    /* 【修改】手机版蒙版和Logo调整 */
    .hero-content { 
        padding: 20px; /* 手机版内边距 */
        width: auto; 
        max-width: 80%;
    }
    
    .logo-symbol { 
        width: 35vw; /* 增大手机版Logo (约+30%) */
        max-width: 160px; 
        margin: 0 auto; 
    }
    
    .logic-row { flex-direction: column; }
    .main-box .sub-text { display: block; writing-mode: horizontal-tb; position: static; width: 100%; height: auto; margin-top: 5px; border: none; background: transparent; }
    .main-box { height: auto; padding: 15px; }
    .arrow { transform: rotate(90deg); margin: 10px 0; }
    
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.large, .gallery-item.wide, .gallery-item.vertical { grid-column: span 1; grid-row: span 1; min-height: 280px; }
    
    .diagram-container { transform: scale(0.7); }
    .manifesto-content p { font-size: 1.4rem; }
    .philosophy-cols { gap: 30px; }
    
    .company-profile { padding: 50px 20px; }
    .company-title { font-size: 1.3rem; }
    .social-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .divider { display: none; }
}

/* Animation Classes */
.fade-init { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.visible { opacity: 1; transform: translateY(0); }