/* ==================== 共通h2スタイル統一 ==================== */

/* 統一されたセクションタイトル */
.section-title {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.title-en {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #999;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.title-ja {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    letter-spacing: 1px;
    position: relative;
    margin: 0;
}

.title-ja::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, #42A5F5 100%);
    border-radius: 2px;
}

/* セクションヘッダー統一 */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header.center {
    text-align: center;
}

/* 左寄せバリエーション */
.section-header:not(.center) {
    text-align: left;
}

.section-header:not(.center) .section-title {
    align-items: flex-start;
    text-align: left;
}

.section-header:not(.center) .title-ja::after {
    left: 0;
    transform: none;
}

/* ==================== 代表挨拶セクション - Companyページと同一デザイン ==================== */

/* セクション基本設定 */
.message {
    padding: 120px 0;
    background-color: #f8f9fa;
}

/* セクションヘッダーは統一スタイルを使用 */

/* メインコンテンツ */
.message-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* 画像エリア */
.message-image {
    position: sticky;
    top: 100px;
}

.image-frame {
    position: relative;
    padding: 20px;
}

.frame-line {
    position: absolute;
    background-color: var(--primary);
}

.frame-line.top,
.frame-line.bottom {
    height: 2px;
    width: 0;
    animation: lineExpand 1s ease forwards;
}

.frame-line.top {
    top: 0;
    left: 0;
}

.frame-line.bottom {
    bottom: 0;
    right: 0;
}

.frame-line.left,
.frame-line.right {
    width: 2px;
    height: 0;
    animation: lineExpandVertical 1s ease 0.5s forwards;
}

.frame-line.left {
    left: 0;
    top: 0;
}

.frame-line.right {
    right: 0;
    bottom: 0;
}

@keyframes lineExpand {
    to { width: 100%; }
}

@keyframes lineExpandVertical {
    to { height: 100%; }
}

.ceo-image {
    width: 100%;
    height: auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.ceo-info {
    text-align: center;
    margin-top: 30px;
}

.ceo-position {
    font-size: 14px;
    color: #666;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.ceo-name {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    letter-spacing: 4px;
    margin: 0;
}

/* テキストエリア */
.message-text {
    padding-top: 20px;
}

.message-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.6;
}

.message-body p {
    font-size: 16px;
    line-height: 2;
    color: #666;
    margin-bottom: 30px;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .message-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .message-image {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* 共通レスポンシブデザイン */
@media (max-width: 768px) {
    .title-ja {
        font-size: 28px;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .message {
        padding: 80px 0;
    }
    
    .message-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .title-ja {
        font-size: 24px;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .message {
        padding: 60px 0;
    }
    
    .message-title {
        font-size: 22px;
    }
    
    .message-body p {
        font-size: 15px;
        line-height: 1.8;
    }
}