@charset "UTF-8";

/* =========================================================
   三大〇〇辞典 詳細ページ(sandai_all.php)用 スタイル
========================================================= */

.dict-title,
.dict-item-name,
.dict-item-note,
.dict-quiz-head,
.dict-quiz-soft-btn,
.dict-kw-tag,
.btn-show-more-quiz {
    font-family: 'Meiryo', 'メイリオ', sans-serif;
}

#q_main_content {
    width: 100% !important;
    max-width: 960px;
    margin: 0 auto;
    float: none !important;
}

/* 詳細カードベース */
.dict-card {
    background-color: #fff;
    border: 1px solid #cce4ff;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04);
}
.dict-card-header {
    padding: 25px;
}
.dict-title {
    font-size: 1.6rem;
    color: #0d47a1;
    font-weight: bold;
    margin: 0;
}

/* ルビ調整 */
rt {
    font-size: 0.6em;
    color: #5c6bc0;
    letter-spacing: 0;
}

/* カード中身 */
.dict-card-inner {
    padding: 25px;
}
.dict-desc {
    font-size: 1rem;
    color: #444;
    margin-bottom: 25px;
    line-height: 1.7;
    background-color: #fafdff;
    padding: 18px;
    border-radius: 8px;
    border-left: 5px solid #1976d2;
}

/* 項目リスト */
.dict-items-list {
    list-style-type: none;
    padding: 0;
    margin: 0 0 25px 0;
}
.dict-items-list li {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dotted #e0e0e0;
}
.dict-items-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.dict-item-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.dict-item-icon {
    font-size: 1.4rem;
    line-height: 1;
    margin-right: 4px;
}
.dict-item-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}
.dict-item-note {
    display: inline-block;
    background-color: #e3f2fd;
    color: #0d47a1;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1.4;
}
.dict-item-expl {
    font-size: 0.95rem;
    color: #555;
    margin: 8px 0 0 0;
    line-height: 1.7;
    padding-left: 36px;
}

/* キーワードタグ */
.dict-keywords {
    margin-top: 25px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.dict-kw-tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f1f8ff;
    color: #0366d6;
    border: 1px solid #c8e1ff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
}
.dict-kw-tag:hover {
    background-color: #0366d6;
    color: #fff;
    border-color: #0366d6;
}

/* 関連クイズリンク */
.dict-quiz-links {
    background-color: #fafdff;
    border: 2px solid #d6eaff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}
.dict-quiz-head {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1565c0;
    margin-bottom: 15px;
}
.dict-quiz-btn-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
}
.dict-quiz-soft-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #1565c0;
    background-color: #e3f2fd;
    border: 2px dashed #90caf9;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.dict-quiz-soft-btn:hover {
    background-color: #bbdefb;
    border-color: #64b5f6;
    color: #0d47a1;
    transform: translateY(-2px);
}

/* アニメーション・JS制御用 */
.is-hidden-quiz {
    display: none;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.btn-show-more-quiz:hover {
    background-color: #e3f2fd !important;
}

@media (max-width: 768px) {
    .dict-title { font-size: 1.4rem; }
    .dict-item-expl { padding-left: 0; }
}

/* =========================================================
   パンくずリスト・フッターボタン（人物事典と統一）
========================================================= */

/* パンくずリスト */
.dict-breadcrumb {
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #666;
}
.dict-breadcrumb a {
    color: #1565c0;
    text-decoration: none;
    transition: color 0.2s ease;
}
.dict-breadcrumb a:hover {
    color: #0d47a1;
    text-decoration: underline;
}
.dict-breadcrumb span {
    color: #333;
    font-weight: bold;
}

/* フッターボタン群 */
.dict-footer-actions {
    display: flex;
    justify-content: center; /* ← ここを space-between から center に修正しました */
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 40px;
}
.dict-footer-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #fff;
    color: #5c6bc0;
    border: 1px solid #c5cae9;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.dict-footer-btn:hover {
    background-color: #e8eaf6;
    color: #3949ab;
    border-color: #9fa8da;
    transform: translateY(-2px);
}