@charset "UTF-8";

/* Message Page Styles */

/* Representative Section */
.representative-section {
    width: 100%;
    margin-bottom: 120px;
    position: relative;
    padding: 40px 0;
    overflow: visible;
}

/* 外出しのモバイル専用ミッションはデフォルト非表示 */
.representative-mission--mobile {
    display: none;
}

.representative-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.representative-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 120px;
    margin-bottom: 60px;
}

.representative-badge {
    display: inline-block;
    background: linear-gradient(135deg, #03304f 0%, #4a90e2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(3, 48, 79, 0.3);
}

.representative-name {
    font-size: 48px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.5;
    background: linear-gradient(135deg, #1a1a1a 0%, #03304f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.representative-title {
    font-size: 18px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 32px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding-left: 0;
}

.representative-mission {
    position: relative;
    margin: 40px 0;
    padding: 18px 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-left: 5px solid #03304f;
    border-radius: 0 20px 20px 0;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(3, 48, 79, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}


.representative-mission::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(3, 48, 79, 0.02) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.mission-text {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    text-align: left;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 2;
}

.representative-img {
    flex: 0 0 400px;
    position: relative;
}

.img-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    transform: rotate(-2deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-container:hover {
    transform: rotate(0deg) translateY(-10px);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.2);
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.img-container:hover img {
    transform: scale(1.05);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(3, 48, 79, 0.1) 0%, rgba(74, 144, 226, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-container:hover .img-overlay {
    opacity: 1;
}

.representative-message {
    position: relative;
    z-index: 2;
}

.message-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 48px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.message-intro {
    margin-bottom: 32px;
}

.greeting {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0;
}

.message-body {
    line-height: 1.8;
}

.message-text {
    font-size: 16px;
    color: #374151;
    margin-bottom: 24px;
    line-height: 1.8;
}

.message-text strong {
    font-weight: 700;
    color: #03304f;
}

/* Career Section */
.message-career-section {
    margin-bottom: 80px;
    position: relative;
}

.message-career-area {
    margin-top: 32px;
    position: relative;
    padding-left: 40px;
}

.message-career-area::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(107, 114, 128, 0.3), rgba(107, 114, 128, 0.1));
}

.message-career-list {
    position: relative;
    margin-bottom: 24px;
    padding-left: 40px;
}

.message-career-list::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 12px;
    width: 12px;
    height: 12px;
    background: #6b7280;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.2);
}

.message-career-list:last-child {
    margin-bottom: 0;
}

.message-career-number {
    display: inline-block;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.08) 0%, rgba(107, 114, 128, 0.12) 100%);
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    border: 1px solid rgba(107, 114, 128, 0.15);
}

.message-career-content {
    color: #495057;
    line-height: 1.5;
    font-size: 15px;
}

/* Achievements Section */
.message-achievements-section {
    margin-bottom: 80px;
}

.message-achievements-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 32px;
}

.message-achievements-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


.message-achievements-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.message-achievements-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    position: relative;
    padding-left: 16px;
}

.message-achievements-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #03304f 0%, #2563eb 100%);
    border-radius: 2px;
}

.message-achievements-text-area {
    list-style: none;
    padding: 0;
    margin: 0;
}

.message-achievements-text {
    font-size: 15px;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 16px;
    padding-left: 24px;
    position: relative;
    transition: color 0.2s ease;
}

.message-achievements-text::before {
    content: "●";
    color: #2563eb;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 8px;
    top: 8px;
    transition: all 0.2s ease;
}

.message-achievements-text:hover {
    color: #374151;
}

.message-achievements-text:hover::before {
    color: #1d4ed8;
    transform: scale(1.2);
}

/* Vision Section */
.message-vision-section {
    margin-bottom: 80px;
}

.message-vision-area {
    padding: 48px 0;
}

.message-vision-wrapper {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    margin-top: 32px;
}

.message-vision-img {
    flex: 0 0 300px;
}

.message-vision-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.message-vision-text-wrapper {
    flex: 1;
}

.message-vision-mission-area {
    margin-bottom: 32px;
}

.message-vision-mission {
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
    letter-spacing: -0.01em;
    position: relative;
    padding-left: 16px;
}

.message-vision-mission::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 100%;
    background: #03304f;
    border-radius: 2px;
}

.message-vision-text-area {
    line-height: 1.8;
}

.message-vision-text {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Contact Section */
.contact-section {
    margin-bottom: 80px;
}

.message-button-area {
    margin-top: 32px;
    text-align: left;
}

.message-button {
    background: #03304f;
    border: none;
    border-radius: 6px;
    padding: 16px 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(3, 48, 79, 0.25);
}

.message-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3, 48, 79, 0.35);
    background: #022a42;
}

.message-button:focus-visible {
    outline: 3px solid rgba(3, 48, 79, 0.35);
    outline-offset: 3px;
}

.message-button-text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .representative-img {
        flex: auto;
    }
     .img-container {
         transform: rotate(0deg);
     }
    /* タブレット: 代表ヘッダーの間隔 */
    .representative-header {
        gap: 50px;
    }
     
     .img-container:hover {
         transform: translateY(-5px);
     }
     /* Vision: タブレットで縦並び */
     .message-vision-wrapper {
         flex-direction: column;
         gap: 32px;
     }
     .message-vision-img {
         flex: none;
         max-width: 50%;
         margin: 0 auto;
     }
     .message-vision-area {
         padding: 40px 0;
     }
 }

@media (max-width: 768px) {
    /* 代表セクション: スマホで横並び（画像を小さな正方形に） */
    .representative-header {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        text-align: left;
        margin-bottom: 40px;
        flex-wrap: nowrap;
    }
    .representative-info {
        order: 2;
        flex: 1 1 auto;
        min-width: 0; /* フレックス子要素のオーバーフロー抑止 */
    }
    .representative-img {
        order: 1;
        flex: 0 0 120px; /* 画像側を固定幅にして押し広げない */
        width: auto;
        margin: 0;
    }
    .representative-section {
        margin-bottom: 80px;
        padding: 60px 0;
    }
    
    .representative-container {
        padding: 0 20px;
    }
    
    .representative-img {
        max-width: none;
    }
    
    .img-container {
        width: 120px;
        height: 120px;
    }
    .representative-name,
    .representative-title {
        overflow-wrap: anywhere; /* 長い文字列でのはみ出し防止 */
        word-break: break-word;
    }
    
    .representative-name {
        font-size: 36px;
    }
    
    .representative-title {
        font-size: 16px;
    }
    
    .representative-mission {
        padding: 28px 32px;
    }
    
    .mission-text {
        font-size: 16px;
    }
    
    .message-content {
        padding: 32px 24px;
    }
    
    .greeting {
        font-size: 20px;
    }
    
    .message-text {
        font-size: 15px;
    }
    
    .message-career-area {
        padding-left: 30px;
    }
    
    .message-career-area::before {
        left: 11px;
    }
    
    .message-career-list {
        padding-left: 30px;
    }
    
    .message-career-list::before {
        left: -23px;
        top: 10px;
        width: 10px;
        height: 10px;
        background: #6b7280;
        border: 2px solid #ffffff;
    }
    
    .message-career-number {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .message-career-content {
        font-size: 14px;
    }
    
    .message-achievements-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .message-vision-wrapper {
        flex-direction: column;
        gap: 32px;
    }
    
    .message-vision-img {
        flex: none;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .message-vision-area {
        padding: 32px 0;
    }
    
    .achievements-content {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .representative-section {
        padding: 40px 0;
    }
    
    .representative-container {
        padding: 0;
    }
    
    .representative-header {
        gap: 5%;
        margin-bottom: 30px;
        justify-content: flex-start;
    }

    .img-container {
        height: 80px;
        width: 80px;
    }
    
    .representative-title {
        font-size: 14px;
    }
    
    .representative-name {
        font-size: 28px;
    }
    
    .representative-mission {
        padding: 24px 28px;
    }
    
    .mission-text {
        font-size: 15px;
    }
    
    .message-content {
        padding: 24px 20px;
    }
    
    .greeting {
        font-size: 18px;
    }
    
    .message-text {
        font-size: 14px;
    }
    
    
    .message-vision-mission {
        font-size: 20px;
    }
    
    .message-vision-area {
        padding: 24px 0;
    }
    
    .achievements-content {
        padding: 20px;
    }
    
    .message-career-area {
        padding-left: 24px;
    }
    
    .message-career-area::before {
        left: 9px;
        width: 1px;
    }
    
    .message-career-list {
        padding-left: 24px;
        margin-bottom: 20px;
    }
    
    .message-career-list::before {
        left: -18px;
        top: 8px;
        width: 8px;
        height: 8px;
        background: #6b7280;
        border: 2px solid #ffffff;
    }
    
    .message-career-number {
        font-size: 11px;
        padding: 4px 8px;
        margin-bottom: 6px;
    }
    
    .message-career-content {
        font-size: 13px;
        line-height: 1.4;
    }

    /* 480以下: 代表情報内のミッションを非表示、外出し版を表示 */
    .representative-info .representative-mission {
        display: none;
    }
    .representative-mission--mobile {
        display: block;
        margin-top: 16px;
    }
}

/* 動きが苦手なユーザー向け配慮 */
@media (prefers-reduced-motion: reduce) {
    .achievements-content,
    .message-button,
    .representative-title,
    .section-title-h2,
    .section-title-h3,
    .representative-img img,
    .representative-img::before,
    .representative-img::after {
        transition: none !important;
    }
    .message-button:hover,
    .achievements-content:hover,
    .representative-img:hover img,
    .representative-img:hover::before,
    .representative-img:hover::after {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* 強制適用: テクノフィア代表（代表肩書）のフォント指定 */
.representative-section .representative-title {
    font-family: "Noto Sans JP", serif !important;
    font-weight: 500 !important;
    font-size: 16px !important; /* ブレークポイントで上書きされないように */
    color: #64748b !important;
    line-height: 1.4 !important;
}

/* 強制適用: 名前下の余白を調整 */
.representative-section .representative-name {
    margin-bottom: 8px !important;
}
