/*------------------パーツ別CSS-------------------*/
/*Googleマップ*/
/*YouTube*/
/*ビデオ動画のコンテナ*/
/*カード風デザイン*/
/*背景グラデーション*/
/*背景画像デザイン*/
/*セクションタイトルデザイン*/
/*汎用ボタン*/
/*お問い合わせボタン*/
/*テーブルデザイン*/
/*リストデザイン*/
/*画像*/

/* --ページトップに戻るボタン--ページの指定の範囲内で出現（下から上) */
/*リンクの形状*/
#page-top a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 50px;
	height: 50px;
	border: 1px solid #4caf50;
	color: #4caf50;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	font-size: 0.6rem;
	transition: all 0.3s;
	background-color: #fff;
}

#page-top a:hover {
	background: #388e3c;
	color: #fff;
}

/*リンクを右下に固定*/
#page-top {
	position: fixed;
	right: 110px;
	bottom: 120px;
	z-index: 9999;
	/*はじめは非表示*/
	opacity: 1;
	transform: translateX(100px);
}

#page-top span {
	display: inline-block;
	width: 13px;
	height: 13px;
	border-top: 1px solid #fff;
	border-left: 1px solid #fff;
	transform: rotate(45deg);
	margin: 8px 0 0 0;
}

/*　左の動き　*/

#page-top.LeftMove {
	animation: LeftAnime 0.5s forwards;
}

@keyframes LeftAnime {
	from {
		opacity: 0;
		transform: translateX(100px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/*　右の動き　*/

#page-top.RightMove {
	animation: RightAnime 0.5s forwards;
}

@keyframes RightAnime {
	from {
		opacity: 1;
		transform: translateX(0);
	}

	to {
		opacity: 1;
		transform: translateX(100px);
	}
}

/* --オプションパーツのデザイン-- */
/* グーグルマップの配置 */
.ggmap {
	position: relative;
	padding-bottom: 25%;
	padding-top: 30px;
	height: 0;
	overflow: hidden;
}

.ggmap iframe,
.ggmap object,
.ggmap embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ユーチューブ */
.youtube {
	position: relative;
	padding-top: 56.25%;
	max-width: 100%;
	overflow: hidden;
}

.youtube iframe,
.youtube object,
.youtube embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ビデオ動画のコンテナ */
.video-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* カード風ボーダー */
.card {
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 背景グラデーション */
.gradient-bg {
  background: linear-gradient(to right, #ff7e5f, #feb47b);
}

/* 背景画像 */
.hero-image {
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center;
}

/*セクションタイトルデザイン*/
/*-- 各セクションのピンクの点と緑のラインCSS --*/

.section-title {
  position: relative;
  display: inline-block; /* テキスト幅に合わせる */
  font-size: 40px;
  font-weight: bold;
  color: #072608;
  margin-bottom: 40px;
  text-align: center;
}

@media (max-width: 768px) {
.section-title {
  font-size: 24px;
  margin-bottom: 20px;
	}
}
	
/* 親要素（例: セクション全体）で中央寄せ */
.section-title-wrapper {
  text-align: center;
}

/* 下線部分 */
.section-title::after {
  content: "";
  display: block;
  width: 70px;        /* 線の長さ */
  height: 4px;
  background-color: #71C366; /* 線の色 */
  margin: 6px auto 0; /* ← auto で中央寄せ */
  position: relative;
	border-radius: 4px;
}

/* 左端の点 */
.section-title::before {
  content: "";
  position: absolute;
  bottom: -0px;       /* 下線の位置に合わせる */
  left: 50%;          /* 中央基準 */
  transform: translateX(-50%) translateX(-40px);
  /*  -40px = 下線の半分幅 (80px) の左端へ移動 */
  width: 4px;
  height: 4px;
	background-color: #ffcaba;/* 点の色 */
	border-radius: 50%;
}

/* ボタン 
.btn {
  max-width: 120px;
  background-color: #fff;
  display: block;
  border: solid 1px #1f1f1f;
  font-size: 12px;
  padding: 10px 0;
  text-align: center;
  position: relative;
  z-index: 10;
}
.btn::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -10;
  background-color: #1f1f1f;
  transform-origin: 100% 50%;
  transform: scaleX(0);
  transition: transform ease 0.3s;
}
.btn:hover {
  color: #fff;
  opacity: 1;
}
.btn:hover::before {
  transform-origin: 0% 50%;
  transform: scaleX(1);
}
*/

/* お問合せボタン */
.form-btn {
  position: relative;
  display: inline-block;
  font-weight: bold;
  padding: 10px;
  text-decoration: none;
  color: #FFF;
  background: #00A0EA;
	width:100%;
	text-align: center;
	border-radius: 4px;
}

.form-btn:hover {
  opacity: 0.5;
	transition: 0.3s;
}

/* -----------テーブルデザイン-------------- */
table {
	border: solid 1px #ccc;
	border-collapse: collapse;
}

table th {
	border: solid 1px #ccc;
	background-color: #eee;
	padding: 1em;
}

table td {
	border: solid 1px #ccc;
	background-color: white;
	padding: 1em;
}

@media (max-width: 599px) {
	table {
		font-size: 0.9em;
	}
}

/* ----------リストデザイン-------------- */
ul.list li {
	list-style-type: square;
	list-style-position: inside;
	padding-left: 0px;
	font-size: 1em;
	margin-bottom: 10px;
}

@media (max-width: 599px) {
	ul.list li {
		font-size: 0.9em;
	}
}

/* -----------画像-------------- */
/* 画像のキャプション */
.wp-caption-text {
	margin: 0px;
	color: #666;
	font-size: 10px;
	text-align: center;
}

@media (max-width: 599px) {
	.wp-caption-text {
		font-size: 8px;
	}
}

.wp-caption-text a {
	color: #666;
}

/* 画像の配置 */
.aligncenter {
	display: block;
	margin: 0px auto;
}

@media (max-width: 599px) {

	.alignleft,
	.alignright {
		display: block;
		margin: 0px auto;
	}
}

@media (min-width: 600px) {
	.alignleft {
		float: left;
		margin-top: 10px;
		margin-bottom: 20px;
		margin-right: 30px;
	}

	.alignright {
		float: right;
		margin-top: 10px;
		margin-bottom: 20px;
		margin-left: 30px;
	}
}

/* 大きい画像用の設定 */
img,
.wp-caption {
	max-width: 100%;
	height: auto;
}

/* アイキャッチ画像 */
.catch {
	margin: 30px 0px;
}

/* センター寄せ */
.center {
	text-align: center;
}

/* ==========================================================================
   💻 news ベース記述（PC・タブレット用：横3カラム）
   ========================================================================== */
.news__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 👈 最初から3カラム */
  gap: var(--space-md, 24px);
  margin-bottom: 40px;
}

.news__item {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.news__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.news__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.news__img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #f5f5f5;
}

.news__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px;
}

.news__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news__date {
  font-size: 0.875rem;
  color: #777;
}

.news__category {
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
}

.news__item-title {
  font-size: 1.125rem;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news__excerpt {
  color: #555;
  font-size: 0.875rem;
  line-height: 1.6;
}

.news__more {
  text-align: center;
}

/* ==========================================================================
   📄 パターン2（画像なし・テキスト2段組み）用CSS
   ========================================================================== */
/* 💻 PC・タブレット用（横2段組み 1/3 と 2/3） */
.news__layout-text {
  display: grid;
  grid-template-columns: 1fr 2fr; /* 👈 左1/3 : 右2/3 の比率 */
  gap: var(--space-lg, 48px);
  align-items: start;
}

.news__title-text {
  margin-bottom: 16px;
}

.news__more-text {
  display: block;
}

.news__more-text .btn-text {
  font-size: 0.875rem;
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.news__more-text .btn-text:hover {
  text-decoration: underline;
}

/* 右側リスト構造 */
.news__text-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #e0e0e0; /* 1行目の上の線 */
}

.news__text-item {
  border-bottom: 1px solid #e0e0e0; /* 各行の下の線 */
}

.news__text-link {
  display: flex;
  align-items: center;
  padding: 18px 0;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s;
}

.news__text-link:hover {
  background-color: #fafafa; /* ほんのりホバー感 */
}

.news__text-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 220px; /* 👈 日付とカテゴリの幅を固定して、タイトルの位置を揃える */
  flex-shrink: 0;
}

.news__text-date {
  font-size: 0.875rem;
  color: #777;
}

.news__text-category {
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
}

.news__text-title {
  font-size: 1rem;
  line-height: 1.5;
  white-space: nowrap; /* 💻 PC時は1行で収める（はみ出しは「...」にする） */
   Sherwood-overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}