@charset "UTF-8";

html { 
    font-size: 100%;
    max-width: 1300px;
    margin: 0 auto;
    background: #FFF; /* Fills the page */
    position: relative; /* Fix for absolute positioning */
}

body{
    font-family: heisei-maru-gothic-std, sans-serif;
    line-height: 1.7; 
    color: #676565;
}

h1 {
    font-size: 1.1rem;
    font-weight: 800;
}

h2,p,a {
    font-weight: 400;
    text-decoration: none;
    color: #676565;
}

p {
    font-size: 1.1rem;
}

img {
    max-width: 100%;
}

/* header画像のところ */
.header-content {
    text-align: center;
    padding: 1.3em 0 0 0;
}

/* 冒頭文 */
.beginning-sentence{
    position: relative;
    padding: 1.5rem 1rem;
    padding: 1em 2em;
}

/* 紹介部分 */
.wrapper {
    margin: 0 auto;
    padding: 0 1%;
}

/* 一段ずつ部分 */
.contents {
    width: 100%;
    display: flex;
    display: -ms-flexbox; /* IE10 */
	flex-wrap: wrap;
	-ms-flex-wrap: wrap; /* IE10 */
    justify-content: space-between; 
}

/* 各記事部分 */
.content {
    width: 25%;
    padding: 0 0 0.8em 0;
}

.article {
    margin: 0px 3px 0px 3px;
    background: white;
    border: solid 1px #f6c2dc;
    /* box-shadow: 0px 2px 3px #e9ab3c; */
    overflow: hidden; 
    border-radius: 10px;
    height: 28em;
    position: relative;
}

/* youtube埋め込み部分 */
.youtube-wrapper {
    margin: 0 auto;
    width: 100%;
    padding-bottom: 0.5rem;
}

.youtube{
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 56.25%;
  }
  
.youtube iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /*境界線の打ち消し*/
}

/*　タイトル */
.title h2 {
    display:block;
    text-align: center;
    padding: 0.7em;
    margin: 0em;
    font-size:1.1em;
}

/* タイトルホバー時にアンダーライン */
.title a {
    text-decoration: none;
}

.title a:hover {
    text-decoration: underline;
}

/* 短いタイトル中央寄せ */
.one h2 {
    padding: 1.8em 0.7em 1.8em 0.7em;
}

/* コメント*/
.comment {
    margin: 0 auto;
    padding: 0rem 0.8rem;
}

/* 作者 */
.author {
    display: flex;
    align-items: center;
}

.author-img{
    width: 50px;
    height: auto;
    border: 1px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgb(0 0 0 / 24%);
    -webkit-transition: opacity .25s ease;
    transition: opacity .25s ease;
    background-color: #fff;
    margin-right: 10px;
}

.author-name {
    margin: 5px;
    /* font-size: 3rem; */
    font-weight: 700;
    /* flex: 1; */
    color: #595959;
    border-bottom: solid #595959 0.5px;
}

.comment p {
    margin: 0.4rem;
    padding: 0;
    font-size: 0.95rem;
}

/* ブログ遷移ボタン */
.btn {
    position: absolute;
    bottom: 0.5rem;
    left: 13%;
}

.blog-btn,
.blog-btn p {
    position: relative;
    display: inline-block;
    font-size: 0.8rem;
    text-align: center;
}

.blog-btn p {
    padding: .65em 1em;
    background: linear-gradient(#8ed6d5 , #8ed6d5);
    border: 1px solid #8ed6d5;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    transition: .3s ease-in-out;
}

.blog-btn::after {
    position: absolute;
    bottom: -15px;
    left: 50%;
    z-index: -1;
    content: '';
    width: 100%;
    height: 24px;
    background-color: rgba(0,0,0,.1);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: .3s ease-in-out;
}

.blog-btn:hover p {
    transform: translateY(-10px);
}

.blog-btn:hover::after {
    width: 70%;
    height: 18px;
}


/* footer */
footer {
    background: #FFF;
    text-align: center;
}

footer p {
    color:#595959;
    font-size: 1rem;
}

/* ハンバーガーメニュー */
.menu-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    height: 60px;
    width: 60px;
    justify-content: center;
    align-items: center;
    z-index: 90;
    background-color: #FFF;
    border-radius: 50%;
}

.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: #595959;
    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 ul {
    padding: 70px 10px 0;
}

.menu-content ul li {
    border-bottom: solid 1px #595959;
    list-style: none;
}

.menu-content ul li a {
    font-family: dnp-shuei-mgothic-std, sans-serif;
    display: block;
    width: 100%;
    font-size: 1rem;
    box-sizing: border-box;
    color:#595959;
    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 #595959;
    border-right: solid 2px #595959;
    transform: rotate(45deg);
    position: absolute;
    right: 11px;
    top: 16px;
}

.menu-content {
    padding: 10px;
    width: 30%;
    height: auto;
    position: fixed;
    top: 0;
    left: 100%;/*leftの値を変更してメニューを画面外へ*/
    z-index: 80;
    background-color: #ffced7;
    transition: all 0.5s;/*アニメーション設定*/
}

#menu-btn-check:checked ~ .menu-content {
    left: 70%;/*メニューを画面内へ*/
}

/* ボタンのCSS　*/
.btn-container{
    padding:15px;
}

.btn-border {
  display: inline-block;
  max-width: 180px;
  text-align: left;
  border: 2px solid #e9ab3c;
  font-size: 16px;
  color: #e9ab3c;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 4px;
  transition: .4s;
}

.btn-border:hover {
  background-color: #e9ab3c;
  border-color: #e9ab3c;
  color: #FFF;
}

/*  デバイス対応  */

/* スマホ縦 */
@media (max-width: 480px) {
    #menu-btn-check:checked ~ .menu-content {
        left: 50%;/*メニューを画面内へ*/
    }
    .menu-content {
        width: 50%;
    }
    
    .menu-content ul li a {
        font-size: 1rem;
    }
    #menu li a {
        font-size: 1rem;
    }

    .beginning-sentence{
        padding: 0em 2em;
    }

    .beginning-sentence p {
        font-size: 0.9rem;
    }
  
    .content {
        height: auto;
    }

    .contents > div {
        width: 100%;
    }

    .article {
        height: 29.5em;
    }

    .title h2 {
        font-size:1.2em;
    }

    .one h2 {
        padding: 1em 0.7em 1em 1.1em;
    }

    .btn {
        left: 25%;
    }

}

/* ipad */
@media (min-width:481px) and (max-width: 960px) {
    .content {
        height: auto;
    }
    .contents > div{
        width: 50%;
    }

    .article {
        height: 31em;
    }

    .btn {
        left: 30%;
    }

}

/* PC */
@media screen and (min-width:1024px) {
    /*　画面サイズが1024pxからはここを読み込む　*/
    .content-wrapper {
        max-width: 1024px;
        margin-left: auto;
        margin-right: auto;
    }

    #menu li a {
        padding: 10px;
    }
} 
