@charset "utf-8";



/*リセットCSS（sanitize.css）の読み込み
---------------------------------------------------------------------------*/
@import url("https://unpkg.com/sanitize.css");

/*Google Fontsの読み込み
---------------------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Allura&family=Homemade+Apple&family=Sawarabi+Mincho&display=swap');

/*Font Awesomeの読み込み
---------------------------------------------------------------------------*/
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

/*lightbox.cssの読み込み
---------------------------------------------------------------------------*/
@import url(https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.10.0/css/lightbox.css);

/*slick.cssの読み込み
---------------------------------------------------------------------------*/
@import url("https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css");

/*テンプレート専用cssファイルの読み込み
---------------------------------------------------------------------------*/
@import url("inview.css");


/*CSSカスタムプロパティ（サイト全体を一括管理する為の設定）
---------------------------------------------------------------------------*/
:root {
	--primary-color: #f8b2ca;		/*テンプレートのメインとなる色*/
	--primary-text-color: #5d4037;		/*メインの上で使うテキスト色*/
	
    --accent-color: #93c6dd;		/*テンプレートのアクセントとなる色*/
    --accent-text-color: #4e342e;		/*アクセントの上で使うテキスト色*/
    --link-color: #4e342e;           /* リンクも濃い茶で揃えると自然 */
    --link-hover: #6d4c41;
}


/*opa1のキーフレーム設定
---------------------------------------------------------------------------*/
@keyframes opa1 {
	0% {opacity: 0;}
	100% {opacity: 1;}
}


/*animation1のキーフレーム設定（開閉ブロックのアニメーションに使用）
---------------------------------------------------------------------------*/
@keyframes animation1 {
	0% {left: -200px;}
	100% {left: 0px;}
}


/*fadeInのキーフレーム設定（テキストのフェードインに使用）
---------------------------------------------------------------------------*/
@keyframes fadeIn {
	0% {opacity: 0;transform: scale(0.8);}
	100% {opacity: 1;transform: scale(1);}
}


/*全体の設定
---------------------------------------------------------------------------*/
html {
  font-size: 100%;   /* ブラウザ標準16pxに追従 */
}

/* 大画面ほど少し拡大 */
@media (min-width: 1200px) {
  html { font-size: 106.25%; } /* ≒17px */
}
@media (min-width: 1600px) {
  html { font-size: 112.5%; }  /* ≒18px */
}
@media (min-width: 2000px) {
  html { font-size: 125%; }    /* ≒20px */
}

/* body側は相対指定でOK */
body {
  font-size: 1rem;              /* = htmlの1倍（16px基準） */
  line-height: 2;               /* 読みやすい行間に調整 */
  -webkit-text-size-adjust: 100%; /* ←モバイルでも拡大設定が効くように修正 */
}


body {
	font-family: "Sawarabi Mincho", "Hiragino Mincho Pro", "ヒラギノ明朝 Pro W3", "HGS明朝E", "ＭＳ Ｐ明朝", "MS PMincho", serif;	/*フォント種類*/
	-webkit-text-size-adjust: none;
	background: var(--primary-color);	/*背景色。css冒頭で指定しているprimary-colorを読み込みます*/
	color: var(--primary-text-color);	/*文字色。css冒頭で指定しているprimary-text-colorを読み込みます*/
	line-height: 2.2;		/*行間*/
}

/*リセット*/
figure {margin: 0;}
dd {margin: 0;}
nav {margin: 0;padding: 0;}

/*table全般の設定*/
table {border-collapse:collapse;}

/*画像全般の設定*/
img {border: none;max-width: 100%;height: auto;vertical-align: middle;}

/*videoタグ*/
video {max-width: 100%;}

/*iframeタグ*/
iframe {width: 100%;}

/*他*/
input {font-size: 1rem;}


/*section
---------------------------------------------------------------------------*/
section {
	padding: 2rem;	/*section内の余白*/
}

	/*画面幅600px以上の追加指定*/
	@media screen and (min-width:600px) {

	section {
		padding: 3rem 5rem;	/*section内の余白。上下、左右への順番。*/
	}

	}/*追加指定ここまで*/


/*リンクテキスト全般の設定
---------------------------------------------------------------------------*/
a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s, text-shadow .2s;
}
a:hover {
  color: var(--link-hover);
  text-shadow: 0 0 0.01px currentColor; /* 細いフォントで視認性を少し補助 */
}


/*コンテナー（サイト全体を囲むブロック）
---------------------------------------------------------------------------*/
body:not(.home) #container {
	height: 100%;
	display: flex;
	flex-direction: column;
}


/*header（ロゴが入った最上段のブロック）
---------------------------------------------------------------------------*/
/*トップページのヘッダーブロック*/
.home header {
	position: relative;
	width: 100%;
	height: 90vh;
}

  /*ロゴ共通*/
header #logo {
  width: 22%;
  min-width: 180px;
  max-width: 340px;
  margin: 3rem auto;
}

#logo img {
  width: 100%;
  height: auto;
  display: block;
}

/*トップページのロゴ共通*/
.home header #logo {
	position: absolute;z-index: 1;
	left: 30%;	/*左からの配置場所指定*/
	top: 50%;	/*上からの配置場所指定*/
	transform: rotate(-10deg);	/*10度回転させる*/
	width: 30%;	/*ロゴの幅*/
}

/*ロゴをSVGで使う場合の設定*/
#svg-logo {
	animation: opa1 1s both;	/*一瞬ロゴが全部出ちゃうのを隠す為の応急措置です*/
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-miterlimit: 10;
    stroke: #fff;	/*ここは文字色ではないので基本的に変更しない*/
    stroke-width: 80;
}

/*ロゴをpng画像で使う場合の設定*/
.home header #logo img {
	animation: opa1 1s 1.5s both;	/*@keyframesのopa1を1秒かけて実行する。実行までの待機時間1.5秒。*/
}

/*ロゴをテキストで使う場合の設定*/
.home header #logo.hosoku {
	opacity: 1;		/*下の.hosokuで透明度を下げているので、通常通りの色を出す*/
	width: auto;
	font-size: 5vw;	/*画面幅に対する割合。大きくすると文字も大きくなります。*/
}

	/*画面幅600px以下の追加指定*/
	@media screen and (max-width:600px) {

	/*トップページのロゴ共通*/
	.home header #logo {
		width: 50%;
	}

	}/*追加指定ここまで*/


/*メイン画像
---------------------------------------------------------------------------*/
#mainimg {
	animation: opa1 1.5s 0.5s both;	/*@keyframesのopa1を1.5秒かけて実行する。実行までの待機時間0.5秒。*/
	position: absolute;
	right: 0;
	width: 70%;	/*画面の半分だけに配置*/
	height: 105%;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%);	/*切り抜く形。左上,右上,右下,左下の順番で、それぞれ2つセットになっている数字はX軸 Y軸の順番。基点は左上(0 0)。*/
	background: url('../images/img1.jpg') no-repeat center center / cover;	/*背景画像を読み込む指定*/
}

	/*画面のアスペクト比が1:2以下の場合の追加設定*/
	@media screen and (max-aspect-ratio: 1/2) {

	#mainimg {
		width: 100%;		/*画像が細くなりすぎるので、全画面に出すように変更*/
		clip-path: none;	/*切り抜きをリセット*/
	}

	}/*追加指定ここまで*/


/*mainブロック
---------------------------------------------------------------------------*/
/*mainブロックの設定*/
main {
	flex: 1;
}

/*main内のh2*/
main h2 {
	font-size: 1.5rem;		/*文字サイズ。1.5倍。*/
	font-weight: normal;	/*デフォルトの太字を標準に*/
	line-height: 1.5;		/*行間*/
	display: inline-block;	/*文字の幅にブロック幅を合わせる。これがないと画面幅いっぱいになって、下の右寄せ指定が離れすぎてしまう。*/
	text-align: right;		/*テキストを右寄せ。上でinline-blockを指定したので、画面の右側ではなく、装飾文字と合わせた幅内で右に揃う。*/
}

/*大きな装飾文字*/
.hosoku {
	font-family: "Allura", cursive;	/*冒頭で読み込んでいるGoogle Fontsの指定*/
	font-weight: 400;
	font-size: 3em;	/*文字サイズ。３倍。*/
	display: block;
	opacity: 0.5;	/*透明度。50%色が出た状態。*/
}

/*トップページの挨拶の最後の署名に使った設定*/
.homemade-apple-regular {
	font-family: "Homemade Apple", cursive;	/*冒頭で読み込んでいるGoogle Fontsの指定*/
	font-weight: 400;
	font-style: normal;
}


/*メニューブロック設定
---------------------------------------------------------------------------*/
#menubar a {display: block;text-decoration: none;}
#menubar ul {list-style: none;margin: 0;padding: 0;}
#menubar {display: none;}
#menubar.d-b, #menubar_hdr.d-b {display: block;}
#menubar.d-n, #menubar_hdr.d-n {display: none;}


/*メニューブロック設定
---------------------------------------------------------------------------*/
/*メニューブロック*/
#menubar {
	position: fixed;overflow: auto;z-index: 100;
	left: 0px;top: 0px;
	width: 100%;
	height: 100%;
	padding: 100px 20px 20px;			/*ブロック内の余白。上、左右、下。*/
	background: rgba(0,0,0,0.9);		/*背景色。0,0,0は黒の事で0.9は色が90%出た状態。*/
	text-align: center;					/*内容をセンタリング*/
	animation: animation1 0.2s both;	/*animation1を0.2秒かけて実行する*/
	color: #fff;						/*文字色*/
}

/*メニュー１個あたりの設定*/
#menubar a {
	color: inherit;
	padding: 10px;		/*メニュー内の余白*/
}


/*３本バー（ハンバーガー）アイコン設定
---------------------------------------------------------------------------*/
/*３本バーを囲むブロック*/
#menubar_hdr {
	position: fixed;z-index: 101;
	cursor: pointer;
	left: 0px;			/*右からの配置場所指定*/
	top: 0px;			/*上からの配置場所指定*/
	padding: 30px;		/*余白*/
	width: 100px;		/*幅（３本バーが出ている場合の幅になります）*/
	height: 100px;		/*高さ*/
	display: flex;					/*flexを使う指定*/
	flex-direction: column;			/*子要素（３本バー）を縦並びにする*/
	justify-content: space-around;	/*並びかたの種類の指定*/
}

/*バー１本あたりの設定*/
#menubar_hdr span {
	display: block;
	transition: 0.3s;	/*アニメーションにかける時間。0.3秒。*/
	border-top: 1.5px solid #fff;	/*線の幅、線種、色*/
}

/*×印が出ている状態の設定。※１本目および２本目のバーの共通設定。*/
#menubar_hdr.ham span:nth-of-type(1),
#menubar_hdr.ham span:nth-of-type(3) {
	transform-origin: center center;	/*変形の起点。センターに。*/
	width: 50px;						/*バーの幅*/
}

/*×印が出ている状態の設定。※１本目のバー。*/
#menubar_hdr.ham span:nth-of-type(1){
	transform: rotate(45deg) translate(4px, 10px);	/*回転45°と、X軸Y軸への移動距離の指定*/
}

/*×印が出ている状態の設定。※３本目のバー。*/
#menubar_hdr.ham span:nth-of-type(3){
	transform: rotate(-45deg) translate(4px, -10px);	/*回転-45°と、X軸Y軸への移動距離の指定*/
}

/*×印が出ている状態の設定。※２本目のバー。*/
#menubar_hdr.ham span:nth-of-type(2){
	display: none;	/*２本目は使わないので非表示にする*/
}


/*フッター設定
---------------------------------------------------------------------------*/
small {font-size: 100%;}
footer {
	font-size: 0.7rem;		/*文字サイズ*/
	text-align: center;		/*内容をセンタリング*/
	padding: 1rem;			/*ボックス内の余白*/
}

/*リンクテキスト*/
footer a {color: inherit;text-decoration: none;}

/*著作部分*/
footer .pr {display: block;}


/*メニュー内にあるソーシャルメディアのアイコン
---------------------------------------------------------------------------*/
ul.icons {
	list-style: none;
	margin: 0;padding: 0;
	display: flex;
	justify-content: center;
	align-self: center;
}
ul.icons li {
	margin-right: 10px;	/*アイコン同士の余白*/
}
.icons i {
	font-size: 40px;	/*Font Awesomeのアイコンサイズ*/
}


/*活動報告（お知らせ用）ブロック
---------------------------------------------------------------------------*/
/*ブロック内のspan。日付の横のアイコン的な部分です。*/
.news span {
	display: inline-block;
	line-height: 1;
	text-align: center;
	border-radius: 3px;		/*角を丸くする指定*/
	border: 1px solid var(--primary-text-color);	/*枠線の幅、線種、色*/
	padding: 0.3rem 1rem;	/*上下、左右へのブロック内の余白*/
	margin: 0 1rem;			/*上下、左右へのブロックの外にとる余白*/
	width: 8rem;			/*幅*/
	border-color: rgba(16,33,43,.35);  /* #10212bの薄め */
    color: inherit;  
}

	/*画面幅700px以上の追加指定*/
	@media screen and (min-width:700px) {

	/*ブロック全体*/
	.news {
		display: grid;	/*gridを使う指定*/
		grid-template-columns: auto 1fr;	/*横並びの指定。日付とアイコン部分の幅は自動で、内容が入るブロックは残り幅一杯とる。*/
	}

	}/*追加指定ここまで*/


/*list-grid（gallery.htmlでサムネイルを表示している部分の設定です）
---------------------------------------------------------------------------*/
/*listブロックを囲む外側のボックス*/
.list-grid-trimming {
	display: grid;
	grid-template-columns: repeat(4, 1fr);	/*ここの「4」の数字が横に並べる数です。3列がいいなら(3, 1fr)です。*/
	gap: 1rem;	/*マージン的な数値。サムネイル間を１文字分あけます。*/
}

/*ボックスを正方形にトリミングする為の指定なので変更しない。*/
.list-grid-trimming .list {
	position: relative;
	overflow: hidden;
	height: 0;
	padding-top: 100%;
}
.list-grid-trimming .list a {
	display: block;
	position: absolute;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
}
.list-grid-trimming .list img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: 0.5s;	/*マウスオン時にかける時間。0.5秒。*/
}

/*マウスオン時の画像*/
.list-grid-trimming .list img:hover {
	transform: scale(1.1);	/*1.1倍に拡大*/
	filter: contrast(1.3);	/*コントラストを1.3倍*/
}


/*bg1背景色がついたブロック
---------------------------------------------------------------------------*/
.bg1 {
	position: relative;
	background: var(--accent-color);	/*背景色。css冒頭で指定しているaccent-colorを読み込みます*/
	color: var(--accent-text-color);	/*文字色。css冒頭で指定しているaccent-text-colorを読み込みます*/
	padding-top: 3vw;		/*ボックス内の上に空ける余白*/
	padding-bottom: 3vw;	/*ボックス内の下に空ける余白*/
	margin-top: 5vw;		/*ボックス外の上に空ける余白*/
	margin-bottom: 5vw;		/*ボックス外の下に空ける余白*/
}
.bg1 a {
	color: inherit;
	color: var(--link-color);
}

/*以下のheightの行が傾斜の角度です。vwという単位は画面幅に対してで、画面幅100%＝100vwになります。
つまり、画面幅に対して常に同じ傾斜具合になります。1pxの数字は時々隙間が発生するのでそれを防ぐ為の措置です。
傾斜（height）を変更したい場合は、下にある「.bg1::before」のtopと「.bg1::after」のbottomの数字も変更。*/
.bg1::before, .bg1::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: calc(5vw + 1px);
	background: var(--accent-color);	/*背景色。css冒頭で指定しているaccent-colorを読み込みます*/
}

.bg1::before {
	top: -5vw;	/*上の、heightの「5vw」と数字を揃えて先頭にマイナスをつける*/
	clip-path: polygon(0 100%, 100% 0, 100% 100%);	/*三角形の形を作っています*/
}

.bg1::after {
	bottom: -5vw;	/*上の、heightの「5vw」と数字を揃えて先頭にマイナスをつける*/
	clip-path: polygon(0 0, 100% 0, 0 100%);	/*三角形の形を作っています*/
}


/*2カラムの設定
---------------------------------------------------------------------------*/
/*全体を囲むブロック*/
.c2 {
    display: flex;	/*flexを使う指定*/
    gap: 3vw;		/*ボックスの間に空けるマージン的な要素。画面幅100%＝100vwです。*/
}

/*大きい方のボックス*/
.c2 .large-box {
    flex: 1;
}

/*小さい方のボックス*/
.c2 .small-box {
    flex-shrink: 0;
    width: 20vw;	/*幅。これを変更すれば自動で大きな方のボックスも調整されます。画面幅100%＝100vwです。*/
}

/*左右を入れ替える場合*/
.c2.reverse {
	flex-direction: row-reverse;
}


/*ボックスの内側につける影
---------------------------------------------------------------------------*/
.box-shadow-inset {
	position: relative;
}
.box-shadow-inset::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	/*以下の行が実際の指定箇所。2つある1vwの数値を変更すればぼかし具合が変わります。var()の部分は、css冒頭で指定しているprimary-colorを読み込む指定*/
	box-shadow: 0px 0px 1vw 1vw var(--primary-color) inset;
}


/*テキストのフェードイン設定
---------------------------------------------------------------------------*/
/* 初期状態でテキストを非表示にする */
.fade-in-text {
    visibility: hidden;
}

/* アニメーションを適用するクラス。
animationの行の「0.1s」が文字の出現のなめらかさで、大きいほどなめらかに出てきます。現状0.1ですが、0.5など大きくするとなめらかに出てきます。
１文字ずつの出現する際の時差は、js/main.jsの「テキストのフェードイン効果」の中にある「0.1」で調整できます。*/
.char {
    display: inline-block;
    opacity: 0;
    animation: fadeIn 0.1s linear both;
}


/*アニメーションボタン。（枠線をぐるっとなぞるアニメーション）
---------------------------------------------------------------------------*/
@keyframes w {0% {width: 0px;} 100% {width: 100%;}}
@keyframes h {0% {height: 0px;} 100% {height: 100%;}}

/*ボタンの一番の外側のボックス*/
.animation-btn {
	position: relative;		/*枠線をアニメーションさせる為に必要な指定*/
	display: inline-block;
	box-shadow: 0px 0px 0px 1px rgba(255,255,255,0.5) inset;	/*デフォルトで見えている枠線の設定。255,255,255は白の事で0.5は色が50%出た状態。*/
}

/*上のanimation-btnの内側にあるボックス*/
.animation-btn-inner {
	display: block;text-decoration: none;
	padding: 0.5em 3em;		/*ボタン内の余白。上下、左右へ。emは文字の単位。1emが1文字分という事です。*/
	letter-spacing: 0.1em;	/*文字間隔を少しだけ広くとる*/
	text-indent: 0.1em;		/*letter-spacingを設定するとその分全体のテキスト位置がずれるので、戻す設定。同じ数字にしておけばOKです。*/
}

/*ボタン内でiタグを使う場合の設定*/
.animation-btn-inner i {
	display: inline-block;
	transition: 0.3s;		/*アニメーションにかける時間。0.3秒。*/
	padding-left: 1em;		/*テキストと、iタグの間の余白*/
}
.animation-btn-inner:hover i {
	transform: translateX(5px);	/*マウスオン時にiタグを5pxだけ右に移動する*/
}

/*枠線共通*/
.animation-btn::before,
.animation-btn::after,
.animation-btn-inner::before,
.animation-btn-inner::after {
	content: "";
	position: absolute;
	background-color: #fff;		/*background(背景)スタイルですが、ここでは枠線の色に使われます。*/
	animation-duration: 0.2s;	/*アニメーションにかける時間。１辺あたり0.2秒。*/
	animation-fill-mode: forwards;	/*アニメーション完了時に最後のフレームを維持。この１行を外してみると別の動作になって面白い動きになります。*/
	animation-timing-function: linear;	/*アニメーションの速度のタイプ。同じ速度にする。*/
}

/*ラインアニメーション１（左上→右上）*/
.animation-btn:hover::before {
	left: 0px;	/*開始地点の指示*/
	top: 0px;	/*開始地点の指示*/
	height: 1px;		/*線の幅の代わりになります*/
	animation-name: w;	/*上の「@keyframes」で使うアニメーション名の指定。*/
}

/*ラインアニメーション２（右上→右下）*/
.animation-btn:hover::after {
	right: 0px;	/*開始地点の指示*/
	top: 0px;	/*開始地点の指示*/
	width: 1px;			/*線の幅の代わりになります*/
	animation-name: h;	/*上の「@keyframes」で使うアニメーション名の指定。*/
	animation-delay: 0.2s;	/*アニメーションを0.2秒遅れてスタートさせる。*/
}

/*ラインアニメーション３（右下→左下）*/
.animation-btn-inner:hover::before {
	right: 0px;		/*開始地点の指示*/
	bottom: 0px;	/*開始地点の指示*/
	height: 1px;		/*線の幅の代わりになります*/
	animation-name: w;	/*上の「@keyframes」で使うアニメーション名の指定。*/
	animation-delay: 0.4s;	/*アニメーションを0.4秒遅れてスタートさせる。*/
}

/*ラインアニメーション４（左下→左上）*/
.animation-btn-inner:hover::after {
	left: 0px;		/*開始地点の指示*/
	bottom: 0px;	/*開始地点の指示*/
	width: 1px;			/*線の幅の代わりになります*/
	animation-name: h;	/*上の「@keyframes」で使うアニメーション名の指定。*/
	animation-delay: 0.6s;	/*アニメーションを0.6秒遅れてスタートさせる。*/
}


/*PAGE TOP（↑）設定
---------------------------------------------------------------------------*/
.pagetop-show {display: block;}

/*ボタンの設定*/
.pagetop a {
	display: block;text-decoration: none;text-align: center;z-index: 99;
	position: fixed;	/*スクロールに追従しない(固定で表示)為の設定*/
	right: 20px;		/*右からの配置場所指定*/
	bottom: 20px;		/*下からの配置場所指定*/
	color: #fff;		/*文字色*/
	font-size: 1.5rem;	/*文字サイズ*/
	background: rgba(0,0,0,0.2);	/*背景色。0,0,0は黒の事で0.2は色が20%出た状態。*/
	width: 60px;		/*幅*/
	line-height: 60px;	/*高さ*/
	border-radius: 50%;	/*円形にする*/
}


/*その他
---------------------------------------------------------------------------*/
.clearfix::after {content: "";display: block;clear: both;}
.color-check, .color-check a {color: #fffc00 !important;}
.color1, .color1 a {color: #622534 !important;}
.l {text-align: left !important;}
.c {text-align: center !important;}
.r {text-align: right !important;}
.ws {width: 95%;display: block;}
.wl {width: 95%;display: block;}
.mb0 {margin-bottom: 0px !important;}
.mb30 {margin-bottom: 30px !important;}
.mb5rem {margin-bottom: 5rem !important;}
.look {display: inline-block;padding: 0px 10px;margin: 1px;background: rgba(0,0,0,0.5);border: 1px solid #ccc; border-radius: 3px;word-break: break-all;}
.small {font-size: 0.7em;}
.large {font-size: 1.5em; letter-spacing: 0.1em;}
.pc {display: none;}
.dn {display: none !important;}

	/*画面幅900px以上の追加指定*/
	@media screen and (min-width:900px) {

	.ws {width: 48%;display: inline;}
	.sh {display: none;}
	.pc {display: block;}

	}/*追加指定ここまで*/
	
	
/* === Search box in header === */
header .search-form{
  position:absolute;
  right:20px;
  top:20px;
  display:flex;
  gap:.5rem;
  z-index:150;
}
header .search-form input[type="text"]{
  padding:.5rem .75rem;
  border:1px solid rgba(0,0,0,.2);
  border-radius:6px;
}
header .search-form button {
  padding: .5rem .9rem;
  border: 0;
  border-radius: 6px;
  background: #e6ccff; 
  color: #333;        
  cursor: pointer;
  transition: background 0.3s;
}

header .search-form button:hover {
  background: #d1aaff; 
}

/* 検索結果ページだけ dark-mode が付与される */
body.dark-mode {
  background: #1b1325; 
  color: #ddd;
}

body.dark-mode h2,
body.dark-mode h3 {
  color: #e6ccff; 
}

body.dark-mode a {
  color: #b388ff; 
  text-decoration: none;
}

body.dark-mode a:hover {
  color: #d1aaff; 
  text-shadow: 0 0 5px rgba(209,170,255,0.7); 
}

body.dark-mode .result-post {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.2);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

body.dark-mode header {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: auto;
  padding: 1rem 0;
}
body.dark-mode #logo {
  position: static;
  transform: none;
  width: auto;
}

.search-page header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0 2rem;
  flex-wrap: wrap;
}

.search-page #logo {
  position: relative;   /* absolute解除 */
  transform: none;      /* 回転解除 */
  width: 22%;           /* ロゴサイズを共通化（20〜25%で好み調整） */
  min-width: 180px;
  max-width: 340px;
  margin: 0;            /* ブラウザ標準の余白を消す */
}
.search-page #logo img {
  width: 100%;
  height: auto;
  display: block;
}
.search-page .search-form {
  position: absolute;
  right: 20px;
  top: 20px;
  display: flex;
  gap: .5rem;
  margin: 0;
}

/* スマホ幅では縦積みに */
@media (max-width: 600px) {
  .search-page header {
    flex-direction: column;
    align-items: center;
    gap: .75rem;
  }
  .search-page .search-form {
    width: 100%;
    justify-content: center;
  }
  .search-page .search-form input[type="text"] {
    flex: 1;
    max-width: 200px; /* 入力欄が広がりすぎないよう制限 */
  }
}

/* === Pager (bottom-right, number only) === */
.pager-badge{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  color: #333;
  font-size: .9rem;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
}
/* パステル寄せ */
.pager-badge{ background: #f7efff; color:#333; border:1px solid rgba(0,0,0,.05); }
/* ダークモード用 */
body.dark-mode .pager-badge{
  background: rgba(16,10,22,.85);
  color: #eaeaea;
  border: 1px solid rgba(255,255,255,.12);
}


/* ===== CONTACT（サイト雰囲気合わせ） ===== */
.contact.dummy { padding: 3rem 2rem 4rem; }
.contact.dummy .contact-form { max-width: 860px; margin: 0 auto; }

/* 半透明カード＋柔らかい影：サイトのパステルトーンに調和 */
.contact.dummy .contact-card{
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
  backdrop-filter: blur(6px);
}

/* 2カラム→スマホ1カラム */
.contact.dummy .field{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: .75rem 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.contact.dummy .field > span{
  font-size: .95rem;
  opacity: .9;
}

/* 入力欄：白ベース＋淡い枠、フォーカスでラベンダーに発光 */
.contact.dummy input[type="text"],
.contact.dummy textarea{
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.95);
  color: #333;
  outline: none;
  transition: box-shadow .2s, border-color .2s, background .2s;
}
.contact.dummy textarea{ resize: vertical; min-height: 160px; }
.contact.dummy input[type="text"]:focus,
.contact.dummy textarea:focus{
  border-color: #cdb3ff;
  box-shadow: 0 0 0 4px rgba(230,204,255,.35);
  background: #fff;
}

/* ボタン：ラベンダー系で統一 */
.contact.dummy .actions{
  display: flex;
  justify-content: space-between; /* 左右に分ける */
  align-items: flex-end;
  margin-top: 1rem;
}
.contact.dummy .btn-pastel{
  padding: .7rem 1.2rem;
  border: 0;
  border-radius: 10px;
  background: #e6ccff;
  color: #333;
  cursor: default;           /* ダミーっぽさを出す */
  opacity: .95;
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
  transition: background .2s, transform .06s;
  margin-left: auto;
}
.contact.dummy .btn-pastel:hover{ background: #d1aaff; }
.contact.dummy .btn-pastel:active{ transform: translateY(1px); }
.contact.dummy .note{
  font-size: .9rem;
  opacity: .85;
  margin: 0; /* 余白リセット */
}

/* ダーク（検索結果UIなど） */
body.dark-mode .contact.dummy .contact-card{
  background: rgba(16,10,22,.55);
  border-color: rgba(255,255,255,.15);
}
body.dark-mode .contact.dummy input[type="text"],
body.dark-mode .contact.dummy textarea{
  background: rgba(255,255,255,.08);
  color: #eaeaea;
  border-color: rgba(255,255,255,.25);
}
body.dark-mode .contact.dummy input[type="text"]:focus,
body.dark-mode .contact.dummy textarea:focus{
  border-color: #9e7dd6;
  box-shadow: 0 0 0 4px rgba(158,125,214,.28);
}
body.dark-mode .contact.dummy .btn-pastel{ background:#4d3d66; color:#fff; }
body.dark-mode .contact.dummy .btn-pastel:hover{ background:#6a558f; }

/* スマホ調整 */
@media (max-width: 700px){
  .contact.dummy .field{ grid-template-columns: 1fr; }
}

/* ===== 霊域探査室 諜報ポップアップ・スキン ===== */
.intel-toast.reiki{
  --bg:#0b0d10; --bg-deep:#07090c; --line:#12151b;
  --red:#ff2a2a; --red-dim:#d12525; --ink:#e6e6e6;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  position: fixed; top: 16px; right: 16px; z-index: 9999;
  width: min(420px, 92vw);
  padding: 0; border-radius: 12px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  border: 1px solid rgba(255,0,0,.35);
  box-shadow: 0 12px 28px rgba(0,0,0,.55), 0 0 18px rgba(255,0,0,.08) inset;
  color: var(--ink);
  font-family: var(--mono);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .28s ease, transform .28s ease;
  overflow: hidden;
}
.intel-toast.reiki.show{ opacity:1; transform: translateY(0); }

/* 赤いヘッダ帯（端末ラベル） */
.intel-toast.reiki .intel-head{
  display:flex; align-items:center; gap:.6rem;
  padding:.55rem .85rem;
  background: linear-gradient(180deg, rgba(255,32,32,.12), rgba(255,32,32,.04));
  border-bottom: 1px solid rgba(255,0,0,.35);
}
.intel-toast.reiki .intel-head .dot{
  width:10px; height:10px; border-radius:50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red), 0 0 24px rgba(255,0,0,.5);
  display:inline-block;
  animation: blink 1.2s infinite;
}
@keyframes blink{ 0%,60%,100%{opacity:1} 40%{opacity:.15} }
.intel-toast.reiki .intel-head .label{
  font-size:.82rem; letter-spacing:.06em; color:#ff9a9a;
}
.intel-toast.reiki .intel-head .state{
  margin-left:auto; padding:.1rem .5rem; font-size:.78rem; letter-spacing:.1em;
  color:#fff; background: var(--red-dim); border:1px solid rgba(0,0,0,.4); border-radius:4px;
  text-shadow: 0 0 6px rgba(255,0,0,.65);
}

/* 本文領域 */
.intel-toast.reiki .intel-main{ padding: .95rem .95rem 1rem; }
.intel-toast.reiki .intel-title{
  font-weight:700; color:#ffd6d6; letter-spacing:.04em; margin-bottom:.35rem;
}
.intel-toast.reiki .intel-body{
  font-size:.95rem; color:#ddd; opacity:.95; line-height:1.75; margin-bottom:.55rem;
}

/* リンク（端末ボタン風） */
.intel-toast.reiki .intel-link{
  display:inline-block;
  padding:.45rem .65rem .4rem; border-radius:6px;
  color:#ffe6e6; text-decoration:none;
  background: linear-gradient(180deg, rgba(255,0,0,.22), rgba(255,0,0,.08));
  border:1px solid rgba(255,0,0,.45);
  box-shadow: 0 2px 0 rgba(0,0,0,.5);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.intel-toast.reiki .intel-link:hover{
  transform: translateY(-1px);
  filter: drop-shadow(0 0 10px rgba(255,0,0,.35));
}

/* 閉じる */
.intel-toast.reiki .intel-close{
  position:absolute; top:6px; right:8px;
  background:transparent; border:0; color:#bbb; font-size:1.1rem; cursor:pointer;
}
.intel-toast.reiki .intel-close:hover{ color:#fff; }

/* 角カッコ（端末フレーム感） */
.intel-toast.reiki .intel-brackets{
  position:absolute; width:18px; height:18px; border-color: rgba(255,0,0,.5); pointer-events:none;
}
.intel-toast.reiki .intel-brackets.tl{ left:6px; top:6px; border-left:2px solid; border-top:2px solid; }
.intel-toast.reiki .intel-brackets.tr{ right:6px; top:6px; border-right:2px solid; border-top:2px solid; }
.intel-toast.reiki .intel-brackets.bl{ left:6px; bottom:6px; border-left:2px solid; border-bottom:2px solid; }
.intel-toast.reiki .intel-brackets.br{ right:6px; bottom:6px; border-right:2px solid; border-bottom:2px solid; }

/* 走査線っぽい薄いノイズ */
.intel-toast.reiki .intel-scan{
  position:absolute; inset:0; pointer-events:none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.03) 0px,
      rgba(255,255,255,.03) 1px,
      transparent 2px,
      transparent 4px
    );
  mix-blend-mode: overlay;
  opacity:.35;
}
@media (max-width: 600px){
  .intel-toast.reiki{ right:12px; left:12px; width:auto; }
}

/* ===== 最小化モード（折りたたみ） ===== */
.intel-toast.reiki.min{
  width: auto;
  padding: .25rem .35rem;
  background: rgba(11,13,16,.88);
  border-radius: 999px;
  border-color: rgba(255,0,0,.35);
  box-shadow: 0 6px 16px rgba(0,0,0,.45), 0 0 12px rgba(255,0,0,.08) inset;
}

/* 最小化時は本体を隠す＆ドックを見せる */
.intel-toast.reiki .intel-dock{ display: none; }
.intel-toast.reiki.min .intel-dock{
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .55rem; border-radius: 999px;
  font-family: var(--mono);
  color: #ffe6e6; background: linear-gradient(180deg, rgba(255,0,0,.22), rgba(255,0,0,.08));
  border: 1px solid rgba(255,0,0,.45);
  box-shadow: 0 2px 0 rgba(0,0,0,.5);
  cursor: pointer;
}
.intel-toast.reiki.min .intel-dock .txt{ letter-spacing: .08em; font-size: .85rem; }
.intel-toast.reiki.min .intel-dock:hover{ filter: drop-shadow(0 0 10px rgba(255,0,0,.35)); }

/* 最小化時に非表示にする要素 */
.intel-toast.reiki.min .intel-head,
.intel-toast.reiki.min .intel-main,
.intel-toast.reiki.min .intel-close,
.intel-toast.reiki.min .intel-brackets,
.intel-toast.reiki.min .intel-scan{
  display: none !important;
}
.intel-toast.reiki.min {
  top: 70px; 
}

/* アニメ感を少し気持ちよく */
.intel-toast.reiki,
.intel-toast.reiki *{
  transition: opacity .2s ease, transform .2s ease, filter .2s ease, background .2s ease, box-shadow .2s ease;
}

/* 小画面でも右上にピッタリ寄せる */
@media (max-width: 600px){
  .intel-toast.reiki.min{ right: 10px; left: auto; }
}
  

body:not(.home) header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0 2rem;
}

/* 画像でもSVGでも親幅にフィットさせる＋サイズは 180–340px の範囲で固定 */
body:not(.home) header #logo {
  width: clamp(180px, 22vw, 340px) !important;
  min-width: 180px !important;
  max-width: 340px !important;
  margin: 0 !important;
  position: relative !important;
  transform: none !important;
}
body:not(.home) header #logo img,
body:not(.home) header #logo svg {
  width: 100% !important;
  height: auto !important;
  display: block;
}