/* ----------------------------------
   全体
---------------------------------- */
body {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  font-family: "Yu Gothic", "Hiragino Sans", sans-serif;
  line-height: 1.8;
  color: #333;
  background: #fafafa;
}

/* ----------------------------------
   タイトル
---------------------------------- */
h1 {
  font-size: 1.8rem;
  border-left: 8px solid #ff8c42;
  padding-left: 15px;
  margin-bottom: 25px;
}

/* ----------------------------------
   メイン画像
---------------------------------- */
body>img:first-of-type {
  display: block;
  max-width: 100%;
  max-height: 450px;
  width: auto;
  height: auto;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

/* ----------------------------------
   情報欄
---------------------------------- */
.info-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px 20px;
  margin: 20px 0;
}

.info-box p {
  margin: 8px 0;
}

/* ----------------------------------
   キーワード
---------------------------------- */
.keywords {
  margin: 20px 0;
}

.keywords a {
  display: inline-block;
  margin: 4px;
  padding: 4px 10px;
  background: #eef5ff;
  border: 2px solid #3366cc;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #3366cc;
}

.keywords span {
  display: inline-block;
  margin: 4px;
  padding: 4px 10px;
  background: #eef5ff;
  border: 1px solid #c8dafc;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #3366cc;
}

.keywords a:hover {
  background: #dbe8ff;
}

/* ----------------------------------
   ダウンロードボックス
---------------------------------- */
.card-botton {
  text-align: center;
  background: #fff7e8;
  border: 2px solid #ffd27a;
  border-radius: 10px;
  padding: 20px;
  margin: 30px 0;
}

.card-botton p {
  font-weight: bold;
  margin-bottom: 10px;
}

.card-botton img {
  transition: 0.2s;
}

.card-botton img:hover {
  transform: scale(1.05);
}

/* ----------------------------------
   前後リンク
---------------------------------- */
.nav-links {
  text-align: center;
  margin: 25px 0;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 5px;
  background: #f0f0f0;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
}

.nav-links a:hover {
  background: #e0e0e0;
}

/* ----------------------------------
   一覧リンク
---------------------------------- */
.index-link {
  text-align: center;
  margin: 20px 0;
}

.index-link a {
  color: #0066cc;
  font-weight: bold;
}

/* ----------------------------------
   区切り線
---------------------------------- */
hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 25px 0;
}

/* ----------------------------------
   フッター
---------------------------------- */
.site-footer {
  margin-top: 50px;
  padding: 20px 10px;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid #ddd;
}

.site-footer a {
  color: #3366cc;
  text-decoration: none;
  transition: 0.2s;
}

.site-footer a:hover {
  color: #ff8c42;
  text-decoration: underline;
}

/*---------
RSS
------------*/
/* RSS 全体のリスト */
.rss-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}

/* 1行のカード */
.rss-row {
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  overflow: hidden;
}

/* クリック範囲を広く */
.rss-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  padding: 10px;
  gap: 12px;
}

/* サムネール部分（横幅1/3） */
.rss-thumb-wrap {
  flex: 0 0 33%;
  max-width: 33%;
}

.rss-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* テキスト部分（横幅2/3） */
.rss-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* タイトル */
.rss-title {
  font-weight: bold;
  margin-bottom: 4px;
  line-height: 1.4;
}

/* 日付 */
.rss-date {
  font-size: 0.85em;
  color: #666;
}

.rss-desc {
  font-size: 0.85em;
  color: #555;
  margin-top: 4px;
  line-height: 1.4;
}

/* セクション全体 */
.illust-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* タイトル（テーマ） */
.illust-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  padding: 10px 0;
  border-bottom: 3px solid #ccc;
}

/* グリッド配置 */
.illust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* PCは3列 */
  gap: 20px;
}

/* 各イラスト枠 */
.illust-item {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* 画像 */
.illust-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* キャプション */
.illust-caption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #555;
}

/* モバイルは1列 */
@media (max-width: 768px) {
  .illust-grid {
    grid-template-columns: 1fr;
  }
}

/* ホバー時の上品な演出 */
.illust-item {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.2s ease;   /* ← これが大事 */
}

.illust-item:hover {
  background: #f7f7f7;         /* ほんのり色を変える */
  transform: scale(1.03);      /* 少しだけ拡大 */
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18); /* 影を強く */
}
