.osa{
text-decoration: none;
 text-decoration-color:#ffffff;
}

header {
    display: block;
}

h2{
  font-size: 30px;
}

h3{
	 padding: 10px;             
    font-size: 24px;
     font-family: "Zen Kaku Gothic Antique", sans-serif;
     margin-left: 20%;
     margin-right: 20%;
}

p{
	 font-family: "Zen Kaku Gothic Antique", sans-serif;
	 font-size:20px;
   margin-left:20%;
   margin-right: 20%;
}

ul {
  list-style: none;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-size:20px;
  margin-left:20%;
  margin-right: 20%;
}

.under {
  background: linear-gradient(transparent 50%, #fcfc38 50%);
}

.heading-21 {
    position: relative;
    padding: .5em .7em .10em;
    border-bottom: 3px solid #d02525;
    color: #333333;
    font-family: "Zen Kaku Gothic Antique", sans-serif;
    margin-left:15%;
    margin-right: 15%;
}

.heading-21::before, 
.heading-21::after {
    position: absolute;
    left: 30px;
    bottom: -15px;
    width: 30px;
    height: 15px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: '';
}

.heading-21::before {
    background-color: #d02525;
}

.heading-21::after {
    bottom: -11px;
}

ao{
  font-size: 21px;
  font-weight: bold
}

.text-box {
margin-left: 300px;
margin-right: 300px;
  }

  .list-4 {
    border: 2px solid #d02525;
}

.list-4 div {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 10px 0;
    background-color: #d02525;
    color: #fff;
    font-weight: 600;
}

.list-4 ul {
    list-style-type: disc;
    margin: 0;
    padding: 1em 1em 1em 2.5em;
}

.list-4 li {
    padding: .3em .3em .3em 0;
}

.list-4 li::marker {
    color: #d02525;
    font-size: 1.1em;
}


/* 018 */
.button018 a {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    max-width: 225px;
    padding: 10px 0px 10px 25px;
    color: #050000;
    transition: 0.3s ease-in-out;
    font-weight: 500;
    text-decoration: none;
    font-family: "Zen Kaku Gothic Antique", sans-serif;
}

.button018 a:before, .button018 a:after {
  content: "";
  position: absolute;
  display: block;
  top: 50%;
}
.button018 a:before {
  width: 0.5rem;
  height: 0.5rem;
  left: 1.1rem;
  border-top: solid 2px #fff;
  border-right: solid 2px #fff;
  z-index: 2;
  transform: translateY(-50%) rotate(45deg);
  transition: all 0.3s;
}
.button018 a:after {
  left: 0;
  background: #c41a1a;
  z-index: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 4rem;
  transform: translateY(-50%);
  transition: all 0.5s;
}
.button018 a span {
  position: relative;
  transition: all 0.3s;
  z-index: 3;
}

.button018 a:hover span {
  color: #fff;
}
.button018 a:hover:before {
  left: 2rem;
}
.button018 a:hover:after {
  right: 0;
  width: 100%;
}

nav{
	background:#c41a1a;
	color:#fff;
	text-align: center;
}
/*ナビゲーションを横並びに*/
nav ul{
	list-style: none;
	display: flex;
	justify-content: center;
}
/*2階層目以降は横並びにしない*/
nav ul ul{
	display: block;
}

/*下の階層のulや矢印の基点にするためliにrelativeを指定*/
nav ul li{
	position: relative;
}

/*ナビゲーションのリンク設定*/
nav ul li a{
	display: block;
	text-decoration: none;
	color: #fff;
	padding:20px 35px;
	transition:all .3s;
}

nav ul li li a{
	padding:10px 35px;
}

nav ul li a:hover{
	color:#fff;	
}

/*==矢印の設定*/

/*2階層目を持つliの矢印の設定*/
nav ul li.has-child::before{
	content:'';
	position: absolute;
	left:15px;
	top:25px;
	width:6px;
	height:6px;
	border-top: 2px solid #fff;
    border-right:2px solid #fff;
    transform: rotate(135deg);
}

/*3階層目を持つliの矢印の設定*/
nav ul ul li.has-child::before{
	content:'';
	position: absolute;
	left:6px;
	top:17px;
	width:6px;
	height:6px;
    border-top: 2px solid #fff;
    border-right:2px solid #fff;
    transform: rotate(45deg);
}

/*== 2・3階層目の共通設定 */

/*下の階層を持っているulの指定*/
nav li.has-child ul{
    /*絶対配置で位置を指定*/
	position: absolute;
	left:0;
	top:62px;
	z-index: 4;
    /*形状を指定*/
	background:#c41a1a;
	width:180px;
    /*はじめは非表示*/
	visibility: hidden;
	opacity: 0;
    /*アニメーション設定*/
	transition: all .3s;
}

/*hoverしたら表示*/
nav li.has-child:hover > ul,
nav li.has-child ul li:hover > ul,
nav li.has-child:active > ul,
nav li.has-child ul li:active > ul{
  visibility: visible;
  opacity: 1;
}

/*ナビゲーションaタグの形状*/
nav li.has-child ul li a{
	color: #fff;
	border-bottom:solid 1px rgba(255,255,255);
}

nav li.has-child ul li:last-child > a{
 border-bottom:none;
 }

nav li.has-child ul li a:hover,
nav li.has-child ul li a:active{
	background:#edce66;
}

nav li.has-child ul ul{
	top:0;
	left:182px;
	background:#edce66;
}

nav li.has-child ul ul li a:hover,
nav li.has-child ul ul li a:active{
	background:#edce66;
}


   /*==768px以下の形状*/
    
   @media screen and (max-width:768px){
    nav{
      padding: 0;
    }
    
    nav ul{
      display: block;
    }
    
    nav li.has-child ul,
    nav li.has-child ul ul{
      position: relative;
    left:0;
    top:0;
    width:100%;
    visibility:visible;
    opacity:1;
    display: none;
    transition:none;
  }
    
  nav ul li a{
    border-bottom:1px solid #fff;
  }
  
  nav ul li.has-child::before{
    left:20px;	
  }
  
  nav ul ul li.has-child::before{
      transform: rotate(135deg);
    left:20px;
  }
      
  nav ul li.has-child.active::before{
      transform: rotate(-45deg);
  }
  
  html {
    scroll-behavior: smooth;
  }
    
  .text-box {
    width: 300px;
    margin: 0 auto;
    padding: 0 1em;
    }
  }

.under {
background: linear-gradient(transparent 50%, #fcfc38 50%);
}  

.slydegazou {
  width: 100%; /* 親要素の幅に合わせて伸縮させる */
  height: auto; /* 高さを自動調整する */
}
