@charset "utf-8";

/* ------------------------------------------------------------- */
/* Template#039 Designed by 日影石 https://hikageishi.websozai.jp */
/* ------------------------------------------------------------- */

/* googlefont削除 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, “Droid Sans”;
}

p {
    text-align: left;
}

html {
  scroll-behavior: smooth;
  word-wrap: break-word;
}

body {
    background-color: #99ccff;
    background: url("/bg.png");
    background-repeat: repeat;
    background-attachment: fixed;
    line-height: 1.5;
    font-size: 16px;
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%; /* レスポンシブ文字大きさ固定 */
    overflow-y: scroll;
}

/* リンクタグ */
a {
    color: #000033;
}

/* サイトタイトル */
h1 {
    position: relative;
    color: #fff;
    padding: auto;
    margin: 5px;
    font-size: 30px;
}

h1 a {
    text-decoration: none;
    color: #fff;
}
h1 a:hover {
    color: #fff;
}

/* ヘッダー */
.top {
	width: 900px;
	margin: 0 auto;
	}

header {
    background: url("/header.png") center center no-repeat;
    height: 60px;
    width: 100%;
    margin-top: 0;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0; 
    z-index: 999;
}

.subtitle { 
display: flex;
    color:#fff;
    font-size: 14px;
}

/* メニュー */
.menu { /* ヘッダーに対して右寄せ */
  margin:0 0 0 auto;
  width: 300px;
}

nav.menu ul{
    margin-left: 0px;
    list-style: none;
    display: -webkit-box;
    -webkit-box-pack: justify;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    border-color: #fff;
    font-size: 20px;
}
nav.menu ul li{
    width: 100px;
    display: flex;
    -webkit-box-flex: 1;
}
nav.menu a {
    display: block;
    padding: 12px 0 12px;
    background-color: #333;
    color: #fff;
    text-align: center;
    text-decoration: none;
    background: rgba(0, 51, 102, .8);
    font-weight: bold;
    width: 90%;
    transform: skew(-15deg);
    
}
nav.menu a:hover {
    background: rgba(200, 200, 255, .4)
}

.select :not(a:hover){
    background: rgba(153, 204, 255, .8)
}

/* 全体 */
.wrapper {
    display: table;
    width: 900px;
    text-align: left;
    margin: 0 auto;
    padding: 0;
    
}

/* 画面はみ出るデータ用 */
.wrapper2 {
    display: table;
    margin: 0 auto;
    padding: 0;
}

/* 2カラムボックス */
.block-column {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.column {
    padding: 3px;
    width: 49%;
    text-align: center;
}

.column li {
    text-align: left;
}
.column img { max-width: 100%; }

/* メインボックス */
main {
    display: table-cell;
    vertical-align: top;
    background-color: #e8ece9;
    color: #2d2d2d;
    padding: 15px;
    position: relative;
}

main a {
	word-break: keep-all;
}

main a:visited{
	color:#6699cc;
}
main a:hover {
    color: #99ccff;
   	background-color:#003366;
}

/* センター */
.center {
    text-align: center;
}

/* 見出し */
h2 {
    text-align: left;
    font-size: 16px;
    border-top: 1px solid #003366;
    border-bottom: 1px solid #003366;
    margin-bottom: 10px;
}

h3 {
    text-align: left;
    color: #fff;
    font-size: 16px;
    position: relative;
    margin-top: 10px;
    margin-bottom: 12px;
    padding: 0 5px;
    background-color: #003366;
    transform: skew(-15deg);
    border-left: 6px solid #99ccff;
}

h4 {
    text-align: left;
    font-size: 14px;
    position: relative;
    margin-top: 10px;
    margin-bottom: 12px;
    padding: 0 5px;
    border: solid #99ccff;
    border-width: 2px 10px;
}

hr {
  display:block;
  margin: 8px 0;
  width: 100%;
  border: 0;
  border-bottom: 1px dashed #003366;
  }

/* 装飾ボックス */
.box {
    position: relative;
    color: #fff;
    background-color:#003366;
    padding: 10px;
    width: auto;
    text-align: center;
    margin-top: 10px;
    transform: skew(-15deg);
}

.box::before{
  position: absolute;
  top: 0;
  right: 15px;
  content: '';
  height: 100%;
  border-right: 20px double #e8ece9;/*線の太さ・形状・色*/
}

.box2 {
    margin: 10px ;
    padding: 3px;
    background: #e8ece9;
    border-left: solid 10px #003366;
    position: relative;
    width: auto;
}

/* 引用 */
blockquote {
    color: #fff;
    background-color: #336699;
    padding: 20px;
    position: relative;
    width: auto;
    margin-bottom: 14px;
}

blockquote:before {
    color: #003366;
    content: "“";
    font-size: 50px;
    left: 0;
    position: absolute;
    top: -5px;
}
blockquote:after {
    color: #003366;
    content: "“";
    font-size: 50px;
    right: 0;
    position: absolute;
    bottom: -30px;
}

blockquote cite {
    display: block;
    color: #99ccff;
    font-size: 14px;
    text-align: right;
    font-family: Verdana, “Droid Sans”;
}


blockquote hr {
  border-bottom: 1px dashed #FFF;
}


/* リスト */
ol{  
    margin-left: 26px;
}
ul {
    margin-left: 26px;
    list-style-type: square;
}

.yoko li {
    display: inline;
}

/* 雑記開閉 */
button {
    cursor: pointer;
    font-family: inherit;
    
}

details {
    border-left: 5px solid #003366;
    margin-top: 10px;
    border-bottom: 5px;
    padding-left: 10px;
    margin-bottom: 5px;

}

summary:hover,
details[open] >summary {
    background-color: #ccffff;
    margin-bottom: 10px;
    
}

details[open] {
    background-color: #e8ece9;
    
}

summary {
    cursor: pointer;
    transition: .5s;
    font-size: 14px;
    font-weight: bold;
    position: relative;
    padding: 5px;
}

/* フッター */
footer {
    margin: 0 auto;
    clear: both;
    background: url("/header.png") bottom ;
    text-align: center;
    width: 900px;
    height: 40px;
}

/* 上へ戻る */
.pagetop {
    background: rgba(0, 51, 102, .5);
    bottom: 50px;
    height: 45px;
    position: fixed;
    right: 0;
    width: 45px;
    z-index: 99;
}

.pagetop a {
    display: block;
    position: relative;
    text-decoration: none;
    color: #fff;
}

.pagetop a:before {
    bottom: 0;
    content: "▲";
    font-size: 30px;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    text-align: center;
    top: 3px;
}

.pagetop:hover {
    background: rgba(200, 200, 255, .5)
}

/* メニューの表示文字列変更 */
.p-1 {
	background-color: transparent !important;
}

.p-2 {
	display: none;
	background-color: transparent !important;
}

@media (max-width: 901px) {     
  /* 目次の文字変更 */
    .p-1 {
    display: none;
    }
    .p-2 {
    display: block;
    }

/* メディアクエリ */
@media only screen and (max-width: 900px) {
	.top {
        width: 100%;
	}

    .wrapper {
        display: block;
        width: auto;
    }
    nav.menu ul {
        width-max: 100%;
    }

    main {
        display: block;
        width: auto;
    }

    textarea {  
        width: 100%;
    }

    footer {
        width: 100%;
    }

@media only screen and (max-width: 700px) {
    
    .column {
        width: 100%;
    }

.subtitle { 
    font-size: 0px;
}

/* 500px以下の画面で適用 */
@media only screen and (max-width: 500px) {  
    h1 { 
    font-size: 20px;
}

	img {
    max-width: 100%; 
    height: auto;
    }
    