.wrap {
	position: relative;
	margin: 0 auto;
}
#key {
	background-image: url(../img/index/key.jpg);
}
#sec1 {
	position: relative;
	z-index: 1;
}
#sec1 h2 {
	position: absolute;
	top: 0;
	left: -117px;
	z-index: -1;
}
#sec1 .text {
	padding-top: 60px;
	margin-left: 260px;
}
#sec1 .text p {
	margin-top: 30px;
}
#sec1 .button {
	margin-top: 60px;
	margin-right: 40px;
	text-align: right;
}
#sec1 .txt {
	margin-top: 25px;
	text-align: right;
	color: #67503d;
}
#sec1 .sub {
	position: absolute;
	top: 0;
	right: -314px;
}
#sec1 .bnr {
	position: relative;
	margin-top: -55px;
	margin-left: -400px;
	margin-bottom: -87px;
}
#sec1 .bnr .bnr1 {
	opacity: 1;
	transition: all 0.5s;
}
#sec1 .bnr a {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	width: 146px;
	height: 645px;
	transform: rotate(45deg);
}
#sec1 .bnr a img {
	position: absolute;
}
#sec1 .bnr a img.off {
	opacity: 1;
	transition: all 1s;
}
#sec1 .bnr a img.on {
	opacity: 0;
	transition: all 1s;
}
#sec1 .bnr a:nth-of-type(1) {
	top: 245px;
	right: 154px;
}
#sec1 .bnr a:nth-of-type(1) img {
	right: -196px;
}
#sec1 .bnr a:nth-of-type(2) {
	top: 121px;
	right: 329px;
}
#sec1 .bnr a:nth-of-type(2) img {
	right: -214px;
	top: -53px;
}
#sec1 .bnr a:nth-of-type(3) {
	top: 53px;
	right: 544px;
}
#sec1 .bnr a:nth-of-type(3) img {
	right: -242px;
	top: 43px;
}
#sec1 .bnr a:nth-of-type(4) {
	top: -2px;
	left: 496px;
}
#sec1 .bnr a:nth-of-type(4) img {
	top: 43px;
	right: -196px;
}
#sec1 .bnr a * {
	transform: rotate(-45deg);
	pointer-events: none;
}
#sec1 .bnr a:hover img.off {
	opacity: 0;
}
#sec1 .bnr a:hover img.on {
	opacity: 1;
}
#sec2 {
	background: url(../img/shared/footer-bg.jpg) top center repeat;
	position: relative;
	padding-bottom: 325px;
}
#sec2:before {
	position: absolute;
	content: '';
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: url(../img/index/sec2-deco1.png) top center no-repeat,
		url(../img/index/sec2-deco2.png) bottom center no-repeat;
	background-size: 100%;
}
#sec2 h3,
#sec2 h4 {
	pointer-events: none;
}
#sec2 .txt {
	position: absolute;
	top: 140px;
	right: calc(50% - 500px);
	font-size: 13px;
	color: #a8927c;
	z-index: 2;
}
#sec2 .row1 {
	position: relative;
	padding-top: 340px;
}
#sec2 .row1 h3 {
	position: absolute;
	top: 87px;
	left: calc(50% - 540px);
	z-index: 1;
}
#sec2 .row1 .bnr {
	position: relative;
	height: 540px;
	margin-left: calc(50% - 110px);
	background: url(../img/index/sec2-img1.jpg) top center no-repeat;
	background-size: cover;
	opacity: 1;
	transition: all 0.5s;
}
#sec2 .row1 .bnr a {
	display: block;
	position: absolute;
	z-index: 2;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}
#sec2 .row1 .bnr span {
	position: absolute;
	bottom: 0;
	left: 0;
}
#sec2 .row1 .bnr:hover {
	opacity: 0.7;
}
#sec2 .row1 .content {
	position: absolute;
	top: 640px;
	left: 0;
	width: calc(50% + 40px);
	background: url(../img/shared/bg.jpg) top center repeat;
	padding-bottom: 45px;
}
#sec2 .row1 .content .inner {
	width: 500px;
	float: right;
	margin-right: 40px;
	padding-top: 50px;
}
#sec2 .row1 .content .inner .text {
	margin: 15px 0 0 54px;
}
#sec2 .row2 {
	position: relative;
	margin-top: 170px;
}
#sec2 .row2 h3 {
	position: absolute;
	top: -134px;
	left: calc(50% - 183px);
	z-index: 1;
}
#sec2 .row2 .bnr {
	position: relative;
	height: 540px;
	margin-right: calc(50% - 110px);
	background: url(../img/index/sec2-img2.jpg) top center no-repeat;
	background-size: cover;
	opacity: 1;
	transition: all 0.5s;
}
#sec2 .row2 .bnr a {
	display: block;
	position: absolute;
	z-index: 2;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}
#sec2 .row2 .bnr span {
	position: absolute;
	bottom: 0;
	right: 0;
}
#sec2 .row2 .bnr:hover {
	opacity: 0.7;
}
#sec2 .row2 .content {
	position: absolute;
	top: 300px;
	right: 0;
	width: calc(50% + 40px);
	background: url(../img/shared/bg.jpg) top center repeat;
	padding-bottom: 45px;
}
#sec2 .row2 .content .inner {
	width: 500px;
	float: left;
	margin-left: 40px;
	padding-top: 185px;
}
#sec2 .row2 .content .inner h4 {
	position: absolute;
	top: -144px;
	left: 0;
}
#sec2 .row2 .content .inner .text {
	margin: 15px 0 0;
}
#sec2 .row3 {
	position: relative;
	margin-top: 170px;
}
#sec2 .row3 h3 {
	position: absolute;
	top: -58px;
	left: calc(50% - 530px);
	z-index: 1;
}
#sec2 .row3 .bnr {
	position: relative;
	height: 540px;
	margin-left: calc(50% - 110px);
	background: url(../img/index/sec2-img3.jpg) top center no-repeat;
	background-size: cover;
	opacity: 1;
	transition: all 0.5s;
}
#sec2 .row3 .bnr a {
	display: block;
	position: absolute;
	z-index: 2;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}
#sec2 .row3 .bnr span {
	position: absolute;
	bottom: 0;
	left: 0;
}
#sec2 .row3 .bnr:hover {
	opacity: 0.7;
}
#sec2 .row3 .content {
	position: absolute;
	top: 300px;
	left: 0;
	width: calc(50% + 40px);
	background: url(../img/shared/bg.jpg) top center repeat;
	padding-bottom: 45px;
}
#sec2 .row3 .content .inner {
	width: 500px;
	float: right;
	margin-right: 40px;
	padding-top: 177px;
}
#sec2 .row3 .content .inner h4 {
	position: absolute;
	top: -177px;
	right: 0;
}
#sec2 .row3 .content .inner .text {
	margin: 15px 0 0 54px;
}
#sec3 {
	text-align: center;
	color: #fff;
	padding-bottom: 150px;
}
#sec3 h2 {
	padding-top: 147px;
}
#sec3 .text {
	margin: 15px 0 35px;
}
#sec3 .slide {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: -1;
}
#sec3 .slide * {
	width: 100%;
	height: 100%;
}
#sec3 .slide li {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-size: cover;
}
#sec3 .slide li:nth-of-type(1) {
	background-image: url(../img/index/sec3-js1.jpg);
}
#sec3 .slide li:nth-of-type(2) {
	background-image: url(../img/index/sec3-js2.jpg);
}
#sec3 .sub {
	position: absolute;
	top: 0;
	right: -305px;
}
#sec4 {
	padding-top: 80px;
	padding-bottom: 85px;
}
/* 追加 11月22日　小河原貫志*/
#sec4 .wrap {
	height: 1200px;
}
#sec4 .rss {
	position: relative;
	background: #fff;
	padding-bottom: 35px;
}
#sec4 .rss:before {
	position: absolute;
	content: '';
	width: 100%;
	height: 100%;
	bottom: -7px;
	left: 7px;
	background: rgba(0, 0, 0, 0.25);
	z-index: -1;
}
#sec4 .rss h3 {
	padding-top: 24px;
	text-align: center;
}
#sec4 .rss #feed {
	margin-top: 15px;
	text-align: center;
	padding: 0 20px;
}
#sec4 .row {
	margin-top: 50px;
}
#sec4 .row .right {
	text-align: center;
}
#sec4 .row .left {
	position: relative;
	width: 530px;
	float: left;
	font-weight: 500;
	text-align: center;
	background: #fff;
	padding-bottom: 47px;
}
#sec4 .row .left:before {
	position: absolute;
	content: '';
	width: 100%;
	height: 100%;
	bottom: -7px;
	left: 7px;
	background: rgba(0, 0, 0, 0.25);
	z-index: -1;
}
#sec4 .row .left .txt {
	font-size: 13px;
	line-height: 23px;
}
#sec4 .row .left .text {
	font-size: 15px;
	line-height: 25px;
	margin-top: 30px;
}
#sec4 .row .left .txt2 {
	font-size: 13px;
	line-height: 23px;
	color: #c00d0d;
}
#sec4 .row .left .button {
	margin-top: 20px;
}
#sec4 .row .right {
	width: 435px;
	float: right;
}
#sec4 .row .right p:nth-of-type(1) {
	padding-top: 30px;
	position: relative;
}
#sec4 .row .right p:nth-of-type(1) .id {
	position: absolute;
	top: 111px;
	left: 21px;
	font-weight: 700;
	letter-spacing: 2px;
	color: transparent;
}
#sec4 .row .right p:nth-of-type(1) .txt {
	position: absolute;
	bottom: 0;
	left: 24px;
	color: transparent;
}
#sec4 .row .right p:nth-of-type(2) {
	margin-top: 70px;
}

.front-blog__list {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.front-blog__item {
	box-sizing: border-box;
	width: calc(33.333% - 20px * 2 / 3); /* ざっくり 3分割 */
	/* デザインお好みで */
	border: 1px solid #eee;
	padding: 16px;
}

/* 追加 11月9日　小河原貫志*/
#pagetop.visible {
	position: fixed;
	right: 10px;
	bottom: 10px;
	z-index: 999;
	cursor: pointer;
}
/* 追加 11月9日　小河原貫志*/
.col .clearfix {
	display: flex;
}
/* 追加 11月9日　小河原貫志*/
.clearfix dd {
	margin: 0;
}
/* 追加 11月19日　小河原貫志*/
#socialbuttons.clearfix {
	display: flex;
	justify-content: center;
}
/* 追加 11月14日　小河原貫志*/
footer {
	/* margin-top: 100px; */
}
/* 追加 11月9日　小河原貫志*/
footer address {
	font-style: normal;
}
/* 追加 11月14日　小河原貫志*/
footer .wrap.clearfix {
	display: flex;
}
/* 追加 11月19日　小河原貫志*/
.row.clearfix {
	text-align: center;
}
/* 追加 11月19日　小河原貫志*/
.row.clearfix {
	/* position: relative; */
	background-color: #fff;
}
/* 追加 11月12日　小河原貫志*/
.text,
.text p {
	font-size: 15px;
	line-height: 2;
}
/* 追加 11月22日　小河原貫志*/
.nav-inline ul {
	display: flex;
	justify-content: center;
	gap: 10px;
}
/* 追加 12月5日　小河原貫志*/
.nav-inline ul li a {
	color: #8e8e8e;
}

/* 追加 11月26日　小河原貫志*/
/* ブログカード内の画像をトリミングして揃える */
.front-blog__thumb {
	width: 100%;
	aspect-ratio: 16 / 9; /* ここで縦横比を固定（例：16:9） */
	overflow: hidden;
	margin-bottom: 8px;
}

.front-blog__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* 画像を中央で切り抜いてフィットさせる */
	display: block;
}

/* 日付・タイトルの体裁（必要に応じて調整） */
.front-blog__meta {
	font-size: 12px;
	color: #999;
	margin-bottom: 4px;
}

.front-blog__title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
}
/* 追加：TOPページブログカードのレイアウト調整 */
/* カード全体（リスト） */
.front-blog__list {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

/* 各カード */
.front-blog__item {
	box-sizing: border-box;
	width: calc(33.333% - 20px * 2 / 3); /* 3カラム */
	border: 1px solid #eee;
	padding: 16px;
}

/* a 全体をクリック範囲にしつつ高さを揃える */
.front-blog__item > a {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

/* タイトル〜本文〜続きを読む まとめて縦並び＆下寄せ用 */
.front-blog__body {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* タイトル（2行分までは高さ固定） */
.front-blog__body h3 {
	font-size: 16px;
	margin: 8px 0;
	line-height: 1.4;
	min-height: 2.8em; /* だいたい2行分の高さを確保 */
}

/* 抜粋テキスト（3〜4行ぶんを想定して高さ確保） */
.front-blog__body p {
	font-size: 14px;
	line-height: 1.7;
	margin: 8px 0;
	min-height: 6.8em; /* 3〜4行ぶんの高さ目安 */
}

/* 続きを読むボタン：常に下に来るようにする */
.front-blog__more {
	margin-top: 15px; /* ここがポイント：残りの余白を全部ここに回す */
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid #c2185b;
	border-radius: 4px;
	font-size: 13px;
}

.front-blog__more:hover {
	background: #c2185b;
	color: #fff;
}

/* 追加 12月1日　小河原貫志*/
/* Instagramエリア */
#instagram,
.instagram-section {
	padding: 50px 0 100px;
	background: #111;
	/* 必要ならここはサイトに合わせて色変更 */
	margin-top: 100px;
}

#instagram .instagram-title {
	text-align: center;
	font-size: 2rem;
	margin-bottom: 60px;
	color: #fff;
	font-weight: bold;
}

/* 4等分グリッド */
.instagram-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.instagram-item {
	width: calc(25% - 10px); /* PCでは4列 */
}

/* 正方形の枠を作る */
.instagram-thumb {
	position: relative;
	width: 100%;
	padding-top: 100%; /* ←高さを幅の100%にする＝正方形になる */
	overflow: hidden;
	border-radius: 6px;
}

/* 画像を枠いっぱいにトリミングして表示 */
.instagram-thumb img {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	transform: translate(-50%, -50%);
	/* object-fit: cover;   */
	/* 中央寄せでトリミング */
	display: block;
}

/* オーバーレイ */
.instagram-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s;
	font-size: 0.9rem;
	letter-spacing: 0.05em;
}

.instagram-overlay span {
	border: 1px solid #fff;
	padding: 6px 12px;
	border-radius: 999px;
}

/* hoverでふわっと表示 */
.instagram-item a:hover .instagram-overlay {
	opacity: 1;
}

/* スマホ：2列 */
@media screen and (max-width: 767px) {
	.instagram-item {
		width: 45%; /* だいたい2列になるように */
	}
}

/* 追加 12月5日　小河原貫志*/

/*=====================================================
 * ★追加CSS：スタッフ紹介の改善（修正版）
 * このコードをindex.cssの末尾に追加してください
 *=====================================================*/

/*-------------------------------------
 * スタッフセクション - Swiperスライダー対応
 *-------------------------------------*/
.staff-section {
	padding: 60px 0;
	overflow: hidden; /* スライダーのはみ出し防止 */
}

.staff-section .wrap {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 20px;
}

#staff .staff-title {
	text-align: center;
	font-size: 1.5rem;
	margin-bottom: 30px;
	font-weight: bold;
}

/* Swiperコンテナ */
.staff-swiper {
	width: 100%;
	padding-bottom: 50px; /* ページネーション用の余白 */
}

/* Swiperラッパー - 高さを揃える */
.staff-swiper .swiper-wrapper {
	align-items: stretch; /* 子要素の高さを揃える */
}

/* 各スタッフカード - 高さを揃える */
.staff-card {
	background: #fff;
	border-radius: 8px;
	padding: 20px;
	text-align: center;
	box-sizing: border-box;
	/* ★高さを揃えるための設定 */
	height: auto !important;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Swiperスライドの高さを自動調整 */
.staff-swiper .swiper-slide {
	height: auto !important;
}

/* サムネイル画像コンテナ */
.staff-thumb {
	width: 150px;
	height: 150px;
	margin: 0 auto 15px;
	overflow: hidden;
	border-radius: 50%;
	background-color: #e0e0e0; /* デフォルト背景色 */
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0; /* 縮小しない */
}

.staff-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ★デフォルトアイコン用のスタイル */
.staff-thumb .default-avatar {
	width: 100%;
	height: 100%;
	background-color: #b0bec5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.staff-thumb .default-avatar svg {
	width: 60%;
	height: 60%;
	fill: #fff;
}

/* スタッフ情報エリア */
.staff-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 0; /* flexboxの高さ計算用 */
}

/* 名前 */
.staff-name {
	font-size: 1.2rem;
	margin-bottom: 5px;
	font-weight: bold;
	/* ★長い文字の折り返し対応 */
	word-break: break-word;
	overflow-wrap: break-word;
	flex-shrink: 0;
}

/* 役職 */
.staff-position {
	color: #888;
	margin-bottom: 10px;
	font-size: 0.9rem;
	/* ★長い文字の折り返し対応 */
	word-break: break-word;
	overflow-wrap: break-word;
	flex-shrink: 0;
}

/* 一言コメント */
.staff-comment {
	font-size: 0.9rem;
	line-height: 1.6;
	text-align: left;
	flex: 1;
	/* ★長い英字の折り返し対応（重要） */
	word-break: break-word;
	overflow-wrap: break-word;
	word-wrap: break-word;
	/* 長い単語も強制的に折り返す */
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	hyphens: auto;
	/* はみ出し防止 */
	max-width: 100%;
	overflow: hidden;
}

/* ページネーション（ドット） */
.staff-pagination {
	margin-top: 20px;
}

.staff-pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #ccc;
	opacity: 1;
	margin: 0 5px;
}

.staff-pagination .swiper-pagination-bullet-active {
	background: #67503d; /* サイトのメインカラーに合わせて調整 */
}

/*-------------------------------------
 * レスポンシブ対応
 *-------------------------------------*/
@media screen and (max-width: 1023px) {
	.staff-thumb {
		width: 120px;
		height: 120px;
	}
}

@media screen and (max-width: 767px) {
	.staff-section {
		padding: 40px 0;
	}

	.staff-card {
		padding: 15px;
	}

	.staff-thumb {
		width: 100px;
		height: 100px;
	}

	.staff-name {
		font-size: 1.1rem;
	}

	.staff-comment {
		font-size: 0.85rem;
	}
}

/* 古いスタイルの上書き（必要に応じて） */
.staff-cards {
	display: none; /* 旧スタイルを非表示 */
}
