/* style.css */
@charset "UTF-8";

/* ベースリセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* フォント・配色 */
body {
  font-family: "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
  font-size: 0.875rem; /* 通常は少し小さく（14px） */
}

a {
  color: #1e4e8c;  /* 落ち着いた紺色系 */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* レイアウト共通 */

#logo img {            /*ロゴ画像*/
	display: block;
	width: 150px;	/*ロゴの幅*/
}

.bold {
  font-weight: bold;	/*太字指定　<span class="bold">太字の文字</span>*/ 
}

.content ul,
.content ol {
  padding-left: 1.5rem;  /* インデントを確保 */

}

.content li {
  font-weight: bold;
}

.header, .footer {
  width: 100%;
  background-color: #f9f9ee;
  padding: 2rem 3rem;
}

.header h1 {
  font-size: 2rem;
  color: #000080;
}

.header h4 {
  font-size: 1rem;
  color: #555;
}

.footer {
  font-size: 0.8rem;
  text-align: center;
  color: #777;
}

/* 本文中の文字デザイン個別指定 */

.em-red { /* 赤太文字 */
  color: #FF0000;
  font-weight: bold;
}

.em-bold { /* 太文字 */
  font-weight: bold;
}

.u { /* アンダーライン */
  text-decoration: underline;
}

.mark-yellow { /* 黄色マーカー */
  background: linear-gradient(transparent 50%, #21ff00 50%);
}

/* 記事カテゴリータイトルのスタイル */
.categorie-title {
  display: inline-block;
  background-color: #333;     /* 濃いグレー */
  color: #fff;                /* 白抜き */
  font-size: 0.75rem;         /* 小さめの文字 */
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.8rem;
  border-radius: 3px;
}

.categorie-title h4 {
  margin: 0;
  font-weight: normal;
}

.categorie-title a {
  color: #fff;
  text-decoration: none;
}

.categorie-title a:hover {
  text-decoration: underline;
}

/* メインレイアウト */
.main {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5% 8%;
}

.content {
  width: 66%;
  padding-right: 2rem;
}

.sidebar {
  width: 28%;
  padding-left: 2rem;
}

.cate-articles {
  margin-bottom: 1.5rem;
}

.cate-articles ul {
  list-style: none;
}

.cate-articles li + li {
  margin-top: 0.5rem;
}

.cate-articles h3 {
  font-size: 1rem;
  color: #333;
  border-left: 5px solid #1e4e8c;
  border-bottom: 2px solid #1e4e8c;
  padding-left: 0.7rem;
  margin-bottom: 1rem;
}

.nav-categories {
  margin-bottom: 1.5rem;
}

.nav-categories ul {
  list-style: none;
}

.nav-categories li + li {
  margin-top: 0.5rem;
}

.nav-categories h3 {
  font-size: 1rem;
  color: #333;
  border-left: 5px solid #1e4e8c;
  border-bottom: 2px solid #1e4e8c;
  padding-left: 0.7rem;
  margin-bottom: 1rem;
}

/* メインタイトル2行化制御　2行まで表示して残りは省略（…） */
.title-2line{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;   /* 最大2行 */
  overflow: hidden;
  line-height: 1.5;        /* サイトの見出しに合わせて微調整OK */
  overflow-wrap: anywhere; /* 長い英数でも崩れにくくする */
}

/* 記事内見出し */
.content h2 {
  font-size: 1.8rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: #1e4e8c;
}

.post-date {
  font-size: 0.75rem;   /* 小さめ文字 */
  color: #333;          /* 本文と同じ文字色 */
  margin-bottom: 1.5rem;  /* 下に少し余白 */
}

.content h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
  border-left: 4px solid #1e4e8c;
  color: #1e4e8c;
}

/* PRボックス */
.pr-box {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1.2rem 1.5rem;
  background-color: #f6f1e7;  /* 薄いベージュ系背景 */
  border-left: 4px solid #d4a948;  /* ゴールド系左線 */
  border-right: 1px solid #e0d3b0;
  border-top: 1px solid #e0d3b0;
  border-bottom: 1px solid #e0d3b0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.pr-box .pr-title {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: #b38700;
}

.pr-box .pr-text {
  margin: 0;
  color: #333;
}

@media (min-width: 768px) {
  .pr-box {
    font-size: 0.8rem;  /* PC用では少し小さめ（約13.6px） */
  }

  .pr-box .pr-title {
    font-size: 0.9rem;  /* キャッチコピーも少し抑えめ */
  }
}


/* 参考資料 */
.reference-box {
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  border: 1px solid #d8c8a0; /* 薄いベージュの線 */
  background-color: #fdf8f0; /* ベージュ系背景 */
  font-size: 0.85rem;
  word-break: break-word;         /* 長い文字列を折り返す */
  overflow-wrap: break-word;      /* 古いブラウザ対応も含める */
}

.reference-box .reference-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.reference-box ul {
  padding-left: 1.2rem;
  list-style-type: disc;
}

.reference-box li {
  margin-bottom: 0.8rem;
  font-weight: normal; /* 太字ではなく普通の文字に */
}

.reference-box a {
  font-weight: normal; /* URLも太字にしない */
  color: #1e4e8c;
  text-decoration: none;
}

.reference-box a:hover {
  text-decoration: underline;
}

/* リード文・まとめ */
.lead {
  margin-bottom: 1rem;
}

.summary {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #f0f8ff;
  border-left: 4px solid #1e4e8c;
}

/* まとめ内テーブル */
.summary-table {
  width: 100%;
  max-width: 800px;
  border-collapse: collapse;
  margin: 0.5rem 0;
  font-size: 0.8rem;
}

.summary-table th,
.summary-table td {
  border: 1px solid #ccc;
  padding: 0.75rem 1rem;
  text-align: left;
}

.summary-table th {
  background-color: #1e4e8c;
  color: #fff;
  font-weight: bold;
}

.summary-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

@media screen and (max-width: 600px) {
  .summary-table {
    font-size: 0.9rem;
  }

  .summary-table th,
  .summary-table td {
    padding: 0.5rem 0.75rem;
  }
}

/* バナー広告 */
.banner-image {
  display: block;
  width: 100%;
  height: auto; /* 縦サイズは画像のオリジナル比率 */
  margin: 1rem 0;
}

/* メインイメージ画像 */
.article-image {
  display: block;
  width: 100%;
  height: auto; /* 縦サイズは画像のオリジナル比率 */
  margin: 1rem 0;
}


/* --- カテゴリーページ・一覧カードデザイン（横並び・ワンカラム） --- */
.category-list {
  display: block;  /* ワンカラムで縦に並べる */
  margin-bottom: 3rem;
}

.category-list h2{
  margin-top: 0 !important;
}

.category-list .category-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 0.2rem;
  background-color: #fff;
}

.category-list .category-item a {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.category-list .category-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 4px;
}

.category-list .category-item h3 {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
  color: #1e4e8c;
  overflow: hidden;
  display: -webkit-box;
  border: none !important;
  padding-left: 0;  /* 余白もリセット */
  -webkit-line-clamp: 2;  /* 最大2行表示 */
  -webkit-box-orient: vertical;
}

/* カテゴリー見出し（h2）を少し小さく */
.category-list h2 {
  font-size: 1.3rem;
  line-height: 1.4;
  margin: 2rem 0 1rem;
  color: #1e4e8c;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.5rem;
  }
  .content h2 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 1.3rem;
  }
  body {
    font-size: 1rem; /* スマホでは標準サイズ（16px） */
  }
  .main {
    flex-direction: column;
    padding: 10%;
  }
  .content, .sidebar {
    width: 100%;
    padding: 0;
  }
}
