@charset "utf-8";

/*==================================================
　機能編 4-1-5　ロゴアウトラインアニメーション
===================================*/

/* Loading背景画面設定　*/
#splash {
    /*fixedで全面に固定*/
	position: fixed;
	width: 100%;
	height: 100%;
	z-index: 9999;
	background:#265674;
	text-align:center;
	color:#fff;
}

/* Loading画像中央配置　*/
#splash_logo {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* Loading アイコンの大きさ設定　*/
#splash_logo svg{
    width:250px;
}

/*=============== SVGアニメーション内の指定 =================*/

/*アニメーション前の指定*/
#mask path {
		fill-opacity: 0;/*最初は透過0で見えない状態*/
		transition: fill-opacity .5s;/*カラーがつく際のアニメーション0.5秒で変化*/
		fill: none;/*塗りがない状態*/
		stroke: #fff;/*線の色*/
	}

#mask text {
		opacity: 0;/*最初は透過0で見えない状態*/
		transition: opacity .5s;/*カラーがつく際のアニメーション0.5秒で変化*/
		fill: #fff;/*塗りの色*/
		text-transform: none;/*大文字変換を無効化*/
	}

/*アニメーション後に.doneというクラス名がで付与された時の指定*/
#mask.done path{
	  fill: #fff;/*塗りの色*/
	  fill-opacity: 1;/*透過1で見える状態*/
	  stroke: none;/*線の色なし*/
	}

#mask.done text{
	  opacity: 1;/*透過1で見える状態*/
	  fill: #fff;/*塗りの色*/
	}

/*==================================================
　機能編 4-2-1　背景色が伸びる（上から下）
===================================*/

/*画面遷移アニメーション*/
.splashbg{
	display: none;
}

body.appear .splashbg{
    display: block;
    position:fixed;
	z-index: 999;
    width: 100%;
    height: 100vh;
    top: 0;
	left: 0;
    transform: scaleY(0);
    background-color:#265674;/*伸びる背景色の設定*/
	animation-name:PageAnime;
	animation-duration:1.2s;
	animation-timing-function:ease-in-out;
	animation-fill-mode:forwards;
}

@keyframes PageAnime{
	0% {
		transform-origin:top;
		transform:scaleY(0);
	}
	50% {
		transform-origin:top;
		transform:scaleY(1);
	}
	50.001% {
		transform-origin:bottom;
	}
	100% {
		transform-origin:bottom;
		transform:scaleY(0);
	}
}

/*画面遷移の後現れるコンテンツ設定*/
#container{
    position: relative;
    z-index: 1;
	opacity: 0;/*はじめは透過0に*/
}

/*bodyにappearクラスがついたら出現*/
body.appear #container{
	animation-name:PageAnimeAppear;
	animation-duration:1s;
	animation-delay: 0.8s;
	animation-fill-mode:forwards;
	opacity: 0;
}

@keyframes PageAnimeAppear{
	0% {
	opacity: 0;
	}
	100% {
	opacity: 1;
}
}

/*==================================================
　機能編 5-3-2　中心から外に線が伸びる（中央）
===================================*/
#menu li a{
    /*線の基点とするためrelativeを指定*/
	position: relative;
}

#menu li a::after {
    content: '';
    /*絶対配置で線の位置を決める*/
    position: absolute;
    bottom: 0; /* 文字の下に配置 */
    left: 10%;
    /*線の形状*/
    width: 80%;
    height: 1px;
    background: #000; /* 黒色 */
    /*アニメーションの指定*/
    transition: all .3s;
    transform: scale(0, 1);/*X方向0、Y方向1*/
    transform-origin: center top;/*上部中央基点*/
}

/*現在地とhoverの設定*/
#menu li a:hover::after {
    transform: scale(1, 1);/*X方向にスケール拡大*/
}

/*===========================================================*/
/*機能編 9-1-1	縦線が動いてスクロールを促す*/
/*===========================================================*/

/*スクロールダウン全体の場所*/
.scrolldown1{
    /*描画位置※位置は適宜調整してください*/
	position:absolute;
	right:50px;
	bottom:50px;
    /*全体の高さ*/
	height:50px;
}

/*Scrollテキストの描写*/
.scrolldown1 span{
    /*描画位置*/
	position: absolute;
	left:-15px;
	top: -15px;
    /*テキストの形状*/
	color: #eee;
	font-size: 0.7rem;
	letter-spacing: 0.05em;
}

/* 線の描写 */
.scrolldown1::after{
	content: "";
    /*描画位置*/
	position: absolute;
	top: 0;
    /*線の形状*/
	width: 1px;
	height: 30px;
	background: #eee;
    /*線の動き1.4秒かけて動く。永遠にループ*/
	animation: pathmove 1.4s ease-in-out infinite;
	opacity:0;
}

/*高さ・位置・透過が変化して線が上から下に動く*/
@keyframes pathmove{
	0%{
		height:0;
		top:0;
		opacity: 0;
	}
	30%{
		height:30px;
		opacity: 1;
	}
	100%{
		height:0;
		top:50px;
		opacity: 0;
	}
}

/*==================================================
　機能編 7-1-1	背景が流れる（左から右）
===================================*/

/*== ボタン共通設定 */
.btn{
    /*アニメーションの起点とするためrelativeを指定*/
    position: relative;
	overflow: hidden;
    /*ボタンの形状*/
	text-decoration: none;
	display: inline-block;
   	border: 1px solid #fff;/* ボーダーの色と太さ */
    padding: 10px 30px;
	margin-top: 30px;
    text-align: center;
    outline: none;
    /*アニメーションの指定*/   
    transition: ease .2s;
}

/*ボタン内spanの形状*/
.btn span {
	position: relative;
	z-index: 3;/*z-indexの数値をあげて文字を背景よりも手前に表示*/
	color:#fff;
}

/*== 左から右 */
.bgleft:before {
 	content: '';
    /*絶対配置で位置を指定*/
 	position: absolute;
 	top: 0;
 	left: 0;
 	z-index: 2;
    /*色や形状*/
 	background:#333;/*背景色*/
 	width: 100%;
	height: 100%;
    /*アニメーション*/
 	transition: transform .6s cubic-bezier(0.8, 0, 0.2, 1) 0s;
 	transform: scale(0, 1);
	transform-origin: right top;
}

/*hoverした際の形状*/
.bgleft:hover:before{
	transform-origin:left top;
	transform:scale(1, 1);
}

/*===========================================================*/
/*印象編　8-10 テキストがタイピング風に出現（削除済み）*/
/*===========================================================*/

h1 {
	text-transform: none;/*大文字変換を無効化*/
}

h1 small {
	display: inline-block;
	font-size: 0.6em;
	width: 100%;
	text-transform: none;
}


@keyframes typinganime{
	from{opacity:0}
	to{opacity:1}
}


/*==================================================
/*印象編　6-3　スクロールすると画面分割した左右がそれぞれ動く*/
/*===================================*/

/*全体のエリア設定*/

.ms-section{
	color:#fff;
	padding:20px;
}

.ms-section a{
	color:#fff;
}

/*右にある丸ナビゲーション色*/

#multiscroll-nav span{
	background:transparent!important;
	border-color:#fff!important;
}

/*右にある丸のナビゲーション現在地色*/

#multiscroll-nav li .active span{
	background:#fff!important;
}

/*左上のナビゲーション*/

#menu li {
	display:inline-block;
}

#menu li a{
	display:inline-block;
	text-decoration:none;
	color: #000; /* 黒色 */
	padding:20px;
}

/*左エリア画像設定*/
#left1{
	background:url("../img/main-left.jpg") no-repeat center right;
	background-size:cover;
}

#right1{
	background:url("../img/main-right.jpg") no-repeat center left;
	background-size:cover;
}

#right2{
	background:url("../img/01.jpg") no-repeat center;
	background-size:cover;
}

#right3{
	background:url("../img/02.jpg") no-repeat center;
	background-size:cover;
}

#right4{
	background:url("../img/cbm.jpg") no-repeat center;
	background-size:cover;
}

#left4{
	background:no-repeat center;
	background-size:cover;
}

#right6{
	background:url("../img/inochis.webp") no-repeat center;
	background-size:cover;
}

/*＝＝＝＝＝＝＝＝＝＝＝550px以下の見え方＝＝＝＝＝＝＝＝＝＝＝＝＝*/

@media screen and (max-width:550px){
	
#header{
	justify-content: center;
}

/*全体のボックスについている余白をリセット*/
.ms-section{
	padding:0;
}

/*天地中央になっている見せ方を上ぞろえに上書き*/
.ms-tableCell{
	vertical-align:top;
}

/*左上ナビゲーションと左エリア非表示*/
#menu,
.ms-right{
	display: none;
}

/*右エリアを横幅100%にして画像＋テキストを出す設定*/
.ms-left{
	width:100%!important;
}

/*右エリア上部画像設定*/
    
#left1{
    background:url("../img/city-sp.jpg") no-repeat center;
    background-size:cover;
}

#left2 .sp-top{
	background:url("../img/01.jpg") no-repeat center;
	background-size:cover;
    height: 50vh;
}

#left3 .sp-top{
	background:url("../img/02.jpg") no-repeat center;
	background-size:cover;
    height: 50vh;
}
    
#left4 .sp-top{
	background:url("../img/cbm.jpg") no-repeat center -100px; /* 背景画像を50px上に移動 */
	background-size:cover;
    height: 33.33vh; /* 画面の1/3に変更 */
}
    
#left4 .sp-bottom{
	background:no-repeat center;
	background-size:cover;
    height: 66.67vh; /* 固定の高さを設定 */
    min-height: 66.67vh; /* 画面の2/3の高さを確保 */
    padding-bottom: 40px; /* 下部に余白を追加 */
    overflow-y: auto; /* 縦スクロールを有効化 */
    -webkit-overflow-scrolling: touch; /* iOSでスムーズなスクロール */
}

/* #left4全体の高さを調整（multiscrollのセクション高さ） */
#left4 {
    height: auto !important; /* 高さを自動に */
    min-height: 100vh !important; /* 最低でも画面全体の高さ */
}

#left6{
	background:no-repeat center;
	background-size:cover;
}

/*右エリア下部テキスト余白設定*/
.sp-bottom{
	padding:20px;
}

/* #left4のh2をモバイル時に非表示 */
#left4 .sp-bottom h2 {
	display: none;
}

/* モバイル時に#right4の高さを画面の1/3に設定（left4のスペース確保のため） */
#right4 {
	height: 33.33vh !important;
	min-height: 33.33vh !important;
	background-position: center -50px !important; /* 背景画像を50px上に移動 */
}
	
}

/*==================================================
モーダル
===================================*/

.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
}

.modal.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	background-color: rgba(0, 0, 0, 0.7);
	pointer-events: none; /* クリックを奪わない（閉じる判定はJSで.modal側で行う） */
}

.modal-content {
	position: relative;
	background-color: #fff;
	width: 90%;
	max-width: 800px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 40px 30px 30px;
	z-index: 10001;
	pointer-events: auto;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 32px;
	color: #333;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s;
}

.modal-close:hover {
	color: #000;
}

.modal-images {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 30px;
}

.modal-images img {
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 4px;
}

.modal-description {
	margin-bottom: 30px;
	line-height: 1.8;
	color: #333;
	font-size: 0.95rem;
}

.modal-link {
	text-align: center;
}

.modal-link .btn {
	color: #fff;
	background-color: rgba(38, 86, 116, 1); /* 背景色を設定 */
	border-color: rgba(38, 86, 116, 1); /* ボーダー色も設定 */
}

.modal-link .btn span {
	color: #fff;
}

.modal-link .bgleft:before {
	background: rgba(38, 86, 116, 0.8); /* ホバー時の背景色 */
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
	.modal-content {
		width: 95%;
		padding: 30px 20px 20px;
		max-height: 85vh;
	}
	
	.modal-images {
		grid-template-columns: 1fr;
		gap: 15px;
		margin-bottom: 20px;
	}
	
	.modal-description {
		font-size: 0.9rem;
		margin-bottom: 20px;
	}
	
	.modal-close {
		top: 10px;
		right: 10px;
		font-size: 28px;
		width: 28px;
		height: 28px;
	}
}

