html {
	font-size:18px;
}
body{
	margin:0;
	font-family: "Zen Maru Gothic", sans-serif;
	font-weight: 500;
	font-style: normal;
	font-size:1rem;
	color:#2F3E50;
}
strong {
	font-weight:900;
}
p {
    line-height: 1.6em;
    letter-spacing: 0.04em;
}
ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}
li::before {
    content: "○";
    margin-right: 2px;
    flex-shrink: 0;
}

h1, h2, h3, h4 {
	margin:0 0 1em;
}

h1 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 900;
  font-style: normal;
}
h1 {
    font-weight: 900;
    font-size: 3rem;
    color: #4d4ac7;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    border-top: 5px solid #4d4ac7;
    border-bottom: 2px solid #4d4ac7;
    line-height: 3rem;
    padding: 0.2em 1em 0.5em;
    background-color: rgba(255, 255, 255, 0.4);
}
h1 span, h2 span {
    font-size: 1rem;
    display: block;
    line-height: 2rem;
}
h2 {
    font-weight: 700;
    font-size: 2rem;
}
h3 {
    font-weight: 700;
    font-size: 1.5rem;
}
h3.line {
	margin-bottom:0.7em;
}
h3.line:before, h3.line:after {
    content: '';
    border-top: 2px solid #00a896;
    display: inline-block;
    margin: 0em 0.5em 0.3em;
    width: 50px;
}
h4 {
	color:#00a896;
}

.slider-header {
	position: relative;
	width: 100%;
	min-height: 100dvh;
	height: auto;
	overflow: hidden;
	background-color: #000;
	box-sizing: border-box;
}
.header-content {
    position: relative;
    width: 100%;
    z-index: 10;
    color: #fff;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    box-sizing: border-box;

    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
padding-top:5em;
}
.header-content h1,
.header-content h2,
.header-content h3,
.header-content p
{
	word-break: keep-all;
	overflow-wrap: anywhere;
	text-align:center;
}
.header-content h2 {
margin-bottom:1rem;
}
.header-content p {
font-size:1.2rem;
}
/* 背景画像の共通設定 */
.slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    /* 15秒のループアニメーション */
    animation: sliderAnime 15s infinite linear;
}

/* 各画像の設定とディレイ、および重なり順(z-index)の個別指定 */
.bg1 {
    background-image: url('img/head-img1.jpg');
    animation-delay: 0s;
    z-index: 3; /* 1番目の画像 */
}
.bg2 {
    background-image: url('img/head-img2.jpg');
    animation-delay: 5s;
    z-index: 2; /* 2番目の画像 */
}
.bg3 {
    background-image: url('img/head-img3.jpg');
    animation-delay: 10s;
    z-index: 1; /* 3番目の画像 */
}

/* アニメーション設定（文字に影響を与えず背景だけを制御） */
@keyframes sliderAnime {
    0% {
        opacity: 0;
        transform: scale(1.0);
    }
    7% {
        opacity: 1; /* 1秒かけてフェードイン */
    }
    33% {
        opacity: 1; /* 表示キープ */
    }
    40% {
        opacity: 0; /* 1秒かけてフェードアウト */
        transform: scale(1.1); /* ここまでに1.1倍に拡大 */
    }
    100% {
        opacity: 0;
        transform: scale(1.0);
    }
}

.rBox {
    border: 5px solid #00A896;
    background: #fefefe;
    color: #2F3E50;
    padding: 1em;
    text-shadow: none;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.8);
}
.center {
	text-align:center;
}
.right {
	text-align:right;
}
.left {
	text-align:left;
}
.sidePadding {
	padding:0 3em;
}
.secBase {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 3em 0;
}
.secBase::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    transform: scale(1.1); 
    z-index: 1;
}

#p1::before {
    background-image: url('img/head-img1.jpg');
}
#p2::before {
    background-image: url('img/head-img2.jpg');
}
#p3::before {
    background-image: url('img/head-img3.jpg');
}
#p4::before {
    background-image: url('img/head-img1.jpg');
}
#p5::before {
    background-image: url('img/head-img2.jpg');
}

.base-content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 2em 0;
	background-color: rgba(255, 255, 255, 0.9);
	border-radius: 16px;
	box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
	width: 960px;
	border-top:16px solid #4d4ac7;
}

.base-content h2{
    color: #4d4ac7;
}
.base-content h2:after {
    content: '';
    display: block;
    border-bottom: 4px solid #4d4ac7;
    margin: 1em auto 0;
    width: 2em;
}
.text-content {
    text-align: justify;
}
.base-content h3 {
	color:#00A896;
}

.base-content article {
    border: 2px solid #00a896;
    border-radius: 10px;
    padding: 1.5em 0 0.5em;
    width: 85%;
    margin: 0 auto 1em;
}
#p2 .base-content article {
	padding:1em;
}
.col2 {
	display:grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}
.list2col {
    display: grid;
    grid-template-columns: 3fr 2fr 3fr 2fr;
    margin: 0 auto;
}
.list2col dt, .list2col dd {
    border-bottom: 2px solid #4a47c182;
    margin: 0;
padding:1em 0;
}
.list2col dt:before{
	content:'●';
}
.list2col dt {
	text-align:left;
}
.list2col2 {
	display:grid;
	grid-template-columns: 1fr 4fr;
	gap: 0;
}
.red {
    color: #f55413;
    font-weight: 700;
}
.list2col2 dt, .list2col2 dd {
    border-bottom: 2px solid #4a47c182;
    margin: 0;
	padding:1em 0;
}
.list2col2 dd {
	text-align:left;
}

.mediaimg {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	margin-bottom: 1em;
}
.mediaimg img {
    width: 330px;
    height: auto;
}

#map{
    width: 100%;
    margin: 0 auto;
    position: relative;
    aspect-ratio: 16 / 9; 
}
#map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

footer {
    text-align: center;
    background: #4d4ac7;
    padding: 1em 0;
    color: #dedede;
}

#contactForm {
	width:700px;
	margin:0 auto;
	text-align:left;
}
#contactForm dt {
	margin:0 0 0.5em;
}
#contactForm dd {
	margin:0 0 1.5em;
}
#contactForm input,
#contactForm textarea {
    width: 100%;
    font-size: 1rem;
    border: none;
    border: 1px solid #ccc;
    padding: 0.5em 1em 0.7em;
    color: #333;
    box-sizing: border-box;
    border-radius: 6px;
}
#contactForm textarea {
	height:10em;
}
#contactForm input[type="submit"] {
    cursor: pointer;
    background: #f55413;
    border: none;
    color: #fefefe;
}
#contactForm input[type="submit"]:hover{
	background:#fd7139;
}
#contactForm input[type="button"] {
    cursor: pointer;
    background: #fefefe;
    border: 1px solid #ccc;
}
#contactForm input[type="button"]:hover{
	background:#dedede;
}

/* 2階層目以降 */

#second .header-content {
	padding-top:3em;
	background:#4d4ac7;
}
#second h1 {
    color: #fefefe;
    text-shadow: 0 0 10px rgb(47 45 145);
    border-top: 5px solid #fefefe;
    border-bottom: 2px solid #fefefe;
    background-color: rgb(94 92 193);
}

@media (max-width: 480px) {
	html {
		font-size:16px;
	}
	h1 {
	    font-size: 2rem;
	}
	h2 {
	    font-size: 1.4rem;
	}
	h3 {
	    font-size: 1.2rem;
	}
	.rBox {
		padding: 1em 0;
		width: 85%;
		word-break: keep-all;
		overflow-wrap: anywhere;
	}
	.rBox ul {
		padding:0 1em;
	}
	.header-content {
	    padding-top: 2.5em;
	}
	#second .header-content {
		padding-top: 2.1em;
	}
	.base-content {
	    width: 90%;
	}
	.base-content article {
	        width: 90%;
	        border: none;
	        padding: 0;
	}
	#p2 .base-content article {
		padding:unset;
	}
	.mediaimg {
	    display: block;
	    align-items: unset;
	}
	.mediaimg img {
	    width: 100%;
	}
	.list2col {
	    grid-template-columns: 2fr 1fr;
	}
	.list2col2 {
	    grid-template-columns: 1fr 2fr;
	}
	#contactForm {
	    width: 85%;
	}
	#p1 .sidePadding, #p3 p, #p4 p {
		text-align:left;
	}
	.sidePadding {
		padding:0 1.5em;
	}
	.col2 {
		display: block;
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		gap: 20px;
	}
}