@charset "UTF-8";

:root {
   /* タイトル画像のサイズ */
   --img-size:50px;

   /* ヘッダーの間隔 */
   --header-distance:10px;

   /* ナビゲーションの記号 */
   --nav-symbol:">";

   /* テーマカラー */
   --main-color:black;
   --back-color:white;
   --theme-color1:darkblue;
   --theme-color2:green;
}

/* タイトル画像 */
header img {
   height:var(--img-size);
}
header > a {
   display:flex;
   margin:0 var(--header-distance);
}

/* 画像とヘッダーをflex */
header {
   display:flex;
   z-index:1;
   place-items:center;
}

/* ハイパーリンクの処理 */
a[href]:not(.white) {
   text-decoration:none;
   color:var(--theme-color1);
}
a[href]:hover {
   text-decoration:underline;
}

/* headerの隙間を削除 */
body {
   margin:0px;
}
body > header ~ * {
   margin:8px;
}

/* メニューの動作処理 */
.main:hover + .sub {
   display:block;
}
.sub:hover {
   display:block;
}
.sub {
   display:none;
   backface-visibility:hidden;
   height:auto;
   background-color:var(--back-color);
   border:solid var(--theme-color2);
   border-radius:10px;
   width:100%;
}
.sub > li {
   margin:5px 0;
}

/* メニューの形式処理 */
header ul {
   padding:0;
   margin:0;
   height:var(--img-size);
   list-style:none;
}
#normal {
   display:flex;
   flex:auto;
}
#normal > li {
   flex:auto;
}

/* リスト中央処理 */
#normal {
   place-items:center;
}
#normal > li {
   position:relative;
}
.sub {
   position:absolute;
}

/* リストのテキスト位置 */
header li {
   text-align:center;
}

/* ナビゲーションの操作 */
nav ul {
   list-style:none;
}
nav li {
   display:inline;
}
nav li:has(a):after {
   content:var(--nav-symbol);
   font-weight:bold;
}

/* タイトルの設定 */
h1 {
   text-align:center;
   color:var(--theme-color1);
}

/* メニューの非表示設定 */
@media (width <= 800px) {
   #normal > li {
      display:none;
   }
}

/* 位置の固定 */
header {
   position:fixed;
   top:0;
   margin:0;
   padding-top:10px;
   width:100%;
   background-color:var(--back-color);
   padding-bottom:10px;
   border-bottom:solid var(--theme-color1);
}
header + nav {
   /* headerのpadding + 80px */
   margin-top:90px;
}

/* 目次の設定 */
.contents {
   color:var(--theme-color1);
}
.contents:hover {
   text-decoration:underline;
}

/* 中央配置 */
.center-element {
   display:flex;
   place-content:center;
}


/* ここからハンバーガーの処理 */


.content + ul {
   display:none;
}
.content:checked + ul {
   display:block;
}

/* 表示時設定 */
#show:checked + #side {
   width: 210px;
   transition: ease .3s;
}

/* メニュー(ハンバーガー)の設定 */
#side {
   display: flex;
   flex-direction: column;
   position:fixed;
   top: 0;
   right: 0;
   height: 100%;
   z-index: 2;
   background-color: white;
   margin: 0;
   width: 0;
   transition: ease .3s;
   overflow-y: auto;
}

#side > li {
   border: solid;
   margin: 10px;
   border-radius: 8px;
}

#side ul {
   border-top: solid;
   padding-top: 10px;
}

/* 重なり対策 */
#side > li > ul {
   height:auto;
}

/* リストの設定 */
#side,#side ul {
   padding-top: 1px;
   list-style:none;
   color:var(--main-color);
}

/* 薄い背景の設定 */
:has(#show:checked) > #back {
   position:fixed;
   top:0;
   left:0;
   z-index:1;
   background-color: rgb(150 150 150);
   height: 100%;
   width: 100%;
   opacity: .5;
}

/* ハンバーガーマーク */
#hamburger > div {
   background-color:black;
   margin:5px 0;
   height:5px;
   width:30px;
   border-radius:5px;
}
#hamburger {
   margin-right:var(--header-distance);
}

/* 幅に応じて消滅 */
@media (width > 800px) {
   #hamburger {
      display:none;
   }
   #back {
      display:none;
   }
   #side {
      display:none;
   }
}
/*ここからフッター*/
.footer{
   width: auto;
   background-color: #5a5a5a;
   color: #fff;
  text-align: center;
   padding: 40px 0;
   margin-bottom: 0px;
   
 }
 .footer_ul{
   list-style: none;
   display: flex;
   justify-content: center;
   color: white;
   
 }
 .white{
   width: 100%;
   margin-bottom: 10px;
   margin-top: -20px;
   font-size: 20px;
   color: white;
   display: inline-block ;
   padding-bottom: 10px;

 }
 .footer-li{
   padding: 0 10%;
 }

.center{
   padding: auto;
 }
 main{
   padding: 0px 15%;
 }

 .title{
   font-size: 30px;
   color:var(--theme-color1);
   position: relative;
   line-height: 1.4;
   padding:0.25em 1em;
   display: inline-block;
   margin-top: 20px;
 }
 .title:before, .title:after { 
   content:'';
   width: 20px;
   height: 30px;
   position: absolute;
   display: inline-block;
 }
 
 .title:before {
   border-left: solid 1px var(--theme-color2);
   border-top: solid 1px var(--theme-color2);
   top:0;
   left: 0;
 }
 
 .title:after {
   border-right: solid 1px var(--theme-color2);
   border-bottom: solid 1px var(--theme-color2);
   bottom:0;
   right: 0;
 }
 .middle{
   text-align: center;
 }
 .paragraph{
   font-size: 25px;
   padding: 0.4em 0.5em;
   color: #494949;
   background: ghostwhite;
   border-left: solid 5px #7db4e6;
}
.size{
   font-size: 20px;
}