/*
Theme Name: syogaifes Child
Theme URI: https://example.com/
Description: Arkhe（アルケー）の子テーマです。カスタマイズ用に作成しました。
Author: STUDIO Tachimachi
Author URI: 
Template: arkhe
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: syogaifes-child
*/

/* ===================================
   ここから下に独自のCSSを追加できます
   =================================== */


/* --- ベーススタイル --- */
.single-ex-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #444;
    line-height: 1.6;
    box-sizing: border-box;
}

/* ヘッダーエリア */
.ex-header {
    margin-bottom: 30px;
    border-bottom: 3px solid #eee;
    padding-bottom: 20px;
}

.ex-cat-label {
    display: inline-block;
    background-color: #ff9800; /* カテゴリー色 */
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    vertical-align: middle;
}

.ex-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.ex-group-name {
    font-size: 1rem;
    color: #666;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ex-group-name::before {
    content: "👤"; /* アイコン */
    font-size: 1.1em;
}

/* メインビジュアル */
.ex-main-visual {
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.ex-main-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* コンテンツエリア（2カラム） */
.ex-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 左メイン、右サイド */
    gap: 40px;
    margin-bottom: 60px;
}

/* 左カラム：詳細 */
.ex-body h3 {
    font-size: 1.4rem;
    color: #558b2f;
    border-bottom: 2px solid #a8d08d;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.ex-description {
    margin-bottom: 30px;
    font-size: 1rem;
}

/* ギャラリー */
.ex-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}
.ex-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: transform 0.2s;
}
.ex-gallery img:hover {
    transform: scale(1.05);
}

/* 右カラム：基本情報テーブル */
.ex-info-card {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    position: sticky;
    top: 20px; /* スクロール追従 */
}

.ex-info-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}

.ex-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ex-info-item {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.ex-info-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    font-weight: bold;
    margin-bottom: 4px;
}

.ex-info-value {
    font-weight: bold;
    color: #333;
}

.btn-official {
    display: block;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: opacity 0.2s;
}
.btn-official:hover { opacity: 0.8; }

/* のん太コメントエリア */
.ex-nonta-comment {
    background-color: #fff3e0;
    border: 2px dashed #ffb74d;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.nonta-face {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}
.nonta-face img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #ff9800;
    background: #fff;
}

.nonta-text {
    font-size: 0.95rem;
    color: #5d4037;
    position: relative;
}
.nonta-name {
    font-weight: bold;
    color: #ef6c00;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* 戻るボタン */
.back-btn-area {
    text-align: center;
    margin-top: 40px;
}
.btn-back {
    display: inline-block;
    border: 2px solid #aaa;
    color: #666;
    padding: 10px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s;
}
.btn-back:hover {
    background-color: #eee;
    color: #333;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .ex-content-grid {
        grid-template-columns: 1fr; /* 1カラムに */
        gap: 30px;
    }
    .ex-info-card {
        position: static; /* 追従解除 */
        order: -1; /* スマホでは情報を上に持ってくる */
        margin-bottom: 30px;
    }
    .ex-title { font-size: 1.5rem; }
    .ex-main-visual { margin-bottom: 20px; }
}