/* 社員詳細ページカスタマイザー フロントエンドCSS */

/* 基本レイアウト */
.edc-employee-detail {
    max-width: 1200px;
    margin: 0 auto;
}

/* デフォルトで2列レイアウト */
.edc-employee-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* 各フィールドアイテム */
.edc-field-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.edc-field-item:hover {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* フィールドアイコン */
.edc-field-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edc-field-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* フィールドコンテンツ */
.edc-field-content {
    flex: 1;
}

.edc-field-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.edc-field-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* パーツ共通スタイル */
.edc-part {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.edc-part-title {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
}

/* 情報リスト */
.edc-info-list {
    margin: 0;
}

.edc-info-list dt {
    float: left;
    clear: left;
    width: 120px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #666;
}

.edc-info-list dd {
    margin-left: 140px;
    margin-bottom: 10px;
    color: #333;
}

.edc-info-list dd a {
    color: #0073aa;
    text-decoration: none;
}

.edc-info-list dd a:hover {
    text-decoration: underline;
}

/* アイコンスタイル */
.edc-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    font-size: 40px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 50%;
}

.edc-icon-custom {
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
}

.edc-icon-custom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* レイアウトパターン：2カラム */
.edc-employee-detail.layout-two-column {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.edc-employee-detail.layout-two-column .edc-profile-image {
    grid-column: 1;
}

.edc-employee-detail.layout-two-column .edc-part:not(.edc-profile-image) {
    grid-column: 2;
}

/* レイアウトパターン：カード型 */
.edc-employee-detail.layout-card .edc-part {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.edc-employee-detail.layout-card .edc-part:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* レイアウトパターン：タブ型 */
.edc-employee-detail.layout-tabs {
    position: relative;
}

.edc-tabs-nav {
    display: flex;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
    border-bottom: 2px solid #ddd;
}

.edc-tabs-nav li {
    margin-right: 5px;
}

.edc-tabs-nav a {
    display: block;
    padding: 10px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.edc-tabs-nav a:hover {
    background: #fff;
}

.edc-tabs-nav .active a {
    background: #fff;
    border-bottom: 1px solid #fff;
    position: relative;
    z-index: 1;
}

.edc-tabs-content {
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
}

.edc-tab-pane {
    display: none;
}

.edc-tab-pane.active {
    display: block;
}

/* プロフィール画像 */
.edc-profile-image {
    text-align: center;
}

.edc-profile-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* パターン情報 */
.edc-patterns .edc-info-list dd {
    display: inline-block;
    padding: 3px 10px;
    margin-right: 5px;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 0.9em;
}

/* カスタムフィールド */
.edc-custom-fields .edc-info-list dt {
    width: 150px;
}

.edc-custom-fields .edc-info-list dd {
    margin-left: 170px;
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
    .edc-employee-detail.layout-two-column {
        grid-template-columns: 1fr;
    }
    
    .edc-employee-detail.layout-two-column .edc-part {
        grid-column: 1;
    }
    
    .edc-info-list dt {
        float: none;
        width: auto;
        margin-bottom: 5px;
    }
    
    .edc-info-list dd {
        margin-left: 0;
        margin-bottom: 15px;
    }
    
    .edc-tabs-nav {
        flex-wrap: wrap;
    }
    
    .edc-tabs-nav li {
        flex: 1 0 50%;
        margin-right: 0;
    }
    
    .edc-tabs-nav a {
        text-align: center;
    }
}

/* プリント用スタイル */
@media print {
    .edc-part {
        page-break-inside: avoid;
        border: 1px solid #000;
    }
    
    .edc-employee-detail.layout-two-column {
        display: block;
    }
    
    .edc-tabs-nav {
        display: none;
    }
    
    .edc-tab-pane {
        display: block !important;
        page-break-before: auto;
    }
}

/* アニメーション */
.edc-part {
    animation: fadeIn 0.5s ease-in;
}

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

/* プレビューモード */
.edc-preview .edc-part {
    position: relative;
}

.edc-preview .edc-part::before {
    content: "プレビュー";
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 8px;
    background: #ff9800;
    color: #fff;
    font-size: 11px;
    border-radius: 3px;
}