/*
  Skin Name: NPO True Colors スキン
  Description: NPO法人True Colors用のCocoonスキンです。CUD配慮のデザイン。
  Skin URI: https://wp-cocoon.com/
  Author: カスタム
  Version: 1.0.0
  Priority: 100
*/

/* ============================================
   CSS変数（カラー設定）
   ============================================ */
:root {
    --tc-primary: #0056b3;        /* メインカラー（青） */
    --tc-primary-light: #e6f0fa;  /* 薄い青（背景用） */
    --tc-accent: #f5a623;         /* アクセントカラー（オレンジ） */
    --tc-text: #333333;
    --tc-text-light: #666666;
    --tc-white: #ffffff;
    --tc-bg-gray: #f9f9f9;
    --tc-footer-bg: #333333;
    --tc-max-width: 1100px;
}

/* ============================================
   基本スタイル
   ============================================ */
body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--tc-text);
    line-height: 1.8;
}

a {
    color: var(--tc-primary);
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* ============================================
   ヘッダー
   ============================================ */
.header {
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ロゴ部分 */
.logo-header .site-name-text,
.header .logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--tc-primary);
}

/* ナビメニュー */
#navi .navi-in > ul > li > a {
    font-size: 15px;
    font-weight: 500;
    color: var(--tc-text);
    padding: 15px 20px;
}

#navi .navi-in > ul > li > a:hover {
    background-color: var(--tc-primary-light);
    color: var(--tc-primary);
}

/* 会員申込ボタン（CTAボタン） */
.header-cta-btn {
    display: inline-block;
    background-color: var(--tc-accent);
    color: var(--tc-white) !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    margin-left: 15px;
}

.header-cta-btn:hover {
    background-color: #e6951f;
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ヘッダーコンテナ調整 */
.header-container-in.hlt-top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container-in.hlt-top-menu .header-right {
    display: flex;
    align-items: center;
}

/* ============================================
   ヒーローセクション（トップページ）
   ============================================ */
.tc-hero {
    background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 86, 179, 0.6)), 
                url('') no-repeat center center/cover;
    background-color: var(--tc-primary);
    color: var(--tc-white);
    padding: 100px 20px;
    text-align: center;
    margin-top: 0;
}

.tc-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.tc-hero h1,
.tc-hero-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: var(--tc-white);
}

.tc-hero p,
.tc-hero-text {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.tc-hero-btn {
    display: inline-block;
    background-color: var(--tc-accent);
    color: var(--tc-white);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.tc-hero-btn:hover {
    background-color: #e6951f;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    color: var(--tc-white);
}

/* ============================================
   見出しデザイン
   ============================================ */

/* H2 見出し（大見出し） */
.article h2,
.entry-content h2 {
    font-size: 24px;
    background-color: var(--tc-primary-light);
    border-left: 6px solid var(--tc-primary);
    border-top: none;
    border-right: none;
    border-bottom: none;
    padding: 15px 20px;
    margin: 40px 0 20px;
    color: var(--tc-text);
    border-radius: 0 4px 4px 0;
    position: relative;
}

.article h2::before,
.entry-content h2::before {
    content: none;
}

/* H3 見出し（中見出し） */
.article h3,
.entry-content h3 {
    font-size: 20px;
    background: none;
    border: none;
    border-bottom: 3px solid var(--tc-primary);
    padding: 0 0 10px 0;
    margin: 35px 0 20px;
    position: relative;
}

.article h3::before,
.entry-content h3::before {
    content: none;
}

.article h3::after,
.entry-content h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30%;
    height: 3px;
    background-color: var(--tc-accent);
}

/* H4 見出し（小見出し） */
.article h4,
.entry-content h4 {
    font-size: 18px;
    background: none;
    border: none;
    border-left: 4px solid var(--tc-accent);
    padding: 0 0 0 15px;
    margin: 30px 0 15px;
}

.article h4::before,
.entry-content h4::before {
    content: none;
}

/* H5 見出し */
.article h5,
.entry-content h5 {
    font-size: 16px;
    font-weight: 700;
    margin: 25px 0 10px;
    color: var(--tc-primary);
}

/* ============================================
   リストデザイン
   ============================================ */

/* 通常のリスト */
.article ul,
.entry-content ul {
    margin: 20px 0;
    padding: 20px 20px 20px 40px;
    background-color: var(--tc-bg-gray);
    border: 1px solid #eee;
    border-radius: 5px;
}

.article ul li,
.entry-content ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.article ul li:last-child,
.entry-content ul li:last-child {
    margin-bottom: 0;
}

/* チェックリスト */
.article ul.check-list,
.entry-content ul.check-list,
.wp-block-list.is-style-check-list {
    list-style: none;
    padding: 20px;
}

.article ul.check-list li,
.entry-content ul.check-list li,
.wp-block-list.is-style-check-list li {
    position: relative;
    padding-left: 30px;
}

.article ul.check-list li::before,
.entry-content ul.check-list li::before,
.wp-block-list.is-style-check-list li::before {
    font-family: "Font Awesome 6 Free";
    content: "\f00c";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--tc-primary);
}

/* 番号付きリスト（ステップリスト） */
.article ol,
.entry-content ol {
    counter-reset: number;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.article ol li,
.entry-content ol li {
    position: relative;
    padding-left: 45px;
    margin-bottom: 15px;
    min-height: 30px;
}

.article ol li::before,
.entry-content ol li::before {
    counter-increment: number;
    content: counter(number);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background-color: var(--tc-primary);
    color: var(--tc-white);
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
}

/* ============================================
   ボックスデザイン（囲み枠）
   ============================================ */

/* インフォボックス */
.info-box,
.wp-block-cocoon-blocks-info-box {
    border: 2px solid var(--tc-primary);
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
    position: relative;
    background-color: var(--tc-white);
}

.info-box-title {
    position: absolute;
    top: -14px;
    left: 20px;
    background: var(--tc-primary);
    color: var(--tc-white);
    padding: 0 15px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    line-height: 28px;
}

/* Cocoon標準ボックスのカスタマイズ */
.blank-box {
    border-radius: 8px;
    border-width: 2px;
}

.blank-box.bb-blue {
    border-color: var(--tc-primary);
    background-color: rgba(0, 86, 179, 0.05);
}

.blank-box.bb-orange {
    border-color: var(--tc-accent);
    background-color: rgba(245, 166, 35, 0.05);
}

/* タイトル付きボックス */
.caption-box {
    border-color: var(--tc-primary);
    border-radius: 8px;
}

.caption-box-label {
    background-color: var(--tc-primary);
    color: var(--tc-white);
}

/* ============================================
   セクションタイトル（トップページ用）
   ============================================ */
.tc-section-title {
    text-align: center;
    font-size: 28px;
    color: var(--tc-primary);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.tc-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--tc-accent);
}

/* ============================================
   フッター
   ============================================ */
.footer {
    background-color: var(--tc-footer-bg);
    color: #eee;
}

.footer a {
    color: #eee;
}

.footer a:hover {
    color: var(--tc-white);
}

.footer-bottom {
    background-color: #222;
}

.footer-bottom-content {
    padding: 15px 0;
}

/* フッターウィジェットエリア */
.footer-widget-area {
    padding: 50px 20px 20px;
}

.footer h4,
.footer .widget-title {
    color: var(--tc-white);
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--tc-primary);
    padding-bottom: 10px;
    display: inline-block;
}

.footer .widget ul li {
    margin-bottom: 10px;
    border-bottom: none;
}

/* コピーライト */
.copyright {
    text-align: center;
    font-size: 12px;
    color: #aaa;
}

/* ============================================
   ボタンデザイン
   ============================================ */
.btn,
.wp-block-button__link {
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary,
.wp-block-button__link {
    background-color: var(--tc-primary);
    border-color: var(--tc-primary);
}

.btn-primary:hover,
.wp-block-button__link:hover {
    background-color: #004494;
    border-color: #004494;
}

/* アクセントボタン */
.btn-accent {
    background-color: var(--tc-accent);
    border-color: var(--tc-accent);
    color: var(--tc-white);
}

.btn-accent:hover {
    background-color: #e6951f;
    border-color: #e6951f;
}

/* ============================================
   カード・アーカイブ
   ============================================ */
.entry-card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.entry-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.entry-card-thumb {
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.cat-label {
    background-color: var(--tc-primary);
    border-radius: 4px;
}

/* ============================================
   モバイル対応
   ============================================ */
@media (max-width: 1023px) {
    /* モバイルヘッダー */
    .mobile-menu-buttons {
        background-color: var(--tc-white);
    }
    
    .mobile-header-menu-buttons .menu-button {
        color: var(--tc-primary);
    }
    
    /* ヒーロー調整 */
    .tc-hero {
        padding: 60px 20px;
    }
    
    .tc-hero h1,
    .tc-hero-title {
        font-size: 24px;
    }
    
    .tc-hero p,
    .tc-hero-text {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    /* 見出し調整 */
    .article h2,
    .entry-content h2 {
        font-size: 20px;
        padding: 12px 15px;
    }
    
    .article h3,
    .entry-content h3 {
        font-size: 18px;
    }
    
    .article h4,
    .entry-content h4 {
        font-size: 16px;
    }
    
    /* リスト調整 */
    .article ol li,
    .entry-content ol li {
        padding-left: 40px;
    }
}

/* ============================================
   サイドバー
   ============================================ */
.sidebar h3,
.sidebar .widget-title {
    background-color: var(--tc-primary);
    color: var(--tc-white);
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 16px;
}

.sidebar .widget {
    border-radius: 8px;
    overflow: hidden;
}

/* ============================================
   目次（TOC）
   ============================================ */
.toc {
    border: 2px solid var(--tc-primary);
    border-radius: 8px;
    background-color: var(--tc-primary-light);
}

.toc-title {
    color: var(--tc-primary);
    font-weight: 700;
}

.toc a {
    color: var(--tc-text);
}

.toc a:hover {
    color: var(--tc-primary);
}

/* ============================================
   SNSボタン
   ============================================ */
.sns-share-buttons a,
.sns-follow-buttons a {
    border-radius: 4px;
}

/* ============================================
   パンくずリスト
   ============================================ */
.breadcrumb {
    background-color: var(--tc-bg-gray);
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 13px;
}

/* ============================================
   ページネーション
   ============================================ */
.pagination .page-numbers {
    border-radius: 4px;
}

.pagination .current {
    background-color: var(--tc-primary);
    border-color: var(--tc-primary);
}
