/* ============================================================
   topics.css
   - 共通スタイル（mobile/ipad/pc.css）の後に読み込み、装飾を補完
   - bodyへのtext-align: justifyを適用
   ============================================================ */

/* 1. 全体設定：既存のbodyスタイルを継承しつつ両端揃えを強制 */
body {
    text-align: justify !important;
    text-justify: inter-ideograph;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
}

.topics01 li {
    list-style-type: disc;
    margin-left: 20px;
}

/* 2. トピックス独自のコンテナ調整（既存の.containerに余白を追加） */
.topics01 {
    width: 92%;
    margin: 0 auto;
    padding-bottom: 0px;
    line-height: 1.8;
}

/* 3. タイポグラフィの再定義（既存のh1/h2との差別化） */
.topics01 h1 {
    font-size: 1.4rem;
    color: #b01c22;
    /* 佐藤木型のブランドカラー */
    margin: 1.5em 0 0.8em;
    line-height: 1.4;
    border-bottom: 2px solid #b01c22;
    padding-bottom: 0.5em;
}

.topics01 h2 {
    font-size: 1.25rem;
    background: #f4f4f4;
    padding: 10px 15px;
    border-left: 5px solid #b01c22;
    margin: 2.5em 0 1em;
    color: #333;
}

.topics01 p {
    margin-bottom: 1.5em;
}

/* リリース日の右寄せ */
.release-date {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* 4. 特殊装飾：引用・強調・画像 */
.quote-block {
    background: #fef9f9;
    border: 1px solid #f2dada;
    padding: 25px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 5px;
    position: relative;
}

.highlight-text.red {
    color: #e60012;
    font-weight: bold;
    display: block;
    margin: 1.5em 0;
}

.hero-image figcaption {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

/* 5. イベント情報（カード型） */
.event-info {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}

.event-info h3 {
    margin-top: 0;
    color: #b01c22;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* 6. YouTubeレスポンシブ（既存スタイルにない場合） */
.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 10px;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 7. 実績テーブル（既存のskills-tableを補強） */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.skills-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ccc;
    font-family: sans-serif;
}

.skills-table th,
.skills-table td {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: left;
}

.skills-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.skills-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.skills-table td.year {
    font-weight: bold;
    vertical-align: top;
}

/* --- リンク --- */
a {
    color: #004b9d;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
    opacity: 0.7;
}

/* ============================================================
   Desktop Adjustments (min-width: 601px)
   - ipad.css / pc.css の後に適用される
   ============================================================ */
@media screen and (min-width: 601px) {
    .topics01 {
        width: 100%;
        max-width: 1000px;
    }

    .topics01 h1 {
        font-size: 2.2rem;
        text-align: center;
        border-bottom: none;
        margin: 2em 0 1.2em;
    }

    .topics01 h1::after {
        content: "";
        display: block;
        width: 80px;
        height: 3px;
        background: #b01c22;
        margin: 20px auto 0;
    }

    /* イベント・動画のグリッド配置 */
    .event-container,
    .video-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .video-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .topic-body {
        padding: 0 40px;
        font-size: 1.05rem;
    }
}