/*
Theme Name: dokoka01
Description: 0606に加工
because コメント欄がdiscuz?使っていたがデザインおかしくプラグイン削除、
その上single.phpとpage.phpのcommentsをdivで囲い、
このcssでdisplaynoneを指定した。
0607 .article_desc aのスタイルを追加した。
0613 font-familyを変更,line-heightも1.88に変更.
article figure{margin:2em 0;}
article h2{margin-top:2em;}の二つを追加.
0614 wordpressのtextalignventerを適用可能にした.
文字サイズを800px以下で15→16pxに変更した.
1128 max-width:700pxに変えた.
figureに対するmarginなど初期化を追加
body marginを8から12%に
下矢印けした
20210107 font-feature-settings: "palt";加えた
figcaption{font-size:14px;}を追加
20210604
トップのロゴをh1,p使い分けのphpを入れた
記事タイトルh2→h1化
recommendをh3化
合わせてcss調整
figcaptionの800以下時のサイズを12pxに
20210707
img に width: auto; height: auto;を追加
Version: 1.0
Author: Shintaro Kodama
Author URI: https://shintarokodama.com
*/




/*
html{overflow-y: scroll;}
@font-face {
font-family: 'ShipporiMincho-Regular';
src: url('/font/ShipporiMincho-Regular.woff');
}
*/
figure {
  margin-block-start: 2em;
margin-block-end: 2em;
margin-inline-start: 0;
margin-inline-end: 0;
}
.comments{
display: none;
}
.wrapper{
  min-height: 100vh;
  position:relative;
  padding-bottom: 300px;
}
body{margin:0 12% 0 12%;
font-family:
'Helvetica Neue', Helvetica, Arial, YuGothic, 'Yu Gothic', 游ゴシック体, '游ゴシック',
/* 'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, 'MS ゴシック', 'MS Gothic',*/
sans-serif;;font-style:normal;
font-size: 16px;
text-align: center;}
h1,h2,h3,h4{margin:0;}
a{text-decoration: none;
color: black;}
.article_desc a{text-decoration: underline;
          color:#5f9ea0
          }
figcaption{font-size:14px;}
blockquote{
    position:relative;
    border-left:3px solid #173A5F;
}
figure.is-provider-instagram{margin:1em auto;}
img {width: auto; height: auto;}
blockquote p{
    position:relative;
    padding-left:10px;
}
blockquote cite{
    display: block;
    font-size:0.8rem;
    color:#173A5F;
    text-align:right;
}
/*.article_desc{font-family: 'ShipporiMincho-Regular', sans-serif; }*/
.article_desc p,.article_desc h1,.article_desc h2,.article_desc h3,.article_desc h4{text-align: left;}/*これで記事内の文字はデフォルトで左揃えになる。*/
.article_desc p{letter-spacing: 0.05em;line-height: 2;margin-block-start:2em;margin-block-end:2em;}/*20210106にemを追加*//*20210718にletter-spacingを追加*/
p.has-text-align-center{text-align: center;}/*これでwordpressで書くときにcenterを指定した文字は中央揃えになる。*/
article{
    font-feature-settings: "palt";
  }

.header-left{position:absolute;
  top:60px;
  left:15%;
  width:150px;
  vertical-align: middle;
  align-items: center;
  }

.social-t{display:block;
position:relative;
padding:0;
height:40px;
margin:4px;
float: left;
}
.social-i{display: block;
  position:relative;
  padding:6px;
  height:40px;
  margin:4px;
  float: left;
}
.header{position:relative;
  text-align: center;
  max-width: 1200px;
margin:0 auto 20px auto;
}

.header-bottom
{display:block;
vertical-align: middle;
line-height: 0;
}

.logo{margin-top:50px;
    margin-bottom: 10px;
  width:220px;
cursor: pointer;
}

.main-container{margin:0 auto 50px auto;padding:0 auto;max-width: 1200px;}


.container{margin-top:30px;}
.container hr {margin:10px auto 20px auto;}

.section{
  }

  .article_fig{width:100%;height:auto;margin:0 auto;}
  .article_info {
  text-align: left;
  display: block;
  padding:0;  color: #333333;
  font-size:0.8em;
    font-weight: bold;
  }
  .swiper-container .article_info {
  margin:10px 0 10px 0px;
  }

  .article_ttl {
    text-align: left;
  }



#footer{
  background-color: #EEEEEE;
  bottom: 0;
  width: 100vw;
  height:300px;
  position: absolute;
  padding-top: 10px;
  left: 50%;
  transform: translateX(-50%);
  }
#footer ul{font-size: 0;
          }
#footer li{list-style-type: none;
            display: inline-block;
            font-size: 15px;
            padding:10px;
            text-align: center;
          }

          /*single-post（bodyのclassが）のページのみに効かせるcss以下*/
          .post-template-default .main-container{max-width:700px;/*←結果的に、ブレイクポイント（メディアクエリ？）に揃えてる。→変えた1128*/
            margin:0 auto;}
          .post-template-default  .nav-below{display:none;}
          .post-template-default  .comment-respond{display:none;}
          .post-template-default  .nocomments{display:none;}
          .post-template-default .wp-block-image{width:100%;margin-left: 0;margin-right: 0;}
          .post-template-default h1.article_ttl{}
          /*ここまで*/

          /*page-post（bodyのclassが）のページのみに効かせるcss以下*/
          .page-template-default .main-container{max-width:700px;/*←結果的に、ブレイクポイント（メディアクエリ？）に揃えてる。→変えた1128*/
            margin:0 auto;}
          .page-template-default  .nav-below{display:none;}
          .page-template-default  .comment-respond{display:none;}
          .page-template-default  .nocomments{display:none;}
          .page-template-default .wp-block-image{width:100%;margin-left: 0;margin-right: 0;}
          .page-template-default h1.article_ttl{}
          /*ここまで*/



/*for CONTACT page*/
label input,label textarea
{font-size: 24px;
  width: 500px;
  outline: none;
  border-bottom:1px solid gray;
  border-right:1px solid gray;
  border-left:1px solid gray;
  border-top:1px solid gray;}
.wpcf7-submit
{width:80px;height:40px;}

@media screen and (min-width: 800px) {
  figure{}
   .cp_fullscreenmenu {display:none;}
   .grid-container {
     display: grid;
     gap: 60px 40px;/*20201008に20から40に変えた*/
     grid-template-columns: repeat(2, 1fr);
   }
   .grid-container-3 {
     display: grid;
     gap: 60px 30px;/*20201008に20から30に変えた*/
     grid-template-columns: repeat(3, 1fr);
   }
   /*
   .container .article_ttl{font-size:1.1em;}
   */
   .post-template-default .wp-block-image{width:100%;margin:2em auto;}
   .page-template-default .wp-block-image{width:100%;margin:2em auto;}

}

@media screen and (max-width:800px){
  body{margin:0 4% 0 4%;
  font-size: 16px;}
  .logo{margin-top:32px;width:160px;}
  .swiper-container{
    background: white;
    position: sticky;
        bottom: 0;
        width: 100vw;
        height:calc(100vw * 9/16);/*←とにかくここをいじればおk。実際にスマホで表示してみてから。*/
        position: relative;
        left: 50%;
        transform: translateX(-50%);}
  .swiper-container .article_ttl{
    position:absolute;
    margin-left: 20px;
    bottom:15px;
    color:white;
    font-size: 1.2rem;
  }

  .swiper-container .article_info{
    position:absolute;
    margin-left: 20px;
    bottom:60px;
    font-size: 0.9rem;
    color:white
  }
  .swiper-container .article_info_tag{
    color: white;
    font-size: 0.9rem;

  }
  .header-rignt,.search-btn{display:none;}
  .yoko-menu {display:none;}
  .main-container{padding: 0 0 50px 0;}
  .grid-container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(1, 1fr);
  }
  .header-left{display:none;}
  .article_desc h2{font-size:20px;}
  h3{margin-bottom: 10px;}
  #footer li{padding:5px;}

  label input,label textarea
  {font-size: 24px;
    width: 100%;
    outline: none;
    border-bottom:1px solid gray;
    border-right:1px solid gray;
    border-left:1px solid gray;
    border-top:1px solid gray;}
  .wpcf7-submit
  {width:80px;height:40px;}
  .article_info{
font-size: 0.9rem;
  }
  figcaption{font-size:12px;}
  .wp-block-quote{
    margin-inline-start: 10px;
    margin-inline-end: 10px;
  }
  .article_ttl {
    font-size:24px;
    text-align:left;
  margin:0 0 22px 0px;
  padding:0;
/*  line-height: 20px;*/
  }

  figure.is-provider-youtube iframe{width:100%;height:calc(100vw * 9/16);}

}


.header-right {position:absolute;
  margin:16px;
  top:60px;
  right:20%;
  }

  .search-btn{width:25px;
  }

  .search-btn {
    position: absolute;
    padding:0;
    margin:0;
    background:none;
    border:0;
    font-size:0;
    line-height:0;
    overflow:visible;
    cursor:pointer;
  }
  .header-right:before {
    z-index: 100;
    line-height: 25px;
    background: #FFF;
    color: #FFF;
    text-align: center;}



.input  {font-size: 14px;

      padding: 0 0 5px 0;
  display: block;
  position: absolute;
  height: 30px;
  width: 25px;
  outline: none;
  border-bottom:2px solid #89c3eb;
  border-right:none;
  border-left:none;
  border-top:none;
  border-radius:0px;
  margin-left:0px;
  -webkit-appearance: none;
    border-radius: 0;
    opacity: 0;
    z-index: 200;
    cursor: pointer;
    -webkit-transition: all 0.3s ease-in;
    -moz-transition: all 0.3s ease-in;
    -o-transition: all 0.3s ease-in;
    transition: all 0.3s ease-in;

    position:absolute;

}

.input:focus{opacity: 1;
  padding: 0 0 5px 38px;

    width: 150px;
    cursor: text;
    outline: none;
    border-bottom:2px solid #89c3eb;
    border-right:none;
    border-left:none;
    border-top:none;
    border-radius:0px;
  overflow: hidden;
  transform:translateX(-75px) ;
  -webkit-transform:translateX(-75px) ;
  -moz-transform:translateX(-75px) ;
  -o-transform:translateX(-75px) ;


  }


  .input:focus +.search-btn{
    transform:translateX(-70px);
    z-index: 200;
    cursor: pointer;
    -webkit-transition: all 0.3s ease-in;
    -moz-transition: all 0.3s ease-in;
    -o-transition: all 0.3s ease-in;
    transition: all 0.3s ease-in;position:absolute;}

    .search-btn{
      cursor: pointer;
      -webkit-transition: all 0.3s ease-in;
      -moz-transition: all 0.3s ease-in;
      -o-transition: all 0.3s ease-in;
      transition: all 0.3s ease-in;position:absolute;}





.menu li a:hover ,.yoko-menu li a:hover,#footer li a:hover {color: #f08080;
-webkit-transition: all 0.2s ease;
-moz-transition: all 0.2s ease;
-o-transition: all 0.2s ease;
transition: all  0.2s ease;}
.yoko-menu a{text-decoration:none;color:#333333;padding:10px 15px;}
header a{display:inline-block;
text-decoration:none;
        color:#333333;}


.photo,.movie{
    max-width: 100%;
    height: auto;
    text-align:center;
    padding-top:20px;

}


.fut-social-container{
  display: block;
  position:relative;
  text-align: center;
  height:100px;
  margin:4px auto;

}
.fut-social{
  width:30px;
  padding:4px;
  margin:4px;
  cursor:pointer;

}






* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
a,
a:visited,
a:hover,
a:active {
text-decoration: none;
color: inherit;
}
.cp_fullscreenmenu {
position: fixed;
z-index: 100;
top: 0;
left: 0;
}
/*menuコンテンツ*/
.cp_fullscreenmenu .menu {
position: fixed;
top:0;/*←←ここをいじればハンバーガーメニューの高さを設定できる！！*/
left: 0;
display: flex;
visibility: hidden;
overflow: hidden;
width: 100%;
height: 100%;
pointer-events: none;
outline: 1px solid transparent;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
align-items: center;
justify-content: center;
}
/*以下フルスクリーンメニュー背景*/
.cp_fullscreenmenu .menu > div {
display:block;
position:relative;
top:0px;
padding:50px;
overflow: hidden;
width: 200vw;
height: 100%;
transition: all 0.4s ease;
-webkit-transform: scale(0);
transform: scale(0);
text-align: center;
background:white;
/*透過度の設定 3つ揃えてやろう*/
filter:alpha(opacity=95);
-moz-opacity: 0.95;
opacity: 0.95;
}

/*以下左揃えたい要素だけ*/
.cp_fullscreenmenu .menu .leftsoroeru {
text-align:left;
}

.bars{font-size:10px;
text-align:center;
}

/*小さい要素たち*/
.menu li li a{
height: 0;
display:none;
transition: .4s;
}
/*小さい要素たちを開くため*/
.menu li:hover > div > ul > li a {
height: 1.5rem;
display:inline;
}
.menu li:hover > .bars{display:none;}

/*デスクトップで小さい要素たちを開くため？に残しておいた*/
/*.yoko-menu ul li .photomenu li:hover  ul  li {
    height: 1.5rem;
overflow: visible;
}
*/



/*以下フルスクリーンメニューの要素のかたまり?*/
.cp_fullscreenmenu .menu > div > ul {
display: block;
max-height: 100vh;
margin: 0;
padding: 0 1em;
list-style: none;
transition: opacity 0.4s ease;
opacity: 0;
}
/*以下メニューの要素たち*/
.cp_fullscreenmenu .menu > div > ul > li {
font-size: 22px;
font-weight: bold;
display: block;
margin: 20px auto;
padding: 5px auto;
}
/*ここ追加、さらに下層のメニューの要素たち*/
.cp_fullscreenmenu .menu > div > ul > li > div > ul > li {
font-size: 16px;
display: block;
margin:15px;
padding: 0;
}


/*以下メニューの要素たちの文字*/
.cp_fullscreenmenu .menu > div > ul > li > a {
position: relative;
display: inline;
transition: color 0.2s ease;
cursor: pointer;

}

.cp_fullscreenmenu .menu > div > ul > li > a:hover:after {
width: 100%;
}

/*クリックしたらメニューが開閉の動作*/
.cp_fullscreenmenu .toggle {
position: fixed;
z-index: 2;
top: 0;
right: 0;
left:auto;
width: 60px;
height: 60px;
cursor: pointer;
opacity: 0;
}

.title-bold{font-weight:bold;}
.notbutton{text-decoration:none;
font-size:18px;
cursor:default;
}

.toggle:checked +.hamburger span:nth-of-type(1) {
animation: active-menu-bar01 .30s forwards alternate;
}

@keyframes active-menu-bar01 {
0% {
transform: translateY(0) rotate(0);
}
50% {
transform: translateY(12px) rotate(0);
}
100% {
transform: translateY(12px) rotate(45deg);
}
}
.toggle:checked +.hamburger  span:nth-of-type(2) {
opacity: 0;
}
.toggle:checked +.hamburger  span:nth-of-type(3) {
animation: active-menu-bar03 .30s forwards alternate;
}

@keyframes active-menu-bar03 {
0% {
transform: translateY(0) rotate(0);
}
50% {
transform: translateY(-12px) rotate(0);
}
100% {
transform: translateY(-12px) rotate(-45deg);
}
}



.cp_fullscreenmenu .toggle:checked ~ .menu {
visibility: visible;
pointer-events: auto;
}
.cp_fullscreenmenu .toggle:checked ~ .menu > div {
-webkit-transform: translateY(0px);
transform:translateY(0px)
}
.cp_fullscreenmenu .toggle:checked ~ .menu > div > ul {
opacity: 1;
}

/*ハンバーガー*/
.cp_fullscreenmenu .hamburger {
position: fixed;
z-index: 1;
top: 0;
right:0;
left:auto;
display: block;
width: 60px;
height: 60px;
padding: 0.5em 1em;
cursor: pointer;
transition: box-shadow 0.4s ease;
border-radius: 0 0.12em 0.12em 0;
}
.cp_fullscreenmenu .hamburger > span {
position: relative;
top: 50%;
display: block;
width: 100%;
height: 2px;
transition: all 0.4s ease;
background: #333333;
border-radius:2px;
}
.cp_fullscreenmenu .hamburger > span:nth-of-type(1) {
top: 10px;
}
.cp_fullscreenmenu .hamburger > span:nth-of-type(2) {
top: 20px;
}
.cp_fullscreenmenu .hamburger > span:nth-of-type(3) {
top: 30px;
}



.cp_fullscreenmenu .ham_search{
  display: inline-block;
  text-align:center;
    cursor: text;
    height: 44px;
    width: 250px;
    outline: none;
    border-bottom:2px solid black;
    }
li.ham_search:before {
  background-origin: padding-box;
  text-align: left;
  content: '';/*何も入れない*/
  display: inline-block;/*忘れずに！*/
  height: 26px;/*画像の高さ*/
  width:25px;
  background-image: url(https://dokoka.shintarokodama.com/wp-content/themes/dokoka/images/search-btn.jpg);
  background-size: contain;
vertical-align: middle;
      }


.ham-search{font-size:24px;
    width:190px;
    border:none;
    display: inline-block;
    background-origin: padding-box;
    background-size: auto;
    vertical-align: middle;

}

    .ham_input{font-size:22px;
        border:none;
        width:190px;

        }
.ham_input[type="text"]:focus {
      outline: 0;
    }
.ham-logo{height:50px;margin:10px auto 3px auto;
    }
.ham-social-container{
  display: block;
  position:relative;
  text-align: center;
  height:100px;
  margin:3px auto;

}
.ham-social{
  width:40px;
  padding:4px;
}
.yoko-menu {/*そういえばこれはliのクラス名でした。.yoko-menu li とか書かなくておk。*/
position: relative;
width: 100%;
height: 50px;
max-width: 1000px;
margin: 10px auto 10px auto ;
text-align: center;
align-items: center;
padding:0 auto;
font-size:0;/*←https://delaymania.com/201404/web/list-inline-block/を参照。liのfont-sizeも同様。*/
}
.yoko-menu > li {
padding:5px 5px;
font-size:18px;/* 20201008に22から18へ変更した */
letter-spacing: 2px;/* 20201008に追加した */
font-weight: 900;
display:inline-block;
list-style:none;
width: 20%; /* グローバルナビ5つにしたから */
height: 50px;
}

.yoko-menu  li a {
display: block;
text-align: center;
color:#333333;
padding:0 auto;

}

.yoko-menu__second-level .second{
  font-size:14px;
letter-spacing: 0;/* 20201008に追加した */}
.yoko-menu__second-level .small {font-size:14px;}


ul.yoko-menu__second-level {
visibility: hidden;
opacity: 0;
z-index: 1;
}

ul.yoko-menu__third-level {
visibility: hidden;
opacity: 0;
}

ul.yoko-menu__fourth-level {
visibility: hidden;
opacity: 0;
}

.yoko-menu > li:hover {
background: white;
-webkit-transition: all .5s;
transition: all .5s;
}



/*
.yoko-menu__second-level li a:hover {
background: #111;
}

.yoko-menu__third-level li a:hover {
background: #2a1f1f;
}

.yoko-menu__fourth-level li a:hover {
background: #1d0f0f;
}
*/



/* 下矢印
.init-bottom:after {
content: '';
display: inline-block;
width: 6px;
height: 6px;
margin: 0 0 3px 8px;
border-right: 1px solid #333333;
border-bottom: 1px solid #333333;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
*/

/* floatクリア
.yoko-menu:before,
.yoko-menu:after {
content: " ";
display: table;
}

.yoko-menu:after {
clear: both;
}
*/



.yoko-menu > li.menu__single {
position: relative;
}

li.yoko-menu__single ul.yoko-menu__second-level {

position: absolute;

padding:0;
margin:10px 0px;
top: 30px;
width: 20%;/*「.yoko-menu > li」に揃えてるよー*/
z-index: 200;
background: white;
-webkit-transition: all .2s ease;
transition: all .2s ease;
}

li.yoko-menu__single:hover ul.yoko-menu__second-level {
top: 30px;
visibility: visible;
opacity: 1;
}

.yoko-menu__second-level  li{display:block;
position:static;

}

span.current{font-weight: bold;}
.page-numbers{padding:10px}

   </style>
