@charset "UTF-8";
/* CSS Document */
* {
	margin: 0;
	padding: 0;
}
php, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
body {
	font-family: "Noto Sans JP", sans-serif,sans-serif;
	background-color: #f4f4f4;
	padding-top: 25px;
}

h1 a img {
    display: block;
    margin: 0 auto 25px auto;
    height: auto;
}
h2 {
    font-weight: bold;
    font-size: 23px;
}
h3 {
	font-weight: bold;
	font-size: 21px;
}
p {
    font-size: 15px;
    line-height: 1.7;
}
h2,h3,h4 {
    letter-spacing: 1.2px;
}
.inner {
    width: 980px; /* PC版のコンテンツ幅に合わせて調整 */
    margin: 0 auto; /* ★必ず設定する★ これが中央寄せの基本 */
    padding: 0; /* デスクトップ版では通常パディングは不要（またはデザインによる） */
    box-sizing: border-box; /* 念のため追加。パディングを含めて幅を計算 */
    text-align: center;
	overflow: hidden;
}
header .inner {
    border-bottom: 1px solid #d6d6d6;
	margin-bottom: 40px;
}

/*navi*/
.main_logo {
	width: 25%;
}
.pc_navi {
    width: 75%;
}
.pc_navi ul {
	display: flex;
    /*justify-content: space-between;*/
	justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: 80px;
}
.pc_navi ul li {
	list-style-type: none;
	padding: 0 20px;
    border-right: 1px solid #d6d6d6;
}
.pc_navi ul li a {
	text-decoration: none;
	color: #000;
}
.pc_navi ul li a:hover {
	transition: 0.4s;
	color: #e60020;
}
.pc_navi ul li:last-child {
	border: none;
	padding-right: 0;
}
.sp_menu_toggle , .sp_navi {
    display: none; /* デフォルトで非表示 */
}
.sp {
	display: none;
}

.red {
	color: #e94733;
}

.breadcrumb {
  padding: 15px 15px 10px 0;
  list-style: none; /* リストの黒点を消す */
  display: flex; /* リストアイテムを横並びにする */
  flex-wrap: wrap; /* 画面が狭くなったときに折り返す */
  align-items: center; /* 垂直方向中央揃え */
  margin-bottom: 10px;
}

/* 各リストアイテム */
.breadcrumb-item {
  display: flex; /* 内部の要素（リンクと区切り文字）をFlexboxで整列 */
  align-items: center; /* 垂直方向中央揃え */
  font-size: 0.9em; /* フォントサイズ */
  color: #6c757d; /* テキストの色 */
}

/* 各リストアイテムの間の区切り文字 (CSSで生成) */
.breadcrumb-item + .breadcrumb-item::before {
  content: ">"; /* または "/" など */
  padding-left: 8px; /* 区切り文字の左側に余白 */
  padding-right: 8px; /* 区切り文字の右側に余白 */
  color: #6c757d; /* 区切り文字の色 */
}

/* リンク */
.breadcrumb-item a {
  text-decoration: none; /* 下線を消す */
  color: #000; /* リンクの色 */
}

.breadcrumb-item a:hover {
  text-decoration: underline; /* ホバーで下線 */
}

/* 現在のページ */
.breadcrumb-item.active {
  color: #343a40; /* アクティブなアイテムの色 */
  font-weight: bold; /* 太字 */
}

/* 現在のページにはリンクは不要なことが多い */
.breadcrumb-item.active a {
  pointer-events: none; /* クリック無効化 */
  cursor: default; /* カーソルをデフォルトに */
  text-decoration: none; /* 下線を消す */
}

/*------main---------*/
.tag {
	font-size: 16px;
    background: #fff5d9;
    color: #947319;
    display: inline-block;
    padding: 2px 15px;
    border-radius: 10px;
    margin-bottom: 5px;
}
.main_content {
	overflow: hidden;
	border-radius: 10px;
    margin-bottom: 60px;
	background: #FFF;
}
.main_red {
	font-size: 28px;
    margin-bottom: 20px;
}
.read_more {
  display: flex; /* Flexboxを有効にする */
  justify-content: space-between; /* 子要素を両端に配置 */
  align-items: center; /* 子要素を垂直方向の中央に揃える */

  width: 370px; /* ボタンの幅を固定（お好みで調整） */
  margin: 15px auto 0; /* 上に余白、左右中央揃え */
  padding: 10px 20px; /* 内側の余白 */

  background-color: #947319; /*#94c618; 青系の背景色 */
  color: #fff; /* 文字色を白に */
  text-decoration: none; /* 下線をなくす */
  border-radius: 10px; /* 角を丸くする */
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.read_more:hover {
  background-color: #5a450b;/*#759c12*/
  transform: translateY(-5px); /* 少し浮き上がる */
}

.btn_text {
  /* Flexboxで均等にスペースを配分し、テキストを中央に近づける */
  flex-grow: 1; /* 利用可能なスペースを全て占有しようとする */
  text-align: center; /* テキストを中央に揃える */
  padding-right: 10px; /* 矢印との間に少しスペース */
}

.btn_arrow {
  /* 矢印はflexアイテムとして右端に配置される */
  font-size: 1.2em; /* 矢印を少し大きくする */
}

/*main_content*/
.main_content img {
    width: 100%;
    height: 530px;
    object-fit: cover;
    object-position: center -6px;
}

figcaption {
    padding: 25px;
	text-align: left;
}

figcaption h2 {
    margin: 10px 0;
	padding: 0 0 0 5px;
}
figcaption p {
	text-align: left;
    margin: 20px 0;
}
.huton_red {
    background: #e60020;
	padding: 0px 15px 2px 15px;
    border-radius: 10px;
    color: #FFF;
    margin-right: 10px;
}


/*----sub_content------*/
.sub_content {
    background: #FFF;
    border-radius: 10px;
	overflow: hidden;
	width: 50%;
	margin-bottom: 60px;
}
.sub_content p {
    height: 150px;
}
.flex {
	display: flex;
	justify-content: center;
}
.sub_content:last-child {
    margin-left: 25px;
}
.sub_content img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.height {
	height: 85px;
}
.height h2 {
	margin: 0;
}
.height .height_h2 {
	margin-top: 15px;
}

/*------post-------*/
.post {
    background: #ffdede;
    padding: 15px 0;
    margin-bottom: 40px;
}

/*------footer------*/
footer ul li {
    list-style-type: none;
    margin: 0 20px 0 0;
}
footer p,footer {
	font-size: 14px;
}
footer ul li a {
    display: block;
}

.footer_red ul {
	margin-bottom: 5px;
}
.footer_red {
    background: #e60020;
    color: #FFF;
    padding: 20px 0;
}
.footer_red a {
	text-decoration: none;
	color: #FFF;
}
.t_title {
	color: #947318;
}

/*----------pagetop--------------*/
 #page-top-button {
	/* ボタンの基本スタイル */
	position: fixed; /* 画面に固定 */
	bottom: 30px; /* 下からの距離 */
	right: 30px; /* 右からの距離 */
	z-index: 999; /* 他の要素の上に表示 */

	/* 丸い形と背景色 */
	width: 50px; /* 幅 */
	height: 50px; /* 高さ */
	border-radius: 50%; /* 円形にする */
	background-color: #e60020; /* 赤色 */
	border:1px solid #FFF;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 影で立体感を出す */

	/* 「▲」のスタイルと中央揃え */
	color: #fff; /* 文字色を白に */
	font-size: 1.2em; /* 文字サイズを大きく */
	text-decoration: none; /* 下線をなくす */

	/* Flexboxで「▲」を中央揃え */
	display: flex;
	justify-content: center; /* 水平方向の中央 */
	align-items: center; /* 垂直方向の中央 */

	/* ふわっと表示/非表示にするための設定 */
	opacity: 0; /* 初期状態では完全に透明 */
	visibility: hidden; /* スクリーンリーダーなどからも非表示 */
	transition: opacity 0.2s ease-in-out, visibility 0.5s ease-in-out, background-color 0.3s ease, transform 0.5s ease;
}

/* JavaScriptでこのクラスを付与/削除して表示を制御 */
#page-top-button.is-visible {
	opacity: 1; /* 不透明にして表示 */
	visibility: visible; /* スクリーンリーダーなどからも表示 */
}

#page-top-button:hover {
	/*background-color: #c82333;  ホバー時に少し濃い赤色に */
	transform: translateY(-7px); /* 少し上に浮き上がる */
	cursor: pointer; /* カーソルをポインターに */
}
/* --- ページトップボタンのCSSここまで --- */

/*もっと読むボタン*/
.wrapper {
  width: 640px;
  margin: 30px auto;
  font-size: 1.6rem;
  line-height: 1.5;
}
.text_wrapper {
  position: relative;
}
.text {
  overflow: hidden;
}
.show_more,
.show_more2 {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
	color: #646464;
  height: 30px;
  padding-top: 120px;
  text-align: center;
  line-height: 30px;
  background: linear-gradient(
    180deg,
    rgb(255, 255, 255, 0) 0%,
    rgb(255, 255, 255, 1) 100%
  );
  cursor: pointer;
　transition: background-color 0.4s ease, color 0.4s ease; /* 0.3秒かけてゆっくり変化 */
}
.active {
	background: none;
    bottom: -45px;
    display: block;
}

/*スライド*/
.site-wrapper {
    display: flex;
    flex-direction: column; /* 子要素（ヘッダー、メイン、フッターなど）を縦並びにする */
    align-items: center; /* コンテンツを水平中央に */
    justify-content: center; /* コンテンツを垂直中央に（デモ用） */
}
.site-wrapper a {
	text-decoration: none;
}

/* メインコンテンツのラッパー（スライドショーを中央に配置するのに使う） */
.main-content-wrapper {
    width: 100%;
    flex-grow: 1; /* 親要素 .site-wrapper の残りのスペースを埋める */
    display: flex; /* スライドショーをこの中で中央寄せ */
    justify-content: center;
    align-items: center;
    padding: 20px 0; /* 上下のパディング */
}

/* カルーセルコンテナ */
.carousel-container {
  width: 100%; /* これで画面いっぱいに広がる */
  max-width: none; /* 最大幅の制限を解除 */
  padding:0 0 20px 0;
  position: relative;
}

/* スライドトラック（スライド全体を横並びにする部分） */
.carousel-track {
    display: flex; /* ★重要★ 子要素を横並びにする */
    transition: transform 0.5s cubic-bezier(0.45, 0.16, 0.8, 0.94);
    transform: translateX(0);
}

/* 個々のスライドアイテム */
.carousel-slide {
    flex-shrink: 0;
    box-sizing: border-box;
    height: 270px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    
    /* ★ここを修正しました★ */
    /* 複数のトランジションプロパティをカンマで区切って1つのtransitionプロパティにまとめます */
    /* opacityの時間を0.4sに、transformは0.5sのまま */
    transition: transform 0.5s cubic-bezier(0.45, 0.16, 0.8, 0.94), /* transformのアニメーション */
                opacity 0.3s ease-out; /* opacityのアニメーション。ご希望に応じてease-out または cubic-bezier を選択 */
    
    opacity: 0.7; /* デフォルトの不透明度 */
    z-index: 1; /* デフォルトのz-index */

    /* デスクトップのデフォルトスタイル */
    flex: 0 0 calc(33.9999% - 20px);
    margin: 0 10px;
}
/* ★追加★ 中央に来たスライドのスタイル */
.carousel-slide.is-centered {
    transform: scale(1.08); /* 少し拡大する (調整可能) - 拡大率を上げてみました */
    z-index: 10; /* 最前面に表示 */
    opacity: 1;
	margin: 0;
	box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* 中央スライドの拡大時に、隣接スライドとの間隔を確保するため、
   中央以外のスライドにのみマージンを適用するCSSの考え方もありえますが、
   今回はJavaScriptでスライド幅を計算するため、一旦上記の形を維持します。 */
/* スライドの中のコンテンツ（画像とテキスト） */
.slide-content {
    display: flex;
    flex-direction: column; /* 縦並び */
    height: 100%; /* 親要素の高さを引き継ぐ */
}

.slide-content img {
    width: 100%;
    height: auto; /* 画像のアスペクト比を保持 */
    display: block; /* 画像の下の余白を削除 */
    object-fit: cover; /* コンテナに合わせて画像をトリミング */
	object-position: center center;
    max-height: 190px;
    /*transition: transform 0.5s ease-in-out;  画像の拡大時のトランジション（もし必要なら） */
}

.text-overlay {
    padding: 15px;
    position: relative; /* 装飾バーの基準 */
    min-height: 80px; /* テキストエリアの最小高さ（内容に応じて調整） */
    flex-grow: 1; /* 残りのスペースを埋める */
	text-align: left;
}

.text-overlay .title {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin-top: 0;
}
.text-overlay h3 {
	font-size: 16px;
}

/* ドットナビゲーション */
.carousel-nav {
    text-align: center;
    margin-top: 45px;
}

.nav-dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-dot.active {
    background-color: #e60020; /* アクティブなドットの色 */
}
/* スライドトラック（スライド全体を横並びにする部分） */
.carousel-track {
    display: flex;
    /* transition の設定はJavaScriptで行うため、CSSからは一旦削除するか、デフォルトはなしにしておく */
    /* transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); */
    /* 中央寄せにするために、必要に応じて */
    /* justify-content: center; は使わない。translateXで調整する */
}

/* --- 矢印ボタンのCSS --- */
.carousel-button {
    position: absolute;
    top: 32%;
    transform: translateY(-50%);
    background-color: rgb(222 37 65);
    color: white;
    border: none;
    padding: 10px 15px 15px;
    font-size: 30px;
    cursor: pointer;
    z-index: 20;
    border-radius: 50%;
    width: 40px;
    height: 40px;
	display: flex
;
    justify-content: center;
    align-items: center;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.carousel-button:hover {
    opacity: 1;
}

.carousel-button.prev {
    left: 30px; /* コンテナの左外側 */
}

.carousel-button.next {
    right: 30px; /* コンテナの右外側 */
}
.sub_content_height {
	max-height: 647.5px;
}

@media (max-width: 990px) {
    /* .inner が固定幅の場合、解除して全幅にする */
    .inner {
		width: calc(100% - 20px); /* 例: 10pxの余白を両端に設ける */
		margin: 0 auto;
		padding: 0; /* モバイルでもパディングは0に統一してJS計算を簡素化 */
        box-sizing: border-box;
	}
    /* カルーセルコンテナは親の幅に合わせる */
    .carousel-container {
        padding: 0; /* 下のパディングを調整 */
    }
    /* 個々のスライドアイテム */
    .carousel-slide {
		flex: 0 0 100%; /* これを100%に変更 */
		height: 290px;
		opacity: 1; /* スマホ版は拡大しないので常に1 */
		margin: 0; /* マージンも不要になる */
	}
	.post {
		margin-bottom: 20px;
	}
	.carousel-slide.is-centered {
		box-shadow: none;
	}
		
    /* 中央に来たスライドのスタイル */
    .carousel-slide.is-centered {
        transform: scale(1.0); /* スマホでは拡大しない、または拡大率を調整 */
        z-index: 10;
        opacity: 1;
        /* スマホで拡大しない場合は、ここでの margin 調整は不要です */
        margin-left: 0; /* PC版からの影響を打ち消すため明示的にゼロ */
        margin-right: 0;
    }

    .slide-content img {
        max-height: 180px; /* スマホで画像が見やすいように高さを調整 */
    }
	.sp {
		display: inline-block;
	}
	.pc {
		display: none;
	}

    /* 矢印ボタン */
    .carousel-button {
        top: 40%; /* 矢印ボタンの垂直位置を調整 */
        width: 50px; /* ボタンのサイズを小さく */
        height: 50px;
        font-size: 24px; /* フォントサイズも調整 */
        padding: 8px 12px 12px; /* パディング調整 */
    }

    .carousel-button.prev {
        left: 5px; /* 画面端に寄せる */
    }

    .carousel-button.next {
        right: 5px; /* 画面端に寄せる */
    }

    /* ドットナビゲーション */
.carousel-nav {
    text-align: center;
    margin-top: 20px;
}
.nav-dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.nav-dot.active {
    background-color: #e60020; /* アクティブなドットの色 */
}
	
	/*ここから下自分で書いたやーつ*/
	#page-top-button {
		right: 10px;
	}
	header .inner {
		margin-bottom: 30px;
	}
	.main_content img {
		height: 250px;
		object-position: center center;
	}
	figcaption {
		padding: 20px;
	}
	figcaption p {
		margin: 17px 0;
	}
	.inner.flex,footer .flex {
    display: inline-block;
	}
	.read_more {
		width: auto;
	}
	.main_content,.sub_content {
		margin-bottom: 30px;
	}
	.height {
		height: auto;
	}
	.height .height_h2 {
		margin-top: 0;
	}	
	.sub_content:last-child {
		margin-left: 0;
	}
	.sub_content p {
		height: 210px;
	}
	.post {
        padding: 20px;
	}
	footer ul li {
		margin: 0;
	}
	.footer_gray ul li:last-child {
		margin-bottom: 0;
	}
	footer ul li {
		list-style-type: none;
	}
	.footer_ul li {
		margin-bottom: 8px;
	}
	.sub_content {
		width: 100%;
	}
	.sub_content_height {
		max-height: max-content;
	}
	header .sp_flex {
		justify-content: space-between; /* ロゴとハンバーガーアイコンを左右に配置 */
		align-items: top;
	}

    /* PC版ナビを非表示にする */
    .pc_navi {
        display: none;
    }

    /* ハンバーガーアイコンのスタイル */
    .sp_menu_toggle {
        display: flex; /* ハンバーガーアイコンを表示 */
        flex-direction: column;
        justify-content: space-between;
        width: 30px; /* アイコンの幅 */
        height: 24px; /* アイコンの高さ */
        cursor: pointer;
        z-index: 1001; /* ナビより前面に */
        position: relative; /* transformの基準 */
    }

    .sp_menu_toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #333; /* アイコンの色 */
        border-radius: 2px;
        transition: all 0.3s ease; /* アニメーション */
    }

    /* ハンバーガーアイコンのアニメーション（開閉時） */
    .sp_menu_toggle.active2 span:nth-child(1) {
        transform: translateY(10.5px) rotate(45deg); /* 上の線を回転・移動 */
		opacity: 0;
    }
    .sp_menu_toggle.active2 span:nth-child(2) {
        opacity: 0; /* 中央の線を非表示 */
		opacity: 0;
    }
    .sp_menu_toggle.active2 span:nth-child(3) {
        transform: translateY(-10.5px) rotate(-45deg); /* 下の線を回転・移動 */
		opacity: 0;
	}

    /* SP用ナビゲーションのスタイル */
    .sp_navi {
        position: fixed; /* 全画面オーバーレイ */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8); /* 半透明の背景 */
        display: flex; /* 中央寄せ */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000; /* ハンバーガーアイコンより背面に */
        opacity: 0; /* デフォルトで透明 */
        visibility: hidden; /* デフォルトで非表示 */
        transition: opacity 0.3s ease, visibility 0.3s ease; /* アニメーション */
    }

    .sp_navi.active2 {
        opacity: 1; /* 表示時に透明度を戻す */
        visibility: visible; /* 表示 */
    }

    .sp_navi ul {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center;
    }

    .sp_navi ul li {
        margin-bottom: 25px; /* メニュー項目の間隔 */
    }

    .sp_navi ul li:last-child {
        margin-bottom: 0;
    }

    .sp_navi ul li a {
        color: #fff; /* テキスト色 */
        font-size: 24px; /* フォントサイズ */
        text-decoration: none;
        padding: 10px 20px;
        display: block;
        transition: color 0.2s ease;
    }

    .sp_navi ul li a:hover {
        color: #ddd; /* ホバー時の色 */
    }
	.close_sp_navi_button {
			position: absolute; /* .sp_navi に対して絶対配置 */
			top: 5px; /* 上からの位置 */
			right: 15px; /* 右からの位置 */
			background: none; /* 背景なし */
			border: none; /* ボーダーなし */
			color: #fff; /* 色 */
			font-size: 36px; /* サイズ */
			cursor: pointer;
			z-index: 1002; /* ハンバーガーアイコンよりさらに前面（ナビより前面）*/
			padding: 10px; /* クリックしやすいようにパディング */
		}

		.close_sp_navi_button:hover {
			opacity: 0.7;
		}
	.pc {
		display: none;
	}
	.sp {
		display: inline-block;
	}
}

/* さらに小さい画面（例: iPhone SEなど）向けに調整が必要な場合 */
@media (max-width: 480px) {
    .carousel-slide {
		flex: 0 0 100%; /* これを100%に変更 */
		margin: 0; /* マージンも不要になる */
	}

    .carousel-button {
        font-size: 20px;
        padding: 6px 10px 10px;
    }
}
