/* --- korason_service.css (統合・完全版) --- */

/* 1. サブヒーローヘッダー (Page Header) 
--------------------------------------------------------- */
.page-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* パララックス効果 */
    padding: 260px 0 100px; 
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 左寄せ */
    text-align: left;           /* 左寄せ */
    color: #fff;
}

/* 文字の視認性を高めるためのオーバーレイ（薄い黒幕） */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: -1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-left: 5%; /* 左側の余白バランス */
}

/* パンくずリスト */
.breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ページタイトル */
.page-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* 赤いタグ（ラベルデザイン復元版） */
.page-sub-wrap {
    display: flex;
    justify-content: flex-start;
}

.page-sub-label {
    display: inline-block;
    background-color: #ff5e5e;     /* 鮮やかな赤色 */
    color: #ffffff;                
    padding: 8px 24px;             
    border-radius: 6px;            
    font-weight: bold;             
    font-size: 0.95rem;            
    letter-spacing: 0.05em;        
    box-shadow: 0 4px 15px rgba(255, 94, 94, 0.3);
}

/* 2. サービス詳細エリア (Flexレイアウト) 
--------------------------------------------------------- */
.service-detail-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.service-detail-text { flex: 1; }
.service-detail-text h2 {
    font-size: 2.2rem;
    line-height: 1.4;
    margin-bottom: 30px;
    color: #333;
}
.service-detail-text p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

.service-detail-image { flex: 1; }
.service-detail-image img { 
    width: 100%; 
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* 3. プログラムセクション (カードデザイン) 
--------------------------------------------------------- */
.program-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 100px;
}

.program-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #eee;
}

.card-header {
    background: #ff5e5e; /* デフォルトは赤(Jr) */
    color: #fff;
    padding: 18px 25px;
    font-weight: bold;
}

/* スマイルくらぶ・青春学級用のテーマカラー設定 */
.card-header.sc-orange,
.card-header.sg-yellow {
    background: #ffb800; /* オレンジ・黄色 */
}

/* カード内テキストエリア (開所日・コースなど) */
.card-content { padding: 25px; }

/* 活動の流れ (スケジュールリスト) */
.schedule-list {
    list-style: none;
    padding: 25px;
}
.schedule-list li {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}
.schedule-list li:last-child { border-bottom: none; }

.schedule-list li span {
    font-weight: bold;
    color: #ff5e5e; /* デフォルト赤 */
    width: 100px;
    flex-shrink: 0;
}

/* スマイルくらぶ/青春学級用の時間色設定 */
.card-header.sc-orange + .schedule-list li span,
.card-header.sg-yellow + .schedule-list li span,
.schedule-list.sc-time li span {
    color: #ffb800; /* オレンジ・黄色 */
}

/* --- 【追加】主なプログラム、年間行事エリア (.program-content) の余白を追加 --- */
.program-content {
    padding: 25px; /* カード全体の内部余白（上左）。これでどん詰まりを解消。 */
}

/* 見出し (h4) の共通スタイルと Jrの赤設定 */
.program-content h4 {
    font-size: 1.1rem;
    margin: 20px 0 10px; /* 見出しの上の余白 */
    color: #333;
    border-left: 3px solid #ff5e5e; /* デフォルトは赤(Jr) */
    padding-left: 10px;
}

/* 本文テキスト (p) の共通スタイル */
.program-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

/* スマイルくらぶ/青春学級用の見出しの縦線 (border-left) 色 */
.card-header.sc-orange + .program-content h4,
.card-header.sg-yellow + .program-content h4 {
    border-left-color: #ffb800; /* くらぶ・青春用のオレンジ・黄色 */
}

/* 開所時間リスト */
.time-list {
    list-style: none;
    padding: 0;
}
.time-list li {
    margin-bottom: 10px;
    color: #666;
}
.time-list li strong {
    color: #ffb800;
    margin-right: 10px;
}

/* 4. ご利用案内テーブル 
--------------------------------------------------------- */
.info-table-wrap { margin-top: 100px; }
.info-table-wrap h2 { margin-bottom: 40px; }

.info-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
}
.info-table th, .info-table td {
    padding: 25px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.info-table th {
    width: 250px;
    background-color: #f9fbff;
    font-weight: bold;
    color: #333;
}

.system-note {
    background: #fff9f9;
    padding: 20px;
    border-radius: 10px;
    margin: 0 auto 30px;
    max-width: 900px;
    font-size: 0.9rem;
    color: #666;
    border: 1px solid #ffecec;
}

/* 5. レスポンシブ対応 
--------------------------------------------------------- */
@media (max-width: 1024px) {
    .service-detail-flex { flex-direction: column; gap: 40px; }
}

@media (max-width: 768px) {
    .page-header { padding: 180px 0 60px; background-attachment: scroll; }
    .page-header .container { padding-left: 20px; }
    .page-title { font-size: 2.2rem; }
    .program-section { grid-template-columns: 1fr; }
    .info-table th, .info-table td { display: block; width: 100%; }
    .info-table th { padding-bottom: 5px; background: #fff; border-bottom: none; }
}