/* ===============================================
   コネクロ調査団 メインスタイルシート
   =============================================== */

/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans CJK JP", sans-serif, "ＭＳ Ｐゴシック", Meiryo, Verdana, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Hiragino Sans;
    font-size: 15px;
    color: #000000;
    background: linear-gradient(135deg, #0078d7 0%, #87ceeb 50%, #ffffff 100%);
    min-height: 100vh;
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===============================================
   ヘッダー共通スタイル
   =============================================== */
.header {
    background: #ec4899;
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.header-image {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* ===============================================
   ナビゲーション共通スタイル
   =============================================== */
.nav {
    background: #22c55e;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 99;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav a:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.nav a:active {
    transform: translateY(0);
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    transition: all 0.3s ease;
}

.nav-menu.hidden {
    display: none;
}

/* ===============================================
   パンくずナビ（記事ページ用）
   =============================================== */
.breadcrumbs {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 2px solid #fde047;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.breadcrumbs a {
    color: #22c55e;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #ec4899;
    text-decoration: underline;
}

.breadcrumbs span {
    color: #666;
    margin: 0 8px;
}

/* ===============================================
   トップページ - メインコンテンツ
   =============================================== */
.main-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* スライダーエリア */
.slider-area {
    background: #fde047;
    padding: 20px;
    border-radius: 15px;
    border: 3px solid #22c55e;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.slider-area:hover {
    transform: translateY(-3px);
}

.slider-area h2 {
    color: #ec4899;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.slider-content {
    height: 250px;
    background: linear-gradient(135deg, #0078d7 0%, #87ceeb 50%, #ffffff 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ec4899;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.slider-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* 記事一覧グリッド */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 2px solid #ec4899;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-color: #22c55e;
}

.article-header {
    background: #ec4899;
    height: 4px;
}

.article-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0078d7 0%, #87ceeb 50%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ec4899;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.article-content {
    padding: 15px;
}

.article-title {
    color: #22c55e;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: #ec4899;
}

.article-date {
    color: #ec4899;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.article-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===============================================
   サイドバー
   =============================================== */
.sidebar {
    background: white;
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #22c55e;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.sidebar h3 {
    color: #ec4899;
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.sidebar h3::before {
    content: "●";
    color: #22c55e;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar a:hover {
    background: #fde047;
    color: #ec4899;
    transform: translateX(5px);
}

/* ===============================================
   Topics セクション
   =============================================== */
.topics-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #ec4899;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.topics-section h2 {
    color: #22c55e;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.topics-section h2::before {
    content: "●";
    color: #ec4899;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

.topics-grid {
    display: grid;
    gap: 15px;
}

.topic-item {
    display: flex;
    padding: 15px;
    background: #fef08a;
    border-radius: 10px;
    border-left: 5px solid #ec4899;
    transition: all 0.3s ease;
    cursor: pointer;
}

.topic-item:hover {
    transform: translateX(5px);
    background: #fde047;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.topic-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0078d7 0%, #87ceeb 50%, #ffffff 100%);
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.topic-content h4 {
    color: #22c55e;
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: bold;
}

.topic-date {
    color: #ec4899;
    font-size: 0.8rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.topic-category {
    color: #666;
    font-size: 0.8rem;
}

/* ===============================================
   団体紹介セクション
   =============================================== */
.about-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #22c55e;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.about-section h2 {
    color: #ec4899;
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.about-section h2::before {
    content: "●";
    color: #22c55e;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

.about-section p {
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
}

/* ===============================================
   記事ページ専用スタイル
   =============================================== */

/* 記事コンテナ */
.article {
    background: white;
    border-radius: 15px;
    padding: 40px;
    border: 3px solid #ec4899;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 記事ヘッダー */
.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #fde047;
}

.article-title {
    color: #ec4899;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.article-date {
    color: #22c55e;
    font-weight: bold;
    font-size: 1rem;
}

.article-category {
    background: #fde047;
    color: #ec4899;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    border: 2px solid #ec4899;
}

/* 記事本文 */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 25px;
    text-align: justify;
}

/* 記事内画像 */
.article-content .article-image {
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 3px solid #22c55e;
    transition: all 0.3s ease;
    height: auto;
    background: none;
}

.article-content .article-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.image-caption {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
    font-style: italic;
    margin-bottom: 20px;
}

/* 大きなテキスト */
.big-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ec4899;
    text-align: center;
    margin: 40px 0;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    0% {
        opacity: 0;
        transform: scale3d(.3, .3, .3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(.9, .9, .9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(.97, .97, .97);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

/* ===============================================
   会話セクション
   =============================================== */
.conversation {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    border: 3px solid #ec4899;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.speaker {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    animation: slideInLeft 0.5s ease;
}

.speaker:last-child {
    margin-bottom: 0;
}

.speaker:nth-child(even) {
    animation: slideInRight 0.5s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.speaker-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    flex-shrink: 0;
    border: 3px solid #ec4899;
    overflow: hidden;
    background: #22c55e;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.speaker-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.speaker-text {
    background: white;
    padding: 15px 20px;
    border-radius: 20px;
    border: 2px solid #22c55e;
    line-height: 1.6;
    position: relative;
    font-size: 1rem;
    margin-top: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.speaker-text:hover {
    background: #f8fffe;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.speaker-text:before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right-color: #22c55e;
}

.speaker-text:after {
    content: '';
    position: absolute;
    left: -6px;
    top: 22px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-right-color: white;
}

/* 既存サイトの会話スタイルとの互換性 */
#txsingle-tork {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    border: 2px solid #ec4899;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: slideInLeft 0.5s ease;
}

#txsingle-tork:nth-child(even) {
    animation: slideInRight 0.5s ease;
}

#txsingle-com {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    flex-shrink: 0;
}

#txsingle-com img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #ec4899;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#txsingle-text {
    flex: 1;
    display: flex;
    align-items: center;
}

#txsingle-text h3 {
    background: white;
    padding: 15px 20px;
    border-radius: 20px;
    border: 2px solid #22c55e;
    margin: 0;
    position: relative;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: normal;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#txsingle-text h3:hover {
    background: #f8fffe;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#txsingle-text h3:before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right-color: #22c55e;
}

#txsingle-text h3:after {
    content: '';
    position: absolute;
    left: -6px;
    top: 22px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-right-color: white;
}

/* ===============================================
   注目テキストボックス
   =============================================== */
.highlight-box {
    background: linear-gradient(135deg, #fde047 0%, #fbbf24 100%);
    border: 3px solid #ec4899;
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

.highlight-box p {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ec4899;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* ===============================================
   ボタンスタイル
   =============================================== */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: #fde047;
    border: 2px solid #ec4899;
    border-radius: 25px;
    color: #ec4899;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: #ec4899;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ===============================================
   フッター共通スタイル
   =============================================== */
.footer {
    background: linear-gradient(135deg, #0078d7 0%, #87ceeb 50%, #ffffff 100%);
    color: white;
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 5s infinite;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    color: #ec4899;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.social-links a:hover {
    background: #22c55e;
    color: white;
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.footer div:last-child {
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ===============================================
   レスポンシブデザイン
   =============================================== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* モバイルナビゲーション */
    .hamburger {
        display: flex;
    }
    
    .nav {
        position: relative;
        padding: 10px 0;
    }
    
    .nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #22c55e;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 20px 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav ul.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .nav li:last-child {
        border-bottom: none;
    }
    
    .nav a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        border-radius: 0;
    }
    
    .header {
        position: relative;
    }
    
    .header-image {
        max-height: 150px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article {
        padding: 20px;
    }
    
    .article-meta {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .big-text {
        font-size: 1.4rem;
    }
    
    .speaker {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .speaker-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .speaker-text:before,
    .speaker-text:after {
        display: none;
    }
    
    #txsingle-tork {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    #txsingle-com {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    #txsingle-text h3:before,
    #txsingle-text h3:after {
        display: none;
    }
    
    .sidebar {
        position: static;
    }
    
    .slider-content {
        font-size: 1.5rem;
        height: 200px;
    }
    
    .topic-item {
        flex-direction: column;
        text-align: center;
    }
    
    .topic-image {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .header-image {
        max-height: 120px;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .big-text {
        font-size: 1.2rem;
    }
    
    .nav a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .slider-content {
        font-size: 1.2rem;
        padding: 10px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* ===============================================
   カテゴリーページ専用スタイル
   =============================================== */

/* カテゴリーレイアウト */
.category-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.category-main {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 3px solid #22c55e;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* カテゴリーヘッダー */
.category-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #fde047;
}

.category-title {
    color: #ec4899;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.category-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* カテゴリーグリッド */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 2px solid #fde047;
    transition: all 0.3s ease;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-color: #ec4899;
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(236, 72, 153, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.category-info {
    padding: 20px;
}

.category-name {
    color: #22c55e;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.category-card:hover .category-name {
    color: #ec4899;
}

.category-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 人気記事セクション */
.popular-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 3px solid #fde047;
}

.section-title {
    color: #ec4899;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #22c55e;
    border-radius: 2px;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.popular-card {
    background: #fef08a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 2px solid #ec4899;
    transition: all 0.3s ease;
}

.popular-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    background: #fde047;
}

.popular-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
}

.popular-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #22c55e;
}

.popular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-content {
    flex: 1;
    min-width: 0;
}

.popular-title {
    color: #22c55e;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-card:hover .popular-title {
    color: #ec4899;
}

.popular-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 0.8rem;
}

.popular-category {
    background: #ec4899;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
}

.popular-date {
    color: #22c55e;
    font-weight: bold;
}

.popular-excerpt {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* サイドバー記事リスト */
.sidebar-posts {
    list-style: none;
    margin-bottom: 30px;
}

.sidebar-post {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.sidebar-link:hover {
    transform: translateX(5px);
}

.sidebar-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #fde047;
}

.sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-info {
    flex: 1;
    min-width: 0;
}

.sidebar-title {
    color: #22c55e;
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-link:hover .sidebar-title {
    color: #ec4899;
}

.sidebar-date {
    color: #666;
    font-size: 0.8rem;
}

/* レスポンシブ（カテゴリーページ用） */
@media (max-width: 768px) {
    .category-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-main {
        padding: 20px;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .popular-grid {
        grid-template-columns: 1fr;
    }
    
    .popular-link {
        flex-direction: column;
        text-align: center;
    }
    
    .popular-image {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .category-title {
        font-size: 1.8rem;
    }
    
    .category-main {
        padding: 15px;
    }
    
    .popular-link {
        padding: 10px;
    }
    
    .sidebar-link {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .sidebar-thumb {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
}
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.p-10 {
    padding: 10px;
}

.p-20 {
    padding: 20px;
}

.p-30 {
    padding: 30px;
}

/* カラーユーティリティ */
.text-pink {
    color: #ec4899;
}

.text-green {
    color: #22c55e;
}

.text-yellow {
    color: #fde047;
}

.text-blue {
    color: #0078d7;
}

.bg-pink {
    background-color: #ec4899;
}

.bg-green {
    background-color: #22c55e;
}

.bg-yellow {
    background-color: #fde047;
}

.bg-blue {
    background-color: #0078d7;
}

.bg-white {
    background-color: white;
}

/* ===============================================
   アニメーション追加
   =============================================== */
.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ホバーエフェクト */
.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.hover-bounce:hover {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===============================================
   印刷用スタイル
   =============================================== */
@media print {
    .nav,
    .sidebar,
    .social-links,
    .slider-area {
        display: none;
    }
    
    .article {
        border: 1px solid #000;
        box-shadow: none;
        margin: 0;
        padding: 20px;
    }
    
    .article-image {
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .conversation,
    #txsingle-tork {
        border: 1px solid #ccc;
        background: #f9f9f9;
    }
    
    .speaker-text,
    #txsingle-text h3 {
        border: 1px solid #ccc;
        background: white;
    }
    
    .speaker-text:before,
    .speaker-text:after,
    #txsingle-text h3:before,
    #txsingle-text h3:after {
        display: none;
    }
    
    .highlight-box {
        border: 2px solid #000;
        background: #f0f0f0;
    }
    
    .big-text {
        color: #000;
        text-shadow: none;
    }
    
    .header {
        background: #f0f0f0;
        color: #000;
    }
    
    .header h1 {
        color: #000;
        text-shadow: none;
    }
}

/* ===============================================
   ダークモード対応（将来的な拡張用）
   =============================================== */
@media (prefers-color-scheme: dark) {
    /* ダークモードの設定はここに追加可能 */
    /* 現在は通常モードのみサポート */
}

/* ============================================
   スマホ対応：サイドバーを下に移動
   ============================================ */

@media (max-width: 768px) {
    /* カテゴリーページのレイアウト */
    .category-layout,
    .main-container {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* メインコンテンツを先に表示 */
    .category-main,
    .article-content,
    main {
        order: 1 !important;
    }
    
    /* サイドバーを後に表示 */
    .sidebar,
    aside {
        order: 2 !important;
        margin-top: 2rem !important;
        width: 100% !important;
    }
}