<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<style type="text/css">

@charset "UTF-8";

@font-face {
    font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p&display=swap');
@import url('https://fonts.googleapis.com/css?family=Noto+Serif+JP&display=swap');

body {
    font-weight: normal;
    letter-spacing: 2px;
    max-width: 100%;
    text-align: justify;
    word-break: break-all;
    margin:0;
color: #fff;
background-color: #000;
}
@media screen and (min-width:1024px) {
body {
font-size: 15px;
}
}
@media screen and (max-width:750px) {
body {
font-size: 13px;
}
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.box a {
font-family: 'M PLUS 1p', sans-serif;
}
@media screen and (min-width:1024px) {
.box a {
line-height: 200%;
}
}
@media screen and (max-width:750px) {
.box a {
line-height: 220%;
}
}

a {
 text-decoration:none;
color: #fff;
}
a:hover {
 color:#00ffff;
}
a:visited {
 color:#bbbbbb;
}

hr {
    height: 1px;
    background-color: #00ffff;
    border: none;
}



.g {color:#c4d4e0}
.t {color: #b0e0e6}
.m {color: #cc9966}
.ku {color: #eac79c}
.ko {color: #3aa8c1}
.ka {color: #ed872d}
.h {color:#3cb371}
.kara {color: #ea3c53}



@media screen and (min-width:1024px) {
img.ankyo1 {
z-index: 0;
    position: absolute;
    height: 135%;
    width: auto;
    top: auto;
    right: auto;
    bottom: 0;
    left: auto;
}
img.ankyo2 {
z-index: 2;
    position: absolute;
    height: 100%;
    width: auto;
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
}
img.ankyo3 {
display: none;
}
}

@media screen and (max-width:750px) {
img.ankyo1,
img.ankyo2 {
display: none;
}
img.ankyo3 {
z-index: 2;
    position: absolute;
    width: 100%;
    right: 0;
    bottom: 0;
    left: auto;
}
}


@media screen and (max-width:750px) {
header {
font-size: 11px;
line-height: 170%;
}
}

@media screen and (min-width:1024px) {
ti2 {
font-size: 11px;
line-height: 0%;
}
}
@media screen and (max-width:750px) {
ti2 {
font-size: 9px;
line-height: 0%;
}
}


/* タイトル・色文字  */
@media screen and (min-width:1024px) {
ti {
font-size: 18px;
}
}
@media screen and (max-width:750px) {
ti {
font-size: 15px;
}
}






/* 文章の背景　完全透過 */
h4 {
font-family: 'M PLUS 1p', sans-serif;
    font-weight: normal;
    background-color: rgba(255, 255, 255, 0);
}
@media screen and (min-width:1024px) {
h4 {
font-size: 16px;
margin: 3em auto 2em auto;
width: 70%;
line-height: 180%;
}
}
@media screen and (max-width:750px) {
h4 {
font-size: 13px;
margin: 2em auto 0 auto;
width: 90%;
line-height: 200%;
}
.left2 {
margin: 0 auto 2em 0;
}
}




/* メインページボックス */
.box{
position: relative;
  z-index: 100;
    font-family: 'メイリオ', 'Meiryo', sans-serif;
 text-align:left;
max-width: 100%;
}
@media screen and (min-width:1024px) {
.box {
margin: 2em auto;
width: 50%;
  }
.wrapper {
 justify-content:center; 
 display: flex;
  }
}
@media screen and (max-width:750px) {
.box{
margin: 2em auto 0 auto;
width: 90%;
}

</style>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>

$(function() {
var _window = $(window),
    _header = $('.st'),
    heroBottom;
_window.on('scroll',function(){     
    heroBottom = $('.back').height();
    if(_window.scrollTop() > heroBottom){
        _header.addClass('fixed');   
    }
    else{
        _header.removeClass('fixed');   
    }
});
_window.trigger('scroll');

   $('a[href^=#]').click(function() {
      var speed = 600;
      var href= $(this).attr("href");
      var target = $(href == "#" || href == "" ? 'html' : href);
      var position = target.offset().top;
      $('body,html').animate({scrollTop:position}, speed, 'swing');
      return false;
   });

});
</script>