/* ========================================
   リセット・基本設定
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  background-color: #f8f9fa;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}
a {
  color: #2c5aa0;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #1a3d7a;
}
/* ========================================
   レイアウト
======================================== */
#wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
#column1 {
  flex: 1;
}
/* ========================================
   ヘッダー
======================================== */
#top {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 0;
}
#top .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#top h1 {
  font-size: 20px;
  font-weight: 600;
}
#top h1 a {
  color: #333;
}
#topmenubtn {
  cursor: pointer;
  padding: 8px 16px;
  background-color: #f0f0f0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
#topmenubtn:hover {
  background-color: #e0e0e0;
}
#panel {
  display: none;
}
#header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
#headertxt .title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
}
#headertxt .title a {
  color: #fff;
}
/* ========================================
   メインコンテンツ
======================================== */
#contents {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
#layoutbox {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
#main {
  padding: 40px;
}
/* ========================================
   記事
======================================== */
article h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #667eea;
}
article h3 span {
  display: inline-block;
}
#text1 h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 50px 0 25px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 4px;
}
#text1 h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 20px;
  padding-left: 12px;
  border-left: 4px solid #667eea;
  border-bottom: none;
}
#text1 h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 30px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}
#text1 h5 {
  font-size: 18px;
  font-weight: 600;
  margin: 25px 0 12px;
  color: #555;
}
#text1 p {
  margin-bottom: 20px;
}
#text1 .txt-img {
  margin: 30px 0;
}
.image-center {
  display: block;
  margin: 0 auto;
}
/* ========================================
   リスト
======================================== */
#text1 ul,
#text1 ol {
  margin: 25px 0;
  padding-left: 25px;
}
#text1 ul li,
#text1 ol li {
  margin-bottom: 10px;
  padding-left: 8px;
}
#text1 ul li {
  list-style: none;
  position: relative;
}
#text1 ul li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: #667eea;
  border-radius: 50%;
}
/* ========================================
   テーブル
======================================== */
#text1 table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
#text1 table th {
  background-color: #667eea;
  color: #fff;
  padding: 15px;
  font-weight: 600;
  text-align: left;
}
#text1 table td {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
}
#text1 table tr:last-child td {
  border-bottom: none;
}
#text1 table tr:hover {
  background-color: #f8f9fa;
}
/* ========================================
   カテゴリーリスト
======================================== */
#categorylist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 50px;
}
.catbox {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.catbox:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.catbox .title {
  background-color: #f8f9fa;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 18px;
  border-bottom: 1px solid #e0e0e0;
}
.catbox .title a {
  color: #333;
}
.catbox .body {
  padding: 20px;
}
.catbox .body p {
  margin-bottom: 15px;
  color: #666;
}
.catbox .more {
  text-align: right;
}
.catbox .more a {
  display: inline-block;
  padding: 8px 20px;
  background-color: #667eea;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
.catbox .more a:hover {
  background-color: #5568d3;
}
/* ========================================
   メニュー
======================================== */
#menu {
  background-color: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  padding: 40px;
  margin-top: 40px;
}
.menuitem h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}
.menuitem h4 span {
  display: inline-block;
}
.menubox ul {
  list-style: none;
}
.menubox ul li {
  margin-bottom: 12px;
}
.menubox ul li a {
  display: block;
  padding: 10px 15px;
  background-color: #fff;
  border-left: 3px solid #667eea;
  border-radius: 4px;
  transition: background-color 0.3s ease, padding-left 0.3s ease;
}
.menubox ul li a:hover {
  background-color: #f0f0f0;
  padding-left: 20px;
}
/* ========================================
   更新履歴
======================================== */
#whatsnew {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-top: 40px;
  overflow: hidden;
}
#whatsnew .title {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 15px 25px;
  font-size: 18px;
  font-weight: 600;
}
#whatsnew .title span {
  display: inline-block;
}
#whatsnew ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#whatsnew ul li {
  padding: 18px 25px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: background-color 0.3s ease;
}
#whatsnew ul li:last-child {
  border-bottom: none;
}
#whatsnew ul li:hover {
  background-color: #f8f9fa;
}
#whatsnew ul li span:first-child {
  color: #667eea;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  min-width: 100px;
}
#whatsnew ul li span:last-child {
  flex: 1;
  color: #555;
}
#whatsnew ul li span:last-child a {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.3s ease;
}
#whatsnew ul li span:last-child a:hover {
  text-decoration-color: #2c5aa0;
}
/* ========================================
   ページトップ
======================================== */
#pagetop {
  text-align: center;
  padding: 20px 0;
}
#pagetop a {
  display: inline-block;
  padding: 12px 30px;
  background-color: #667eea;
  color: #fff;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
#pagetop a:hover {
  background-color: #5568d3;
}
/* ========================================
   フッター
======================================== */
#footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 40px 20px 20px;
  text-align: center;
  margin-top: auto;
}
#footsub {
  margin-bottom: 20px;
}
#footsub a {
  color: #ecf0f1;
  padding: 8px 15px;
  border: 1px solid #ecf0f1;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
#footsub a:hover {
  background-color: #34495e;
}
#footer small {
  display: block;
  font-size: 13px;
  color: #bdc3c7;
}
/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 768px) {
  #main {
    padding: 25px 20px;
  }
  #header {
    padding: 40px 0;
  }
  #headertxt .title {
    font-size: 24px;
  }
  
  #text1 h2 {
    font-size: 22px;
    padding: 12px 16px;
  }
  article h3 {
    font-size: 24px;
  }
  #text1 h3 {
    font-size: 20px;
  }
  #categorylist {
    grid-template-columns: 1fr;
  }
  #menu {
    padding: 25px 20px;
  }
  #text1 table {
    font-size: 14px;
  }
  #text1 table th,
  #text1 table td {
    padding: 10px;
  }
  #whatsnew .title {
    padding: 12px 20px;
    font-size: 16px;
  }
  #whatsnew ul li {
    padding: 15px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  #whatsnew ul li span:first-child {
    min-width: auto;
    font-size: 13px;
  }
}