@charset "UTF-8";
/* =========================================================
 * HSPランド：泡と波・フッター（hsea）
 * このCSSは functions.php の hsp_hsea_is_target() のページだけで読み込む
 * ========================================================= */

:root {
	--hsea-deep: #2a7c86;      /* フッターの地色（白文字 4.8:1） */
	--hsea-pale: #e7f5f6;
	--hsea-soft: #bfe7eb;
	--hsea-page: #fdfdfd;      /* TOPの地色 */
	--hsea-ink: #333;
	--hsea-link: #2a6f77;
	--hsea-shadow: 0 10px 30px rgba(60, 110, 115, .10);
	--hsea-font: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
	--hsea-wave-speed: 26s;
}

/* ---------- SWELL 既存要素の調整 ---------- */
#footer.l-footer { display: none !important; }      /* 代わりに .hsea-ft を出す */
#fp-top { background-color: transparent !important; } /* 後ろの泡を見せる（地色は body の #FDFDFD） */

/* =========================================================
 * 1. ページ全体の泡（hsea.js が <body> の最後に .hsea-bubbles を作る）
 * ========================================================= */
.hsea-bubbles {
	position: fixed;
	inset: 0;
	z-index: 0;              /* #body_wrap（z-index:1）より後ろ＝カードの後ろを通る */
	overflow: hidden;
	pointer-events: none;
}
.hsea-bub {
	position: absolute;
	bottom: -40px;
	border-radius: 50%;
	border: 1.5px solid rgba(81, 185, 195, .55);
	background: radial-gradient(circle at 32% 30%, #fff 0 16%, rgba(191, 231, 235, .35) 17% 100%);
	opacity: 0;
	animation: hsea-rise-page linear infinite;
	will-change: transform;
}
@keyframes hsea-rise-page {
	0%   { transform: translate(0, 0); opacity: 0; }
	6%   { opacity: .85; }
	30%  { transform: translate(12px, -32vh); }
	60%  { transform: translate(-10px, -64vh); }
	90%  { opacity: .55; }
	100% { transform: translate(4px, calc(-100vh - 60px)); opacity: 0; }
}

/* =========================================================
 * 2. セクション間の波（特集の帯・人気記事の帯の上下）
 *    帯の内側の余白（上64px／下68〜72px）に波を描く。帯の外にははみ出さない。
 * ========================================================= */
#fp-top .fp-series-band,
#fp-top .fp-rank-band {
	position: relative;
	overflow: hidden;
}
#fp-top .fp-series-band > *,
#fp-top .fp-rank-band > * {
	position: relative;
	z-index: 1;
}
#fp-top .fp-series-band::before,
#fp-top .fp-rank-band::before,
#fp-top .fp-series-band::after,
#fp-top .fp-rank-band::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 56px;
	z-index: 0;
	pointer-events: none;
	background-repeat: repeat-x;
	background-size: 960px 56px, 960px 56px;
	animation: hsea-band-slide var(--hsea-wave-speed) linear infinite;
}
/* 上の波：前のセクション（白）が、帯の中へ波打って入る。手前＝白、奥＝水色 */
#fp-top .fp-series-band::before,
#fp-top .fp-rank-band::before {
	top: -1px;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V28C1200 52 960 52 720 28C480 4 240 4 0 28Z' fill='%23fdfdfd'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V36C1260 54 900 54 720 36C540 18 180 18 0 36Z' fill='%23bfe7eb' fill-opacity='.7'/%3E%3C/svg%3E");
}
/* 下の波：次のセクション（白）へ波打って戻る */
#fp-top .fp-series-band::after,
#fp-top .fp-rank-band::after {
	bottom: -1px;
	animation-direction: reverse;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 28C240 4 480 4 720 28C960 52 1200 52 1440 28V56H0Z' fill='%23fdfdfd'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 20C180 40 540 40 720 20C900 2 1260 2 1440 20V56H0Z' fill='%23bfe7eb' fill-opacity='.7'/%3E%3C/svg%3E");
}
@keyframes hsea-band-slide {
	from { background-position: 0 0, 0 0; }
	to   { background-position: 960px 0, -960px 0; }
}

/* =========================================================
 * 3. フッター直前の泡の帯＋フッター
 * ========================================================= */
.hsea-end {
	position: relative;
	z-index: 1;
	margin-top: -40px; /* #content の下余白（96px）を少し詰める */
	overflow: hidden;
	font-family: var(--hsea-font);
	color: var(--hsea-ink);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.hsea-end *, .hsea-end *::before, .hsea-end *::after { box-sizing: border-box; }
.hsea-end p { margin: 0; }
.hsea-end ul { list-style: none; margin: 0; padding: 0; }
.hsea-end a { color: inherit; text-decoration: none; }
.hsea-end a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hsea-end a:focus-visible,
.hsea-end button:focus-visible { outline: 3px solid #f4dc4f; outline-offset: 3px; border-radius: 8px; }

/* 帯とフッターを通ってのぼる泡 */
.hsea-end__bubbles {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}
.hsea-end .hsea-bub {
	border-color: rgba(255, 255, 255, .9);
	background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .95) 0 14%, rgba(255, 255, 255, .18) 15% 100%);
	box-shadow: inset 0 0 0 1px rgba(81, 185, 195, .25);
	animation-name: hsea-rise-end;
}
@keyframes hsea-rise-end {
	0%   { transform: translate(0, 0); opacity: 0; }
	8%   { opacity: .9; }
	35%  { transform: translate(10px, -330px); }
	65%  { transform: translate(-8px, -620px); }
	90%  { opacity: .6; }
	100% { transform: translate(4px, -900px); opacity: 0; }
}

/* --- 泡の帯 --- */
.hsea-band {
	position: relative;
	height: 300px;
}
.hsea-band__inner {
	position: relative;
	z-index: 2;
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 32px 0;
	display: flex;
	align-items: flex-start;
	gap: 18px;
}
.hsea-band__hanbo {
	flex: none;
	width: 128px;
	height: auto;
	animation: hsea-bob 4.2s ease-in-out infinite;
}
@keyframes hsea-bob {
	0%, 100% { transform: translateY(0) rotate(-2deg); }
	50%      { transform: translateY(-10px) rotate(2deg); }
}
.hsea-band__talk {
	position: relative;
	margin-top: 14px !important;
	padding: 16px 22px;
	background: #fff;
	border-radius: 22px;
	box-shadow: var(--hsea-shadow);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.7;
}
.hsea-band__talk::before {
	content: "";
	position: absolute;
	left: -9px;
	top: 26px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 3px;
	transform: rotate(45deg);
}
.hsea-wave {
	position: absolute;
	left: 0;
	width: 200%;
	display: block;
	animation: hsea-slide 22s linear infinite;
}
.hsea-wave--back  { bottom: 18px; height: 90px; fill: var(--hsea-soft); animation-duration: 34s; animation-direction: reverse; }
.hsea-wave--front { bottom: -1px; height: 70px; fill: var(--hsea-deep); }
@keyframes hsea-slide {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* --- フッター --- */
.hsea-ft {
	--ft-bg: var(--hsea-deep);
	--ft-ink: #fff;
	--ft-line: rgba(255, 255, 255, .4);
	background: var(--ft-bg);
	color: var(--ft-ink);
}
.hsea-ft--light {
	--ft-bg: var(--hsea-pale);
	--ft-ink: #24464b;
	--ft-line: #9fd3d9;
}
.hsea-end:has(.hsea-ft--light) .hsea-wave--front { fill: var(--hsea-pale); }

.hsea-ft__inner {
	position: relative;
	z-index: 2;
	max-width: 1100px;
	margin: 0 auto;
	padding: 28px 32px 36px;
}
.hsea-ft__head { display: flex; align-items: center; gap: 16px; padding-bottom: 36px; }
.hsea-ft__en { font-size: 12px; font-weight: 700; letter-spacing: .24em; }
.hsea-ft__rule { flex: 1; height: 1px; background: var(--ft-line); }

.hsea-ft__grid {
	display: grid;
	grid-template-columns: 210px auto auto auto 270px;
	justify-content: space-between;
	gap: 32px;
	align-items: start;
}

/* ロゴ（丸い文字） */
.hsea-ft__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hsea-logo { position: relative; display: block; width: 210px; height: 210px; }
.hsea-end a.hsea-logo:hover { text-decoration: none; }
.hsea-logo__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: hsea-spin 60s linear infinite; }
.hsea-logo__ring text { font-family: var(--hsea-font); font-size: 13px; font-weight: 700; letter-spacing: 3.2px; fill: var(--ft-ink); }
@keyframes hsea-spin { to { transform: rotate(360deg); } }
.hsea-logo__disc {
	position: absolute;
	inset: 26px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 10px 30px rgba(20, 60, 66, .18);
	transition: transform .3s;
}
.hsea-logo:hover .hsea-logo__disc { transform: scale(1.04); }
.hsea-logo__disc img { width: 78px; height: auto; }
.hsea-logo__name { font-size: 19px; font-weight: 700; color: var(--hsea-ink); letter-spacing: .04em; }
.hsea-logo__en { font-size: 10px; font-weight: 700; color: var(--hsea-deep); letter-spacing: .2em; }

/* SNS */
.hsea-sns { display: flex; gap: 12px; padding-left: 50px !important; }
.hsea-sns a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff;
	color: var(--hsea-deep);
	box-shadow: 0 6px 16px rgba(20, 60, 66, .18);
	transition: transform .3s;
}
.hsea-sns a:hover { transform: translateY(-3px); }

/* メニュー */
.hsea-ft__ttl { margin-bottom: 18px !important; font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.hsea-ft__nav ul { display: flex; flex-direction: column; gap: 14px; }
.hsea-ft__nav a { display: inline-flex; align-items: center; gap: 10px; min-height: 28px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.hsea-ft__ttl { white-space: nowrap; }
.hsea-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hsea-ft__nav small { font-size: 11px; font-weight: 500; }
.hsea-ext { display: inline-flex; }
.hsea-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.hsea-dot--shiru   { background: #c3dfe9; }
.hsea-dot--ikasu   { background: #f0d9a0; }
.hsea-dot--itawaru { background: #f0cbd3; }
.hsea-dot--tips    { background: #b4dcc9; }
.hsea-dot--mawari  { background: transparent; box-shadow: inset 0 0 0 2px var(--ft-ink); }

/* メルマガ */
.hsea-card {
	padding: 24px 24px 22px;
	border-radius: 22px;
	background: #fff;
	color: var(--hsea-ink);
	box-shadow: 0 10px 30px rgba(20, 60, 66, .16);
}
.hsea-card__en { margin-bottom: 4px !important; font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--hsea-deep); }
.hsea-card__ttl { margin-bottom: 10px !important; font-size: 18px; font-weight: 700; line-height: 1.5; }
.hsea-card__txt { margin-bottom: 18px !important; font-size: 13px; line-height: 1.8; color: #4a5558; }
.hsea-end a.hsea-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	border-radius: 999px;
	background: var(--hsea-deep);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: filter .2s;
}
.hsea-end a.hsea-btn:hover { filter: brightness(1.08); }
.hsea-end a.hsea-btn--sub { min-height: 44px; margin-top: 10px; background: var(--hsea-pale); color: var(--hsea-link); font-size: 14px; }

/* 下段 */
.hsea-ft__foot {
	margin-top: 44px;
	padding-top: 22px;
	border-top: 1px solid var(--ft-line);
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 40px;
}
.hsea-ft__legal { display: flex; flex-direction: column; gap: 8px; max-width: 640px; font-size: 12px; line-height: 1.8; }
.hsea-ft__copy { font-weight: 700; letter-spacing: .08em; }
.hsea-ft__tools { display: flex; align-items: center; gap: 14px; }
.hsea-motion {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1.5px solid var(--ft-line);
	border-radius: 999px;
	background: transparent;
	color: var(--ft-ink);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s;
}
.hsea-motion:hover { background: rgba(255, 255, 255, .14); }
.hsea-motion > span { display: inline-flex; align-items: center; gap: 8px; }
.hsea-motion__off { display: none !important; }
.hsea-still .hsea-motion__on { display: none !important; }
.hsea-still .hsea-motion__off { display: inline-flex !important; }
.hsea-end a.hsea-top {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, #fff 0 16%, var(--hsea-pale) 17% 100%);
	color: var(--hsea-link);
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 8px 22px rgba(20, 60, 66, .22);
	transition: transform .3s;
}
.hsea-end a.hsea-top:hover { transform: translateY(-4px); }

/* ---------- タブレット・スマホ ---------- */
@media (max-width: 1000px) {
	.hsea-ft__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; }
	.hsea-ft__brand, .hsea-card { grid-column: 1 / -1; }
	.hsea-ft__brand { flex-direction: row; align-items: center; gap: 28px; }
	.hsea-sns { padding-left: 0 !important; }
}
@media (max-width: 767px) {
	.hsea-band { height: 250px; }
	.hsea-band__inner { padding: 32px 20px 0; gap: 10px; }
	.hsea-band__hanbo { width: 84px; }
	.hsea-band__talk { margin-top: 8px !important; padding: 12px 16px; border-radius: 18px; font-size: 13px; }
	.hsea-band__talk br { display: none; }
	.hsea-band__talk::before { left: -7px; top: 20px; width: 14px; height: 14px; }
	.hsea-wave { width: 300%; }
	.hsea-wave--back { bottom: 12px; height: 60px; }
	.hsea-wave--front { height: 48px; }

	.hsea-ft__inner { padding: 20px 20px 28px; }
	.hsea-ft__head { padding-bottom: 24px; }
	.hsea-ft__en { font-size: 11px; }
	.hsea-ft__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
	.hsea-ft__brand { flex-direction: column; gap: 16px; align-items: center; }
	.hsea-logo { width: 180px; height: 180px; }
	.hsea-logo__disc { inset: 22px; }
	.hsea-logo__disc img { width: 64px; }
	.hsea-logo__name { font-size: 16px; }

	/* 4つの入り口は2×2のボタンに */
	.hsea-ft__nav:nth-of-type(2) { grid-column: 1 / -1; order: -1; }
	.hsea-ft__brand { order: -2; }
	.hsea-ft__nav:nth-of-type(2) ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.hsea-ft__nav:nth-of-type(2) a { display: flex; min-height: 44px; padding: 0 12px; border: 1px solid var(--ft-line); border-radius: 12px; background: rgba(255, 255, 255, .12); font-size: 14px; }
	.hsea-ft__ttl { margin-bottom: 8px !important; font-size: 11px; }
	.hsea-ft__nav ul { gap: 4px; }
	.hsea-ft__nav a { min-height: 40px; font-size: 14px; gap: 8px; }
	.hsea-card { padding: 20px; border-radius: 20px; }
	.hsea-card__ttl br { display: none; }
	.hsea-card__ttl { font-size: 16px; }
	.hsea-card__txt { font-size: 12px; }

	.hsea-ft__foot { margin-top: 28px; flex-direction: column-reverse; align-items: stretch; }
	.hsea-ft__tools { justify-content: space-between; }
	.hsea-motion { font-size: 12px; padding: 0 16px; }
	.hsea-end a.hsea-top { width: 60px; height: 60px; font-size: 10px; }
	.hsea-ft__legal { font-size: 11px; }

	#fp-top .fp-series-band::before, #fp-top .fp-rank-band::before,
	#fp-top .fp-series-band::after,  #fp-top .fp-rank-band::after {
		height: 36px;
		background-size: 480px 36px, 480px 36px;
	}
}

/* ---------- 動きを止める（ボタン／端末の「視差効果を減らす」） ---------- */
.hsea-still .hsea-bub,
.hsea-still .hsea-wave,
.hsea-still .hsea-band__hanbo,
.hsea-still .hsea-logo__ring,
.hsea-still #fp-top .fp-series-band::before,
.hsea-still #fp-top .fp-series-band::after,
.hsea-still #fp-top .fp-rank-band::before,
.hsea-still #fp-top .fp-rank-band::after {
	animation-play-state: paused !important;
}
@media (prefers-reduced-motion: reduce) {
	.hsea-bub { display: none; }
	.hsea-wave, .hsea-band__hanbo, .hsea-logo__ring,
	#fp-top .fp-series-band::before, #fp-top .fp-series-band::after,
	#fp-top .fp-rank-band::before, #fp-top .fp-rank-band::after { animation: none !important; }
	.hsea-motion { display: none; }
}
