/**
 * 代表挨拶ページのスタイル
 */

.greeting-page {
    padding: 2rem 0;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.entry-header {
    text-align: center;
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    word-wrap: break-word; /* 長いタイトルが折り返されるようにする */
}

.entry-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.greeting-image {
    text-align: center;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.representative-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.representative-info {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: rgba(var(--accent-color-rgb), 0.2);
    border-radius: 8px;
}

.representative-name {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    word-wrap: break-word; /* 長い名前が折り返されるようにする */
}

.representative-position {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.greeting-message {
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.greeting-message p {
    margin-bottom: 1.5rem;
}

/* 追加画像のスタイル */
.representative-additional-image {
    margin: 2rem 0;
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.additional-image {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.representative-additional-image:hover .additional-image {
    transform: scale(1.02);
}

.representative-profile,
.representative-vision {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    word-wrap: break-word; /* テキストが折り返されるようにする */
}

.representative-profile h3,
.representative-vision h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.profile-content,
.vision-content {
    line-height: 1.7;
}

.representative-message-footer {
    text-align: right;
    margin-top: 3rem;
}

.signature {
    font-size: 1.2rem;
    font-weight: 600;
    font-style: italic;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .greeting-page {
        padding: 1rem;
        width: 100%;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .representative-name {
        font-size: 1.5rem;
    }
    
    .representative-position {
        font-size: 1rem;
    }
    
    .greeting-message {
        font-size: 1rem;
    }
    
    .representative-profile,
    .representative-vision {
        padding: 1rem;
    }
    
    .representative-profile h3,
    .representative-vision h3 {
        font-size: 1.3rem;
    }
    
    .signature {
        font-size: 1.1rem;
    }
}

/* 小さいモバイル画面用 */
@media (max-width: 480px) {
    .greeting-page {
        padding: 0.8rem;
    }
    
    .entry-title {
        font-size: 1.8rem;
    }
    
    .representative-name {
        font-size: 1.3rem;
    }
    
    .representative-position {
        font-size: 0.9rem;
    }
    
    .greeting-message {
        font-size: 0.95rem;
    }
    
    .representative-profile h3,
    .representative-vision h3 {
        font-size: 1.2rem;
    }
} 