/* ========================================
   リセット・基本設定
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 2;
  color: #222;
  background-color: #fafafa;
  letter-spacing: 0.05em;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}
a {
  color: #0066cc;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
a:hover {
  opacity: 0.7;
  text-decoration: underline;
}
/* ========================================
   レイアウト
======================================== */
#wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #fff;
}
.inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 30px;
}
#column1 {
  flex: 1;
}
/* ========================================
   ヘッダー
======================================== */
#top {
  background-color: #2d3436;
  padding: 12px 0;
}
#top .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#top h1 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
#top h1 a {
  color: #fff;
}
#topmenubtn {
  cursor: pointer;
  padding: 6px 18px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.1em;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
#topmenubtn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}
#panel {
  display: none;
}
#header {
  background-color: #fff;
  border-bottom: 3px solid #2d3436;
  padding: 30px 0;
}
#headertxt .title {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #2d3436;
}
#headertxt .title a {
  color: #2d3436;
}
/* ========================================
   メインコンテンツ
======================================== */
#contents {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 30px;
}
#layoutbox {
  background-color: #fff;
}
#main {
  max-width: 750px;
  margin: 0 auto;
}
/* ========================================
   記事
======================================== */
article h3 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 40px;
  padding: 20px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  color: #2d3436;
  letter-spacing: 0.05em;
}
article h3 span {
  display: inline-block;
}
#text1 {
  margin-top: 50px;
}
#text1 h3 {
  font-size: 25px;
  font-weight: 600;
  margin: 60px 0 30px;
  padding: 0 0 15px 0;
  border-top: none;
  border-bottom: 2px solid #2d3436;
  color: #2d3436;
}
#text1 h4 {
  font-size: 21px;
  font-weight: 600;
  margin: 50px 0 25px;
  padding-left: 15px;
  border-left: 5px solid #636e72;
  color: #2d3436;
}
#text1 h5 {
  font-size: 19px;
  font-weight: 600;
  margin: 40px 0 20px;
  color: #636e72;
}
#text1 p {
  margin-bottom: 30px;
  text-align: justify;
}
#text1 .txt-img {
  margin: 50px 0;
  text-align: center;
}
.image-center {
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
/* ========================================
   リスト
======================================== */
#text1 ul,
#text1 ol {
  margin: 35px 0;
  padding-left: 30px;
  line-height: 2.2;
}
#text1 ul li,
#text1 ol li {
  margin-bottom: 15px;
  padding-left: 10px;
}
#text1 ul li {
  list-style: none;
  position: relative;
}
#text1 ul li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 14px;
  width: 5px;
  height: 5px;
  background-color: #2d3436;
  border-radius: 50%;
}
#text1 ol li {
  padding-left: 5px;
}
/* ========================================
   テーブル
======================================== */
#text1 table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
  border: 1px solid #ddd;
  font-size: 16px;
}
#text1 table th {
  background-color: #f5f5f5;
  color: #2d3436;
  padding: 18px 20px;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid #ddd;
}
#text1 table td {
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
}
#text1 table tr:last-child td {
  border-bottom: none;
}
/* ========================================
   カテゴリーリスト
======================================== */
#categorylist {
  margin-top: 70px;
  border-top: 2px solid #ddd;
  padding-top: 40px;
}
.catbox {
  margin-bottom: 35px;
  padding-bottom: 35px;
  border-bottom: 1px solid #eee;
}
.catbox:last-child {
  border-bottom: none;
}
.catbox .title {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 15px;
  line-height: 1.6;
}
.catbox .title a {
  color: #2d3436;
}
.catbox .title a:hover {
  color: #0066cc;
}
.catbox .body {
  color: #555;
  line-height: 1.9;
}
.catbox .body p {
  margin-bottom: 15px;
}
.catbox .more {
  margin-top: 15px;
}
.catbox .more a {
  color: #0066cc;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding-right: 20px;
}
.catbox .more a::after {
  content: "\203A";
  position: absolute;
  right: 5px;
  font-size: 20px;
  transition: right 0.3s ease;
}
.catbox .more a:hover::after {
  right: 0;
}
/* ========================================
   メニュー
======================================== */
#menu {
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 40px 30px;
  margin-top: 50px;
}
.menuitem h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #2d3436;
}
.menuitem h4 span {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 2px solid #2d3436;
}
.menubox ul {
  list-style: none;
}
.menubox ul li {
  margin-bottom: 0;
  border-bottom: 1px solid #e0e0e0;
}
.menubox ul li:last-child {
  border-bottom: none;
}
.menubox ul li a {
  display: block;
  padding: 15px 10px;
  color: #2d3436;
  transition: background-color 0.3s ease, padding-left 0.3s ease;
}
.menubox ul li a:hover {
  background-color: #fff;
  padding-left: 15px;
  text-decoration: none;
}
/* ========================================
   装飾枠
======================================== */
.alert,
.accept,
.attention,
.thint {
  padding: 20px 25px;
  margin: 35px 0;
  border-radius: 4px;
  border-left: 5px solid;
  line-height: 1.8;
  position: relative;
  font-size: 16px;
}
.alert::before,
.accept::before,
.attention::before,
.thint::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: middle;
  background-size: contain;
  background-repeat: no-repeat;
}
/* 警告 */
.alert {
  background-color: #fff5f5;
  border-left-color: #e74c3c;
  color: #c0392b;
}
.alert::before {
  content: "!";
  width: 24px;
  height: 24px;
  background-color: #e74c3c;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  margin-right: 12px;
}
/* 承諾 */
.accept {
  background-color: #f0f9ff;
  border-left-color: #3498db;
  color: #2980b9;
}
.accept::before {
  content: "\2713";
  width: 24px;
  height: 24px;
  background-color: #3498db;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  margin-right: 12px;
}
/* 注意 */
.attention {
  background-color: #fffbf0;
  border-left-color: #f39c12;
  color: #d68910;
}
.attention::before {
  content: "!";
  width: 24px;
  height: 24px;
  background-color: #f39c12;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  border-radius: 3px;
  margin-right: 12px;
}
/* ヒント */
.thint {
  background-color: #f0fdf4;
  border-left-color: #27ae60;
  color: #229954;
}
.thint::before {
  content: "?";
  width: 24px;
  height: 24px;
  background-color: #27ae60;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  margin-right: 12px;
}
/* ========================================
   ページトップ
======================================== */
#pagetop {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid #eee;
  margin-top: 40px;
}
#pagetop a {
  color: #636e72;
  font-size: 14px;
  letter-spacing: 0.1em;
}
#pagetop a:hover {
  color: #2d3436;
}
/* ========================================
   フッター
======================================== */
#footer {
  background-color: #2d3436;
  color: #b2bec3;
  padding: 50px 30px 30px;
  text-align: center;
  margin-top: auto;
}
#footsub {
  margin-bottom: 25px;
}
#footsub a {
  color: #b2bec3;
  font-size: 15px;
  padding: 10px 20px;
  border: 1px solid #636e72;
  border-radius: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
#footsub a:hover {
  color: #fff;
  border-color: #b2bec3;
  text-decoration: none;
}
#footer small {
  display: block;
  font-size: 13px;
  color: #636e72;
  letter-spacing: 0.05em;
}
/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.9;
  }
  .inner {
    padding: 0 20px;
  }
  #contents {
    padding: 35px 20px;
  }
  #header {
    padding: 20px 0;
  }
  #headertxt .title {
    font-size: 22px;
  }
  article h3 {
    font-size: 24px;
    margin-bottom: 30px;
  }
  #text1 h3 {
    font-size: 21px;
    margin: 45px 0 25px;
  }
  #text1 h4 {
    font-size: 19px;
    margin: 40px 0 20px;
  }
  #text1 h5 {
    font-size: 17px;
  }
  #text1 p {
    margin-bottom: 25px;
  }
  #text1 .txt-img {
    margin: 40px 0;
  }
  #text1 table {
    font-size: 14px;
  }
  #text1 table th,
  #text1 table td {
    padding: 12px 10px;
  }
  #categorylist {
    margin-top: 50px;
    padding-top: 30px;
  }
  .catbox .title {
    font-size: 18px;
  }
  #menu {
    padding: 30px 20px;
  }
  .alert,
  .accept,
  .attention,
  .thint {
    padding: 18px 20px;
    font-size: 15px;
  }
  .alert::before,
  .accept::before,
  .attention::before,
  .thint::before {
    width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 14px;
    margin-right: 10px;
  }
  .accept::before {
    font-size: 13px;
  }
}