
.markdown-tooltip {
  color: black;
  text-decoration: none;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s ease;
  padding: 5px;
  border-radius: 5px;
  font-family: 'Playfair Display', serif;
  margin-bottom : 1px;
	margin-top : 15px;
}
.markdown-tooltip span {
  background-color: rgba(144, 238, 144, 0.5); /* 薄い緑色 */
  padding: 2px 4px;
  border-radius: 3px;
}
/* ホバー時の見た目 */
.markdown-tooltip:hover {
  color: gray; /* ホバー時に文字色がグレーに変わる */
}

/* 詳細が隠れる状態 */
.markdown-details {
  display: none;
  margin-top: 10px;
  padding: 10px;
  border-radius: 5px;
  font-family: 'Playfair Display', serif;
  padding-left: 30px;
}

/* アクティブ状態（クリック後） */
.markdown-tooltip.active + .markdown-details {
  display: block;
}
.line-break {
  margin-bottom: 20px; 
}
.site-footer > .site-info .site-name  {
  display: none; 
}
.Copyright {
    display: block;
    text-align: center;
    font-size: 15px; 
}

.admin-bar .primary-navigation {
    top: 0 !important;
}
/* メインナビゲーションを上部に固定 */
.primary-navigation {
    position: fixed;
	  margin-top: 0;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #CCCC99;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    height: 60px; /* 高さを固定 */
    line-height: 60px; /* リンクを縦方向で中央揃え */
    padding: 0 20px; /* 左右の余白だけを設定 */
    display: flex;
    justify-content: flex-end;
    align-items: center;
}



/* メニューリンクのデザイン */
.primary-navigation a {
    text-decoration: none; /* 下線を削除 */
    color: #FFFFFF; /* リンク文字の色 */
    font-size: 14px; /* 文字サイズ */
    font-weight: bold; /* 太字 */
    margin-left: 20px; /* リンク間の余白 */
    transition: color 0.3s ease; /* ホバー時のスムーズな変化 */
}



/* メインコンテナ */
.advice-container {
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* AIアドバイスボックス */
.ai-advice {
    background: #e8f0ff;
    padding: 15px;
    border-radius: 8px;
    margin: 20px auto;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ai-advice h2 {
    color: #2c7ef8;
    font-size: 22px;
    font-weight: bold;
}

.ai-advice p {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* 苦手な問題ジャンルボタン */
.weak-question-container {
    text-align: center;
    margin: 30px auto;
}

.weak-question-btn {
    background: linear-gradient(135deg, #2c7ef8, #1e5fc2);
    color: white;
    font-size: 1.2em;
    padding: 14px 26px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weak-question-btn:hover {
    background: linear-gradient(135deg, #1e5fc2, #2c7ef8);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#weakQuestionText {
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: bold;
    color: #2c7ef8;
}

/* 大項目（クリック可能） */
.advice-item {
    background: white;
    color: #333;
    padding: 18px;
    margin: 12px 0;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    border: 1px solid #ddd;
/*     display: flex; */
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.advice-item:hover {
    background: #f8f9fd;
    border-color: #2c7ef8;
    transform: scale(1.02);
}

.advice-item h2 {
    font-size: 18px;
    margin: 0;
    color: #333;
/* 	  display: none; */
}

.advice-item span {
    font-weight: bold;
    color: #2c7ef8;
}

/* 小項目リスト（非表示→開く） */
.advice-subcategories {
    display: none;
    width: 100%;
    max-width: 100%;
    padding: 15px;
    background: #f8f9fd;
    border-radius: 8px;
    margin-top: 5px;
/*     border: 1px solid #2c7ef8; */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* グラフのスタイル */
canvas {
    max-width: 100%;
    height: auto;
    margin: 25px auto;
    display: block;
}

/* 小項目のグラフ */
.advice-subcategories canvas {
    width: 100%;
    min-height: 200px; /* 最低限の高さを確保 */
	  background: #f8f9fd;
	
}

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

.advice-item,
.weak-question-btn,
.advice-subcategories {
    animation: fadeIn 0.3s ease-in-out;
}
/* メインチャートの幅を画面サイズに合わせる */
#mainChart {
    width: 100% !important;
    max-width: 100%;
    height: auto;
    min-height: 350px;
}

/* スマホ版のレスポンシブ対応 */
@media screen and (max-width: 768px) {
    .advice-container {
        width: 95%;
        padding: 20px;
    }

    .advice-item {
        flex-direction: column;
        text-align: left;
        padding: 12px;
    }

    .advice-item h2 {
        font-size: 1.1em;
        margin-bottom: 8px;
    }

    .advice-subcategories {
        width: 100%;
        padding: 10px;
    }

    .advice-subcategories canvas {
        min-width: 100%;
        height: auto;
        min-height: 250px;
    }

    /* メインチャートのスマホ対応 */
    #mainChart {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 250px;
    }
}