@charset "UTF-8";

/* 基本設定 */
*{
   box-sizing: border-box;
    margin: 0;
}

img {
    width: 100%;
    height: auto;
}

/* ページ全体の設定 */
body {
    display: grid;
    grid-template-columns: 20px 1fr 20px;
    
    grid-row-gap: 20px;
    row-gap: 20px;
    font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, 
    "游ゴシック体", "ヒラギノ角ゴ Pro W3", sans-serif;    
}
/* パーツの配置 */
body > * {
    grid-column: 2 / -2;
}

/* ヘッダー */
header {
    grid-row: head;
    justify-self: center;
    align-self: center;
    font-size: 1em;
    color: #555d6b;
}

header a {
    color: inherit;
    text-decoration: none;
}

/*メニューの中身*/
#gnav-content {
    position: fixed;
    top: 0;
    left: -100%;
    z-index: 100;
    width: 100%;
    max-width: 240px;
    box-shadow: 6px 0 25px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
    background-color: #1b9aaa;
}
#gnav-content li {
    list-style: none;
}
#gnav-content li a {
    color:#fff;
    text-decoration: none;
}




ul.gnav-list{
    background: #1b9aaa;
    padding: 0;
    height: 100vh;
    text-align: center;
}
ul.gnav-list li{display: block;
}

ul.gnav-list li a {
    display: block;
    padding: 1.5em;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
}
ul.gnav-list li a::first-line {
    font-size: 16px;
    font-weight: bold;
}


/*checkboxを非表示に*/
.gnav-hidden {display: none;}

/*labelで作るメニューボタン*/
#gnav-btn {
    display: block;
    width: 40px;
    height: 40px;
    position: fixed;
    top:20px;
    right:20px;
    z-index: 100;
    background: #1b9aaa url("images/gnav-btn-open.png") center center no-repeat;
}

/*薄い幕部分*/
#gnav-black {
    display: none;
    position: fixed;
    z-index: 90;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
}
/*チェックがついたときの指定*/
#gnav-input:checked ~ #gnav-btn {background: #1b9aaa url("images/gnav-btn-close.png") center center no-repeat;}
#gnav-input:checked ~ #gnav-black {display: block;}
#gnav-input:checked ~ #gnav-content {left: 0;}

/* 下ナビ */
ul.bottom-menu {
        position: fixed;
        left: 0;
        bottom: 0;
        background:#fafad2;
        width: 100%;
        z-index: 10;
    }
ul.bottom-menu {
        display: flex;
        padding: 0;
        text-align: center;
        margin-top: 0;
}
ul.bottom-menu li {
    display: inline-block;
}
ul.bottom-menu li a {
    display: block;
    padding: 20px 20px 10px;
    color: blue;
    font-size: 12px;
    text-decoration: none;
}

ul.bottom-menu li a img{
    display: block;
    margin: 0 auto 1em;
    height: 20px;
}

.bottom-menu li {
        display: inline-block;
        width: 100%;
        padding: 5px;
        list-style: none;
        text-align: center;
    }
ul.bottom-menu span.iconname {
    display: block;
    font-size: 0.1em;
    }

/* PCナビゲーション */
header .header-nav {
    display: none;
}


header .sitetitle {
    display:inline;
    justify-content: center;
}


/* パンくずリスト */
.breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
.breadcrumb li {
    display: inline;/*横に並ぶように*/
    list-style: none;
    font-weight: bold;/*太字*/
  }
  
.breadcrumb li:after {/* >を表示*/
    content: '>';
    padding: 0 0.2em;
    color: #555;
}
  
.breadcrumb li:last-child:after {
    content: '';
}
  
.breadcrumb li a {
    text-decoration: none;
    color: #52b5ee;/*色*/
}
  
.breadcrumb li a:hover {
    text-decoration: underline;
}

/* タイトル */
.top h1 {
    grid-row: title;
    justify-self: center;
    align-self: center;
    color: #ffffff;
    font-size: 30px;
    font-weight: normal;
    line-height: 1.2;
    text-shadow: 0 0 5px #444444;
    text-align: center;
}

/* サブタイトル */
.top p {
    grid-row: sub;
    text-align: center;
}
.top p a {
    color: #ffffff;
    text-decoration: none;
    border: solid 1px #ffffff;
    padding: 10px 40px;
    display: inline-block;
    margin-top: 10px;
    border-radius: 10px;
    background-color: rgba(85,93,107,0.5);
}

.top p a:hover {
    background-color: #ef9504;
}

.top p img {
    width: 250px;
}
/* 画像設定　*/
.youtube1 img {
    width: 30%;
}




/* 記事一覧　*/
section {
    grid-row: recent;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px 10px;
    gap: 20px 10px;
}
section a {
    color: #000000;
    text-decoration: none;
}
section a:hover {
    text-decoration: underline;
}
section h3 {
    font-size: 14px;
}
section h2 {
    grid-column: 1 / -1;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: blue;
}

article h1 {
    color:#0000ff;
    border-bottom: solid 3px #0000ff;
}
article h2 {
    border-bottom: solid 3px #0000ff;
}
article h3 {
    border-bottom: solid 3px #0000ff;
}

article h4 {
    border-bottom: solid 2px #0000ff;
}
/* 黒板風　2 */
.kokuban-s2 {
    position: relative;
    margin: 2em auto;
    padding: 1em;
    width: 90%; /* ボックス幅 */
    background: #006633; /* ボックス背景色 */
    color: #fff; /* 文章色 */
    border: 8px solid #b2771f; /* 枠線 */
    border-radius: 3px; /* 角の丸み */
    box-shadow: 0 0 5px #333, 0 0 5px #555 inset;
    }
    .kokuban-s2::before,
    .kokuban-s2::after {
    position: absolute;
    content: ”;
    bottom: 0;
    }
    .kokuban-s2::before {
    width: 20px;
    right: 10px;
    border: solid 3px #ffff00; /*チョーク（黄色）*/
    border-radius: 3px 2px 0 2px;
    }
    .kokuban-s2::after {
    width: 15px;
    right: 45px;
    border: solid 3px #fff; /*チョーク（白） */
    border-radius: 8px 5px 2px 5px;
    }
    
    
    /* まとめBox　*/
    .box1 {
        margin: 2em 0;
        background: #dcefff;
    }
    .box1 .box-title {
        font-size: 1.2em;
        background: #87cefa;
        padding: 4px;
        text-align: center;
        color: #ffffff;
        font-weight: bold;
        letter-spacing: 0.05em;
    }
    .box1 p {
        padding: 15px 20px;
        margin: 0;
        font-weight: bold;
    }
    .box2 {
        position: relative;
        margin: 2em 0;
        padding: 25px 10px 7px;
        border: solid 2px #FFC107;
    }
    .box2 .box-title {
        position: absolute;
        display: inline-block;
        top: -2px;
        left: -2px;
        padding: 0 9px;
        height: 25px;
        line-height: 25px;
        font-size: 17px;
        background: #FFC107;
        color: #ffffff;
        font-weight: bold;
    }
    .box2 p {
        margin: 0; 
        padding: 0;
    }
    .box3 {
        margin: 2em 0;
        background: #ffefd5;
        font-weight: bold;
    }

    .box3 .box-title {
        font-size: 1.2em;
        background: #ffa500;
        padding: 4px;
        text-align: center;
        color: #ffffff;
        font-weight: bold;
        letter-spacing: 0.05em;
    }
    .box3 p {
        padding: 15px 20px;
        margin: 0;
    }
    .box4 {
        padding: 0.5em 1em;
        margin: 2em 0;
        color: #050505;
        background: #e0e8e9;/*背景色*/
        border: solid 6px #f30789;
        box-shadow: 0 3px 4px rgba(0, 0, 0, 0.32);/*影*/
        font-weight: bold;
    }
    .box4 p {
        margin: 0; 
        padding: 0;
    }


    /* カード　*/
    .card {
        width: 350px;
        background: #fff;
        border-radius: 5px;
        box-shadow: 0 2px 5px #ccc;
      }
      .card-img {
        border-radius: 5px 5px 0 0;
        max-width: 100%;
        height: auto;
      }
      .card-content {
        padding: 20px;
      }
      .card-title {
        font-size: 20px;
        margin-bottom: 20px;
        text-align: center;
        color: #333;
      }
      .card-text {
        color: #000;
        font-size: 20px;
        line-height: 1.5;
      }
      .card-link {
        text-align: center;
        border-top: 1px solid #eee;
        padding: 20px;
      }
      .card-link a {
        text-decoration: none;
        color: #0bd;
        margin: 0 10px;
      }
      .card-link a:hover {
        color: #0090aa;
      }
/* 人気の記事メニュー　*/
.ninki ul {margin: 0;
           padding: 0;
           list-style: none;
    }

.ninki li a {display: flex;
            align-items: center;
            padding: 5px;
            color: #000000;
            font-size: 14px;
            text-decoration: none;
            border-bottom: solid 1px #dddddd;
        }
.ninki li a:hover {background-color:#eeeeee;
}
.ninki img {
    margin-right: 15px;
    max-width: 120px;
    height: 90px;
}


.ninki li p {
    display: inline-block;
    vertical-align: top;
}

/* フッター　*/
footer {
    grid-row: foot;
    justify-self: center;
    align-self: center;
    font-size: 17px;
}
/* フッターのバー*/
body::after {
    content: "";
    background-color: #eeeeee;
    grid-column: 1 / -1;
    grid-row: foot;
    z-index: -1;
} 
/* 記事ページ　*/
.post {
    grid-template-rows:
                [head] 100px
                [kiji] auto
                [submenu] auto
                [foot] 100px;
}

/* 記事ページ：記事 */
.post article {
    grid-row: kiji;
}

.post article > * {
    margin-top: 1em;
    margin-bottom: 1em;
    display: block;
}
.post article h2 {
    font-weight: bold;
    color: blue;
}

.post article p {
    line-height: 2;
}

/* 記事ページ：目次 */

#mokuji li {
    margin-top: 2px;
    margin-left: 2px;
    list-style: none;
  }
#mokuji ol {
    list-style: none;
  }
#mokuji span {
    display: inline-block;
    width: 35px;
    height: 35px;
    margin: 5px 8px 0 0;
    padding-top: 5px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid#00cde1;
    background-color: #00cde1;
    box-sizing: border-box;
  }

/* 記事ページ：バー */
.post::before {
    content: '';
    background: #eeeeee;
    height: 2px;
    grid-column: 1 / -1;
    grid-row: kiji;
}

/* 記事ページ：サブメニュー */
.post div {
    grid-row: submenu;
}

aside {
    border: solid 1px #dddddd;
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}

aside h2 {
    border-bottom: solid 1px #dddddd;
    padding-bottom: 20px;
    margin-bottom: 20px;
    color: #888888;
    font-weight: normal;
    font-family: sans-serif;
}

aside p {
    font-size: 16px;
}

aside:first-child img {
    width: 120px;
    height: 120px;
}

aside ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
}
aside ul {
    grid-row: recent;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px 10px;
    gap: 20px 10px;
}

aside a {
    color:#000000;
    text-decoration: none;
}
aside a:hover {
    text-decoration: underline;
}
aside h3 {
    font-size: 14px;
}







.subtitle {
    margin-bottom: 2px;
}

.subtitle li {
    border-bottom: 1px #eeeeee solid;
}

.subtitle a {
    color: #000000;
    padding: 2px;
    text-decoration: none;
    display: block;
}

.subtitle a:hover {
    color: #ef9504;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin:auto;
}

th, td {
    border: solid 1px #cccccc;
    padding: 20px;
}

th {
    width: auto;
    text-align: left;
    background-color: #555d6b;
    color: #ffffff;
}

td {
    background-color: #e8eef9;
}


/* お問い合わせページ */
form p {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
}

textarea {
    height: 120px;
}

input[type="submit"] {
    background-color: #ffaa00;
    border: none;
    -webkit-box-align: none;
}

/*Chat Bubbles　CSS Setting*/
/* 全体のスタイル */
.voice {
    margin-bottom: 40px;
  }
  /* 左画像 */
  .voice-img-left {
    margin-left: 4px;
    margin-top: -1px;
    float: left;
    width: 60px;
    height: 60px;
  }
  /* 右画像 */
  .voice-img-right {
    margin-right: 4px;
    margin-top: -1px;
    float: right;
    width: 60px;
    height: 60px;
  }
  .voice figure img {
    width: 100%;
    height: 100%;
    border: 2px solid #eee;
    border-radius: 50%;
    margin: 0;
  }
  /* 画像の下のテキスト */
  .voice-img-description {
    padding: 5px 0 0;
    font-size: 10px;
    text-align: center;
  }
  /* 左からの吹き出しテキスト */
  .voice-text-right {
    color: #444;
    position: relative;
    margin-left: 100px;
    padding: 1.2em;
    border: 3px solid #eee;
    background-color: #fff;
    border-radius: 5px;
  }
  /* 右からの吹き出しテキスト */
  .voice-text-left {
    position: relative;
    margin-right: 100px;
    padding: 1.2em;
    border: 3px solid #eee;
    background-color: #fff;
    border-radius: 5px;
  }
  p.voice-text {
    margin: 0 0 8px;
    font-weight: bold;
  }
  p.voice-text:last-child {
    margin-bottom: 0px;
  }
  /* 左の三角形を作る */
  .voice-text-right:before {
    position: absolute;
    content: '';
    border: 10px solid transparent;
    border-right: 10px solid #eee;
    top: 15px;
    left: -20px;
  }
  .voice-text-right:after {
    position: absolute;
    content: '';
    border: 10px solid transparent;
    border-right: 10px solid #fff;
    top: 15px;
    left: -16px;
  }
  /* 右の三角形を作る */
  .voice-text-left:before {
    position: absolute;
    content: '';
    border: 10px solid transparent;
    border-left: 10px solid #eee;
    top: 15px;
    right: -23px;
  }
  .voice-text-left:after {
    position: absolute;
    content: '';
    border: 10px solid transparent;
    border-left: 10px solid #fff;
    top: 15px;
    right: -19px;
  }
  /* 回り込み解除 */
  .voice:after,.voice:before {
    clear: both;
    content: "";
    display: block;
  }
  
  /* まとめ部分　*/
  .matome {
      border: solid 5px #a9a9a9;
      margin: 10px;
      background: #f5f5f5;
  }
  .matome ul {
      list-style: none;
  }

/* ===== PC版の設定 ===== */
@media (min-width: 768px) {


/* PC 版:ページ全体の設定　*/
body {
    grid-template-columns: 
            0.2fr 1fr 1fr 1fr 1fr 1fr 1fr 0.2fr;
    grid-column-gap: 5%;
    column-gap: 5%;
    grid-template-rows:
            [head] 100px
            [title sub] auto
            [recent] auto
            [foot] 100px;
}

/* PC 版：ヒーローイメージ */
figure.hero {
    grid-row: title;
    margin-top:  -20px;
}
/* PC 版：タイトル　*/
.top h1 {
    grid-column: 2 / span 3;
    max-width: 460px;
}

/* PC 版：サブタイトル　*/
.top h1 {
    grid-column: 5 / span 3;
    align-self: center;
}
.top p img {
    width: 80%;
    max-width: 460px;
}

/* PC 版：ヘッダー　*/
header {
    justify-self: start;
}

/* PCナビゲーション */
header .sitetitle {
    display: none;
}

header .header-nav {
    display: flex;
    justify-content: space-between;
}

/* PCナビゲーション */

#gnav-btn {
    display: none;
}



header ul.pc-nav {
    font-size: 1em;
}

ul.pc-nav {
    display: flex;
    justify-content: center;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}
ul.pc-nav li a {
    display: block;
    padding: 20px 30px;
    color:#000;
    font-weight: bold;
    text-decoration: none;
}
ul.pc-nav li a:hover {
    background: #b8e5ea;
}



/* ナビゲーションスマホ下 */

ul.bottom-menu {
    display: none;
}    

/* PC 版：記事一覧　*/
section {
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 20px;
    column-gap: 20px;
}

/* PC 版：記事ページ　*/
.post {
    grid-template-rows: 
                [head] 100px
                [kiji submenu] auto
                [foot] 100px;
}
/* PC 版：記事ページ：記事　*/
.post article {
    grid-column: 2 / span 4;
}

.post article h1 {
    font-size: 30px;
    font-weight: bold;
    color: blue;
}

.post article p {
    font-size: 18px;
}

/* PC 版：記事ページ：サブメニュー　*/

.post div {
    grid-column: 6 / span 2;
}

/* PC 版：記事ページ：バー　*/

.post::before {
    margin-top: -20px;
}

/* PC 版：「お問い合わせ」ページ　*/
input[type="submit"] {
    width: 250px;
}

}
/* ===== PC版の設定ここまで ===== */