<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');
body {
    font-family: 'Noto Serif JP', serif;
    font-weight: normal;
    letter-spacing: 2px;
    max-width: 100%;
    text-align: justify;
    word-break: break-all;
color: #000;
}
@media screen and (min-width:1024px) {
body {
font-size: 15px;
    line-height: 180%;
}
}
@media screen and (max-width:1024px) {
body {
font-size: 13px;
line-height: 200%;
}
}


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


.box a,
.box2 a {
font-weight: bold;
color: #000;
    transform: rotate(1deg);
    -moz-transform: rotate(1deg);
    -webkit-transform: rotate(1deg);
}
.box a,
.box2 a {
text-decoration: none;
    border-bottom: solid 2px #FF5733;
    display: inline-flex;
}
.box a:hover,
.box a:active,
left a:hover {
color: #FF5733;
font-weight: bold;
}

.box2 a:visited {
color: #000;
}
.box2 m1 a:hover {
color: #fff;
font-weight: bold;
}


.left a {
color: #000;
text-decoration: none;
border: none;
    font-weight: normal;
margin: 3em 0 1.5em 0;
}
@media screen and (max-width:1024px) {
.box a {
margin: -0.5em;
}
.left a{
margin: 2em 0 2em 0;
}
}


.flex2, .flex3 {
 display: flex;
  }
.flex {
 display: flex;
    font-family: 'Noto Serif JP', serif;
  }
@media screen and (min-width:1024px) {
/*
.flex4 {
display: flex;
    position: absolute;
    z-index: 10;
    top: 1em;
    left: 1em;
    color: #ffffff;
  }
*/
  }
@media screen and (max-width:1024px) {
.flex3  {
margin: 0 0 2em 0;
  }
.flex {
margin: 0 0 2em 1em;
  }
/*
.flex4 {
display: flex;
    position: absolute;
    z-index: 10;
    top: 1em;
    left: 1em;
    color: #ffffff;
  }
*/
  }
gojo {
font-family: 'M PLUS 1p', sans-serif;
  }


/* 題名 */
daimei {
font-family: 'M PLUS 1p', sans-serif;
font-size: 21px;
}
daimei2 {
font-size: 18px;
}
hukudai {
font-family: 'M PLUS 1p', sans-serif;
}
@media screen and (max-width:1024px) {
hukudai {
display: block;
text-align: right;
}
m1 hukudai {
display: block;
text-align: center;
    margin: 0 0 1em 0;
}
}
kyara {
font-size: 18px;
    margin: 1em 0 0 0;
    display: block;
}
sen {
    border: solid 1px;
    margin: 0.5em;
    padding: 0.3em;
}

/* 中身 */
daimei3 {
    margin: 2em 0 0 0;
    font-size: 18px;
    display: inline-block;
font-family: 'New Tegomin', serif;
}
@import url('https://fonts.googleapis.com/css2?family=Homemade+Apple&display=swap');
suuji {
    font-family: 'Homemade Apple', cursive;
}
.naiyou {
text-align: left;
    display: inline-block;
}
migi {
text-align: right;
display: block;
}


/* メインページボックス */
.box {
font-family: 'M PLUS 1p', sans-serif;
 text-align:left;
max-width: 100%;
}

@media screen and (min-width:1024px) {
.box {
    background-color: #fff;
margin: 2em auto 0 auto;
width: 80%;
    padding: 3em 3em 0 3em;
  }
}
@media screen and (max-width:1024px) {
.box{
margin: 3em auto 0 auto;
width: 90%;
    background-color: #fff;
}
}



/* 子ページ */
@media screen and (min-width:1024px) {
.box2 {
background-color: #fff;
    margin: 0em auto 0 auto;
    width: 80%;
    padding: 0em 3em 0 3em;
  }
}

m1 {
background-color: #FF5733;
border-top: #000;
    display: block;
    padding: 1em 0;
position: relative;
}

@media screen and (min-width:1024px) {
#svg-bg {
    position: absolute;
    width: 100%;
height: 103px;
    top: 0;
}
/*
#svg-bg {
    position: absolute;
    width: 100%;
height: 130px;
    top: 0;
z-index:1;
}
#svg-bg2 {
    position: absolute;
    width: 100%;
    height: 124px;
    top: 0;
    z-index: 2;
}
*/
}
@media screen and (max-width:1024px) {
#svg-bg {
    position: absolute;
    width: 100%;
    height: 70px;
    top: 0;
}
}



h1 {
    font-family: 'Noto Serif JP', serif;
    background-color: #fff;
    border-radius: 15px 15px 0 0;
    font-weight: normal;
    color: #000;
}
@media screen and (min-width:1024px) {
h1 {
    font-size: 16px;
    padding: 7em 2em 3em;
    line-height: 180%;
    width: 100%;
margin: 0 auto 1em auto;
}
}
@media screen and (max-width:1024px) {
h1 {
    font-size: 13px;
    padding: 7em 1.5em 3em;
    line-height: 200%;
    margin: 0 auto 2em auto;
    width: 100%;
}
}

siro {
margin: 0;
color: #fff;
    display: block;
    text-align: center;
}

mannnaka {
display: block;
text-align: center;
margin: 2em 0;
}
@import url('https://fonts.googleapis.com/css2?family=Reggae+One&display=swap');
jurei {
font-family: 'Reggae One', cursive;
}






</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>