/* スライドショー
------------------------------------------*/
.mainslider {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background-size: cover;
	background-position: center;
	width: 100%;
	max-height: 750px;
	height: 70vw;
	min-height: 500px;
}

.custom-slider {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	width: 100%;
	height: 100%;
	margin: 0 auto;
}

.custom-slider .swiper-wrapper {
	display: flex;
}
.custom-slider .swiper-slide {
	padding-top: 130px;
}
.custom-slider .swiper-slide .slide__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	max-width: 1380px;
	width: 100%;
	margin: 0 auto;
	height: 100%;
	padding: 15px;
	color: #fff;
}
/* 1枚目デザイン ----------*/
.custom-slider .swiper-slide.slide1 {
	background: url(../images/slide/nanashiguresanso_stars.jpg);
	background-size: cover;
	background-position: center;
}
.custom-slider .swiper-slide.slide1 .slide__inner {
	padding-top: clamp(3%, 7vw, 15%);
}
.custom-slider .swiper-slide.slide1 .slide__inner .slide-catch {
	background: #FFCC00;
	width: fit-content;
	padding: 5px 25px;
	color: #333;
	margin-bottom: clamp(20px, 2.1vw, 30px);
	transform: rotate(-13deg);
	z-index: 2;
}
.custom-slider .swiper-slide.slide1 .slide__inner .slide-ttl {
	font-size: clamp(3em, 5.8vw, 5em);
	font-weight: bold;
	text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
	margin-top: 0;
	margin-left: clamp(20px, 4.3vw, 60px);
	margin-bottom: clamp(10px, 1.4vw, 20px);
	line-height: 1.2;
	z-index: 1;
}
.custom-slider .swiper-slide.slide1 .slide__inner .slide-text {
	width: fit-content;
	text-align: right;
	margin-left: clamp(50px, 18.1vw, 250px);
	padding: 10px;
	/* 1.2emを上限に可変 */
	font-size: clamp(14px, 1.4vw, 1.2em);
}


/* 2枚目デザイン ----------*/
.custom-slider .swiper-slide.slide2 {
	background: url(../images/slide/snowcorridor.jpg);
	background-size: cover;
	background-position: center 70%;
}

.custom-slider .swiper-slide.slide2 .slide__inner {
	padding-top: clamp(5%, 7vw, 15%);
}

.custom-slider .swiper-slide.slide2 .slide-ttl {
	font-size: clamp(3em, 5.8vw, 5em);
	font-weight: bold;
	text-shadow: 2px 4px 10px rgba(0,0,0,0.4);
	margin-bottom: clamp(15px, 2.9vw, 40px);
	line-height: 1.1;
}
.custom-slider .swiper-slide.slide2 .slide-text {
	background: rgba(255, 255, 255, 0.6);
	width: fit-content;
	padding: 10px 15px;
	font-size: clamp(14px, 1.2vw, 1em);
	line-height: 1.8;
	color: #333;
	margin-bottom: clamp(15px, 2.1vw, 30px);
}
.custom-slider .swiper-slide.slide2 .slide-sitelink {
	display: inline-block;
	background: #6CAF4F;
	border-radius: 6px;
	min-width: clamp(200px, 24.6vw, 340px);
	padding: 15px 20px;
	text-align: center;
	color: #fff;
	font-size: clamp(0.9em, 1.2vw, 1em);
	font-weight: bold;
	text-decoration: none;
}

/* 3枚目デザイン ----------*/
.custom-slider .swiper-slide.slide3 {
	background: url(../images/slide/onsen.jpg);
	background-size: cover;
	background-position: center;
}
.custom-slider .swiper-slide.slide3 .slide__inner {
	padding-top: clamp(3%, 7vw, 15%);
}


.custom-slider .swiper-slide.slide3 .slide__inner .slide-catch {
	background: #4F0040;
	width: fit-content;
	padding: 5px 25px;
	color: #fff;
	margin-bottom: clamp(20px, 2.1vw, 30px);
	transform: rotate(-13deg);
	z-index: 2;
}
.custom-slider .swiper-slide.slide3 .slide__inner .slide-ttl {
	/* 5emを上限、14pxを下限 */
	font-size: clamp(3em, 5.8vw, 5em);
	font-weight: bold;
	text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
	margin-top: 0;
	margin-left: 10px;
	margin-bottom: 10px;
	line-height: 1.2;
	z-index: 1;
}
.custom-slider .swiper-slide.slide3 .slide__inner .slide-text {
	background: rgba(255, 255, 255, 0.6);
	width: fit-content;
	margin-left: 10px;
	padding: 10px;
	font-size: clamp(0.9em, 1.2vw, 1em);
	color: #082481;
	line-height: 1.5;
}


/* 4枚目デザイン ----------*/
.custom-slider .swiper-slide.slide4 {
	background: url(../images/slide/dragoneye.jpg);
	background-size: cover;
	background-position: center;
}
.custom-slider .swiper-slide.slide4 .slide__inner {
	padding-top: clamp(3%, 7vw, 15%);
}
.custom-slider .swiper-slide.slide4 .slide__inner .slide-catch {
	background: #34AADC;
	width: fit-content;
	padding: 5px 25px;
	color: #fff;
	margin-bottom: clamp(20px, 1.4vw, 20px);
	transform: rotate(-13deg);
	z-index: 2;
}
.custom-slider .swiper-slide.slide4 .slide__inner .slide-ttl {
	font-size: clamp(3em, 5.8vw, 5em);
	font-weight: bold;
	text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
	margin-top: 0;
	margin-left: 10px;
	margin-bottom: clamp(20px, 2.1vw, 30px);
	line-height: 1.2;
	z-index: 1;
}
.custom-slider .swiper-slide.slide4 .slide__inner .slide-text {
	background: rgba(255, 255, 255, 0.6);
	width: fit-content;
	margin-left: 10px;
	padding: 10px;
	font-size: clamp(0.9em, 1.2vw, 1em);
	color: #082481;
	line-height: 1.5;
}


/* --- アニメーション共通設定 --- */
/* 初期状態：透明にして少し位置をずらす */
.custom-slider .swiper-slide .slide-catch,
.custom-slider .swiper-slide .slide-ttl,
.custom-slider .swiper-slide .slide-text,
.custom-slider .swiper-slide .slide-sitelink {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 1s ease, transform 1s ease;
}

/* アクティブ時：不透明にして元の位置に戻す */
.custom-slider .swiper-slide-active .slide-catch,
.custom-slider .swiper-slide-active .slide-ttl,
.custom-slider .swiper-slide-active .slide-text,
.custom-slider .swiper-slide-active .slide-sitelink {
	opacity: 1;
	transform: translateY(0);
}

/* 順番に表示させるためのディレイ（時間差）設定 */
.custom-slider .swiper-slide-active .slide-catch { transition-delay: 0.3s; }
.custom-slider .swiper-slide-active .slide-ttl   { transition-delay: 0.6s; }
.custom-slider .swiper-slide-active .slide-text  { transition-delay: 0.9s; }
.custom-slider .swiper-slide-active .slide-sitelink { transition-delay: 1.1s; }



/*----------------------------------*/
.main {
	max-width: 1280px;
}

.com p {
	color: grey;
}
.com p+p {
	margin-top: 15px;
}
/*
.top h2 {
	margin-bottom: 30px;
	text-align: center;
	font-size: 3em;
	line-height: 1.2;
}*/
h2 span {
	display: block;
	background: #EAF3E6;
	border-radius: 6px;
	width: fit-content;
	margin: 0 auto 10px;
	padding: 10px;
	font-size: 1rem;
	color:  #60A642;
}

section+section {
	margin-top: 150px;
}

/* ブログ部分 ------------------------*/
.news .news-ttl {
	display: flex;
	align-items: center;

}
.news .news-ttl h2 {
	margin-right: auto;
}
.news .news-ttl h2 span {
	margin-left: 0;
}
.news .news-ttl .viewsmore {
	display: flex;
	justify-content: center;
	align-items: center;
	background: #72B357  ;
	border-radius: 8px;
	width: 160px;
	height: 50px;
	margin-top: 30px;
	padding: 6px;
	text-align: center;
	color: #fff;
	font-weight: bold;
	text-decoration: none;
}
.news .news-ttl .viewsmore:hover {
	background: #6CAF4F;
	text-decoration: none;
}
.news .imageslider-wrapper {
	position: relative;
	width: 98%;
	max-width: 98%;
	min-width: 0;
	margin: 0 auto;
}
.news .imageslider {
	position:relative;
	display: block;
	width: 0;
	min-width: 100%;
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.3s ease;
	min-height: 0;
	height: auto;
	padding: 10px;
}
.news .imageslider.swiper-initialized {
	opacity: 1;
}
.news .swiper-slide {
	position: relative;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	width: 100%;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	box-shadow: 3px 3px 4px rgba(128,128,128,0.3);
	margin-bottom: 15px;
	padding: 20px;
	height: auto !important; 
}
.news .swiper-slide .thumb {
	position: relative;
	border-radius: 10px;
	width: 100%;
	height: 0;
	padding-top: 75%;
	margin-bottom: 40px;
}
.news .swiper-slide .thumb img {
	position: absolute;
	top: 0;
	left: 0;
	border-radius: 10px;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.news .swiper-slide .thumb .date {
	position: absolute;
	top: 0;
	right: 15px;
	background: #63AB45;
	border-radius: 0 0 6px 6px;
	padding: 10px;
	text-align: center;
	color: #fff;
	line-height: 1;
}
.news .swiper-slide .thumb .date span {
	display: block;
}
.news .swiper-slide .thumb .date .day {
	font-size: 1.05em;
	font-weight: bold;
}
.news .swiper-slide .thumb .date .month {
	font-size: 0.8em;
}
.news .swiper-slide .thumb .category {
	position: absolute;
	left: 15px;
	bottom: -1em;
	background: #F7921E;
	color: #fff;
	padding: 10px 15px 8px;
	font-size: 0.95em;
	line-height: 1;
}
.news .swiper-slide .com {
	flex-grow: 1;
	display: block;
}
.news .swiper-slide .com h3 {
	font-size: 1.15em;
	line-height: 1.3;
	margin-bottom: 10px;
}
.news .swiper-slide .more-link {
	display: inline-block;
	margin-top: 10px;
	color: #333;
	text-decoration: none;
}
.news .swiper-slide .more-link::after {
	content: "\0bb";
	margin-top: 5px;
	margin-left: 5px;
	font-size: 1.25em;
	color: #63AB45;
	font-weight: bold;
	line-height: 1;
}
.news .swiper-slide .more-link:hover {
	color: #63AB45;
	letter-spacing: 0.05em;
}


/* swiper button */
.news .imageslider-wrapper .swiper-button-next::after,
.news .imageslider-wrapper .swiper-button-prev::after,
.swiper-button-next::after, 
.swiper-button-prev::after {
	content: "" !important;
	display: none !important;
	font-family: initial !important;
	font-size: 0 !important;
	visibility: hidden !important;
}

.news .imageslider-wrapper .swiper-button-next,
.news .imageslider-wrapper .swiper-button-prev {
	width: 40px;
	height: 40px;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	z-index: 10;
	color: transparent !important; 
}
.news .imageslider-wrapper .swiper-button-prev {
	left: -10px; 
}
.news .imageslider-wrapper .swiper-button-next {
	right: -10px;
}
.news .imageslider {
}
.news .imageslider-wrapper .swiper-button-next::before,
.news .imageslider-wrapper .swiper-button-prev::before {
	content: "";
	position: absolute;
	width: 10px;
	height: 10px;
	border-top: 2.5px solid #7cb342;
	border-left: 2.5px solid #7cb342;
	top: 50%;
	pointer-events: none;
}
.news .imageslider-wrapper .swiper-button-prev::before {
	left: 55%;
	transform: translate(-50%, -50%) rotate(-45deg);
}
.news .imageslider-wrapper .swiper-button-next::before {
	left: 45%;
	transform: translate(-50%, -50%) rotate(135deg);
}


/* トレッキング ------------------------*/
.trekking h2 {
	text-align: left;
	font-size: 1.6em;
	color: #333;
}
.trekking h2 span {
	background: inhert;
	margin-left: 0;
	margin-bottom: 15px;
	color: inhert;
}
.trekking .grid {
	gap: 0 30px;
}
.trekking .image {
	position: relative;
	margin-top: 10px;
	margin-bottom: 40px;
}
.trekking .image .image__fit {
	border-radius: 0 30px 30px 0;
	width: calc(100% * 6 / 7); 
	margin-left: calc(100% / 7);
	overflow: hidden;
}
.trekking .image .image__fit img {
	width: calc(100% * 7 / 6); 
	transition: transform 5s ease-out;
}
.trekking .image .image-mt {
	position: absolute;
	display: block;
	bottom: -25px;
	left: -10px;
	width: 200px;
	height: 150px;
	overflow: hidden;
	border: 8px solid #fff;
	border-radius: 20px;
	box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
	z-index: 1;
}
.trekking .image .image-mt img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 5s ease-out;
}
.trekking .image .image__fit:hover img,
.trekking .image .image-mt:hover img {
	transform: scale(1.2);
}


.trekking-list__inner {
	position: relative;
	padding-left: 60px;
	margin-bottom: 3em;
}
.trekking-list__inner:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 100px; 
	top: 80px; 
	height: 100%;
	bottom: -1.5em; 
	border-left: 2px dashed #ccc;
	z-index: 0;
}
.trekking-list__inner[data-icon]::before {
	position: absolute;
	left: 0;
	top: 30px;
	width: 1.5em;
	height: 1.5em;
	filter: invert(53%) sepia(85%) saturate(2255%) hue-rotate(1deg);
	z-index: 2;
}
.trekking-list dt {
	position: relative;
	padding-left: 90px;
	font-weight: bold;
	font-size: 1.25em;
	line-height: 1.4;
	margin-bottom: 0.5em;
	display: block;
}

.trekking-list dt[data-icon]::before {
	position: absolute;
	left: 0 !important;
	top: 0;
	width: 80px;
	height: 80px;
	margin: 0;
	z-index: 2;
	background-size: 70%;
	background-color: transparent !important;
	filter: invert(58%) sepia(41%) saturate(601%) hue-rotate(51deg) brightness(92%) contrast(92%) !important;

}
.trekking-list dt::after {
	content: "";
	position: absolute;
	left: 0 !important;
	top: 0;
	width: 80px;
	height: 80px;
	background-color: #fff;
	border-radius: 50%;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	z-index: 1;
}
.trekking-list dd {
	padding-left: 90px;
	margin-left: 0;
	color: grey;
}



/* スキー場 ------------------------*/
.ski .grid {
	gap: 0 30px;
}
.ski-card .image__fit {
	display: block;
	overflow: hidden;
	border-radius: 14px;
	padding-top: 110%;
	margin-bottom: 30px;
}
.ski-card .image__fit img {
	transition: transform 5s ease-out;
}
.ski-card .inner__box {
	position: absolute;
	bottom: 20px;
	left: 20px;
	right: 20px;
	background: #fff;
	border-radius: 12px;
	padding: 20px;
}
/* キャッチコピーとリゾート名 */
.ski-card .catch-copy {
	margin: 0;
	color: #558b2f;
	font-size: 1.1em;
	line-height: 1.4;
}

.ski-card .catch-copy span:first-child {
	display: block;
	border-bottom: 2px solid #558b2f;
	padding: 0 5px 5px;
	margin-bottom: 10px;
	font-weight: normal;
	transition: all 0.3s ease;
}
.ski-card:hover .catch-copy span:first-child {
	border-bottom-color: #ff9800;
}

.ski-card .resort-name {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	padding: 5px 5px;
	font-size: 1.2em;
	color: #333;
}
.ski-card .resort-name::after {
	content: "";
	display: inline-block;
	width: 1.4em;
	height: 1.4em;
	margin-left: 0.5em;
	background: url("../images/icon-arrow_right.svg") no-repeat center / contain;
	transform: rotate(-45deg);
	filter: invert(48%) sepia(13%) saturate(1682%) hue-rotate(53deg) brightness(97%) contrast(85%);
	transition: all 0.3s ease;
}
.ski-card:hover .resort-name::after {
	filter: invert(65%) sepia(91%) saturate(1851%) hue-rotate(3deg) brightness(103%) contrast(105%);
}

.ski-card .description {
	display: block;
	opacity: 0;
	overflow: hidden;
	max-height: 0;
	margin-top: 10px;
	color: grey;
	transition: max-height 1s ease, opacity 1s ease;
	white-space: normal;
	word-break: break-all;
	overflow-wrap: anywhere;
	width: 100%;
}
.ski-card:hover .description {
	max-height: 200px;
	opacity: 1;
}
.ski-card:hover .image__fit img {
	transform: scale(1.2);
}


/* おすすめ観光スポット ------------------------*/
.spot .grid {
	gap: 0 30px;
}
.spot-card .image__fit {
	display: block;
	border-radius: 14px;
	margin-bottom: 30px;
	padding-top: 40%;
	overflow: hidden;
}
.spot-card .image__fit::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
	pointer-events: none; /* 下のリンクをクリックできるようにする */
	border-radius: 14px;

}
.spot-card .image__fit img {
	transition: transform 5s ease-out;
}
.spot-card .image__fit h3 {
	position: absolute;
	left: 20px;
	bottom: 20px;
	font-size: 1.6em;
	color: #fff;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
	line-height: 1.4;
	z-index: 1;
}
.spot-card .image__fit h3 span {
	display: block;
	color: #55A532;
	font-size: 1.1rem;
	text-shadow:  0px 0px 4px rgba(0, 0, 0, 0.4), 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.spot-card:hover .image__fit img {
	transform: scale(1.2);
}


/* ブレイクポイント
---------------------------------------------------------------------------*/
@media screen and (max-width: 924px) {
	section+section {
		margin-top: 100px;
	}
	.ski [data-column="3"] {
		--data-column: 2 !important;
	}
	.ski-card .image__fit {
		padding-top: 100%;
	}

}
@media screen and (max-width: 800px) {
	.top h2 {
		font-size: 2em;
	}
	.top h2 span {
		font-size: 0.9rem;
	}

	.news .news-ttl .viewsmore {
		display: none;
	}


	.trekking h2 {
		font-size: 1.4em;
	}

}




@media screen and (max-width: 600px) {

	.top h2 {
		font-size: 1.8em;
	}
	.top h2 span {
		font-size: 0.8rem;
	}
	.trekking h2 {
		font-size: 1.4em;
	}

	.ski [data-column="3"] {
		--data-column: 1 !important;
		display: block !important;		/* 1列時はレイアウトを解除 */
	}

}

