/* Google Fonts: Zen Maru Gothic */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@300;400;500;700&display=swap');

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

h1 {
    font-family: 'Zen Maru Gothic', sans-serif;
}

.greeting-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideInUp 1.2s ease-out 0.3s both;
    background: transparent !important;
}

.greeting-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff69b4, #ff1493, #ff69b4);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-container {
    flex: 0 0 300px;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 2rem; /* 上部に余白を追加 */
    display: flex; /* flexboxを有効化 */
    flex-direction: column; /* 縦方向に配置 */
    align-items: center; /* 水平方向の中央揃え */
    justify-content: center; /* 垂直方向の中央揃え */
}

.profile-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* ホバー効果を無効化 */
.profile-container:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.image-container {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem; /* 下部に余白を追加 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 105, 180, 0.2), rgba(255, 20, 147, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* 画像コンテナのホバー効果を無効化 */
.image-container:hover::before {
    opacity: 0;
}

.image-container:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

/* 画像のホバー効果を無効化 */
.image-container:hover img {
    transform: none;
}

.profile-info {
    text-align: center;
    width: 100%;
    font-size: 1.3rem;
    color: #333333;
    font-family: 'Zen Maru Gothic', sans-serif;
    animation: fadeIn 1s ease-out 0.8s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.company {
    margin-bottom: 1rem;
    font-weight: bold;
    color: #ff69b4;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.company::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #ff69b4, #ff1493);
    border-radius: 1px;
}

.position {
    margin-bottom: 0.8rem;
    color: #666;
    font-size: 1.2rem;
    font-weight: 500;
}

.name {
    font-weight: bold;
    color: #666;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vertical-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.greeting-text {
    flex: 1;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideInRight 1.2s ease-out 0.6s both;
}

.greeting-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.greeting-text h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1.5rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    text-align: center;
}

.greeting-text h2::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-5px); }
    60% { transform: translateX(-50%) translateY(-3px); }
}

.greeting-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    border-radius: 2px;
}

.greeting-text p {
    color: #34495e;
    line-height: 2;
    margin-bottom: 2rem;
    font-size: 1.15rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    text-align: justify;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid rgba(231, 76, 60, 0.3);
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.05), transparent);
    padding: 1rem 1rem 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.greeting-text p:hover {
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.1), transparent);
    transform: translateX(5px);
}

.greeting-text p:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .greeting-container {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        margin: 2rem auto;
        padding: 2rem 1.5rem;
    }
    
    .profile-container {
        flex: 0 0 auto;
        width: 100%;
        max-width: 350px;
    }
    
    .image-container {
        width: 250px;
        height: 250px;
    }
    
    .greeting-text {
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .greeting-text h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .greeting-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .greeting-text p {
        text-align: left;
        font-size: 1.1rem;
        padding: 0.8rem 0.8rem 0.8rem 1.2rem;
    }
    
    .company-photo-section {
        margin: 80px auto 0;
        padding: 0 1rem;
        max-width: 600px; /* フレキシブル対応時に横幅を小さく */
    }
    
    .company-photo {
        border-radius: 10px;
        max-width: 600px; /* フレキシブル対応時に画像の横幅を小さく */
    }
}

/* フレキシブル対応時の細かい調整 (1024px以下) */
@media screen and (max-width: 1024px) {
    .company-photo-section {
        max-width: 700px; /* フレキシブル対応時に横幅を小さく */
        margin: 90px auto 0;
        padding: 0 1.5rem;
    }
    
    .company-photo {
        max-width: 700px; /* フレキシブル対応時に画像の横幅を小さく */
    }
}

/* 大画面フレキシブル対応 (1200px以下) */
@media screen and (max-width: 1200px) {
    .company-photo-section {
        max-width: 750px; /* 大画面フレキシブル対応時に横幅を小さく */
        margin: 95px auto 0;
        padding: 0 1.8rem;
    }
    
    .company-photo {
        max-width: 750px; /* 大画面フレキシブル対応時に画像の横幅を小さく */
    }
}

/* 中画面フレキシブル対応 (900px以下) */
@media screen and (max-width: 900px) {
    .company-photo-section {
        max-width: 650px; /* 中画面フレキシブル対応時に横幅を小さく */
        margin: 85px auto 0;
        padding: 0 1.3rem;
    }
    
    .company-photo {
        max-width: 650px; /* 中画面フレキシブル対応時に画像の横幅を小さく */
    }
}

@media screen and (max-width: 480px) {
    .greeting-container {
        padding: 1.5rem 1rem;
        gap: 2rem;
    }
    
    .profile-container {
        padding: 1.5rem;
    }
    
    .image-container {
        width: 200px;
        height: 200px;
    }
    
    .greeting-text {
        padding: 1.5rem 1rem;
    }
    
    .greeting-text h2 {
        font-size: 1.6rem;
    }
    
    .greeting-text p {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .profile-info {
        font-size: 1.1rem;
    }
    
    .company {
        font-size: 1.2rem;
    }
    
    .name {
        font-size: 1.3rem;
    }
    
    .company-photo-section {
        margin: 70px auto 0;
        padding: 0 0.8rem;
        max-width: 300px; /* スマホ対応時に横幅をさらに小さく */
    }
    
    .company-photo {
        max-width: 300px; /* スマホ対応時に画像の横幅をさらに小さく */
        border-radius: 8px;
    }
} 