body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
}
.search-form-wrapper {
  padding: 2;
  background-color: #FFFFFF;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  border: none;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: #007bff;
  text-decoration: none;
}
.text-center {
  text-align: center;
}
header {
  text-align: center;
  margin-bottom: 20px;
}
.logo {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.search-bar {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  margin-top: 20px;
}
main {
  width: 100%;
}
h1, h2, h3, h4 {
  margin-top: 1.0em;
  margin-bottom: 0.5em;
}
h1 {
  font-size: 1.5em;
  margin: 2px;
}
h2 {
  font-size: 1.3em;
  margin: 2px;
}
h3 {
  font-size: 1.2em;
}
h4 {
  font-weight: normal;
}
.main-image-container {
  margin: 20px 0;
  border: 2px dotted #ccc;
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
}
.main-image-container figure {
  margin: 0;
}
.main-image-container img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 0px;
}
.main-image-container figcaption {
  text-align: center;
  margin-top: 10px;
  color: #555;
}
.download-button {
  display: inline-block;
  padding: 12px 30px;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  background-color: #4CAF50;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
}
.download-button:hover {
  background-color: #45a049;
}
.thumbnail-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.thumbnail-item a {
  display: block;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.thumbnail-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}
.thumbnail-item a:hover {
  border-color: #007bff;
}
.image-link-wrapper {
  border: 1px solid #ccc;
  padding: 15px;
  margin: 20px 0;
}
.image-link-wrapper img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}
.image-link-wrapper .image-caption-link {
  display: block;
  text-align: center;
  margin-top: 10px;
}
.image-link-wrapper .image-caption-link:hover {
  text-decoration: underline;
}
.category-menu {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.category-menu-1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}
.category-menu-1 a {
  display: inline-block;
  padding: 5px 15px;
  font-size: 14px;
  color: #007bff;
  background-color: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 9999px;
}
.category-menu-1 a:hover {
  text-decoration: underline;
}
.category-menu-2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}
.category-menu-2 a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  color: #ffffff;
  background-color: #888888;
  border: none;
  border-radius: 8px;
  transition: background-color 0.3s;
}
.category-menu-2 a:hover {
  background-color: #666666;
  text-decoration: none;
}
.category-menu-3 {
  display: block;
}
.category-menu-3 li {
  margin: 0;
  border-bottom: 1px solid #eee;
}
.category-menu-3 a {
  display: block;
  padding: 4px 8px;
  color: #007bff;
  transition: background-color 0.3s;
}
.category-menu-3 a:hover {
  background-color: #f0f8ff;
  text-decoration: underline;
}
footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ccc;
}
footer ul {
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
footer a {
  color: #333;
}
footer a:hover {
  text-decoration: underline;
}
/* リストを横並びにする */
.breadcrumb ul {
  display: flex;
  list-style: none; /* リストの点・数字を消す */
  padding: 0;
  margin: 20px 0;
}
/* リンクなどの基本文字設定 */
.breadcrumb li {
  color: #333; /* 現在のページの文字色 */
  font-size: 14px;
}
.breadcrumb a {
  text-decoration: none; /* 下線を消す */
  color: #007bff; /* リンクの色 */
}
/* 最後の項目以外に「>」をつける */
.breadcrumb li:not(:last-child)::after {
  content: '>'; /* 区切り文字 */
  margin: 0 10px; /* 文字の左右の余白 */
  color: #999; /* 記号の色 */
}
.img-space {
  margin: 10px 0; /* 上下20px 左右0 の余白 */
}
.gray-line {
  border-bottom: 1px solid #cccccc; /* 線の太さ・種類・色 */
  margin: 35px 0; /* 上下20px 左右0 の余白 */
}
/* 全体の枠組み（PCでは横並び） */
.material-item {
  display: flex; /* 横並びにする魔法 */
  gap: 30px; /* 画像と文字の間の隙間 */
  margin-bottom: 50px; /* 次の素材との間隔 */
  padding-bottom: 50px; /* 下線の上の余白 */
  border-bottom: 1px solid #ddd; /* 区切りの下線 */
  align-items: flex-start; /* 上揃えにする */
}
/* 画像エリアの設定 */
.material-img-box {
  flex: 0 0 300px; /* PCでの画像幅を300pxに固定 */
  text-align: center;
}
/* 画像そのものの設定 */
.material-img-box img {
  width: 100%; /* 枠いっぱいに表示 */
  height: auto; /* 高さは自動 */
  /* ▼▼▼ 変更箇所：影を消して薄いグレーの線にする ▼▼▼ */
  border: 1px solid #ccc; /* ソリッド1px グレー薄め */
  border-radius: 8px; /* 角を少し丸くする */
  box-shadow: none; /* 影を削除 */
  /* ▲▲▲ 変更ここまで ▲▲▲ */
}
/* ▼▼▼ 新規追加：キャプションのデザイン ▼▼▼ */
.img-caption {
  font-size: 14px; /* 文字サイズを小さめに */
  color: #666; /* 文字色を少し薄く */
  margin-top: 8px; /* 画像との隙間 */
  margin-bottom: 0;
}
/* テキストエリアの設定 */
.material-text-box {
  flex: 1; /* 横幅の残り全部を使う */
}
/* タイトル（H3）のデザイン */
.material-text-box h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.4em;
  color: #333;
  border-left: 5px solid #ff9900; /* 左にアクセントカラーの線 */
  padding-left: 10px;
}
/* 説明文のデザイン */
.description {
  font-size: 16px;
  line-height: 1.8; /* 行間を広げて読みやすく */
  color: #555;
  margin-bottom: 20px;
}
/* ダウンロードボタンのデザイン */
.dl-btn {
  display: inline-block;
  background-color: #28a745; /* 緑色（変更可） */
  color: #fff;
  padding: 10px 25px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px; /* 丸いボタンにする */
  box-shadow: 0 4px 0 #1e7e34; /* ボタンの立体感 */
  transition: all 0.3s;
  margin-top: 10px;
}
.dl-btn:hover {
  transform: translateY(2px); /* クリックしたような動き */
  box-shadow: 0 2px 0 #1e7e34;
}
/* ▼▼▼ スマホ対応（画面幅768px以下の設定） ▼▼▼ */
@media (max-width: 768px) {
  .material-item {
    flex-direction: column; /* 縦並びに変更 */
  }
  .material-img-box {
    flex: none; /* 幅固定を解除 */
    width: 100%; /* 横幅いっぱいに */
    margin-bottom: 20px; /* 画像の下に隙間 */
  }
  .dl-btn {
    display: block; /* スマホではボタンを大きく */
    text-align: center;
  }
}