/*
Theme Name: 読むあさ8
Theme URI: 
Author: Your Name
Author URI: 
Description: TVでは扱わない真実のニュースを知る
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: readingmorning8
*/


/* 基本設定 */
:root {
    --primary-color: #2563eb;     /* より鮮やかな青 */
    --primary-dark: #1d4ed8;      /* ホバー時の濃い青 */
    --primary-light: #60a5fa;     /* アクセント用の明るい青 */
    --secondary-color: #1e40af;   /* 補色としての濃い青 */
    --accent-color: #3b82f6;      /* アクセントの青 */
    --text-primary: #1f2937;      /* 読みやすい黒 */
    --text-secondary: #4b5563;    /* セカンダリーテキスト */
    --background-light: #f8fafc;  /* より明るい背景色 */
    --background-white: #ffffff;
}

/* ベーススタイル */
body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ヘッダービデオ背景のスタイル */
.site-header {
    position: relative;
    height: 400px; /* お好みの高さに調整してください */
    overflow: hidden;
    padding: 0;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); /* オーバーレイを薄く */
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes logoScale {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.site-logo {
    width: auto;
    height: auto;
    max-height: 80vh; /* ビューポートの高さの80%を超えないように */
    margin: 40px 0; /* 上下のマージンを設定 */
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    animation: logoScale 0.3s ease-out forwards;
}

.site-description {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .site-header {
        height: 300px;
    }
    
    .site-logo {
        margin: 20px 0 10px; /* モバイルでは上下マージンを小さく */
    }
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.site-title a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-title a:hover {
    opacity: 0.9;
}

.site-description {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* メインナビゲーション */
.main-navigation {
    background: var(--background-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-menu li a {
    display: inline-block;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-menu li a:hover::after {
    transform: scaleX(1);
}



/* style.cssに追加 */
.video-container {
    width: 100%;
    background: #000;
    border-radius: 0.5rem 0.5rem 0 0;
    overflow: hidden;
}



/* YouTubeプレーヤーのアスペクト比を維持 */
.aspect-w-16.aspect-h-9 {
    position: relative;
    padding-top: 56.25%;
}

.aspect-w-16.aspect-h-9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more svg {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover svg {
    transform: translateX(4px);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }

    .site-description {
        font-size: 1rem;
    }

    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .nav-menu li a {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }

    .topics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ダークモードサポート */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f3f4f6;
        --text-secondary: #9ca3af;
        --background-light: #1f2937;
        --background-white: #111827;
    }

    .topic-card {
        background: var(--background-white);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* ヘッダーとアイコン関連のスタイル */
.site-header {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    padding: 1rem 0;
    position: relative;
}

.header-tools {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 1rem;
}

.header-icon {
    width: 2rem;
    height: 2rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.header-icon svg {
    width: 1rem;
    height: 1rem;
}

/* style.css に追加または修正 */

/* メインコンテナ */
.site-main {
    min-height: calc(100vh - 64px); /* ヘッダーの高さを引く */
    background-color: #f9fafb;
}

/* 動画コンテナ */
.video-container {
    position: relative;
    width: 100%;
    max-width: 1024px; /* 最大幅を設定 */
    margin: 0 auto;
    background: #000;
    border-radius: 0.5rem 0.5rem 0 0;
    overflow: hidden;
}


/* YouTubeプレーヤー */
#youtube-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

#youtube-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .video-container {
        border-radius: 0;
    }
    
    .site-main {
        padding: 0;
    }
    
    .site-main > div {
        padding-left: 0;
        padding-right: 0;
    }
}



/* 日付表示 */
.topic-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* モバイル対応 */
@media (max-width: 640px) {
    .header-tools {
        position: static;
        justify-content: center;
        margin-top: 1rem;
    }

    .play-button {
        width: 3rem;
        height: 3rem;
    }

    .play-button::before {
        border-width: 0.75rem 0 0.75rem 1.2rem;
    }
}

svg {
    width: 24px;
    height: 24px;
}

/* ユーティリティクラス */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 文字起こし関連のスタイル */
.transcript-content {
    line-height: 1.8;
    color: #1f2937;
}

.transcript-content p {
    margin-bottom: 1.5em;
}

.transcript-content p:last-child {
    margin-bottom: 0;
}

.transcript-content br {
    display: block;
    content: "";
    margin-top: 0.5em;
}

.visible-content,
.hidden-content {
    color: #1f2937;
    letter-spacing: 0.025em;
}

.gradient-overlay {
    transition: opacity 0.3s ease-out;
}

.expand-button-wrapper {
    text-align: center;
    margin-top: 1rem;
}

.expand-button {
    position: relative;
    z-index: 10;
}

.expand-button:focus {
    outline: none;
    ring: 2px;
    ring-offset: 2px;
    ring-blue-600;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden-content.visible {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* レスポンシブ対応 */
@media (max-width: 640px) {
    .transcript-content {
        font-size: 0.9375rem;
    }
    
    .expand-button {
        width: 100%;
        justify-content: center;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
}




/* style.css に追加（既存のスタイルを上書き） */

/* トピックカード基本スタイル */
.topic-card {
    position: relative;
    background: var(--background-white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1),
                0 2px 4px -1px rgba(37, 99, 235, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1),
                0 4px 6px -2px rgba(37, 99, 235, 0.05);
}

/* サムネイル関連 */
.topic-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9のアスペクト比 */
    background-color: #f3f4f6;
}

.topic-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* オーバーレイ */
.topic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

/* トピックコンテンツ */
.topic-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
    z-index: 2;
}

/* タイトル */
.topic-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.topic-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.topic-title a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* トピック番号 */
.topic-number {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1em;
    margin-right: 0.5rem;
}

/* メタ情報 */
.topic-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

/* サマリー */
.topic-summary {
    padding: 1.5rem;
    background: white;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* プレイボタン */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.play-button-inner {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.topic-card:hover .play-button-inner {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 続きを読むボタン */
.read-more-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.read-more-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* シェアボタンのアニメーション */
.share-button {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-button span {
    position: relative;
    z-index: 1;
}

/* コピー成功時のアニメーション */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.copy-success {
    animation: successPulse 0.3s ease-in-out;
}

/* モバイル対応 */
@media (max-width: 640px) {
    .share-buttons-container {
        padding: 1rem;
    }
    
    .share-button {
        min-width: 140px;
        justify-content: center;
    }
}

/* 共通のセクションスタイル */
.mb-8.transform {
    transition: all 0.3s ease;
}

.mb-8.transform:hover {
    transform: translateY(-4px) !important;
}

/* 最新のトピック */
.bg-gradient-to-r.from-blue-600.to-blue-700 {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    padding: 1.25rem 1.75rem;
    position: relative;
    overflow: hidden;
}

.bg-gradient-to-r.from-blue-600.to-blue-700::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
    transform: skewX(-15deg);
}

/* 前日のトピック */
.bg-gradient-to-r.from-gray-600.to-gray-700 {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    padding: 1.25rem 1.75rem;
    position: relative;
    overflow: hidden;
}

.bg-gradient-to-r.from-gray-600.to-gray-700::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
    transform: skewX(-15deg);
}

/* 注目のトピック */
.bg-gradient-to-r.from-red-600.to-red-700 {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    padding: 1.25rem 1.75rem;
    position: relative;
    overflow: hidden;
}

.bg-gradient-to-r.from-red-600.to-red-700::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
    transform: skewX(-15deg);
}

/* ヘッダータイトルのスタイル改善 */
.text-xl.font-bold.text-white {
    font-size: 1.5rem;
    letter-spacing: 0.025em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.text-xl.font-bold.text-white svg {
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0.9;
}

/* 日付表示の改善 */
.text-blue-100.text-sm,
.text-gray-300.text-sm {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* セクションのボーダーとシャドウ */
.border.border-blue-100 {
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1);
}

.border.border-gray-100 {
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
}

.border.border-red-100 {
    border: 1px solid rgba(30, 64, 175, 0.2);
    box-shadow: 0 4px 6px -1px rgba(30, 64, 175, 0.1);
}

/* トピックのまとめ表示の改善 */
.bg-gray-50.text-gray-800 {
    background: #f8fafc;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
}

.flex.gap-3 {
    margin-bottom: 0.75rem;
}

.flex.gap-3:last-child {
    margin-bottom: 0;
}

.text-blue-600.font-semibold,
.text-gray-600.font-semibold {
    color: #2563eb;
    font-weight: 600;
    flex-shrink: 0;
}

.flex-grow.text-gray-700 {
    line-height: 1.5;
    color: #1f2937;
}

/* コンテンツエリアの余白調整 */
.p-6 {
    padding: 1.5rem;
}

/* アニメーション付きグラデーション */
.animated-gradient {
    background-size: 500% 500%;  /* 400%から500%に拡大 */
    animation: gradientMove 4s ease-in-out infinite;  /* アニメーション時間を調整 */
}

.latest-topic-gradient {
    background: linear-gradient(
        45deg,
        #1e40af,  /* より暗い青 */
        #60a5fa,  /* より明るい青 */
        #3b82f6,
        #1e40af
    );
}

.previous-topic-gradient {
    background: linear-gradient(
        45deg,  /* 角度を変更 */
        #1e40af,  /* 濃い青 */
        #3b82f6,  /* 中間の青 */
        #60a5fa,  /* 明るい青 */
        #2563eb   /* 鮮やかな青 */
    );
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
        opacity: 0.9;
    }
    25% {
        opacity: 1;
    }
    50% {
        background-position: 100% 50%;
        opacity: 0.9;
    }
    75% {
        opacity: 1;
    }
    100% {
        background-position: 0% 50%;
        opacity: 0.9;
    }
}