@charset "UTF-8";
/***********************
　　リセット
************************/
* {
  box-sizing: border-box;
}
html {
  font-size: 18px;
  line-height: 1.7;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Meiryo, メイリオ, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  color: #222;
  width: 100%;
  max-height: 100%;/*Androidのchromeの文字が大きくなる問題の対策*/
}

svg, img, embed, object, iframe {
  vertical-align: bottom;
}

p, table, blockquote, address,
pre, iframe, form, figure, dl {
  margin: 0;
}

ol, ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: #0066CC;
}
a:visited {
  text-decoration: none;
  color: #0066CC;
}
a:hover {
  cursor: pointer;
  color: #0066CC;
}
img {
  vertical-align: bottom;
  border: none;
}
b{
  font-weight: bold;
}
strong{
  font-weight: bolder;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  line-height: inherit;
  font-weight: bold;
  margin: 0;
}

h2 {
  margin: 64px 0 32px 0; 
  font-size: 1.8rem;
  border-bottom: 4px dashed #4c9ac0;
  text-align: center;
}
h3, h4 {
  margin: 24px 0 8px 0;
  font-size: 1rem;
  line-height: 1.2rem;
  border-left: 4px solid #4c9ac0;
  padding: 2px 0 0px 8px;
}

form {
  vertical-align: baseline;
}
select, input, textarea, button { 
  vertical-align: middle;
}
label, input[type='checkbox'] {
  cursor: pointer;
}


/*ボタンのデザイン変更*/
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 0;
  height: 28px;
  line-height: 28px;
  margin: 16px 0 0 16px;
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: bold;
  background-color: #eb6100;
  color: white;
  border-radius: 4px;
}

button:hover {
  cursor: pointer;
  background-color: orange;
}

button[disabled] {
    color: #d2d5db;
    background: #6c7589;
    cursor: not-allowed;
}

/***********************
　　ページ基本構造部分
************************/
body {
  max-width: 600px;
  margin: 0 auto;
}
#page-width {/*ページの幅と中央寄せ*/
  max-width: 600px;
  margin: 0 auto;
  padding: 0 8px;
}

.grid-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/**/
#header {
  position: relative;
  max-width: 1200px;
  height: 64px;
  margin: 0 auto;
  padding: 0 8px;
  background-color: #55b;
  color: #fff;
}
#header #qpiin {
  height: 24px;
  line-height: 24px;
  font-size: 0.8rem;
  border-bottom: solid 1px #888;
}
#header #qpiin a,
#header #qpiin a:visited,
#header #qpiin a:hover {
  color: #888;
}
#header #site-name {
  display: inline-block;
  font-size: 1.4rem;
  line-height: 64px;
  font-weight: bold;
}
#header #site-name a {
  color: black;
}


.explain .header {
  display: grid;
  grid-template-columns: 64px 1fr;
  height: 64px;
  margin-bottom: 12px;
}
.explain .header img {
  height: 64px;
  width: 64px;
}
.explain .header h2 {
  height: 64px;
  line-height: 64px;
  border-left: none;
}
#side {
  font-size: 0.8rem;
}
#footer {
  max-width: 840px;
  margin: 48px auto 24px auto;
  text-align: center;
  font-size: 0.6rem;
  padding: 0 8px;
}
#main-area {
  margin-top: 24px;
  font-size: 0.8rem;
}

#main-area h2 {
  font-size: 1.2rem;
  margin-top: 24px;
}
#main-area p {
  margin-bottom: 8px;
}


/* ====== ハンバーガーメニュー関係 ====== */
/*メニューボタン*/
#menu-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  height: 32px;
  width: 32px;
  justify-content: center;
  align-items: center;
  z-index: 90;
  opacity: 0.9;
  border: solid 1px #fff;
  border-radius: 8%;
  cursor: pointer;
}

#menu-btn span,
#menu-btn span:before,
#menu-btn span:after {
  content: '';
  display: block;
  height: 2px;
  width: 24px;
  border-radius: 4px;
  background-color: #fff;
  position: absolute;
}
#menu-btn span:before {
  bottom: 8px;
}
#menu-btn span:after {
  top: 8px;
}

#menu-btn-check:checked ~ #menu-btn {
  opacity: 1;
  border: solid 2px #f3f3f3;
}	
#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);
  background-color: #f3f3f3;
}
#menu-btn-check:checked ~ #menu-btn span::after {
  top: 0;
  transform: rotate(-45deg);
  background-color: #f3f3f3;
}

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

#mobile-menu-content {
  position: absolute;
  top: 64px;
  right: 0;
  width: 400px;
  height: auto;
  transform: scale(0, 0);
  transform-origin: 100% 0;
  z-index: 80;
  background-color: rgba(16, 16, 16, 0.95);
  transition: all 0.2s;
  padding: 24px 16px;
}
#mobile-menu-content .menu-list {
  max-width: 100%;
  margin: 0 auto;
  overflow-y: auto;
}
#mobile-menu-content .menu-list::-webkit-scrollbar {
  width: 4px;
}
#mobile-menu-content .menu-list::-webkit-scrollbar-track {
  background: #666;
}
#mobile-menu-content .menu-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}


#mobile-menu-content ul li a {
  display: block;
  width: 100%;
  font-size: 1rem;
  box-sizing: border-box;
  color: white;
  text-decoration: none;
  padding: 6px 16px 4px 12px;
  position: relative;
  border-bottom: dotted 1px #999999;
    font-weight: bold;
}
#mobile-menu-content ul li a:hover {
  background-color: white;
  color: #ff6666;
}
#mobile-menu-content ul li a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: solid 2px #f3f3f3;
  border-right: solid 2px #f3f3f3;
  transform: rotate(45deg);
  position: absolute;
  right: 12px;
  top: 12px;
}


#menu-btn-check:checked ~ #mobile-menu-content {
  transform: scale(1, 1);
}
#mobile-menu-content .title {
  color: white;
  text-align: center;
  margin: 16px 0 8px 0;
  font-weight: bold;
  font-size: 1rem;
}

.ads-container {
  text-align: center;
  margin: 12px;
}
/***************************************
    記事ページ(the_content()用)
****************************************/
#content {
    width: 100%;
}
@media screen and (max-width: 800px) {
    #content {
        font-size: 0.7rem;
    }
}
#content img {
    margin: 16px 0;
}

#content a {
    color: #ff6666;
}

#content a:hover {
    text-decoration: underline;
}

#content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
#content .alignright {
    float: right;
    margin-left: 16px;
}
#content .alignleft {
    float: left;
    margin-right: 16px;
}

#content h2 {
    margin: 40px 0 24px 0;
    padding: 8px 0 8px 24px;
    font-size: 1.4rem;
    border-left: solid 8px #ff6666;
    border-bottom: solid 1px #ccc;
    background-color: #f9f9ff;
}
#content h3 {
    margin: 24px 0 16px 0;
    padding-left: 16px;
    font-size: 1.2rem;
    border-left: solid 8px #ff6666;
    border-bottom: dotted 1px #aaa;
}
#content h4 {
    margin: 16px 0 16px 0;
    padding-left: 16px;
    font-size: 1.1rem;
    border-left: solid 4px #ff6666;
}

.margin-btm {
    margin-bottom: 16px;
}


