/* =========================================
   YUI MARKETING - ABOUT PAGE STYLES (Final Clean v2)
   ========================================= */

/* --- Variables & Reset --- */
:root { 
    --text-color: #ffffff; 
    --cursor-color: #00c6ff;
    --accent-grad: linear-gradient(135deg, #00c6ff, #ff4b1f);
    --mission-c: #00c6ff;
    --vision-c: #9d50bb;
    --value-c: #ff4b1f;
}

.txt-block { display: inline-block; white-space: nowrap; }

/* --- Layout Containers --- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.container-wide { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.container-narrow { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }


/* =========================================
   PAGE SPECIFIC STYLES
   ========================================= */

section { padding: clamp(80px, 10vw, 140px) 0; }
.section-title {
    font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900; margin-bottom: clamp(40px, 6vw, 60px);
    border-bottom: 2px solid rgba(255,255,255,0.5); display: inline-block;
}

/* --- Page Hero --- */
.page-hero {
    min-height: 50vh; 
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    padding-top: clamp(140px, 20vw, 200px); padding-bottom: 80px; 
}
.hero-sub { font-size: 1rem; letter-spacing: 0.3em; margin-bottom: 10px; color: #00c6ff; font-weight: 700; }
.hero-title { font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; line-height: 1; text-shadow: 0 10px 30px rgba(0,0,0,0.5); margin-bottom: 20px; }
.hero-desc { font-size: 1.1rem; opacity: 0.8; line-height: 1.8; }


/* --- MESSAGE Section --- */
.message-card {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 30px;
    padding: clamp(40px, 5vw, 80px);
    position: relative; overflow: hidden;
    width: 100%; box-sizing: border-box;
}

.message-inner { display: flex; gap: 40px; align-items: flex-start; }
.message-head { flex: 0 0 auto; min-width: 280px; max-width: 45%; }

.msg-label { 
    display: inline-block; font-size: 0.8rem; border: 1px solid #00c6ff; color: #00c6ff; 
    padding: 5px 15px; border-radius: 50px; margin-bottom: 20px; 
}
.message-head h2 {
    font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 900; line-height: 1.4;
    background: linear-gradient(90deg, #fff, #aaa); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.message-body { flex: 1; font-size: 1.05rem; line-height: 2.2; opacity: 0.9; }
.message-body p { margin-bottom: 30px; }

.ceo-sign { margin-top: 50px; text-align: right; }
.ceo-position { font-size: 0.9rem; opacity: 0.7; margin-bottom: 5px; }
.ceo-name { font-size: 1.5rem; font-weight: 700; }
.ceo-name .en { font-family: 'Montserrat', sans-serif; font-size: 1rem; margin-left: 10px; opacity: 0.5; font-weight: 400; }


/* --- PHILOSOPHY (MVV) Section --- */
.philosophy-wrapper {
    position: relative;
    width: 100%; 
    max-width: 1000px;
    margin: 0 auto;
    
    /* アスペクト比を固定 */
    aspect-ratio: 1000 / 600;
    height: auto;
    
    /* 背景パターン */
    background-image: 
        linear-gradient(rgba(0, 198, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 198, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    overflow: hidden;
}

.philosophy-svg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; opacity: 0.8;
    object-fit: cover;
}

/* コンテンツ配置レイヤー */
.mvv-content-layer {
    position: relative; z-index: 1; width: 100%; height: 100%;
    pointer-events: none;
}

/* 各コンテンツボックス (PCデフォルト) */
.mvv-box {
    position: absolute;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    max-width: 320px;
}
.mvv-box h3 {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 700; line-height: 1.6; color: #fff; margin: 0;
}
.mvv-box .mvv-label {
    display: block; font-family: 'Montserrat'; font-weight: 900;
    font-size: clamp(1rem, 2vw, 1.4rem); 
    margin-bottom: 0.5em; letter-spacing: 0.1em;
    text-shadow: 0 0 15px currentColor;
}

/* --- 配置 (PC) --- */
.box-mission {
    top: 10%; right: 8%; text-align: center; color: var(--mission-c);
}
.box-vision {
    /* ★修正: 50% -> 40% に変更して上に移動 */
    top: 40%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; color: var(--vision-c); width: 100%;
}
.box-value {
    bottom: 8%; left: 6%; color: var(--value-c); max-width: 600px;
}

/* Value Grid (PC) */
.value-grid {
    display: flex; flex-wrap: wrap; gap: 15px; margin-top: 15px;
}
.val-item {
    background: rgba(255, 75, 31, 0.15);
    border: 1px solid var(--value-c);
    padding: 0.6em 1.5em; border-radius: 6px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(255, 75, 31, 0.2);
    display: flex; flex-direction: column;
}
.val-en { font-family: 'Montserrat'; font-weight: 700; font-size: clamp(0.75rem, 1.2vw, 0.9rem); color: #fff; }
.val-jp { font-size: clamp(0.7rem, 1vw, 0.8rem); opacity: 0.8; color: #fff; }


/* --- Responsive Adjustments (820px被り対策) --- */

/* ★991px以下 (タブレット縦) でモバイル用レイアウトへ切り替え */
@media (max-width: 768px) {
    .philosophy-wrapper {
        aspect-ratio: auto;
        height: auto;
        background: none; border: none;
        overflow: visible;
        margin-top: 20px;
    }
    
    .philosophy-svg { display: none; }
    
    .mvv-content-layer {
        position: static; 
        display: flex; flex-direction: column; gap: 20px;
    }
    
    .mvv-box {
        position: static; 
        max-width: 100%; text-align: left; transform: none;
        background: rgba(20,20,20,0.6); 
        border: 1px solid rgba(255,255,255,0.1);
        padding: 30px; border-radius: 16px;
        backdrop-filter: blur(10px);
    }
    
    .box-mission { border-top: 4px solid var(--mission-c); }
    .box-vision { border-top: 4px solid var(--vision-c); }
    .box-value { border-top: 4px solid var(--value-c); }
    
    /* Valueをグリッド表示に */
    .value-grid {
        display: grid; 
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .val-item { width: auto; }
}

@media (max-width: 576px) {
    .value-grid { grid-template-columns: 1fr; }
}


/* --- COMPANY PROFILE Section --- */
.glass-box {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
    padding: clamp(30px, 5vw, 60px);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.profile-list { display: flex; flex-direction: column; gap: 0; margin: 0; }
.profile-row { display: flex; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.profile-row:last-child { border-bottom: none; }
.profile-row dt { width: 30%; font-weight: 700; color: #00c6ff; }
.profile-row dd { width: 70%; margin: 0; opacity: 0.9; line-height: 1.8; }
.service-list { list-style: none; padding: 0; margin: 0; }
.service-list li::before { content: "• "; color: #00c6ff; }


/* --- ACCESS Section --- */
.map-container { width: 100%; height: 400px; border-radius: 10px; overflow: hidden; margin-bottom: 30px; border: 1px solid rgba(255,255,255,0.2); }
.access-info p { margin-bottom: 10px; line-height: 1.8; }


/* --- CTA (Split Layout) --- */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.split-item {
    border-radius: 20px; padding: clamp(40px, 5vw, 60px) 40px; text-align: center;
    backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255,255,255,0.2) !important; transition: 0.3s;
    display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 300px;
    width: 100%; box-sizing: border-box;
}
.recruit-area { background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0, 198, 255, 0.15)) !important; }
.contact-area { background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(255, 75, 31, 0.15)) !important; }
.split-content h2 { font-family: 'Montserrat', sans-serif; font-size: 2.5rem; margin-bottom: 20px; letter-spacing: 0.1em; }
.split-desc { font-size: 1rem; line-height: 1.8; margin-bottom: 30px; opacity: 0.9; }
.cta-btn { display: inline-block; padding: 15px 40px; border-radius: 50px; font-weight: 700; transition: 0.3s; text-decoration: none; }
.recruit-btn { background: #fff; color: #000; }
.contact-btn { background: transparent; border: 2px solid #fff; color: #fff; }

@media (min-width: 769px) {
    .recruit-area:hover { border-color: #00c6ff !important; box-shadow: 0 0 30px rgba(0, 198, 255, 0.2); transform: translateY(-5px); }
    .recruit-btn:hover { background: #00c6ff; color: #fff; }
    .contact-area:hover { border-color: #ff4b1f !important; box-shadow: 0 0 30px rgba(255, 75, 31, 0.2); transform: translateY(-5px); }
    .contact-btn:hover { background: #fff; color: #000; }
}

@media (max-width: 768px) {
    .message-inner { flex-direction: column; gap: 30px; }
    .message-head { flex: auto; max-width: 100%; width: 100%; }
    .message-head h2 { font-size: 2rem; margin-bottom: 10px; }
    
    .profile-row { flex-direction: column; }
    .profile-row dt { width: 100%; margin-bottom: 5px; }
    .profile-row dd { width: 100%; padding-left: 0; }
    .split-layout { grid-template-columns: 1fr; gap: 30px; }
    
    .message-card, .glass-box, .split-item {
        backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
        background: rgba(15, 15, 15, 0.95) !important;
        border: 1px solid rgba(255,255,255,0.15) !important;
    }
}