header{
  padding-top: 300px;
  height:500px;
  background-repeat: no-repeat;
  background-image: url(img/header.jpg);
background-size:100%;
}
body{
  background-color:#fcf7fb;
margin: 0;
padding: 0;
overflow-x: hidden;
width: 100%;
}

mark {
background: linear-gradient(transparent 50%, #ffb3de 50%);
}

h1{
  text-align: left;
  font-size: 35px;
  font-family: "Noto Sans JP", sans-serif;
font-weight: 400;
font-style: normal;
padding: 0.5em;/*文字周りの余白*/
color: #000000;/*文字色*/
background: #fae3f0;/*背景色*/
border-left: solid 5px #ffa8d9;/*左線（実線 太さ 色）*/
}
h2{
       text-align: left;
  font-size: 30px;
font-family: "Noto Sans JP", sans-serif;
font-weight: 400;
font-style: normal;
}
h3{
     text-align: left;
  font-size: 25px;
font-family: "Noto Sans JP", sans-serif;
font-weight: 400;
font-style: normal;
}

h4{
  font-size:12px;
font-family: "Noto Sans JP", sans-serif;
}
/*ナビゲーション*/
nav {
  padding:10px;
}

nav a {
text-decoration: none;
font-family: "Noto Sans JP", sans-serif;
font-weight: 400;
font-size:21px;
}

  nav li{
  display: inline-block;
  padding-right:20px;
text-decoration: none;
font-family: "Noto Sans JP", sans-serif;
font-size:26px;
}

nav ul {
margin-top: 0px;
margin-bottom: 0px;
    text-align:center;
}


/*ナビゲーション*/

/*========= ナビゲーションドロップダウンのためのCSS ===============*/

/*==ナビゲーション全体の設定*/
nav{
background:#fff;
color:#000;
text-align: center;
right: 0;
left: 0; 
box-shadow: 0 5px 6px rgba(0, 0, 0, 0.1);
position:fixed; 
}
/*ナビゲーションを横並びに*/
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: #000;
padding:10px 40px;
transition:all .3s;

}
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);
}

nav ul li li a{
padding:1px 3px;
}

/*3階層目を持つliの矢印の設定*/
nav ul ul li.has-child::before{
content:'';
position: absolute;
left:6px;
top:17px;
width:6px;
height:6px;
  border-top: 2px solid #999;
  border-right:2px solid #999;
  transform: rotate(45deg);
}
/*== 2・3階層目の共通設定 */

/*下の階層を持っているulの指定*/
nav li.has-child ul{
  /*絶対配置で位置を指定*/
position: absolute;
left:0;
top:62px;
z-index: 4;
  /*形状を指定*/
background:#fff;
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: #000;
}

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:#fff;
}

/*3階層目の位置*/
nav li.has-child ul ul{
top:0;
left:240px;
background:#fff;
}

nav li.has-child ul ul li a:hover,
nav li.has-child ul ul li a:active{
background:#fff;
}
/*矢印の位置と向き*/
nav ul li.has-child::before{
left:20px;	
}

nav ul ul li.has-child::before{
left:-10px;
}
  
nav ul li.has-child.active::before{
  transform: rotate(-45deg);
}

/*==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%;
}

nav ul li a{
border-bottom:1px solid #fff;
}

}


small{
	background: #7a6f69;
	color:#f8f3f5;
display: block;
text-align: center;
padding:100px;
}

.text-box {
width: 900px;
margin: 0 auto;
padding: 0 1em;
}

nav li.has-child ul {
  position: absolute;
  left: 50%;               /* 親liの中央を基準に */
  top: 60px;
  transform: translateX(-55%);  /* 真ん中に調整 */
  z-index: 4;
  background: #fff;
  width: 195px;
  visibility: hidden;
  opacity: 0;
  transition: all .3s;
  box-shadow: 0 5px 6px rgba(0, 0, 0, 0.1);
}

a {
  text-decoration: none;
  color: inherit;
}

.box > div {
  text-decoration: underline;
}

.box > p {
  text-decoration: none;
}
/* 下の2つのボックス（横並びにする） */
.container {
  display: flex;
  gap: 100px; /* ボックス間のスペース */
  justify-content: flex-start; /* 左寄せ */
  flex-wrap: wrap; /* 画面が小さくなった場合に折り返し */
}

.box {
  width: 400px;
  flex: none; 
  padding: .5em 1.5em 1em;
  border-top: 5px solid #fc92c2;
  border-radius: 5px;
  box-shadow: 0 2px 3px rgb(0 0 0 / 20%);
  background-color: #f2f2f2;
  box-sizing: border-box; /* paddingを含むサイズ調整 */
}

.box > div {
  margin-bottom: .5em;
  color: #000;
  font-weight: 600;
  font-size: 1.05em;
}

.box > p {
  margin: 30px;
  color: #000;
}
.container a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.box > div {
  text-decoration: underline;
}

.box > p {
  text-decoration: none;
}
/* ----------------------------- */
/* 矢印が右に移動する（→） */
/* ----------------------------- */
.btnarrow4 {
  position: relative;
  display: inline-block;
  padding: 0.6em 2em;  /* ← 前回と同じ余白 */
  font-size: 1.2rem;   /* ← テキストの大きさを統一 */
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  text-decoration: none;
  outline: none;
}

/* 下線と矢印（右向き） */
.btnarrow4::before {
  content: '';
  position: absolute;
  bottom: -10px; /* 少し下げてバランス調整 */
  left: 15%;
  width: 85%;
  height: 2px;   /* 太さを増して統一 */
  background: #333;
  transition: all .3s;
}

.btnarrow4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 20px;  /* 長さを増やして前回と同じ */
  height: 2px;
  background: #333;
  transform: rotate(35deg);
  transition: all .3s;
}

/* hover時の右矢印動作 */
.btnarrow4:hover::before {
  left: 20%;
}

.btnarrow4:hover::after {
  right: -5%;
}

/* ----------------------------- */
/* 矢印が左に移動する（←） */
/* ----------------------------- */
.btnarrow4-left {
  position: relative;
  display: inline-block;
  padding: 0.6em 2em;  /* 同じ余白 */
  font-size: 1.2rem;   /* 同じフォントサイズ */
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  text-decoration: none;
  outline: none;
}

/* 下線と矢印（左向き） */
.btnarrow4-left::before {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 15%;
  width: 85%;
  height: 2px;
  background: #333;
  transition: all .3s;
}

.btnarrow4-left::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 20px;
  height: 2px;
  background: #333;
  transform: rotate(-35deg);
  transition: all .3s;
}

/* hover時の左矢印動作 */
.btnarrow4-left:hover::before {
  right: 20%;
}

.btnarrow4-left:hover::after {
  left: -5%;
}

/* ボタンを左右に配置 */
.btn-container {
  display: flex;
  justify-content: space-between;
  align-items: center; /* 高さを揃える */
}

/*リンクの形状*/
#page-top a{
	display: flex;
	justify-content:center;
	align-items:center;
	background:#d872b9;
	border-radius: 5px;
	width: 60px;
	height: 60px;
	color: #fff;
	text-align: center;
	text-transform: uppercase; 
	text-decoration: none;
	font-size:0.6rem;
	transition:all 0.3s;
}

#page-top a:hover{
	background: #7a6f69;
}

/*リンクを右下に固定*/
#page-top {
	position: fixed;
	right: 10px;
	bottom:10px;
	z-index: 2;
    /*はじめは非表示*/
	opacity: 0;
	transform: translateY(100px);
}

/*　上に上がる動き　*/

#page-top.UpMove{
	animation: UpAnime 0.5s forwards;
}
@keyframes UpAnime{
  from {
    opacity: 0;
	transform: translateY(100px);
  }
  to {
    opacity: 1;
	transform: translateY(0);
  }
}

/*　下に下がる動き　*/

#page-top.DownMove{
	animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime{
  from {
  	opacity: 1;
	transform: translateY(0);
  }
  to {
  	opacity: 1;
	transform: translateY(100px);
  }
}