/* 全体のリセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Sans", "Meiryo", sans-serif;
  background-color: #f5f5f5;
  line-height: 1.6;
}

/* ヘッダー */
header {
  display: flex;
  max-width: 1200px;
  margin: 20px auto;
  border-bottom: solid 1px #000;
  padding-left: 20px;
}

header h1 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

/* トップナビ（水平ナビ） */
@media (max-width: 768px) {
.topnav {display:none}
}

@media (min-width: 769px){
.topnav {
  background: -moz-linear-gradient(top, #134b72, #0e3c5c);
  background: -webkit-linear-gradient(top, #134b72, #0e3c5c);
  background: linear-gradient(to bottom, #134b72, #0e3c5c);
  overflow: hidden;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 10px;
  box-shadow: 2px 2px 4px gray;
}
}

.topnav ul {
  list-style: none;
  display: flex;
  /* 横並び */
}

.topnav li {
  position: relative;
  /* ドロップダウン表示用 */
}

.topnav a {
  display: block;
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.topnav a:hover {
  background-color: #0a2b43;
}

/* ドロップダウンメニュー */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #0e3c5c;
  min-width: 180px;
  z-index: 99;
}

.dropdown-content a {
  padding: 8px 15px;
}

.topnav li:hover .dropdown-content {
  display: block;
}

/* メインコンテンツのラッパ */
.container {
  display: flex;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 10px;
}

/* 左カラム(ドロップダウン式のサイドメニュー) */

@media (max-width: 768px) {
.left-menu {display:none}
}

@media (min-width: 769px){
.left-menu {
  width: 220px;
  background-color: #0e3c5c;
  color: #fff;
  margin-right: 10px;
  padding: 10px;
}
}

.left-menu h2 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.left-menu ul {
  list-style: none;
}

.left-menu li {
  margin-bottom: 5px;
  position: relative;
}

.left-menu a {
  color: #fff;
  text-decoration: none;
  padding: 5px;
  display: block;
  transition: background-color 0.2s;
}

.left-menu a:hover {
  background-color: #0a2b43;
}

/* 左メニュー内のドロップダウン(サブメニュー) */
.left-menu .submenu {
  display: none;
  background-color: #0b3452;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 3px solid #fff;
}

.left-menu li:hover>.submenu {
  display: block;
}

.left-menu .submenu li {
  margin-bottom: 0;
}

/* 中央カラム(メイン本文) */
.main-content {
  flex: 1;
  background-color: #fff;
  padding: 15px;
  margin-right: 10px;
}

.main-content h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

.main-content h3 {
  font-size: 1rem;
  margin: 10px 0;
}

.main-content p {
  margin-bottom: 10px;
}

.main-content li:nth-child(even) {
  background: #e3e3e3;
}

.main-content li {
  color: #0051a3;
  list-style: none;
  /* デフォルトのアイコンを消す */
  margin: 0;
  /* デフォルト指定上書き */
  padding: 0;
  /* デフォルト指定上書き */
  padding-left: 3px;
}

.main-content li:before {
  content: "";
  /* 空の要素作成 */
  width: 3px;
  /* 幅指定 */
  height: 3px;
  /* 高さ指定 */
  display: inline-block;
  /* インラインブロックにする */
  background-color: #262626;
  /* 背景色指定 */
  border-radius: 50%;
  /* 要素を丸くする */
  position: relative;
  /* 位置調整 */
  top: -5px;
  /* 位置調整 */
  margin-right: 5px;
  /* 余白指定 */
}

/* 右カラム(サイドバー) */
@media (max-width: 768px) {
.right-menu {display:none}
}

@media (min-width: 769px){
.right-menu {
  width: 200px;
  background-color: #eee;
  padding: 10px;
}
}

.right-menu h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}

.right-menu ul {
  list-style: disc inside;
}

.right-menu ul li {
  margin-bottom: 5px;
}

/* フッター */
footer {
  background-color: #eee;
  text-align: center;
  padding: 10px 0;
  margin-top: 20px;
}


/* ハンバーガーメニュー */
@media (max-width: 768px) {
.menu-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    height: 50px;
    width: 50px;
    justify-content: center;
    align-items: center;
    z-index: 90;
    background-color: #f5f5f5;
}
}

@media (min-width: 769px){
.menu-btn {display:none}
}



.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: #292929;
    position: absolute;
}
.menu-btn span:before {
    bottom: 8px;
}
.menu-btn span:after {
    top: 8px;
}

#menu-btn-check:checked ~ .menu-btn span {
    background-color: rgba(255, 255, 255, 0);/*メニューオープン時は真ん中の線を透明にする*/
}
#menu-btn-check:checked ~ .menu-btn span::before {
    bottom: 0;
    transform: rotate(45deg);
}
#menu-btn-check:checked ~ .menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
}

#menu-btn-check {
    display: none;
}

.menu-content {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 100%;/*leftの値を変更してメニューを画面外へ*/
    z-index: 80;
    background-color: #3584bb;
    transition: all 0.5s;/*アニメーション設定*/
}
.menu-content ul {
    padding: 70px 10px 0;
}
.menu-content ul li {
    border-bottom: solid 1px #ffffff;
    list-style: none;
}
.menu-content ul li a {
    display: block;
    width: 100%;
    font-size: 15px;
    box-sizing: border-box;
    color:#ffffff;
    text-decoration: none;
    padding: 9px 15px 10px 0;
    position: relative;
}
.menu-content ul li a::before {
    content: "";
    width: 7px;
    height: 7px;
    border-top: solid 2px #ffffff;
    border-right: solid 2px #ffffff;
    transform: rotate(45deg);
    position: absolute;
    right: 11px;
    top: 16px;
}
#menu-btn-check:checked ~ .menu-content {
    left: 0;/*メニューを画面内へ*/
}