/*
Theme Name: SUKYAKI塾東京テーマ
Theme URI: 
Template: astra
Description: single-seminar.php用の子テーマCSS
Author: 
Tags: 
Version: 0.6.1
*/

/*
ページ全体のコンテナ 
*/
.site-body-container.container {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}
.site-body-container .row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.seminar-single-container {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 40px;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 
講座タイトル表示エリア 
*/
.seminar-header {
    margin-bottom: 30px;
}
.seminar-badges-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.k-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    color: #fff;
}
.k-badge.type1 { background-color: #26a69a; }
.k-badge.type2 { background-color: #ab47bc; }
.k-badge.type3 { background-color: #ffa726; }

.seminar-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    width: 100%;
}
.seminar-single-title {
    font-size: 2em;
    line-height: 1.3;
    color: #222;
    margin: 0;
}
.instructor-attendance-badges {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}
.attendance-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
    line-height: 1.2;
}

.attendance-badge.attend { background-color: #28a745; }
.attendance-badge.absent { background-color: #6b7280; }

.btn-edit-attendance {
    margin-left: auto;
    background-color: #2563eb;
    color: #fff !important;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-edit-attendance:hover {
    background-color: #1d4ed8;
}

/*
講座概要表示エリア
*/
.seminar-summary-card {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-left: 6px solid #0073aa;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.seminar-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.summary-item {
    display: flex;
    flex-direction: column;
}
.summary-label {
    font-size: 0.85em;
    color: #6c757d;
    font-weight: bold;
    margin-bottom: 4px;
}
.summary-value {
    font-size: 1.1em;
    color: #212529;
    font-weight: 600;
}

/*
  講師向けコンテンツエリア 
*/
.instructor-container {
    background: #fff8f0;
    border: 2px solid #ffe8cc;
    border-left: 6px solid #d97706;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.instructor-title {
    font-size: 1.4em;
    color: #92400e;
    margin: 0 0 15px 0;
    border-bottom: 2px dashed #fcd34d;
    padding-bottom: 8px;
}
.instructor-content {
    line-height: 1.8;
    color: #451a03;
    font-size: 1.05em;
}

/* 
受講生向けコンテンツエリア 
*/
.seminar-member-content {
    line-height: 1.8;
    color: #333;
    font-size: 1.05em;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-left: 6px solid #00aa28;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.seminar-member-content h2 {
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
    color: #0073aa;
    margin-top: 40px;
}
/* 概要表示アコーディオン */
.seminar-accordion-container {
    position: relative !important;
    transition: max-height 0.4s ease;
}
.seminar-accordion-container.is-collapsed {
    max-height: 120px;
    overflow: hidden;
}
.seminar-accordion-container.is-collapsed .seminar-accordion-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    box-sizing: border-box;
}
.seminar-accordion-container:not(.is-collapsed) .seminar-accordion-overlay {
    position: static; /* positionリセットを追加 */
    max-height: none !important; /* 枠高さを自動で無制限に伸長させる */
    height: auto;
    margin-top: 16px;
    text-align: center;
    background: none;
}
.js-seminar-toggle-btn {
    background-color: #0284c7;
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
.js-seminar-toggle-btn:hover {
    background-color: #0369a1;
}
/*カード表示共通*/
.content-file-list {
    display: grid;
    //grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-template-columns: repeat(auto-fit, 330px);
    gap: 30px;
    width: 100%;
}
/*テキスト・ビデオ表示エリア*/
.seminar-text-content {
    line-height: 1.8;
    color: #333;
    font-size: 1.05em;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-left: 6px solid #a2aa00;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.seminar-text-content h3 {
    margin-bottom: 10px;
    color: #0073aa;
}
/* カード共通 */
.file-card {
    width: 100%;
    min-height:250px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}
/* ファイルなし */
.file-card.is-pending {
    border-color: #fbd5a5;
    background-color: #fffcf8;
}
/* ファイルあり */
.file-card.is-submitted {
    border: 1px solid #bbf7d0;
    background-color: #f0fdf4;
    transition: all 0.2s ease-in-out;   
}
.file-card.is-submitted:hover {
    border-color: #86efac; 
    background-color: #dcfce7;
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.12); 
    cursor: pointer; 
}

/* カード内表示 */
.file-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.file-type-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #111827;
}
.file-card p{
    font-size: 0.8em;
    margin-bottom: 0px;
    align-items: center;
}
/* 受講生提出資料　表示エリア */
.seminar-submission-content {
    line-height: 1.8;
    color: #333;
    font-size: 1.05em;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-left: 6px solid #7400aa;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.seminar-submission-content h3 {
    margin-bottom: 10px;
    color: #0073aa;
}
.seminar-submission-content h4 {
    font-size: 0.85rem; 
    font-weight: normal;
    text-align: center;
    margin-top: 10px;
}
/* 部門切り替えラジオボタンエリア*/
.bumon-selector-group {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #efefef;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    margin-bottom: 10px;
}

.bumon-selector-label {
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap; /* テキストの途中で折り返さない */
}

.bumon-radio-label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap; /* テキストの途中で折り返さない */
}

/*データベース更新表示*/
.bumon-update-status {
    font-size: 0.85rem; 
    color: #666;
}
/* ステータスバッジ */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}
.badge-pending {
    background-color: #fef3c7;
    color: #92400e;
}
.badge-submitted {
    background-color: #dcfce7;
    color: #166534;
}

/* サムネイル表示 */
.file-card-thumb {
    text-align: center;
}
.file-card-thumb a img:hover {
    opacity: 0.8; /* マウスを乗せたときに少し透明にして「押せる感」を出す */
    transform: scale(1.02); /* わずかに拡大 */
    transition: all 0.2s ease;
}
.paper-subfields-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.7);
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    margin-bottom: 12px;
}

.subfield-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}
.no-file-text {
    color: #9ca3af;
    font-size: 0.85rem;
}
/* 入力欄・単位・ボタンを横一列にキレイに揃える */
.score-input-group {
    display: flex;
    align-items: center; /* 縦方向の中央揃え */
    gap: 10px;           /* 要素同士の余白 */
}
/* 数字入力インプットの幅を制限 */
.score-input-field {
    width: 80px !important;    /* 2桁〜3桁にちょうど良い幅 */
    height: 40px;              /* 高さの一致 */
    padding: 0 10px;
    text-align: right;         /* 数字を右寄せ */
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}
/* 「点 / 40点」テキストの整形 */
.score-unit {
    font-size: 14px;
    color: #555;
    white-space: nowrap;      /* 改行を防止 */
}

/* 4. お申し込みCVエリア */
.seminar-cta-box {
    background: #f0f7ff;
    border: 1px solid #bce0fd;
    border-radius: 12px;
    padding: 35px 20px;
    text-align: center;
    margin-top: 50px;
}
.seminar-cta-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1e429f;
}
.seminar-cta-desc {
    color: #4b5563;
    font-size: 0.95em;
    margin-bottom: 20px;
}

/* ボタン各種 */
.btn-upload {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: bold;
    text-decoration: none !important;
    transition: background-color 0.2s;
    cursor: pointer;
    background-color: #007BFF;
    color: #ffffff;
    border: 1px solid #d1d5db;
}
.btn-upload:hover { 
    background-color: #f3f4f6;     
}

.btn-applied {
    background-color: #6c757d !important;
    box-shadow: none !important;
    cursor: not-allowed;
}
.btn-waiting {
    background-color: #fd7e14 !important;
    box-shadow: none !important;
    cursor: not-allowed;
}
.btn-apply.btn-disabled {
    background-color: #ccc !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
}
/* 未ログイン：ボタン群 */
.guest-btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-auth {
    cursor: pointer; 
    font-size: 0.85rem; 
    padding: 6px 12px;
}
.btn-auth:hover { opacity: 0.85; }
.btn-login { background-color: #3174ad; color: #fff !important; }
.btn-register { background-color: #38a3b5; color: #fff !important; }
/* 戻るボタン */
.back-to-top {
    margin-top: 40px;
    text-align: left;
}
.back-to-top a {
    color: #666;
    text-decoration: underline;
    font-size: 0.9em;
}

/* メディアクエリ */
@media screen and (max-width: 600px) {
    .seminar-summary-grid { grid-template-columns: 1fr; }
    .seminar-single-title { font-size: 1.5em; }
    .btn-upload { max-width: 100%; }
}


/* -------以下未確認------*/
   
    
    /* モーダル共通スタイル */
    .inst-modal-form-group {
        margin: 20px 0;
        text-align: left;
    }
    .inst-modal-form-group label {
        display: block;
        font-weight: bold;
        margin-bottom: 8px;
        color: #333;
    }
    .inst-radio-options {
        display: flex;
        gap: 20px;
    }
    .inst-radio-options label {
        font-weight: normal;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    

    /* モーダル表示用 */
    .apply-modal-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 9999;
        display: flex; justify-content: center; align-items: center;
    }
    .apply-modal-content {
        background: #fff; padding: 30px; border-radius: 12px;
        max-width: 450px; width: 90%; margin: auto; position: relative;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }
    .close-modal {
        position: absolute; right: 15px; top: 10px; font-size: 28px; cursor: pointer; color: #888;
    }

    
    

    /* タイトルグループの横並び配置 */
    .submission-title-group {
        display: flex;
        align-items: baseline; /* 文字のベースライン（足元）を揃える */
        flex-wrap: wrap;       /* 画面が狭いときは自然に折り返す */
        gap: 8px;
    }

    .submission-title-group h3 {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin: 0;
        font-size: 1.25rem;
    }

    /* 更新日時のスタイル */
    .doc-last-updated {
        font-size: 0.85rem;
        color: #888;
        font-weight: normal;
    }


    

    
    /* カードボディ */
    .upload-guide-text {
        font-size: 0.9rem;
        color: #6b7280;
        margin: 0 0 14px 0;
    }

    /* 提出済みファイル表示ボックス */
    .file-info-box {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #ffffff;
        border: 1px solid #d1d5db;
        padding: 8px 12px;
        border-radius: 6px;
        margin-bottom: 14px;
    }

    .file-name {
        font-size: 0.95rem;
        color: #374151;
        font-weight: 600;
        word-break: break-all;
    }

    /* ボタン群 */
   


    /* 各問題のファイル一覧 */
    .subfield-label {
        font-weight: bold;
        color: #4b5563;
        min-width: 120px;
    }

  /*講座資料
    /* oEmbed動画のアスペクト比固定（16:9） */
    .video-embed-container iframe,
    .video-embed-container object,
    .video-embed-container embed {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
    }
   /* 総監の点数入力ボックス */
    /* 点数入力エリア全体のレイアウト調整 */
    .score-input-box {
        margin-top: 15px;
        padding-top: 12px;
        border-top: 1px dashed #e0e0e0; /* 区切り線 */
    }

    .score-input-box label {
        display: block;
        font-weight: bold;
        font-size: 14px;
        margin-bottom: 8px;
        color: #333;
    }




 

    
    /* 保存ボタンの形状と配置のバランス調整 */
    .btn-save-score {
        height: 40px;             /* 入力欄と高さを揃える */
        padding: 0 18px;
        background-color: #4a5568; /* ダークグレー系（既存のデザインに合わせた色調整可） */
        color: #ffffff;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        white-space: nowrap;      /* 「保存」が縦書きになるのを防ぐ */
        transition: background-color 0.2s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-save-score:hover {
        background-color: #2d3748;
    }
    .soukan-paper-title {
        display: block;
        font-weight: bold;
        font-size: 14px;
        margin-bottom: 8px;
        color: #333;
    }