/* ==================== ナビゲーションバー ==================== */
.navbar {
    background-color: #ff8c00;
    padding: 8px 0;
    text-align: center;
    overflow-x: auto;
    white-space: nowrap;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 8px; /* モバイルでは間隔をさらに狭める */
}

.navbar li {
    flex-shrink: 0;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 5px;
    transition: background 0.3s;
    font-size: 0.85rem; /* サイズ調整で1行に収める */
}

/* ==================== モバイル向けのレスポンシブ対応 ==================== */
@media (max-width: 600px) {
    .navbar ul {
        gap: 4px; /* モバイルではさらに間隔を縮小 */
    }

    .navbar a {
        padding: 4px 6px; /* 余白をさらに調整 */
        font-size: 0.75rem; /* 文字を少し小さくして省スペース化 */
    }
}

/* ==================== 基本のスタイル ==================== */
body {
    font-family: 'Arial', sans-serif; /* 読みやすいフォント選択 */
    line-height: 2.2; /* 行間を広めにして読みやすく */
    color: #332200; /* 文字色はダークブラウン */
    background-color: #fff5e6; /* 全体の背景色は薄いクリーム色 */
    padding: 20px;
    margin: 0;
}

p {
    line-height: 1.8;
    margin-bottom: 50px !important;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
  }

/* ==================== 見出しのデザイン ==================== */
h1 {
    font-size: 1.5rem; /* メインタイトルのサイズ */
    color: #332200;
    text-align: center; /* 中央配置 */
    margin-bottom: 20px;
}

h2 {
    font-size: 1.3rem; /* セクションタイトル */
    color: #fff; /* 白文字 */
    background-color: #ff8c00; /* 橙色背景 */
    padding: 8px 15px;
    margin-top: 30px;
}

h3 {
    font-size: 1.2rem; /* サブセクションの見出し */
    color: #332200;
    margin-top: 20px;
}

/* ==================== テーブルデザイン ==================== */
.climate-table {
    width: 100%;
    border-collapse: collapse; /* 枠線を一本化 */
    margin: 20px 0;
}

.climate-table th, .climate-table td {
    border: 1px solid #ffcc80;
    padding: 10px;
    text-align: center;
}

.climate-table th {
    background-color: #ff8c00;
    color: #fff; /* ヘッダー文字色 */
}

.climate-table tr:nth-child(even) {
    background-color: #fff3cc; /* 偶数行の背景色 */
}

.climate-table tr:hover {
    background-color: #ffe5b4; /* ホバー時の背景色 */
}

/* ==================== 目次 ==================== */
.toc {
    border: 1px solid #ffcc80;
    padding: 15px;
    margin-bottom: 30px;
}

.toc h2 {
    font-size: 1.3rem;
    color: #ff8c00;
    margin-bottom: 10px;
    background: none; /* 背景なし */
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc li {
    margin: 5px 0;
    padding-left: 15px;
    position: relative;
}

.toc li::before {
    content: '\2022'; /* 通常の中点 */
    color: #ff8c00;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.toc ul ul {
    padding-left: 20px; /* インデントでサブ項目を区別 */
}

.toc ul ul li::before {
    content: '\25CB'; /* 白抜きの中点 */
    color: #ff8c00;
}

.toc ul ul li {
    font-size: 0.95rem;
    color: #554400;
    padding-left: 20px;
}

/* ==================== タイムライン (置き場所と水やり) ==================== */
.timeline {
    border-left: 3px solid #ff8c00; /* タイムラインの軸 */
    margin: 20px 0;
    padding-left: 15px;
}

.timeline-item {
    margin: 10px 0;
    position: relative;
}

.timeline-item::before {
    content: '●'; /* 各時期のアイコン */
    color: #ff8c00;
    position: absolute;
    left: -12px;
    top: 5px;
    font-size: 1rem;
}

.time {
    font-weight: bold;
    color: #ff8c00;
}

.detail {
    margin-left: 10px;
}

/* ==================== 本文の段落 ==================== */
p {
    margin: 10px 0;
}

/* ==================== 引用文のデザイン ==================== */
blockquote {
    background-color: #ffedd5;
    border-left: 5px solid #ff8c00;
    padding: 10px 15px;
    font-style: italic;
    color: #664400;
    margin: 20px 0;
}

/* ==================== 強調表示 (オレンジの下線 + 太字) ==================== */
.highlight {
    background: linear-gradient(transparent 60%, #ffcc80 60%);
    font-weight: bold;
}

/* ==================== リンクのデザイン ==================== */
a {
    color: #ff6600;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    background-color: #fff3cc;
}

/* ==================== カテゴリリスト ==================== */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.category-item {
    background-color: #fff3cc;
    border: 2px solid #ffcc80;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
}

.category-item h2 {
    font-size: 1.3rem;
    color: #5a3e00; /* 濃いブラウン系の文字色でコントラストを強化 */
    background-color: transparent; /* 背景色は取り除いてシンプルに */
    margin-bottom: 10px;
    border-bottom: 2px solid #ff8c00; /* アクセントライン */
    padding-bottom: 5px; /* アクセントラインの見やすさを向上 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* 薄めの影を追加 */
}

.category-item ul {
    list-style: none;
    padding-left: 0;
}

.category-item li {
    margin: 5px 0;
}

.category-item a {
    color: #ff6600;
    text-decoration: none;
    transition: color 0.3s;
}

.category-item a:hover {
    color: #ff3300;
    text-decoration: underline;
}

/* ==================== 最新＆人気記事 ==================== */
.latest-articles, .popular-articles {
    background-color: #fff3cc;
    border: 2px solid #ffcc80;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
}

.latest-articles h2, .popular-articles h2 {
    color: #5a3e00;  /* 濃いブラウンの文字色 */
    background-color: #ffd699;  /* 淡いオレンジの背景 */
    padding: 8px 15px;
    margin-bottom: 10px;
    border-left: 5px solid #ff8c00;  /* 左側にアクセントライン */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);  /* 文字の立体感を演出 */
}

.latest-articles ul, .popular-articles ul {
    list-style: none;
    padding-left: 0;
}

.latest-articles li, .popular-articles li {
    margin: 5px 0;
}

/* ==================== 埋め込み記事デザイン ==================== */
.embedded-articles {
    background-color: #fff3cc;
    border: none;
    border-radius: 10px;
    padding: 15px;
    box-shadow: none;
    margin: 0;
    overflow: scroll;
}

.clean-list {
    list-style: none; /* 中点を非表示 */
    padding-left: 0;
    margin: 0;
}

.clean-list li {
    margin: 5px 0;
}

.clean-list a {
    color: #ff6600;
    text-decoration: none;
    font-weight: normal;  /* ★太字を解除★ */
    transition: color 0.3s;
}

.clean-list a:hover {
    color: #ff3300;
    text-decoration: underline;
}

iframe {
    display: block;
    width: 100%;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
}
