@charset "UTF-8";
/*
 Theme Name: SANGO Child
 Template: SANGO

 Version: 4.0
*/
/* こちらはSANGOの子テーマ用CSSです。以下にCSSを記入していきましょう。 */

/* ----------------------------------------------------------------
 * 1. 全体のトーン調整（信頼感のあるネイビー＆フラット）
 * ---------------------------------------------------------------- */

/* 全体の角をシャープに（SANGOの丸みを消す） */
body, .btn, .sng-box, .cardtype__article, .header-menu, input, textarea {
    border-radius: 0px !important; 
}

/* ヘッダーを保険サイトらしい濃紺に */
#header, .header--center {
    background-color: #1d3557 !important; /* 深いネイビー */
    color: #ffffff !important;
}

/* サイトタイトルを白抜きでハッキリと */
.sitename a {
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* 余計な影（シャドウ）を消してフラットにする */
.cardtype__article, .sng-box, .btn {
    box-shadow: none !important;
    border: 1px solid #ddd; /* 影の代わりに細い線で区切る */
}

/* リンクの下線を消す（モダンな印象に） */
a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* 記事内の見出し（H2）をより硬派なデザインに */
.entry-content h2 {
    padding: 0.5em 0.8em;
    border-left: 5px solid #1d3557;
    background: #f8f9fa;
    color: #1d3557;
}

/* ----------------------------------------------------------------
 * サイト全体のカラー設定（2026年 保険サイト版）
 * ---------------------------------------------------------------- */

:root {
    --main-navy: #1d3557;
    --accent-gold: #b89150;
    --accent-orange: #e67e22;
    --bg-light: #f8f9fa;
    --text-dark: #333333;
}

/* ヘッダー・フッター・見出しの統一 */
#header, .header--center, #footer {
    background-color: var(--main-navy) !important;
}

/* リンク色 */
a {
    color: #2980b9;
}

/* SANGOのボタンをアクセントカラーに変更 */
.btn, .sng-box.main-border {
    border-color: var(--main-navy) !important;
}

/* 「正解を表示」などの重要なアクションボタン用 */
.btn-accent {
    background-color: var(--accent-orange) !important;
    color: #fff !important;
    border: none !important;
    font-weight: bold;
}

/* 記事本文のテキスト色を読みやすく調整 */
.entry-content {
    color: var(--text-dark);
}

/* ----------------------------------------------------------------
 * 2. 記事エリアの最適化（読みやすさ重視）
 * ---------------------------------------------------------------- */

/* 記事タイトルの装飾（左端に太いライン） */
.entry-title {
    border-left: 10px solid #1d3557 !important;
    background: #f1f4f8 !important;
    padding: 15px 20px !important;
    font-size: 1.4em !important;
    border-bottom: none !important;
}

/* 本文のフォントと行間（勉強しやすさ重視） */
.entry-content {
    line-height: 1.8;
    color: #333;
    font-size: 17px; /* スマホでも読みやすいサイズ */
    padding-bottom: 24px;
}


/* ----------------------------------------------------------------
 * TOPページ専用：プロフェッショナル・カスタマイズ
 * ---------------------------------------------------------------- */

/* 試験選択リストのグリッド化 */
.top-exam-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 0;
    list-style: none;
    margin: 20px 0;
}
.entry-content ul {
    list-style-type: none;
}

.exam-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    background: #1d3557;
    color: #fff !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: 0.3s;
    border-bottom: 4px solid rgba(0,0,0,0.2);
}

.exam-item a:hover {
    opacity: 0.8;
    transform: translateY(2px);
    border-bottom: 0;
}

/* 単位ごとの色分け */
.exam-kiso a, .label-kiso { background-color: #457b9d !important; color: #fff; }
.exam-car a, .label-car { background-color: #1d3557 !important; color: #fff; }
.exam-fire a, .label-fire { background-color: #2a9d8f !important; color: #fff; }
.exam-medical a, .label-medical { background-color: #6a4c93 !important; color: #fff; }

/* テーブルのモダン化 */
.scroll-table {
    overflow-x: auto;
    margin-bottom: 30px;
}

.exam-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.exam-data-table th, .exam-data-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.exam-data-table thead th {
    background-color: #f8f9fa;
    color: #1d3557;
}

/* 概要ボックス */
.intro-box {
    background: #f1f4f8;
    padding: 20px;
    border-radius: 0;
    margin-bottom: 30px;
}

/* 広告スペースの余白 */
.top-ad-space {
    margin: 40px 0;
    text-align: center;
}

/* スマホ対応 */
@media screen and (max-width: 480px) {
    .top-exam-list {
        grid-template-columns: 1fr; /* スマホでは1列にしてボタンを大きく */
    }
}

/* ----------------------------------------------------------------
 * サイドバー2（TOP専用）のカスタマイズ
 * ---------------------------------------------------------------- */

/* サイドバーの見出しをネイビーで引き締める */
.sidebar .widget-title {
    background: #1d3557 !important;
    color: #fff !important;
    padding: 10px 15px !important;
    font-size: 16px !important;
    border: none !important;
    margin-bottom: 0 !important;
}

/* メニューリストのデザイン */
.side-custom-menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #ddd;
    border-top: none;
}

.side-custom-menu ul li {
    border-bottom: 1px solid #eee;
}

.side-custom-menu ul li:last-child {
    border-bottom: none;
}

.side-custom-menu ul li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    background: #fff;
    transition: 0.2s;
    font-size: 15px;
    position: relative;
}

.side-custom-menu ul li a::before {
    content: "▶";
    font-size: 10px;
    margin-right: 8px;
    color: #1d3557;
}

.side-custom-menu ul li a:hover {
    background: #f1f4f8;
    padding-left: 20px;
    color: #1d3557;
    text-decoration: none;
}

/* アフィリエイトバナー枠 */
.side-affiliate-banner .banner-space {
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
}

/* ----------------------------------------------------------------
 * 単位別TOPページ専用デザイン
 * ---------------------------------------------------------------- */

/* メニューの全体レイアウト */
.unit-menu-container {
    margin: 30px 0;
}

.unit-section-title {
    border-bottom: 2px solid #1d3557 !important;
    background: none !important;
    padding: 0 0 10px 10px !important;
    margin-bottom: 25px !important;
}

/* リンクカードのグリッド */
.unit-link-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.unit-link-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
}

.unit-link-card h3 {
    font-size: 1.1em !important;
    margin-top: 0 !important;
    color: #1d3557;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* メインボタン形式 */
.unit-btn {
    display: block;
    background: #e67e22; /* アクセントカラーのオレンジ */
    color: #fff !important;
    text-align: center;
    padding: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.unit-btn:hover {
    opacity: 0.8;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* リスト形式のリンク（模擬テスト用） */
.unit-btn-list {
    margin-top: 15px;
}

/* ----------------------------------------------------------------
 * 単位別TOPページ：リンクデザインのブラッシュアップ
 * ---------------------------------------------------------------- */

.unit-list-link {
    display: flex;            /* flexに変更して中央揃えを容易に */
    align-items: center;      /* 上下中央揃え */
    padding: 12px 15px 12px 35px; /* 左側にアイコン分の余白 */
    background: #f8f9fa;         /* 背景を白にしてコントラストを出す */
    border: 1px solid #1d3557; /* 境界線をメインカラーに */
    border-left: 5px solid #1d3557; /* 左端に太線を入れてアクセントに */
    margin-bottom: 10px;
    color: #1d3557;           /* 文字色をメインカラーに */
    font-size: 1em;
    font-weight: bold;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* 軽い影で浮かせ、リンク感を出す */
}

/* 三角のチョボ調整 */
.unit-list-link::before {
    content: "▶";
    position: absolute;
    left: 12px;
    top: 50%;                 /* 上から50%の位置 */
    transform: translateY(-50%); /* 自身の高さの半分だけ戻して中央に */
    font-size: 12px;
    color: #1d3557;
    transition: all 0.2s ease;
}

/* ホバー時の挙動：色を反転させて力強く */
.unit-list-link:hover {
    background: #1d3557;
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(29, 53, 87, 0.3); /* 影を強くして押し込み感を出す */
    padding-left: 40px;       /* 少し右にずれるアニメーション */
}

.unit-list-link:hover::before {
    color: #fff;              /* ホバー時はアイコンも白に */
    left: 17px;               /* アイコンも一緒に動かす */
}

/* 広告ラベル */
.ad-label {
    font-size: 10px;
    color: #ccc;
    text-align: center;
    margin-bottom: 5px;
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
    .unit-link-grid {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------------------------
 * 問題一覧ページ（基本復習問題）専用デザイン
 * ---------------------------------------------------------------- */

.list-intro-text {
    background: #f1f4f8;
    padding: 15px;
    border-left: 4px solid #1d3557;
    font-size: 0.95em;
    margin-bottom: 30px;
}

/* 問題リストのグリッド（1列または2列） */
.question-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

/* 個別の問題リンク */
.question-list-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none !important;
    color: #333 !important;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Qマークの装飾 */
.q-number {
    background: #1d3557;
    color: #fff;
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
    padding: 15px 0; /* 高さを確保 */
}

/* 問題タイトル */
.q-title {
    padding: 10px 15px;
    font-size: 0.95em;
    line-height: 1.4;
    flex-grow: 1;
    font-weight: 500;
}

/* 右側の矢印 */
.q-arrow {
    padding: 0 15px;
    color: #ccc;
    font-size: 10px;
}

/* ホバー効果：ネイビーがスライドするような演出 */
.question-list-item:hover {
    border-color: #1d3557;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.question-list-item:hover .q-title {
    color: #1d3557;
}

.question-list-item:hover .q-arrow {
    color: #1d3557;
    transform: translateX(3px);
    transition: 0.2s;
}

/* スマホ対応 */
@media screen and (max-width: 480px) {
    .question-grid {
        grid-template-columns: 1fr;
    }
}
/* ----------------------------------------------------------------
 * 問題ページ（faqwrap系）のデザイン
 * ---------------------------------------------------------------- */

/* 問題ごとの外枠 */
.faqwrap {
    margin-bottom: 40px;
    padding: 25px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: 5px solid #1d3557; /* 信頼のネイビー */
}

.faqwrap h3 {
    color: #1d3557;
    font-size: 1.2em !important;
    margin-top: 0 !important;
}

/* 答えを見るボタン（qbox） */
.qbox {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    padding: 15px;
    background: #e67e22; /* アクセントのオレンジ */
    color: #fff;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 2px;
}

.qbox:hover {
    opacity: 0.9;
    transform: translateY(2px);
}

/* 回答エリア（初期は非表示） */
.answer {
    display: none; /* JSで表示させる */
    margin-top: 20px;
    padding: 20px;
    background: #f1f4f8; /* 薄いグレー背景 */
    border-left: 5px solid #e67e22;
}

.answer p {
    margin-bottom: 0.5em;
    font-weight: bold;
}
/* ----------------------------------------------------------------
 * 問題ページ専用：前後ナビゲーション
 * ---------------------------------------------------------------- */
.exam-nav-container {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px dashed #ddd;
}

.exam-nav-inner {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* ボタン共通設定 */
.exam-nav-prev, .exam-nav-list, .exam-nav-next {
    flex: 1;
}

.exam-nav-inner a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    background: #fff;
    border: 2px solid #1d3557;
    color: #1d3557 !important;
    text-decoration: none !important;
    font-weight: bold;
    transition: 0.3s;
    font-size: 14px;
}

/* 「次の問題」だけ色を変えて強調（アクセントカラー） */
.exam-nav-next a {
    background: #1d3557;
    color: #fff !important;
}

/* 「一覧へ」は少し控えめに */
.exam-nav-list a {
    border-color: #ccc;
    color: #666 !important;
}

/* ホバー時の挙動 */
.exam-nav-inner a:hover {
    opacity: 0.8;
    background: #f1f4f8;
}
.exam-nav-next a:hover {
    background: #457b9d;
}

/* スマホ対応：3つ並ぶときつい場合は「一覧」を消すかフォントサイズ調整 */
@media screen and (max-width: 480px) {
    .exam-nav-inner a {
        font-size: 12px;
        height: 50px;
    }
}
/* ナビゲーションボタンのテキストレイアウト */
.exam-nav-inner a {
    display: flex;
    flex-direction: column; /* 上下に並べる */
    justify-content: center;
    padding: 10px;
    height: auto; /* 高さを自動に */
    min-height: 70px;
    line-height: 1.4;
}

/* 「次の問題へ」などのラベル部分 */
.nav-label {
    font-size: 11px;
    margin-bottom: 4px;
    display: block;
    opacity: 0.9;
}

/* 記事タイトルの部分 */
.nav-title {
    font-size: 13px;
    display: block;
    word-break: break-all; /* 長いタイトル対策 */
}

/* スマホではさらに文字サイズを調整 */
@media screen and (max-width: 480px) {
    .nav-title {
        font-size: 11px;
    }
    .exam-nav-inner {
        gap: 5px; /* ボタン同士の隙間を狭く */
    }
}

.side-book-intro .book-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.book-img {
    margin-bottom: 15px;
    max-width: 120px; /* サイドバーに収まるサイズ */
}
.book-img img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.book-title {
    font-size: 14px !important;
    font-weight: bold;
    margin-bottom: 8px !important;
}
.amazon-btn {
    display: block;
    background: #ff9900;
    color: #fff !important;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none !important;
}

/* PC表示のメインとサイドバーの幅調整 */
@media screen and (min-width: 1030px) {
    /* 全体の最大幅を少し広げてゆとりを持たせる（任意） */
    .inner-content.wrap {
        max-width: 1200px; 
    }

    /* メインコンテンツを広くする (70% -> 74%程度へ) */
    #main {
        width: 74%;
    }

    /* サイドバーを狭くする (30% -> 24%程度へ) */
    #sidebar {
        width: 24%;
        padding-left: 20px; /* メインとの余白 */
    }
}

/* サイドバー内の書籍紹介カードのスリム化 */
.side-book-intro .book-card {
    padding: 12px; /* 余白を少し削る */
}

.side-book-intro .book-title {
    font-size: 13px !important; /* 少し小さく */
}

.side-book-intro .book-desc {
    font-size: 11px !important;
    line-height: 1.4;
}

/* Amazonボタンを少しコンパクトに */
.amazon-btn {
    padding: 8px 10px;
    font-size: 12px;
}

/* メニューの文字も少し調整 */
#sidebar .widget_nav_menu ul li a {
    font-size: 14px;
    padding: 10px 12px;
}
/* 解説文（ansL）の装飾を追加 */
.answer .ansL {
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
    border-bottom: 1px dotted #ccc; /* 問題ごとの区切り線 */
    line-height: 1.6;
    color: #333;
}

/* 最後の解説は下線を消す */
.answer .ansL:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}