/*
Theme Name: SiteHub Theme Seed
Theme URI: https://www.sitehub.jp/
Author: AnyField Inc.
Author URI: https://www.anyfield.co.jp/
Description: AIを活用した「建売型」Webサイト生成を目的とした軽量WordPressテーマ。シンプルで拡張性が高く、業種別テンプレートの自動生成にも対応します。
Version: 1.0.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sitehub-theme-seed
Domain Path: /languages
Tags: blog, custom-logo, custom-menu, featured-images, one-column, two-columns, right-sidebar, left-sidebar, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you’ve learned with others.
*/


/* ================================
	アクセシビリティ対応
================================ */
.screen-reader-text {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}


/* --------------------------------------------------
	style.css - SiteHub Theme Seed
	-------------------------------------------------- */

/* 全体リセット */
html, body {
	margin: 0;
	padding: 0;
	font-family: 'Yu Gothic', '游ゴシック', 'Segoe UI', sans-serif;
}

/* =============================
	ヘッダー
	============================= */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	z-index: 999;
	/*background: #fff;*/
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	align-items: center !important;
	box-sizing: border-box;
	display: flex !important;
  	justify-content: space-between !important;
  	height: auto !important;
  	padding: 20px 30px !important;
	}

.logo-area {
	flex-shrink: 0;
}

.main-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
}

ul.main-menu {
	list-style: none;
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
}

ul.main-menu li a {
	color: #000;
	text-decoration: none;
	position: relative;
}

ul.main-menu li a::after {
	content: "";
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #000;
	transition: width 0.3s;
}

ul.main-menu li a:hover::after {
	width: 100%;
}

/* バーガーメニュー */
.nav-toggle {
	display: none;
	flex-direction: column;
	cursor: pointer;
}

.nav-toggle span {
	height: 3px;
	background: #000;
	margin: 4px 0;
	width: 25px;
	display: block;
	transition: all 0.3s;
}

.nav-toggle.open span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
	opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================
   ヒーローセクション（オーバーレイなし）
============================= */
.hero-slider {
  width: 100vw;
  height: 400px;
  overflow: hidden;
  position: relative;
  display: block;
  margin: 0 auto;
  padding: 0;
  margin-top: 80px;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

/* ✅ テキスト部分（シンプル配置） */
.overlay {
  position: absolute;
  width: 100%;
  text-align: center;
  color: #fff;
  z-index: 10;
  padding: 0 20px;
}

.overlay h1,
.overlay p {
  margin: 0;
  word-break: break-word;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); /* 背景によって見えづらい場合に対応 */
}

.overlay h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.overlay p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* ✅ キャッチコピー位置調整 */
.position-top {
  top: 60px;
  position: absolute;
  left: 0;
  right: 0;
}

.position-center {
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  left: 0;
  right: 0;
}

.position-bottom {
  bottom: 60px;
  position: absolute;
  left: 0;
  right: 0;
}

/* =============================
   レスポンシブ対応
============================= */
@media screen and (max-width: 1024px) {
  .hero-slider {
    height: 350px;
  }
  .overlay h1 {
    font-size: 2rem;
  }
  .overlay p {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 768px) {
  .hero-slider {
    height: 280px;
  }
  .overlay h1 {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }
  .overlay p {
    font-size: 1rem;
  }
}


/* =============================
	フッター
	============================= */
footer {
	width: 100vw;
	background-color: var(--footer-bg-color, #007acc);
	color: var(--footer-text-color, #fff);
	text-align: center;
	padding: 20px 0;
}

footer nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	padding: 0;
	margin: 0;
}

footer nav ul li {
	margin: 0 15px;
}

footer nav ul li a {
	color: #fff;
	text-decoration: none;
}

footer nav ul li a:hover {
	text-decoration: underline;
}

/* =============================
	レスポンシブ対応
	============================= */
@media (max-width: 768px) {
	.nav-toggle {
	display: flex;
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 1100;
	}

	ul.main-menu {
	display: none;
	position: absolute;
	top: 70px;
	right: 10px;
	width: 80vw;
	background: #fff;
	flex-direction: column;
	padding: 0;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.2);
	z-index: 1000;
	}

	ul.main-menu.active {
	display: flex;
	}

	ul.main-menu::before {
	content: "MENU";
	padding: 12px;
	font-weight: bold;
	background: #000;
	color: #fff;
	}

	ul.main-menu li {
	border-top: 1px solid #ddd;
	}

	ul.main-menu li a {
	padding: 12px 16px;
	color: #333;
	}

	ul.main-menu li a::after {
	display: none !important;
	}

	.hero-slider {
	height: 400px;
	}

	.overlay {
	padding: 0 20px;
	}

	.overlay p {
	font-size: 14px;
	}
}
/* ヒーローキャッチコピー配置（Top / Center / Bottom） */
.overlay.position-top,
.overlay.position-center,
.overlay.position-bottom {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	padding: 0 20px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.overlay.position-top {
	top: 40px;
	transform: translate(-50%, 0); /* Y方向のズレをなくす */
}

.overlay.position-center {
	top: 50%;
	transform: translate(-50%, -50%);
}

.overlay.position-bottom {
	bottom: 40px;
	transform: translate(-50%, 0);
}

/* 中のテキスト */
.overlay h1,
.overlay p {
	margin: 0;
	word-break: break-word;
	line-height: 1.4;
}

/* スマホ対応 */
@media (max-width: 768px) {
	.overlay h1 {
	font-size: 18px;
	}
	.overlay p {
	font-size: 14px;
	}
}

/* モバイルバーガーメニュー全高化 */
@media (max-width: 768px) {
	ul.main-menu {
	display: none;
	flex-direction: column;
	position: absolute;
	top: 70px;
	left: 0;
	width: 100vw;
	height: 100vh; /* 全画面の高さに拡張 */
	background: #fff;
	z-index: 1000;
	padding: 0;
	margin: 0;
	overflow-y: auto;
	}

	ul.main-menu.active {
	display: flex;
	}

	ul.main-menu::before {
	content: "MENU";
	background-color: #000;
	color: #fff;
	padding: 16px;
	font-weight: bold;
	font-size: 16px;
	}

	ul.main-menu li {
	border-top: 1px solid #ddd;
	}

	ul.main-menu li a {
	display: block;
	padding: 18px 24px;
	font-size: 18px;
	color: #333;
	}

	ul.main-menu li a:hover {
	background-color: #f0f0f0;
	}
}

.page-featured-header {
	width: 100%;
	height: 300px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	margin-bottom: 40px;
}

.page-featured-overlay {
	background-color: rgba(0, 0, 0, 0.4);
	height: 77%;
	display: flex;
	justify-content: center;
	align-items: flex-end; /* ←中央から下へ */
	padding-bottom: 70px;  /* ←下に余白を追加して押し下げる */
}

.page-featured-title {
	color: #fff;
	font-size: 32px;
	font-weight: bold;
	text-align: center;
}


.burger-menu-toggle {
	display: none; /* PCでは非表示 */
	flex-direction: column;
	justify-content: space-between;
	width: 30px;
	height: 25px;
	cursor: pointer;
	z-index: 1001;
}

.burger-menu-toggle span {
	display: block;
	height: 3px;
	background: #000;
	margin: 4px 0;
	transition: all 0.3s ease; /* アニメーション追加 */
}

/* 三本線 → × に変形 */
.burger-menu-toggle.active span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}
.burger-menu-toggle.active span:nth-child(2) {
	opacity: 0;
}
.burger-menu-toggle.active span:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

.burger-menu-overlay {
	display: none;
	position: fixed;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	background: #fff;
	z-index: 1000;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	transition: all 0.3s ease;
}

/* 表示時 */
.burger-menu-overlay.active {
	display: flex;
}

.burger-menu {
	text-align: center;
}

.burger-nav {
	list-style: none;
	padding: 0;
	margin: 0;
}

.burger-nav li {
	margin: 20px 0;
	font-size: 18px;
	position: relative;
}

.burger-nav li::before,
.burger-nav li::after {
	content: '';
	display: inline-block;
	width: 40px;
	height: 1px;
	background: #000;
	vertical-align: middle;
	margin: 0 10px;
}

.burger-close {
	background: #002E5D;
	color: white;
	font-size: 24px;
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	margin-top: 40px;
	cursor: pointer;
}

/* モバイル表示用 */
@media (max-width: 768px) {
	.burger-menu-toggle {
	display: flex;
	}
	.main-nav {
	display: none;
	}
}


/* 高さ・余白を調整するためのカスタムクラス */
.custom-padding {
	padding-top: 60px;
	padding-bottom: 60px;
}

.custom-margin {
	margin-top: 40px;
	margin-bottom: 40px;
}

.header-message {
	font-size: 16px;
	font-weight: bold;
	color: #333;
	margin-top: 10px;
}

.wp-block-latest-posts.is-grid li {
	text-align: center;
}

.wp-block-latest-posts.is-grid li .wp-block-latest-posts__post-title {
	margin: 10px 0;
}

.wp-block-latest-posts__post-excerpt {
	text-align: center;
}

/* h1 - 太線＆下線
h1 {
	border-bottom: 3px solid #000;
	padding-bottom: 0.5em;
	color: #000;
}*/

/* h2 - 左右に青ラインを持つ見出し */
h2.decorated {
	display: flex;
	align-items: center;
	gap: 1em;
	font-weight: bold;
	font-size: 1.5rem;
	color: #003366;
	margin: 2em 0;
}

/* 左右ライン */
h2.decorated::before,
h2.decorated::after {
	content: "";
	flex: 1;
	height: 1px;
	background-color: #a0b9d6;
}

/* 左寄せにしたい場合 */
h2.decorated.left {
	justify-content: flex-start;
}

/* 中央揃え（デフォルト） */
h2.decorated.center {
	justify-content: center;
}

/* 右寄せ */
h2.decorated.right {
	justify-content: flex-end;
}

/* スマホ対応 */
@media (max-width: 768px) {
	h2.decorated {
	font-size: 1.2rem;
	gap: 0.6em;
	}
}


/* h3 - 左縦棒（グレー） */
h3 {
	border-left: 6px solid #000000;
	padding-left: 0.8em;
	color: #000;
}
/* h3: 横棒 */
.bar-left {
	border-left: 5px solid #007acc;
	padding-left: 12px;
	font-weight: bold;
	color: #000;
}

/* h4 - 左に黒い三角形風の装飾 */
h4 {
	position: relative;
	padding-left: 1.5em;
	color: #000;
}

h4::before {
	content: "";
	position: absolute;
	top: 0.4em;
	left: 0;
	width: 0;
	height: 0;
	border-top: 12px solid transparent;
	border-bottom: 12px solid transparent;
	border-right: 15px solid #000000;
}
/* h4 - 三角付き・中央寄せ対応 */
h4.triangle-left {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 1.1rem;
	color: #000;
	margin: 1.5em auto;
	padding-left: 1.5em;
	position: relative;
}

/* 三角アイコン */
h4.triangle-left::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-right: 14px solid #000;
}


/* h5 - 下に黒の二重線 */
h5 {
	border-bottom: double 4px #000000;
	padding-bottom: 0.3em;
	color: #000;
}

/* ============================================
   1) 基本コンテンツ幅
   なし = 900px
============================================ */
.wp-block,
.wp-block-post-content,
.wp-block-group:not(.alignwide):not(.alignfull),
.wp-block-cover:not(.alignwide):not(.alignfull),
.wp-block-columns:not(.alignwide):not(.alignfull),
.wp-block-media-text:not(.alignwide):not(.alignfull) {
  max-width: 900px !important;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
  padding-left: 20px;
  padding-right: 20px; /* ← コア！グループ不要で余白が付く */
}

/* ============================================
   2) 幅広 = 1200px
============================================ */
.alignwide {
  max-width: 1200px !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ============================================
   3) 全幅 = 100%（背景など）
============================================ */
.alignfull {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* ============================================
   4) スマホ時の余白（グループ不要）
============================================ */
@media (max-width: 768px) {
  .wp-block,
  .alignwide {
    padding-left: 15px;
    padding-right: 15px;
  }
}


/* メニュー項目のテキストが改行されないようにする */
.site-header nav ul li a {
	white-space: nowrap;   /* 強制的に1行にする */
}


/* ヒーロー画像の下に余白を追加 */
.site-main,
.page-container,
.entry-content {
	padding-top: 60px; /* ←ここを調整（40〜80pxで好みに） */
}

.entry-content {
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}


/* =============================
	全ページ共通の本文余白
	============================= */
/* アーカイブ・カテゴリーページのタイトル部分を固定ページ風に */
.archive-header,
.category-header {
	width: 100%;
	height: 250px; /* 固定ページのヒーローと同じ高さに調整 */
	background-size: cover;
	background-position: center;
	background-color: #333; /* 画像がない場合の背景色 */
	position: relative;
	margin: 0 0 40px 0;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.archive-header h1,
.category-header h1 {
	color: #fff;
	font-size: 32px;
	font-weight: bold;
	margin: 0;
}

.news-item {
	background: #f8f8f8;          /* 薄いグレー */
	border: 1px solid #e0e0e0;    /* 薄めの境界線 */
	border-radius: 6px;
	overflow: hidden;
	transition: all .3s ease;
}

.news-item:hover {
	background: #333;             /* ホバー時ダーク */
	color: #fff;                  /* 白文字に反転 */
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.news-item a {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
	height: 100%;
}

.news-content {
	padding: 16px;
}

.news-content h3 {
	font-size: 1.1rem;
	font-weight: bold;
	margin-bottom: 8px;
	color: #222;
}

.news-content time {
	font-size: 0.85rem;
	color: #666;
	margin-bottom: 10px;
	display: block;
}

.news-item:hover .news-content h3,
.news-item:hover .news-content time,
.news-item:hover .news-content p {
	color: #fff; /* ホバー時は白に統一 */
}


/* 切替ボタン */
.layout-toggle button {
	background: #e0e0e0;       /* 薄いグレー */
	border: none;
	padding: 6px 12px;
	margin-left: 8px;
	cursor: pointer;
	border-radius: 4px;
	color: #333;               /* 濃いグレー文字 */
	transition: background .3s, color .3s;
}

.layout-toggle button:hover {
	background: #bbb;          /* ホバーで濃いめグレー */
	color: #000;
}

.layout-toggle button.active {
	background: #333 !important;          /* アクティブは黒 */
	color: #fff !important;               /* 白文字 */
}

.archive-header {
	text-align: center;
	padding: 30px 20px !important;
	background: #333;    /* 黒背景 */
	color: #fff;         /* 白文字 */
	margin-bottom: 30px;
}

.archive-header h1 {
	margin: 0;
	font-size: 28px;
	font-weight: bold;
	display: inline-block;
}

/* ==========================================
	共通設定：フォントと全体レイアウト
========================================== */
body,
h1, h2, h3, h4, h5, h6,
p, a, li, span, div {
	font-family: "Helvetica", "Arial", sans-serif !important;
}
/*
/* ==========================================
	フッターのデザイン調整
========================================== */
.site-footer {
	background: #222222;
	border-top: 1px solid #444;
	font-size: 17px;
	color: #ffffff;
	border-top: none; /* ← 黒線を削除 */
}

.site-footer .widget__title {
	color: #ffffff;
}

.site-footer a,
.footer-navbar__menu a,
.site-footer .menu a {
	color: #ffffff !important;
}

.site-footer a:hover,
.footer-navbar__menu a:hover,
.site-footer .menu a:hover {
	color: #dddddd !important;
}

.footer-navbar__copyright {
	color: #ffffff;
}

/* ==========================================
	カテゴリーカード（業種アイコン）の画像サイズ
========================================== */
.hp-listing-category__image img {
	width: 150px;
	height: auto;
	display: block;
	margin: 0 auto;
}

/* ==========================================
	一覧カード（おすすめ）のデザイン調整
========================================== */
.hp-listing {
	height: 300px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
}

/* 一覧カード内の画像を制限 */
.hp-grid__item .hp-listing img {
	max-height: 150px;
	object-fit: cover;
}

/* 一覧カード内のテキスト（本文）部分を制限 */
.hp-listing .hp-listing__content {
	max-height: 100px;
	overflow: hidden;
}

/* ==========================================
	詳細ページ（個別ページ）の画像・表示調整
========================================== */

/* 出品者（ベンダー）カードを非表示 */
body.single-hp_listing .hp-vendor {
	display: none;
}

/* サイドバー全体を非表示にしたい場合 */
body.single-hp_listing .hp-listing__sidebar {
	display: none;
}

/* 詳細ページの画像表示領域のスタイル調整 */
body.single-hp_listing .hp-listing {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-height: none !important;
	height: auto !important;
	overflow: hidden !important;
}

/* 詳細ページの画像を大きく＆中央に表示 */
body.single-hp_listing .hp-listing img {
	max-height: 600px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

/* ==========================================
	投稿一覧ページ + サイドバー調整（2025.04.19）
========================================== */

/* サイドバーの幅を調整 */
#secondary {
	width: 20%;
}

/* メインコンテンツの幅を調整 */
#primary {
	width: 78%;
}

/* 投稿一覧を2列表示に */
.posts {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

.posts > article {
	flex: 0 0 48%;
	max-width: 48%;
	box-sizing: border-box;
}

/* モバイル対応（レスポンシブ） */
@media screen and (max-width: 768px) {
	.posts > article {
	flex: 0 0 100%;
	max-width: 100%;
	}

	#secondary {
	width: 100%;
	margin-top: 20px;
	}

	#primary {
	width: 100%;
	}
}

/*リスティン表示非表示*/
*
* button[data-url*="submit-listing"] {
	display: none !important;
}

/*検索文字、黒*/
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
	color: #0108 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	color: #0108 !important;
}

/*3列*/
.hp-listings--grid > .hp-listing {
	width: 32% !important; /* 3列レイアウト（余白込み） */
	margin-right: 2%;
	margin-bottom: 20px;
}

.hp-listings--grid > .hp-listing:nth-child(3n) {
	margin-right: 0; /* 右端の列だけマージンなし */
}

@media (max-width: 768px) {
	.hp-listings--grid > .hp-listing {
	width: 100% !important; /* モバイルは1列 */
	margin-right: 0;
	}
}

/*検索*/
.hp-form--listing-search {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.hp-form--listing-search .hp-form__field {
	flex: 1 1 22%;
	min-width: 180px;
	max-width: 100%;
}

.hp-form--listing-search .hp-form__submit {
	flex: 0 0 auto;
}

/* select2 の入力文字を黒に */
.select2-container--default .select2-search--inline .select2-search__field {
 color: #555 !important;
}

/* 通常の検索入力も黒に */
input[type="search"],
input[type="text"].hp-form__input,
.hp-form__input input {
	color: #000 !important;
}
.page-featured-title,
.single .entry-title {
	position: relative;
	top: 30px; /* 下に30px移動 */
}

/* --- 半角英数字の突き抜け防止 --- */
body {
	word-wrap: break-word;
	overflow-wrap: break-word;
}


/* =========================
	サイト全体の共通設定
========================= */
.site-credit {
	display: none !important;
}

.jumbotron-title {
	color: #ffffff;
	font-size: 20px;
	line-height: 60px;
	text-shadow: 2px 2px 8px #000;
}

.site-content {
	max-width: 1000px;
	margin: 0 auto;
}

.main-header {
	padding: 10px 0 15px;
}

.jumbotron-overlay {
	background-color: rgba(0, 0, 0, 0);
}

.back-to-top {
	border-radius: 0;
}

body {
	color: #000;
	font: 400 18px/1.6 "Helvetica", "Arial", sans-serif;
	word-wrap: break-word;
}
body:lang(ja) {
	font: 500 16px/1.8 "M PLUS Rounded 1c";
}

.widget {
	margin-bottom: 2rem;
}

.footer-widget-area {
	text-align: center;
	border-top: solid 1px #eee;
	padding: 2rem 0;
}

.site-bottom {
	border-top: solid 1px #fafafa;
	padding: 1rem 0;
}

a {
	text-decoration: none;
	color: #0a0808;
}

/* ============================
   ロゴとレイアウトのレスポンシブ調整（統合版）
   ============================ */

/* --- タブレット（iPadなど） --- */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .custom-logo {
    width: 280px !important;
    height: auto !important;
    margin-top: 0 !important;
  }

  .logo-area {
    text-align: left !important;
  }

  .site-header {
    display: flex;
    align-items: center !important;
    justify-content: space-between;
  }
}

/* --- スマホ --- */
@media screen and (max-width: 768px) {
  /* ロゴ */
  header .custom-logo,
  header .site-logo img,
  .site-header img,
  .custom-logo {
    width: 200px !important;
    height: auto !important;
    margin-top: 0 !important;
  }

  .logo-area {
    text-align: left !important;
  }

  .site-header {
    display: flex;
    align-items: center !important;
    justify-content: space-between;
  }

  /* サイドバー（ウィジェットエリア）を本文下に配置 */
  .widget-area,
  .sidebar,
  #secondary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-top: 20px !important;
  }

  /* メインコンテンツの幅と配置 */
  .content-area,
  .site-main,
  .content-sidebar-wrap,
  .site-content,
  .primary,
  #primary {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }

  /* ウィジェット内のテキスト余白 */
  .widget {
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }
}


/* hover時の色変化（グレーに） */
.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover {
	background-color: #333 !important;
}

/* バーガーメニューの閉じるボタン */
.burger-close {
	background-color: #000 !important; /* 背景を黒 */
	color: #fff !important;           /* × を白に */
	border: none;
	padding: 10px ;
	border-radius: 50%;               /* 丸いボタンに */
	font-size: 20px;
	cursor: pointer;
}

/* hover時の色変化 */
.burger-close:hover {
	background-color: #333 !important;
}

/*投稿ページ　ナビゲーション */
.post-navigation {
	display: flex;
	justify-content: space-between;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid #ddd;
}

.post-navigation a {
	color: #007acc;
	text-decoration: none;
	font-weight: bold;
}

.post-navigation a:hover {
	text-decoration: underline;
}

/*-----------------------
ウィジッドのCSS
-------------------------*/

/* サイドバー全体のデザイン
.sidebar {
	background: #fff; /* 背景白 */
	padding: 20px; /* 内側の余白 */
	border: 1px solid #ddd; /* 枠線 */
	border-radius: 4px; /* 角を少し丸く */
	box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* ふわっと影を追加（おしゃれ） */

/* サイドバー内の各ウィジェット間の余白 */
.sidebar .widget {
	margin-bottom: 30px; /* ウィジェット間の間隔 */
	padding-bottom: 20px; /* 各ウィジェットの内側下に余白 */
	border-bottom: 1px solid #eee; /* 区切り線 */
}

/* 最後のウィジェットは下線を消す */
.sidebar .widget:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

/* サイドバーのタイトル（ウィジェットタイトル） */
.sidebar .widgettitle,
.sidebar h2,
.sidebar h3 {
	font-size: 1.2rem;
	font-weight: bold;
	margin-bottom: 15px;
	border-bottom: 2px solid #ddd; /* タイトル下にカラーライン */
	padding-bottom: 5px;
}

/* =========================
	PCでは横並び、スマホでは縦並び
========================= */

/* ラッパー（親要素）設定 */
.content-with-sidebar {
	display: flex;
	gap: 40px;
	max-width: 1200px;
	margin: 40px auto;
	flex-wrap: wrap; /* これでスマホ時の折返しが効く */
}

/* メインコンテンツとサイドバーの基本幅 */
.content-with-sidebar main {
	flex: 3;
	min-width: 0; /* レイアウト崩れ防止 */
}

.content-with-sidebar .sidebar {
	flex: 1;
	min-width: 260px;
}

/* スマホ（768px以下）では縦並びに */
@media (max-width: 768px) {
	.content-with-sidebar {
	flex-direction: column; /* 縦並び */
	gap: 20px; /* スペースを少し小さく */
	}

	.content-with-sidebar main,
	.content-with-sidebar .sidebar {
	width: 100%;
	}

	.content-with-sidebar .sidebar {
	order: 2; /* サイドバーを下に */
	}
}
/* メインコンテンツに左右余白を追加（スマホ・PC両対応） */
.content-with-sidebar main {
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

/* スマホではもう少し狭く */
@media (max-width: 768px) {
	.content-with-sidebar main {
	padding-left: 15px;
	padding-right: 15px;
	}
}

/* 最新の投稿：カードの高さとレイアウトを統一 */
.wp-block-latest-posts.is-grid li {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	width: 30%; /* 横3列の場合。2列にしたい場合は45%など */
	margin: 1.5%;
	box-sizing: border-box;
}

/* サムネイル画像のサイズを統一 */
.wp-block-latest-posts__featured-image img {
	width: 100%;
	height: 200px; /* 高さを統一したい場合 */
	object-fit: cover; /* トリミングして比率を保つ */
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* タイトルや本文部分を自動で高さ揃え */
.wp-block-latest-posts__post-title {
	min-height: 2.8em; /* タイトル2行分確保 */
	margin-top: 10px;
}

.wp-block-latest-posts__post-excerpt {
	min-height: 5em; /* 本文抜粋の高さを一定に */
	overflow: hidden;
}



/* レスポンシブ対応（スマホでは1列） */
@media (max-width: 768px) {
	.wp-block-latest-posts.is-grid li {
	width: 100%;
	margin-bottom: 20px;
	}
}

/* NEWS一覧の投稿同士の間に余白を追加 */
.wp-block-latest-posts__list li {
	margin-bottom: 20px; /* 投稿同士の間隔 */
	padding-bottom: 10px; /* 線と文字の間隔を少し */
	border-bottom: 1px solid #ddd; /* 区切り線（任意） */
}

/* 投稿ページのアイキャッチタイトルを中央配置 */
.single .site-header + div {
	position: relative;
}

/* 背景画像のヒーローエリア */
.single .site-header + div {
	display: flex;
	align-items: center;     /* 縦中央 */
	justify-content: center; /* 横中央 */
	height: 280px;           /* 高さはお好みで調整 */
	background-size: cover;
	background-position: center;
	text-align: center;
	color: #fff;
}

/* タイトル */
.single .site-header + div h1 {
	position: relative;
	z-index: 2;
	margin: 0;
	font-size: 2rem;
	font-weight: bold;
}

/* =========================================
   ✅ 全デバイス共通：横スクロール防止
========================================= */
html, body {
  overflow-x: hidden !important;
  width: 100%;
}

/* =========================================
   ✅ 全体構造の調整（特にモバイル）
========================================= */
@media screen and (max-width: 768px) {
  /* 🧱 全体リセット（全幅表示要素） */
  body,
  .site,
  .site-main,
  .site-content,
  .hero-slider,
  .eyecatch-hero,
  .page-featured-header,
  .slide {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;   /* ← 100vw → 100% に変更！ */
    max-width: 100% !important;
    box-sizing: border-box;
  }
}

/* =========================================
   ✅ アイキャッチ（ヒーロー）サイズ調整
========================================= */

/* PCデフォルト */
.eyecatch-hero,
.page-featured-header {
  height: 200px !important;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* タブレット時（768px以下） */
@media screen and (max-width: 1024px) {
  .eyecatch-hero,
  .page-featured-header {
    height: 200px !important; /* 少し小さく */
    background-position: center top;
  }
}

/* スマホ時（480px以下） */
@media screen and (max-width: 480px) {
  .eyecatch-hero,
  .page-featured-header {
    height: 170px !important; /* さらに小さく */
    background-position: center top;
  }

  /* タイトル文字も調整 */
  .hero-title,
  .page-featured-title {
    font-size: 1.4rem;
    margin-bottom: 40px !important; /* 少し上に寄せる */
  }
}

@media screen and (max-width: 480px) {
  .hero-title, .page-featured-title {
    margin-bottom: 65px !important;
  }
}



	/* 🧱 本文・フォーム・ニュース・サイドバーなどに余白 */
	.entry-content,
	.page-content,
	.single .entry-content,
	.page .entry-content,
	.content-with-sidebar main,
	.sidebar,
	.wpcf7,
	.wp-block-latest-posts__list,
	.contact-form {
	padding-left: 16px !important;
	padding-right: 16px !important;
	box-sizing: border-box;
	}

	/* 🧱 Contact Form 7内の各項目 */
	.wpcf7-form {
	padding-left: 0 !important;
	padding-right: 0 !important;
	}

/* ================================
   上に戻るボタン（Back to Top）
================================ */
.back-to-top {
	position: fixed;
	flex-direction: column; /* ← アイコンの下に文字を配置 */
	bottom: 40px;
	right: 30px;
	width: 45px;
	height: 45px;
	background-color: var(--backtotop-bg-color, #007acc); /* ✅ カスタマイザー対応 */
	color: var(--backtotop-text-color, #fff);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 9999; /* ✅ フッターより上に固定 */
	overflow: hidden;
	box-sizing: border-box;
	cursor: pointer;
}

/* ✅ 表示状態 */
.back-to-top.show {
	opacity: 1;
	visibility: visible;
	margin-bottom: 3px; /* ← アイコンと文字の間隔 */
}

.back-to-top-text {
  font-size: 12px;
  line-height: 1;
  color: inherit; /* ← カスタマイザーで指定した色を継承 */
}

.back-to-top {
  width: 60px;
  height: 60px;
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.back-to-top i {
  font-size: 20px;
  margin-bottom: 4px;
}
.back-to-top-text {
  font-size: 13px;
  font-weight: 600;
}


/* ✅ ホバー時の色変化 */
.back-to-top:hover {
	background-color: color-mix(in srgb, var(--backtotop-bg-color, #007acc) 85%, white 15%);
	color: var(--backtotop-text-color, #fff);
	transform: translateY(-3px); /* 少し浮くアニメーション */
}

/* ✅ スマホ用調整（はみ出し防止） */
@media screen and (max-width: 768px) {
	.back-to-top {
		bottom: 20px;
		right: 15px;
		width: 40px;
		height: 40px;
		font-size: 20px;
	}
}

/* WordPress標準推奨クラス */
.wp-caption { max-width: 100%; text-align: center; margin: 10px 0; }
.wp-caption-text { font-size: 0.9em; color: #666; }
.sticky { background: #f9f9f9; }
.gallery-caption { font-style: italic; }
.bypostauthor { font-weight: bold; }
.alignright { float: right; margin: 0 0 1em 1em; }
.alignleft { float: left; margin: 0 1em 1em 0; }
.aligncenter { display: block; margin: 0 auto; }

/* ✅ 青い線（タグ下など）の余分な線・背景を消す */
.entry-footer {
	border: none !important;
	background: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* ✅ コメントエリア直前の線が残っている場合に消す */
.comment-area-container {
	border-top: none !important;
	background: none !important;
}

/* ✅ Gutenbergボタンを公開画面でも同じ見た目に調整 */
.wp-block-button {
	text-align: center; /* ボタン全体を中央寄せ */
	margin: 30px auto;
}

.wp-block-button__link {
	background-color: #009fda;
	color: #fff;
	padding: 12px 28px;
	border-radius: 6px;
	text-decoration: none;
	font-size: 1rem;
	display: inline-block;
}

.wp-block-button__link:hover {
	background-color: #007bb5;
	color: #fff;
}

/* ✅ ボタンを複数並べた場合の中央寄せ対策 */
.wp-block-buttons {
	justify-content: center !important;
	display: flex !important;
}

/* Portfolioページではサイドバーを完全非表示 */
.single-portfolio #secondary,
.single-portfolio .widget-area,
.single-portfolio .sidebar {
	display: none !important;
}

.single-portfolio .content-area {
	width: 100% !important;
	max-width: 100% !important;
}

/* =============================
   Gutenberg ブロック幅制御
============================= */

/* 全幅ブロック */
.alignfull {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* ============================
   SNSリンク（フッター用）
============================ */
.footer-sns-links {
	text-align: center;
	margin: 20px 0;
}

.footer-sns-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	gap: 15px;
}

.footer-sns-links li a {
	text-decoration: none;
	color: #fff;
	font-weight: bold;
	font-size: 14px;
	transition: opacity 0.3s ease;
}

.footer-sns-links li a:hover {
	opacity: 0.7;
}

/* アイコンカラー（後でFontAwesome導入も可） */
.sns-twitter { color: #1DA1F2; }
.sns-facebook { color: #1877F2; }
.sns-instagram { color: #E4405F; }
.sns-youtube { color: #FF0000; }
.sns-linkedin { color: #0077B5; }

/* ===============================
   SNSアイコン（フッター）
=============================== */
.sns-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  list-style: none;
  padding: 10px 0;
  margin: 10px 0;
}

.sns-icons li {
  display: inline-block;
}

.sns-icons a {
  color: #fff;
  font-size: 20px;
  transition: 0.3s ease;
}

.sns-icons a:hover {
  color: #ccc;
}

.footer-menu {
  margin-bottom: 10px;
  text-align: center;
}

.footer-credit {
  text-align: center;
  margin-top: 5px;
  font-size: 14px;
  color: #fff;
}

/* ==============================
   ヘッダーメニュー（初期状態修正）
============================== */
.main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.main-menu {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu a {
  color: #000;
  text-decoration: none;
  transition: 0.3s;
}

.main-menu a:hover {
  opacity: 0.7;
}

/* ==============================
   ハンバーガーメニュー（共通設定）
============================== */

/* 親要素の制約解除 */
header,
.site-header,
.logo-area {
  overflow: visible !important;
  position: relative !important;
  z-index: 10 !important;
}

/* ハンバーガーアイコン（3本線ボタン） */
.burger-menu-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 28px;
  height: 20px; /* ← 高さを固定して間隔を均等化 */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* ← 均等配置！ */
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  z-index: 9999;
  cursor: pointer;
}


/* 三本線の描画 */
.burger-menu-toggle span {
  all: unset !important; /* ← Font Awesomeの影響を完全リセット */
  display: block !important;
  width: 28px !important;
  height: 3px !important;
  background-color: #000 !important;
  border-radius: 2px;
}

/* 開閉時アニメーション */
.burger-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.burger-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ==============================
   スマホ用メニュー
============================== */
@media (max-width: 768px) {
  /* ハンバーガー表示 */
  .burger-menu-toggle {
    display: flex !important;
  }

  /* 通常ナビ非表示 */
  .main-nav {
    display: none;
  }

  /* オーバーレイ背景 */
  .burger-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    justify-content: center;
    align-items: center;
  }

  .burger-menu-overlay.active {
    display: flex;
  }

  /* オーバーレイ内ナビゲーション */
  .burger-nav {
    list-style: none;
    text-align: center;
  }

  .burger-nav li {
    margin: 15px 0;
  }

  .burger-nav a {
    color: #fff;
    font-size: 22px;
    text-decoration: none;
  }
}

/* ==============================
   PC時（非表示設定）
============================== */
@media (min-width: 769px) {
  .burger-menu-toggle {
    display: none !important;
  }
}

/* ==============================
   ハンバーガーアイコンをヒーロー画像より上に表示
============================== */
.burger-menu-toggle {
  position: absolute !important;
  top: 25px !important;
  right: 25px !important;
  z-index: 99999 !important; /* ← 一気に最前面 */
}

button, span, i, svg {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f0c9";
}

.burger-menu-overlay {
  background: rgba(0, 90, 180, 0.95);
}

.burger-menu-toggle span {
  background-color: <?php echo get_theme_mod('burger_icon_color', '#333333'); ?>;
}

/* ==============================
   Back to Top ボタン（完全版）
============================== */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  width: 48px;
  height: 48px;
  color: #fff;
  font-size: 22px;
  text-align: center;
  line-height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  opacity: 1;
}

.back-to-top-text {
  color: inherit !important;
}

/* Font Awesome ローカル対応 */
.back-to-top i {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal;
}

/* ===== Back to Top ===== */
.back-to-top {
  background-color: <?php echo esc_attr( get_theme_mod('backtotop_bg_color', '#007acc') ); ?> !important;
  color: #ffffff !important; /* ← 固定（白） */
}
.back-to-top:hover {
  background-color: <?php echo esc_attr( get_theme_mod('backtotop_hover_bg_color', '#005fa3') ); ?> !important;
  color: #ffffff !important; /* ← 固定（白） */
}

.back-to-top-text {
  color: inherit !important;
}

/* ================================
   Layout Reset for Header & Hero
================================= */
.site-header {
  margin-bottom: 0;
  padding-bottom: 0;
}

.hero-slider {
  margin-top: 0;
  padding-top: 0;
}

body > *:first-child {
  margin-top: 0;
}

/* Recent Comments の青い背景を非表示にする */
.widget_recent_comments,
.wp-block-latest-comments {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* コメントリスト自体も背景を透明化 */
.wp-block-latest-comments__comment,
.wp-block-latest-comments__comment-meta {
  background: transparent !important;
}

/* ==========================
   ヒーロータイトル中央寄せ（全デバイス対応）
   ========================== */
.hero-section,
.evetach-hero, /* heroセクションのクラス名がこれかも？ */
.page-featured-header {
  display: flex;
  align-items: center;        /* 垂直中央揃え */
  justify-content: center;    /* 水平中央揃え */
  text-align: center;
  color: #fff;
  height: 280px;              /* PC用の高さ */
  position: relative;
  background-size: cover;
  background-position: center;
}

/* --- タブレット --- */
@media screen and (max-width: 1024px) {
  .hero-section,
  .evetach-hero,
  .page-featured-header {
    height: auto !important;      /* 固定高さ解除 */
    padding: 80px 20px !important; /* 文字の余白を確保 */
    min-height: 200px;            /* 文字が少ないときもバランス保持 */
  }
}

/* --- スマホ --- */
@media screen and (max-width: 768px) {
  .hero-section,
  .evetach-hero,
  .page-featured-header {
    height: auto !important;
    padding: 60px 15px !important;
    min-height: 180px;
    text-align: center;
  }
  /* --- スマホ：ヒーロータイトル調整 --- */
.hero-title {
  font-size: clamp(1rem, 4vw, 1.3rem) !important; /* ← デバイス幅に応じて自動調整 */
  line-height: 1.4 !important;
  word-break: keep-all;
  overflow-wrap: break-word;      /* ← 長い単語を自然に改行 */
  text-align: center;
  max-width: 90%;                 /* ← 画面幅から少し余裕を持たせる */
  margin: 0 auto;                 /* ← 中央寄せ */
  display: inline-block;
  white-space: normal !important; /* ← 強制的に1行固定を解除 */
}

  .hero-title {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    word-break: keep-all; /* 長い文字を自然に改行 */
  }
}

/* キャッチコピー（ロゴ下）のデザイン調整 */
.site-description {
  margin-top: 0px;
  font-size: 14px;
  color: #555;
  text-align: left; /* ← 左揃え、中央にしたい場合は center */
}

/* スマホ時は少し小さく */
@media screen and (max-width: 768px) {
  .site-description {
    font-size: 9px;
    text-align: left;
  }
}

@media screen and (max-width: 768px) {
  .site-header {
    padding: 8px 0 !important;
  }
}

@media screen and (max-width: 768px) {
  .site-header {
    padding: 8px 10px !important; /* 上下8px・左右15px */
  }
}

/* ===============================
   基本幅（なし = 900px）
=============================== */
body .wp-site-blocks,
body .is-layout-constrained > *:not(.alignwide):not(.alignfull),
body main.site-main > *:not(.alignwide):not(.alignfull),
body .wp-block:not(.alignwide):not(.alignfull) {
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

/* ===============================
   幅広 = 1200px
=============================== */
.alignwide,
body main.site-main.alignwide > * {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px;
  padding-right: 20px;
}

/* ===============================
   全幅 = 100%
=============================== */
.alignfull {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ===============================
   スマホ余白
=============================== */
@media (max-width: 768px) {
  body .wp-block,
  body .alignwide,
  body .is-layout-constrained > *:not(.alignfull),
  body main.site-main > * {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}
