/* ==========================================================================
   v2 base — 冬サイトリニューアル（v2）共通スタイル
   フォント / カラー / 見出し / ボタン / リンク
   ========================================================================== */
:root {
	--v2-navy: #1e2837;
	--v2-coral: #ff6450;
	--v2-blue: #0c62b9;
	--v2-blue-light: #4a9bec;
	--v2-gray: #f7f9fb;
	--v2-pale-blue: #eff6ff;
	--v2-radius: 24px;
	--v2-serif: "Noto Serif JP", serif;
	--v2-sans: "Noto Sans JP", sans-serif;
	--v2-en: "Jost", sans-serif;
	--v2-gutter: max(50px, calc((100vw - 1340px) / 2)); /* 1340px 列の左右余白 */
	--v2-gradient: linear-gradient(110deg, #0c62b9 0%, #4a9bec 100%);
}

/* スムーススクロール（base.css は v2 ページでのみ読み込まれる） */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

.v2-top {
	font-family: var(--v2-sans);
	font-size: 15px;
	line-height: 2;
	color: var(--v2-navy);
	overflow-x: hidden;
	padding-top: 145px; /* 固定ヘッダー分（1280px以上） */
	background: #fff;
}
/* 既存 base.css の h1〜h3 / dt / dd 指定（color・word-break 等）を打ち消す */
.v2-top :where(h1, h2, h3, dt, dd, p) {
	color: inherit;
	font-size: inherit;
	font-family: inherit;
	font-weight: inherit;
	line-height: inherit;
	word-break: normal;
	word-break: auto-phrase; /* 対応ブラウザでは文節単位で折り返し */
	overflow-wrap: anywhere;
}
.v2-top *,
.v2-top *::before,
.v2-top *::after { box-sizing: border-box; }
.v2-top img { display: block; max-width: 100%; height: auto; }
.v2-top :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
.v2-top :where(h1, h2, h3, p, figure, dl, dd) { margin: 0; padding: 0; }
.v2-top a { color: inherit; text-decoration: none; }

/* 見出し */
.v2-heading {
	font-family: var(--v2-serif);
	font-weight: 500;
	font-size: 36px;
	line-height: 1.6;
	letter-spacing: .08em;
}
.v2-heading--white { color: #fff; }
.v2-heading--center { text-align: center; }
.v2-text { margin-top: 24px; font-size: 15px; line-height: 2.1; letter-spacing: .04em; }
.v2-text--white { color: #fff; }
.v2-text--center { text-align: center; }
.v2-center { text-align: center; }

/* ボタン */
.v2-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 64px;
	margin-top: 48px;
	padding: 0 64px 0 32px;
	border: 2px solid var(--v2-coral);
	border-radius: 32px;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: .06em;
	line-height: 1.4;
	transition: opacity .2s;
}
.v2-btn::after {
	content: "";
	position: absolute;
	right: 29px;
	top: 50%;
	width: 12px;
	height: 12px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: translateY(-50%) rotate(45deg);
}
.v2-btn--primary { background: var(--v2-coral); color: #fff !important; }
.v2-btn--bordered { border: 2px solid #fff; }
.v2-btn--outline { background: #fff; color: var(--v2-coral) !important; }
.v2-btn:hover { opacity: .8; }

/* テキストリンク（丸矢印） */
.v2-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 32px;
	color: var(--v2-coral) !important;
	font-weight: 500;
	letter-spacing: .06em;
	line-height: 1.6;
}
.v2-link::after {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--v2-coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M9 6l5 5-5 5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.v2-link--white { color: #fff !important; }
.v2-link--white::after { background-color: var(--v2-coral); }
.v2-link:hover { opacity: .8; }

/* ラベル */
.v2-tag {
	display: inline-block;
	padding: 0 8px;
	background: var(--v2-blue);
	border-radius: 2px;
	color: #fff;
	font-family: var(--v2-serif);
	font-size: 13px;
	line-height: 1.8;
}
.v2-time {
	position: absolute;
	left: 16px;
	top: 16px;
	padding: 0 14px;
	background: var(--v2-blue);
	border-radius: 14px;
	color: #fff;
	font-family: var(--v2-en);
	font-size: 14px;
	line-height: 28px;
	letter-spacing: .08em;
}

/* 下層ページ共通（今日のサンメドウズ清里 / スキッズ・キャンプ ほか） */
.v2-tag--lg { padding: 0 16px; font-size: 18px; line-height: 2.4; letter-spacing: .08em; border-radius: 2px; }
.v2-eyebrow { font-family: var(--v2-serif); font-size: 14px; line-height: 1.6; letter-spacing: .06em; color: var(--v2-blue); text-transform: uppercase; }
.v2-heading--sm { margin-top: 8px; font-size: 28px; }
.v2-top .v2-section { padding: 120px 0 0; position: relative; }
.v2-top .v2-section__inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.v2-top .v2-page-fv { background: linear-gradient(180deg, #eaf3fe 0%, #fff 100%); }
.v2-page-fv__inner { max-width: 1440px; margin: 0 auto; padding: 80px 40px 44px; }
.v2-page-fv__title { margin-top: 16px; font-family: var(--v2-serif); font-weight: 500; font-size: 40px; line-height: 1.6; letter-spacing: .08em; }
.v2-page-fv__title em { font-style: normal; color: var(--v2-blue); }
.v2-page-fv__text { margin-top: 16px; font-size: 16px; letter-spacing: .04em; }
.v2-page-fv .v2-tag--lg { padding: 0 14px; font-size: 16px; line-height: 2.5; }
.v2-link--outline { margin-top: 0; color: var(--v2-blue) !important; }
.v2-link--outline::after { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M9 6l5 5-5 5' fill='none' stroke='%230c62b9' stroke-width='1.6'/%3E%3C/svg%3E") center / 100% no-repeat; border: 1px solid var(--v2-blue); }

/* 既存 .content の max-width（1440px）を v2 では解除 */
body.winter-v2 .content { max-width: none; }

/* SPメニュー展開時、settings.js が .container に position: fixed を付けて重なりの単位になる。
   v2 は本文（.content）が .container の外にあり、position 指定のあるセクションがメニューより上に出るため、z-index で前面に出す */
body.winter-v2 .container { z-index: 1001; } /* PAGETOPボタン（.pagetop、z-index: 1000）より前面 */

/* パンくずは v2 では非表示 */
body.winter-v2 .bread { display: none; }

/* 既存ヘッダーの旧TOP要素を非表示（v2 TOPのみ） */
body.home.winter.winter-v2 .mainvisual.clearfix { margin: 0; height: auto; background: none; }
body.winter-v2 .mainvisual-contents,
body.winter-v2 .mv_slider_pc,
body.winter-v2 .mv_slider_sp,
body.winter-v2 .top-condition,
body.winter-v2 .sp-livecamera-link,
body.winter-v2 .sp-condition-link { display: none !important; }

@media (max-width: 1279px) {
	.v2-top { padding-top: 115px; } /* 固定ヘッダー高さ（既存 content.css に合わせる） */
}

@media (max-width: 768px) {
	.v2-top { padding-top: 100px; }
}

@media (max-width: 767px) {
	.v2-top { font-size: 15px; }
	.v2-top :where(h1, h2, h3, dt, dd, p) { word-break: normal; } /* SPはデザイン準拠で文字単位の折り返し */
	.v2-heading { font-size: 24px; letter-spacing: .06em; }
	.v2-text { margin-top: 16px; font-size: 15px; }
	.v2-btn { display: flex; justify-content: center; width: fit-content; max-width: 100%; margin-top: 32px; margin-left: auto; margin-right: auto; min-height: 56px; padding: 0 44px 0 28px; font-size: 14px; line-height: 1.6; text-align: center; }
	.v2-btn::after { right: 22px; width: 11px; height: 11px; }
	.v2-heading--sm { font-size: 22px; }
	.v2-top .v2-section { padding-top: 72px; }
	.v2-page-fv__inner { padding: 64px 20px 16px; }
	.v2-page-fv__text { font-size: 15px; }
	.v2-page-fv__title { font-size: 28px; }
	.v2-tag--lg, .v2-sub-fv .v2-tag--lg, .v2-page-fv .v2-tag--lg { font-size: 16px; line-height: 2.7; }
}

/* 下層ページ共通FV（スクール / 雪遊びエリア ほか）：左テキスト＋右写真 */
.v2-sub-fv { display: grid; grid-template-columns: 600px 1fr; align-items: stretch; min-height: 480px; background: linear-gradient(180deg, #eaf3fe 0%, #fff 100%); }
.v2-sub-fv__body { align-self: center; padding: 0 40px; }
.v2-sub-fv__title { margin-top: 16px; font-family: var(--v2-serif); font-weight: 500; font-size: 40px; line-height: 1.6; letter-spacing: .08em; }
.v2-sub-fv__title em { font-style: normal; color: var(--v2-blue); }
.v2-sub-fv .v2-tag--lg { padding: 0 14px; font-size: 16px; line-height: 2.5; }
.v2-sub-fv__text { margin-top: 16px; font-size: 16px; letter-spacing: .04em; }
.v2-sub-fv__img { border-radius: 0 0 0 100px; overflow: hidden; }
.v2-sub-fv__img > * { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }

/* 仮写真（差し替え前の画像はグレー表示） */
.v2-ph { display: flex; align-items: center; justify-content: center; background: #d5d9de; color: #aeb4bb; font-family: var(--v2-sans); font-size: 14px; letter-spacing: .2em; }
.v2-ph::before { content: "仮写真"; }

@media (max-width: 1100px) {
	.v2-sub-fv { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	.v2-sub-fv { display: flex; flex-direction: column; min-height: 0; }
	.v2-sub-fv__body { padding: 64px 20px 32px; }
	.v2-sub-fv__title { font-size: 28px; }
	.v2-sub-fv__text { font-size: 15px; }
	.v2-sub-fv__img { margin: 0 0 0 20px; border-radius: 24px 0 0 24px; }
	.v2-sub-fv__img > * { min-height: 200px; }
}

/* 中央寄せFV（お問い合わせ / プライバシーポリシー） */
.v2-page-fv--center { text-align: center; }
.v2-page-fv--center .v2-page-fv__inner { padding: 80px 20px 72px; }
.v2-page-fv--center .v2-page-fv__title { margin-top: 8px; font-size: 32px; }

/* 文書ページ共通（FAQ / プライバシーポリシー）：幅800pxの記事 */
.v2-doc { max-width: 840px; margin: 0 auto; padding: 54px 20px 120px; font-size: 16px; line-height: 2; letter-spacing: .04em; }
.v2-doc__lead { margin-bottom: 56px; }
.v2-doc section + section { margin-top: 50px; }
.v2-doc h2 { padding-bottom: 12px; border-bottom: 1px solid var(--v2-blue); font-family: var(--v2-serif); font-size: 20px; line-height: 1.6; letter-spacing: .08em; }
.v2-doc h2 + p, .v2-doc h2 + ul { margin-top: 18px; }
.v2-doc p + p, .v2-doc p + ul, .v2-doc ul + p, .v2-doc p + .v2-link { margin-top: 20px; }
.v2-doc p a:not(.v2-link) { color: var(--v2-blue); }
.v2-doc ul { display: grid; gap: 12px; }
.v2-doc li { position: relative; padding-left: 20px; }
.v2-doc li::before { content: ""; position: absolute; left: 0; top: .85em; width: 8px; height: 8px; border-radius: 50%; background: var(--v2-blue); transform: translateY(-50%); }
.v2-doc .v2-link { margin-top: 24px; }
@media (max-width: 767px) {
	.v2-page-fv--center .v2-page-fv__inner { padding: 64px 20px 56px; }
	.v2-page-fv--center .v2-page-fv__title { font-size: 28px; }
	.v2-doc { padding: 30px 20px 80px; }
	.v2-doc h2 { font-size: 22px; }
	.v2-doc section + section { margin-top: 40px; }
}

/* SP ヘッダーをデザイン準拠のコンパクトサイズに（v2 のみ。既存 content.css は変更しない） */
@media (max-width: 768px) {
	/* 高さ 80px = シーズン切替 30px + ロゴ 36px + ロゴ上下の余白 各7px */
	body.winter-v2 .gheader { height: 80px; }
	/* 下スクロールで settings.js が付ける .hide（translateY(-100%)）を打ち消し、ヘッダーを常に固定表示 */
	body.winter-v2 .gheader.hide { transform: none; }
	body.winter-v2 .gheader .sp-gnav .season-select { height: 30px; }
	body.winter-v2 .gheader .sp-gnav .season-select li a { height: 30px; }
	body.winter-v2 .gheader .sp-gnav .season-select li img { width: auto; height: 100%; padding: 7px 0; box-sizing: border-box; }
	body.winter-v2 .gheader .site-title { top: 37px; left: 6px; width: 190px; height: 36px; }
	body.winter-v2 div#sp-icon { top: 40px; } /* ロゴと縦中央をそろえる（中心 55px） */
	body.winter-v2 .v2-top { padding-top: 80px; }
}
