@charset "UTF-8";
/*
 * トップページ専用スタイル
 * SiteOrigin Page Builder / Smart Slider 3 の置き換え。
 */

/* ===== ヒーロースライダー ===== */

/*
 * 旧 Smart Slider は「幅は画面いっぱい・高さは 1200:800 の比率で最大800px」
 * という挙動だった。それを CSS だけで再現する。
 */
.s753-hero {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw); /* .container の内側から画面幅いっぱいへ広げる */
	height: min(66.6667vw, 800px);
	overflow: hidden;
	/*
	 * 下地に色を置かない。ここに色があると、内側の画像がわずかでも
	 * 届かない箇所ができたときに帯状に見えてしまう。
	 */
	background: transparent;
}

/*
 * 親テーマ zoo-styles.css の `li { padding: 5px 0 }` と ul の既定余白を確実に打ち消す。
 * ul/li の両方を明示しておかないと、上下5pxぶん下地が覗いて「隙間」に見える。
 */
.s753-hero ul,
.s753-hero li {
	margin: 0;
	padding: 0;
	list-style: none;
	text-indent: 0;
}

.s753-hero__track {
	height: 100%;
}

.s753-hero__slide {
	position: absolute;
	inset: 0;
	/* 親テーマ zoo-styles.css の `li { padding: 5px 0 }` を打ち消す。
	   これが効いていると上下5pxぶん下地の色が見えて隙間になる */
	padding: 0;
	opacity: 0;
	transition: opacity .8s ease;
	/* 非表示スライドがタブ移動や読み上げの対象にならないようにする */
	visibility: hidden;
}

.s753-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.s753-hero__slide picture,
.s753-hero__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.s753-hero__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	display: flex;
	justify-content: center;
	gap: 10px;
	z-index: 2;
}

.s753-hero__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, .55);
	box-shadow: 0 0 3px rgba(0, 0, 0, .35);
	cursor: pointer;
	transition: background .2s ease;
}

.s753-hero__dot.is-active,
.s753-hero__dot:hover {
	background: #fff;
}

.s753-hero__dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* 動きを減らす設定の人にはフェードもオートプレイも見せない */
@media (prefers-reduced-motion: reduce) {
	.s753-hero__slide {
		transition: none;
	}
}

/* ===== 共通レイアウト ===== */

.s753-front .s753-section {
	margin: 0 0 110px;
}

/* ===== 見出し ===== */

/*
 * 題字（h2）。親テーマは h2 も h3 も 23px で同じ大きさなので、
 * ここで階層差をはっきりつける。装飾は付けず、大きさ・字間・余白で見せる。
 */
.s753-front .s753-title,
.s753-front .s753-whatsnew h2 {
	position: relative;
	font-size: clamp(1.5rem, 1.15rem + 1.1vw, 1.9rem);
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: .1em;
	text-align: center;
	margin: 0 0 2.4em;
	padding: 0;
	border: none;
	height: auto;
	display: block;
}

/* 小見出し（h3）。題字より一段小さく、左に細いアクセントを立てる */
.s753-front .s753-subtitle {
	font-size: 1.12rem;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: .04em;
	margin: 0 0 1em;
	padding: 0 0 0 .7em;
	border-left: 4px solid #ffcccc;
	text-align: left;
}

.s753-front .s753-subtitle--center {
	text-align: center;
	border-left: none;
	padding: 0 0 .6em;
	margin-bottom: 2em;
	border-bottom: 2px solid #f0e4e4;
	display: block;
}

.s753-lead {
	width: 60%;
	margin: 60px auto 70px;
	text-align: center;
	font-size: 1.2em;
}

.s753-lead__title {
	font-size: 1.1em;
	font-weight: 400;
	padding: 0 0 1.2em;
	text-align: center;
	/* 見出しは行数が少ないので balance で行長を揃えるほうが収まりが良い */
	text-wrap: balance;
}

/*
 * 中央揃えの日本語は、最終行に数文字だけ残るとバランスが崩れて見える。
 * text-wrap: balance は各行の文字数を揃えるので、孤立行が出ない。
 * （pretty も試したが「…重ねており／ます。」のように最終行3文字が残った。
 *   word-break: auto-phrase はこの文章では変化が無かったので指定しない）
 * balance は <br> があると効かないため、文はそれぞれ別の <p> に分けている。
 * 非対応ブラウザでは無視されるだけで、従来どおりの折返しになる。
 */
.s753-lead p {
	margin: 0 0 1.6em;
	text-wrap: balance;
}

/* 元は1つの段落を <br> で折っていた箇所。続きの文なので間隔を詰める */
.s753-lead p.is-tight {
	margin-bottom: .5em;
}

.s753-grid {
	display: grid;
	gap: 20px;
}

.s753-grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

.s753-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

/* ===== 新着情報 ===== */

/*
 * プラグイン What's New Generator の置き換え。
 * 旧CSSは dl/dt/dd を float で組み、word-break:break-all で
 * 日本語が語の途中で改行されていたので、grid で組み直している。
 */
.s753-news {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid #ececec;
}

/*
 * 親テーマに `ul > li { list-style: disc }` があり、ul 側の list-style:none では
 * 消せない（子セレクタの指定が継承に勝つ）。li に直接当てる必要がある。
 */
.s753-news__item {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid #ececec;
}

.s753-news__link {
	display: grid;
	grid-template-columns: 9em 1fr;
	align-items: baseline;
	gap: 0 1em;
	padding: 14px 8px;
	text-decoration: none;
	box-shadow: none;
	transition: background-color .2s ease;
}

.s753-news__link:hover,
.s753-news__link:focus {
	background-color: #fafafa;
	text-decoration: none;
	box-shadow: none;
}

.s753-news__date {
	color: #999;
	font-size: .85rem;
	letter-spacing: .05em;
	white-space: nowrap;
}

.s753-news__title {
	color: #444;
	line-height: 1.7;
}

.s753-news__badge {
	display: inline-block;
	margin-right: .5em;
	padding: 1px 6px;
	border-radius: 3px;
	background-color: #ff4500;
	color: #fff;
	font-size: .7rem;
	vertical-align: middle;
	white-space: nowrap;
}

/* ===== 部門紹介 ===== */

/* 4項目が近すぎたので、列間・行間ともにゆったり取る */
.s753-grid--2 {
	gap: 70px 64px;
}

.s753-division {
	display: flex;
	flex-direction: column;
}

.s753-division p {
	text-align: left;
	margin: 0;
}

/*
 * 元画像の余白を切り詰めたぶん、表示幅で元のロゴサイズに合わせる。
 * margin-top:auto で本文の長さが違ってもロゴの高さが揃う。
 */
.s753-division__logo {
	display: block;
	width: 100%;
	max-width: 300px;
	height: auto;
	margin: 36px auto 0;
	margin-top: auto;
	padding-top: 36px;
}

/* ===== 活動情報 ===== */

.s753-activity {
	margin-bottom: 60px;
}

.s753-note__logo {
	display: block;
	width: 200px;
	margin: 0 auto 32px;
}

.s753-note__logo img {
	width: 100%;
	height: auto;
}

/*
 * RSSウィジェットの ul をカード型グリッドにする。
 * 1列の細長いリストだと右側が大きく空いてしまうため。
 */
.s753-note .widget_rss ul {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.s753-note .widget_rss li {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 22px 20px;
	/* 親テーマの `ul > li { list-style: disc }` を打ち消す */
	list-style: none;
	border: 1px solid #ececec;
	border-radius: 6px;
	background: #fff;
	transition: box-shadow .2s ease;
}

.s753-note .widget_rss li:hover {
	box-shadow: 0 3px 14px rgba(0, 0, 0, .07);
}

.s753-note .widget_rss .rsswidget {
	display: block;
	font-size: .98rem;
	font-weight: 500;
	line-height: 1.6;
	margin-bottom: .5em;
}

.s753-note .widget_rss .rss-date {
	display: block;
	font-size: .75rem;
	color: #999;
	letter-spacing: .05em;
	margin-bottom: .8em;
}

.s753-note .widget_rss .rssSummary {
	font-size: .85rem;
	line-height: 1.8;
	color: #666;
	margin: 0;
}

/* ===== 自作ゲーム ===== */

.s753-game__card {
	max-width: 620px;
	margin: 0 auto;
	padding: 40px 32px;
	text-align: center;
	background: #d8e3d5;
	border-radius: 8px;
}

.s753-game__lead {
	margin: 0 0 1.8em;
	font-size: 1rem;
	line-height: 1.9;
	color: #263f1f;
}

.s753-game__btn {
	display: inline-block;
	padding: .9em 2.6em;
	background: #263f1f;
	color: #fff;
	border-radius: 999px;
	font-size: 1rem;
	letter-spacing: .08em;
	text-decoration: none;
	transition: opacity .2s ease;
}

.s753-game__btn:hover,
.s753-game__btn:focus {
	opacity: .82;
	color: #fff;
}

/* ===== LINE公式アカウント ===== */

/* 縦長バナーと横長ボタンを2カラムに並べて、中央の余白を埋める */
.s753-line__grid {
	display: grid;
	grid-template-columns: minmax(0, 310px) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
	justify-content: center;
	max-width: 860px;
	margin: 0 auto;
}

.s753-line__banner {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.s753-line__side {
	text-align: center;
}

.s753-line__lead {
	margin: 0 0 1.8em;
	font-size: 1rem;
	line-height: 2;
	text-align: left;
}

.s753-line__account {
	display: block;
	width: 100%;
}

.s753-line__account img {
	width: 100%;
	height: auto;
}

/* ===== 謝意 ===== */

.s753-thanks {
	text-align: center;
}

.s753-thanks > p {
	font-size: 14pt;
	margin-bottom: 2.5em;
}

.s753-thanks figure {
	margin: 0;
}

.s753-thanks figure img {
	width: 100%;
	height: auto;
}

.s753-thanks figcaption {
	font-size: .85em;
	padding-top: .5em;
	text-align: center;
}

/* ===== レスポンシブ ===== */

/* タブレット：3列は詰まるので2列に落とす */
@media (max-width: 1023px) {
	.s753-note .widget_rss ul {
		grid-template-columns: repeat(2, 1fr);
	}


	.s753-grid--2 {
		gap: 56px 40px;
	}

	.s753-line__grid {
		gap: 32px;
	}
}

@media (max-width: 767px) {
	.s753-lead {
		width: 100%;
		margin-top: 40px;
	}

	.s753-grid--2,
	.s753-grid--3,
	.s753-note .widget_rss ul,
	.s753-line__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	/* 縦積みではロゴを下端に揃える必要がないので余白を戻す */
	.s753-division__logo {
		margin-top: 28px;
		padding-top: 0;
	}

	.s753-line__banner {
		max-width: 340px;
		margin: 0 auto;
	}

	.s753-line__lead {
		text-align: center;
	}

	.s753-front .s753-section {
		margin-bottom: 70px;
	}

	.s753-front .s753-title,
	.s753-front .s753-whatsnew h2 {
		margin-bottom: 1.8em;
	}

	.s753-game__card {
		padding: 32px 22px;
	}

	/* 新着情報は日付を上、タイトルを下の2段に */
	.s753-news__link {
		grid-template-columns: 1fr;
		gap: 4px;
		padding: 14px 4px;
	}

	/* Instagram本体と同じ3列。1列だと12枚で縦に長くなりすぎる */
}
