h1 {
	margin: 0px;
	padding: 0px;
	font-size: 11px;
	color: #999999;

}
.container {
    display: flex;
    width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

aside {
    width: 200px;
    /*background: #f0f0f0;*/
    padding: 5px;
}

main {
    width: 1000px;
    flex: 1;
    background: #ffffff;
    padding: 5px;
    text-align: left;
     /* ↓追加することで文字列が折り返されるように */
    word-break: break-word;        /* 長い単語を途中で折る */
    overflow-wrap: break-word;     /* 長い語が要素外にはみ出さないように折る */
}
main h2 {
  font-size: 1.8em;
  border-bottom: 2px solid #555;
  margin-bottom: 1em;
  padding-bottom: 0.3em;
  color: #333;
}

/* 戻る、次へリンク */
main > a {
  display: inline-block;
  margin: 0.5em 0.5em 2em 0;
  padding: 0.4em 0.8em;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}
main > a:hover {
  background-color: #555;
}

/* 件数表示 */
main > b {
  margin: 0 0.5em;
  color: #555;
}

/* ブログリスト全体 */
.panblog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 各ブログ項目 */
.panblog-list li {
  background: #fff;
  margin-bottom: 1.2em;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.panblog-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* タイトルリンク */
.panblog-name {
  font-size: 1.2em;
  font-weight: bold;
  color: #1a73e8;
  text-decoration: none;
}
.panblog-name:hover {
  text-decoration: underline;
}

/* 説明文 */
.panblog-desc {
  margin-top: 0.5em;
  font-size: 0.95em;
  color: #555;
}
/*上部横並びメニュー*/
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap; /* ← ここを追加 */
  gap: 0.5em;       /* 要素同士の間隔（任意） */
}

.nav-list li {
  display: flex;
  align-items: center;
  color: #fff;
}

.nav-list li:not(:last-child)::after {
  content: "|";
  margin: 0 0.5em;
  color: #fff;
}


.nav-list li a {
  color: #fff;
}
/*パンブログ記事詳細ページ7
/* 記事全体 */
#article {
  max-width: 800px;
  margin: 3em auto;
  padding: 2em;
  background: #fffdf7;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  font-family: "Helvetica Neue", "游ゴシック", YuGothic, sans-serif;
  color: #333;
  line-height: 1.8;
}

/* タイトル */
#article .kiji_title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 1.2em;
  border-left: 6px solid #f4a261;
  padding-left: 0.6em;
  color: #2d2d2d;
}

/* セクション見出し */
#article h3 {
  font-size: 1.3em;
  margin-top: 2em;
  margin-bottom: 0.8em;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.2em;
  color: #264653;
}

/* 本文段落 */
#article p {
  margin-bottom: 1.2em;
  text-align: justify;
}

/* 右下の補足情報 */
#article .p {
  font-size: 0.85em;
  color: #999;
  margin-top: 2em;
}
/*検索フォーム*/
  .search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin: 0;
    padding: 5px 0.5%;
    align-items: center;
    max-width: 500px;
    width: 99%;
  }

  .search-form select, {
    flex: 1 1 160px;
    padding: 0.4em;
    font-size: 1em;
  }

  .search-form input[type="text"] {
    flex: 1 1 200px;
    padding: 0.4em;
    font-size: 1em;
  }
  .search-form button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .search-form img {
    max-width: 100%;
    height: auto;
    display: block;
  }

/*ショーウィンドウのデザイン*/

.grid-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* ここでアイテムの幅を設定し、自動で行を埋める */
            gap: 20px; /* グリッドアイテム間のギャップ */
            justify-content: center; /* 全体を中央寄せ */
            width: 96%; /* コンテナの幅 */
            margin: 5px auto; /* ページ中央に配置 */
            border: 1px solid #ccc;
            padding: 2%;
}

.grid-item {
            display: flex;
            flex-direction: column; /* 子要素を縦に並べる */
            align-items: center; /* 中央揃え */
            /*border: 1px solid black;*/
            padding: 0px;
            /*background-color: #f8f8f8;*/
}

.item-content {
            width: 100%; /* 幅を親に合わせる */
            height: auto; /* 高さの設定 */
            display: flex;
            justify-content: center;
            align-items: center;
            /*background-color: #ccc;  例えば画像があれば背景色は不要 */
}

.item-text {
            margin-top: 5px; /* コンテンツとテキストの間に余白を設ける */
            text-align: center;
            font-size: 12pt;
            color: #333;
}



/*-------------------------------------------------------- タブレット向けのスタイル ------------------------------------------------------------------------------------*/
@media screen and (min-width:950px) and (max-width:1200px) {
.sp_mode_only {
    display: none;
}
.container {
    display: flex;
    width: 950px;
    margin-left: auto;
    margin-right: auto;
}

aside {
    width: 180px;
    /*background: #f0f0f0;*/
    padding: 5px;
}

main {
    width: 770px;
    flex: 1;
    background: #ffffff;
    padding: 5px;
}

}
/*-------------------------------------------------------- スマホ向けのスタイル ------------------------------------------------------------------------------------*/
@media screen and (max-width:950px) {
.pc_tb_mode_only {
    display: none;
}

.container {

    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

aside {
    width: 100%;
    /*background: #f0f0f0;*/
    padding: 5px;
}

main {
    width: 100%;

    background: #ffffff;
    padding: 5px;
}

/* ここからハンバーガーメニューに関するCSS #side_contentsをハンバーガーメニューのボディーと表示するため#side_contentsを含む */
aside {
  position: fixed;
  top: 0;
  left: -70%; /* 初期状態で非表示 */
  width: 70%;
  height: 100%;
  background-color: #f4f4f4;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  transition: left 0.3s ease;
  z-index: 100; /* 背景より上 */
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto; /* 垂直方向のスクロールバーを表示 */
  overflow-x: hidden; /* 横方向のスクロールバーを非表示（必要なら省略） */

}
/* チェックボックス（トリガー） */
.menu-toggle {
  display: none; /* 非表示 */
}
/* ハンバーガーメニューアイコン */
.hamburger {
  position: absolute;
  top: 50px;
  right: 20px;
  width: 30px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 101; /* メニューより上 */
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center; /* 回転の中心を明確に */
}


/* チェックボックスがチェックされたとき */
.menu-toggle:checked ~ aside {
  left: 0; /* メニューをスライドイン */
}

.menu-toggle:checked ~ .hamburger span:nth-child(1) {
  transform: rotate(45deg) translateY(9px) translateX(10px); /* translateYを調整 */
}

.menu-toggle:checked ~ .hamburger span:nth-child(2) {
  opacity: 0; /* 真ん中の線を非表示 */
}

.menu-toggle:checked ~ .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px) translateX(10px); /* translateYを調整 */
}

/* ここまでハンバーガーメニューに関するCSS #side_contentsをハンバーガーメニューのボディーと表示するため#side_contentsを含む */




}
