@charset "utf-8";

body {
	font-family: 'Baloo 2', sans-serif;
	font-size: 17px;
	line-height: 1.6;
	letter-spacing: 0.1em;
}

h1, h2, h3 {
	letter-spacing: 0.1em;
	text-align: center;
	margin: 10px	10px;
}
h1 {
	font-size: 3rem;
}
h2 {
	font-size: 2rem;
	letter-spacing: 0.2em;
}
h3 {
	font-size: 2rem;
}

hr {
	width: 80%; /* ボーダー線の幅を設定 */
	height: 2px; /* ボーダー線の太さを設定 */
	background-color: #333; /* ボーダー線の色を設定 */
	border: none; /* デフォルトのボーダーを消す */
	margin: 0 auto 20px; /* 上下の余白を設定して中央揃えに */
}

#container{
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

#main-header{
	width:18%;
	position: sticky;
  top: 0; /*固定したい位置*/
	left: 0;
	background-color: #fff1fc;
	height: 100vh;
	overflow-y: auto; /* サイドバー内で縦方向のスクロールを可能にする */
	z-index: 1000; 
}

#main-area{
	width:82%;
}

section{
	padding: 0;
	margin: 0;
	}

.container {
  display: flex;
  width: 100%;
	padding:20px;
}

p{
	margin: 0;
	padding: 10px;
	margin-bottom: 10px; /* 段落間の間隔を広げるためのマージンを設定 */
}

.lead{
  text-align: center;
  padding: 50px 20px;
}

#footer{
	background:#333;
	width: 100%;
}

small{
	color:#fff;
	display: block;
	text-align: center;
	padding:20px;
}

/*========= logo部分のレイアウト ===============*/
.logo-container {
	margin: 20px auto; /* 画像の上下に20pxの余白を追加 */
	max-width: 600px; /* 最大幅を設定して中央寄せ */
	background-color: #fff1fc;
	border-radius: 90px; /* 角を丸くする */
}

.logo-container img {
	width: 100%; /* 親要素の幅に合わせる */
	height: auto; /* アスペクト比を維持 */
	border-radius: 90px; /* 画像の角を丸くする */
}

/*========= ナビゲーションドロップダウンのためのCSS ===============*/

/*==ナビゲーション全体の設定*/
nav ul{
	list-style: none;
	text-align: center;
}

/*下の階層のulや矢印の基点にするためliにrelativeを指定*/
nav ul li{
	position: relative;
}

/*ナビゲーションのリンク設定*/
nav ul li a{
	display: block;
	text-decoration: none;
	color: #000;
	padding:15px;
	transition:all .3s;
}

nav ul li a:hover{
	color:#ffffff;	
	background:#999;
}

/*==矢印の設定*/

/*2階層目を持つliの矢印の設定*/
nav ul li.has-child::before{
	content:'';
	position: absolute;
	right:30px;
	top:20px;
	width:6px;
	height:6px;
	border-top: 2px solid #999;
    border-right:2px solid #999;
    transform: rotate(45deg);
}

/*3階層目を持つliの矢印の設定*/
nav ul ul li.has-child::before{
	content:'';
	position: absolute;
	left:15px;
	top:21px;
	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:100%;
	top:10px;
	z-index: 4;
    /*形状を指定*/
	background:#f3f3f3;
	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;
	border-bottom:solid 1px rgba(255,255,255,0.6);
}

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:#666;
	color: #ffffff;
}

/*==3階層目*/

/*3階層目の位置*/
nav li.has-child ul ul{
	top:0;
	left:182px;
	background:#f3f3f3;
	color: #000;
}

nav li.has-child ul ul li a:hover,
nav li.has-child ul ul li a:active{
	background:#666;
	color: #ffffff;
}

/*========= sns iconのレイアウト =========*/
#sns-icons ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: center;
}

#sns-icons ul li {
	margin: 20px 10px;
}

#sns-icons ul li a img {
	width: 40px;
	height: auto;
}


/*========= レスポンシブサイズ設定 =========*/

/*リストのレイアウト設定　※初期値は画面外で非表示*/
.g-nav{
	position:fixed;/*position:fixed;にし、z-indexの数値を大きくして前面へ*/
	z-index: 999;
	/*ナビのスタート位置と形状*/
	top:0;
	right: -100%;
	width:100%;
	height: 100vh;/*ナビの高さ*/
	background: rgba(255, 241, 252, 0.8); /* #fff1fcに透明度0.8を追加 */
	/*動き*/
	transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
.g-nav.panelactive{
    right: 0;
}

/*ナビゲーションの縦スクロール*/
.g-nav.panelactive #g-nav-list{
    /*ナビの数が増えた場合縦スクロール*/
    position: relative;
    z-index: 999; 
    width: 30%;
    height: 70vh;/*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
	.g-nav,	.g-nav.panelactive #g-nav-list{
			width:100%;
	}

#g-nav-list ul {
	position: absolute;
	z-index: 999;
	top:50%;
	left:50%;
	transform: translate(-50%,-50%);
}

#g-nav-list li{
list-style: none;
text-align: center;
font-size:20px;
}

#g-nav-list li a{
color: #858793;
text-decoration: none;
padding:10px;
display: block;
text-transform: uppercase;
letter-spacing: 0.1em;
font-weight: bold;
transition: all .5s;
}

#g-nav-list li a:hover{
	color:#ccc;
}

/* デフォルトでは非表示にする */
.site-header {
	display: none;
}

/* 非表示にする */
@media screen and (max-width: 768px) {
#main-header{
	display: none;
}

#main-area{
	width:100%;
}

h2{
	display: none;
}

hr{
	display: none;
}
}

/*横幅が768px以下になった際の指定*/
@media only screen and (max-width: 768px) {
	/* スマホ表示時のみヘッダー表示 */
.site-header {
	display: flex; /* 子要素を横並びにする */
	justify-content: space-between; /* タイトルとボタンを左右に配置 */
	align-items: center; /* 上下中央揃え */
	padding: 10px 10px; /* ヘッダー内の余白 */
	background-color: #fff1fc; /* 背景色 */
	color: #858793; /* 文字色 */
	position: fixed; /* 画面上部に固定 */
	top: 0;
	left: 0;
	width: 100%; /* ヘッダーを画面全幅に */
	z-index: 1000; /* 前面に表示 */
}

/* サイトタイトルのスタイル */
.site-title {
	font-size: 6vw; /* タイトルの文字サイズ */
	margin: 0; /* 余白の調整 */
}

.logo-container {
	text-align: left; /* 左揃えにする */
	padding: 0; /* 余白をリセット */
	margin: 0;
	clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); /* 菱形のクリップパス */
}

.logo-container img {
	width: 40px; /* ロゴ画像を小さく設定 */
	height: auto; /* 縦横比を維持 */
	margin: 0; /* 余白をリセット */
}

/* ヘッダーがコンテンツを隠さないようにマージンを設定 */
body {
		margin-top: 70px; /* ヘッダーの高さに合わせて調整 */
}

/*================	ハンバーガーボタン	========================*/
.openbtn{
	/*ボタン内側の基点となるためrelativeを指定。
追従するナビゲーションの場合はfixed＋top、rightといった位置をセットで指定*/
	position: relative;
	/* background:#57a2c7; */
	cursor: pointer;
    width: 50px;
    height:50px;
	border-radius: 5px;
	z-index: 9999;
}

/*ボタン内側*/
.openbtn span{
    display: inline-block;
    transition: all .4s;/*アニメーションの設定*/
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
	background: #858793;
  	width: 45%;
  }

.openbtn span:nth-of-type(1) {
	top:15px;	
}

.openbtn span:nth-of-type(2) {
	top:23px;
}

.openbtn span:nth-of-type(3) {
	top:31px;
}

/*activeクラスが付与されると線が回転して×に*/

.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn.active span:nth-of-type(2) {
	opacity: 0;/*真ん中の線は透過*/
}

.openbtn.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}

/*========= sns iconのレイアウト =========*/
#sns-icons {
	text-align: center; /* アイコンを中央揃え */
	padding: 20px 0; /* SNSアイコンの上下余白 */
}

#sns-icons ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

#sns-icons ul li {
	display: inline-block; /* アイコンを横並びにする */
	margin: 20px 10px;
}

#sns-icons ul li a img {
	width: 40px;
	height: auto;
}

/*sliderスマホ表示*/
.slider {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: -1;
	overflow: hidden;
}

.slider img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

}