/* =========================================
   BLOGページスタイル
   ========================================= */
body.page-template-page-blog {
  background: #fff;
  color: #222;
  font-family: "Noto Sans JP", sans-serif;
}

.index-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 20px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: left;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5em;
  margin-bottom: 2em;
}

/* 投稿一覧全体 */
.posts-wrap {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* サムネイル */
.post-card img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* タイトル・本文側 */
.post-content {
  flex: 1;
}

.post-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5em;
  color: #222;
  transition: color 0.2s ease;
}

.post-title:hover {
  color: #555;
}
.toc {
  background: #f5f5f5;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  border-left: 4px solid #008080;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc a {
  color: #333;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}
.pagination {
  text-align: center;
  margin: 40px 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  border: 1px solid #ddd;
  text-decoration: none;
  border-radius: 4px;
}

.pagination .current {
  background: #00947a;
  color: #fff;
  border-color: #00947a;
}

.wp-block-image {
  position: relative;
  display: inline-block;   /* ← これが超重要 */
}

.wp-block-image img {
  display: block;
}

.wp-block-image figcaption {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 4px 12px;
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  letter-spacing: 0.05em;
  border-radius: 999px;
  z-index: 2;
  text-align: center;
  max-width: 90%;
}

/* --- companyページのタイトル中央寄せ --- */
.page .page-title {
  text-align: center !important;
  display: block;
  width: 100%;
  margin: 60px auto 40px; /* 上下に余白をつけてもOK */
}
.page-title {
  text-align: center !important;
}


/* スマホ対応 */
@media (max-width: 768px) {
  .post-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .post-card img {
    width: 100%;
    height: auto;
  }
}
body.single-post {
  background: #fff;
  color: #222;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
}
/* カード全体をリンクにするための調整 */
.post-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* 各投稿カード */
.post-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  border-bottom: 1px solid #eee;
  padding-bottom: 40px;
}

.post-card:last-child {
  border-bottom: none;
}


/* テキスト部分 */
.post-meta {
  font-size: 0.9em;
  color: #666;
  margin: 10px 0 0 0;
}

.post-title {
  font-size: 1.1em;
  margin: 8px 0;
  color: #333;
}

.post-excerpt {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 10px;
}

/* 矢印装飾 */
.more-btn {
  text-align: right;
  font-size: 1.2em;
  color: #333;
  transition: transform 0.2s ease;
}

.post-card:hover .more-btn {
  transform: translateX(4px);
}
/* 各記事カードの間に線を追加 */
.posts-wrap .post-card-link {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid #ddd; /* ここで線を作る */
}

.posts-wrap .post-card-link:last-child {
  border-bottom: none; /* 最後の記事だけ線を消す */
}

/* コンテンツエリア */
.single-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* 日付・カテゴリ */
.post-meta {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 0.8em;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5em;
}

/* タイトル */
.single-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1em;
  color: #222;
  line-height: 1.4;
}

/* アイキャッチ画像 */
.single-featured {
  margin-bottom: 2em;
}

.single-featured img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 本文 */
.single-body {
  font-size: 1rem;
  color: #333;
}

.single-body p {
  margin-bottom: 1.6em;
}

/* 見出し */
.single-body h2 {
  font-size: 1.4rem;
  margin: 2em 0 1em;
  border-left: 4px solid #000;
  padding-left: 0.5em;
}

.single-body h3 {
  font-size: 1.2rem;
  margin: 1.5em 0 0.5em;
}

/* 戻るボタン */
.back-btn {
  display: inline-block;
  margin-top: 3em;
  font-size: 0.9rem;
  text-decoration: none;
  color: #000;
  border-bottom: 1px solid #000;
  padding-bottom: 2px;
  transition: all 0.2s ease;
}
.single-post {
  text-align: center;
}

.back-btn:hover {
  color: #555;
  border-color: #555;
}
/* 全体レイアウト */
.single-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2em;
}

/* メイン部分を広めに */
.single-main {
  flex: 1;
  min-width: 0;
}

/* サイドバー部分 */
.single-sidebar {
  width: 300px;
  position: sticky;
  top: 100px; /* ヘッダー高さに合わせて調整 */
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.55); 
  backdrop-filter: blur(10px); 
}

/* サイドバー内部の調整 */
.sidebar-list {
  margin-bottom: 0.5em;
}


.new-label {
  display: block;
  font-weight: bold;
  font-size: 0.9em;
  margin-bottom: 0.3em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-title {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 0.8em;
}

/* =========================================
   single.php用2カラムレイアウト
   ========================================= */
.single-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.single-main {
  width: 70%;
  line-height: 1.8;
}

.single-sidebar {
  width: 25%;
}

.post-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1em;
}

.single-featured img {
  width: 100%;
  height: auto;
  margin-bottom: 2em;
}

.sidebar-title {
  font-size: 1.1rem;
  margin-bottom: 1em;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.4em;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em; !important;
}

.sidebar-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.sidebar-list img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 4px;
}

.sidebar-list p {
  font-size: 0.9rem;
  margin: 0;
  color: #333;
}

.sidebar-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sidebar-list a:hover p {
  color: #666;
}

/* スマホ対応 */
@media (max-width: 900px) {
  .single-layout {
    flex-direction: column;
  }
  .single-main, .single-sidebar {
    width: 100%;
  }
  .single-sidebar {
    margin-top: 60px;
  }
}
 .sidebar-title + .sidebar-list {
  margin-bottom: 3em; 
}
/* Contact Form 7 全体を中央に */
.wpcf7 {
  max-width: 600px ;
  margin: 0 auto ;
  padding: 2rem 1rem ;
}

/* 入力欄全体の中央揃え */
.wpcf7-form {
  text-align: center ;
}

/* 各フィールド（input、textarea）中央表示 */
.wpcf7-form input,
.wpcf7-form textarea {
  width: 100% ;
  max-width: 100% ;
  padding: 10px ;
  margin-bottom: 1rem ;
  box-sizing: border-box ;
  border: 1px solid #d8d8d8 ;
  border-radius: 4px ;
}

/* プレースホルダー文字色 */
.wpcf7-form ::placeholder {
  color: #797979 ;
}

/* 必須・任意ラベル */
.CF7_req,
.CF7_unreq {
  font-size: 0.9em ;
  padding: 5px ;
  color: #fff ;
  border-radius: 3px ;
  margin-right: 1em ;
}
.CF7_req {
  background: #7ebcbc ;
}
.CF7_unreq {
  background: #bdbdbd ;
}

/* 送信ボタン */
.wpcf7-form .wpcf7-submit {
  background-color: #7ebcbc ;
  color: #fff ;
  border: none ;
  padding: 10px 30px ;
  font-size: 1.1em ;
  font-weight: bold ;
  cursor: pointer ;
  border-radius: 5px ;
  margin-top: 1em ;
}

/* スピナー非表示 */
.wpcf7-spinner {
  display: none ;
}

/* =========================================================
 *  共通スタイル
 * ========================================================= */
/* ヘッダー用 */
.header-sns {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.header-sns a img {
  vertical-align: middle;
  width: 24px;
  height: 24px;
  transition: opacity 0.3s ease;
}
.header-sns a:hover img {
  opacity: 0.7;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  text-align: center;
}
.main-nav {
  width: 100%;
  text-align: right;
  margin-bottom: 10px;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 2rem;
  justify-content: flex-end;
  align-items: center;
}
.nav-list a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  transition: color 0.3s ease;
}
.nav-list a:hover {
  color: #7ebcbc;
}
.nav-list .current-menu-item a {
  color: #7ebcbc;
  border-bottom: 2px solid #7ebcbc;
  padding-bottom: 4px;
}
.nav-list .sns-icon img {
  width: 24px;
  height: 24px;
  transition: opacity 0.3s ease;
}
.nav-list .sns-icon img:hover {
  opacity: 0.7;
}

/* トップページ投稿一覧（.latest-posts） */
.latest-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 自動で3列〜2列対応 */
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0;
  list-style: none;
  justify-content: center;
  align-items: start;
}

/* 投稿カード */
.latest-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.latest-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* サムネイル画像 */
.latest-item .thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* タイトル・テキスト */
.latest-item .title {
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  margin: 0.8rem 0;
  line-height: 1.4;
}
.latest-item .title a {
  color: #333;
  text-decoration: none;
}
.latest-item .title a:hover {
  color: #00947a;
}

/* 日付・抜粋 */
.latest-item .meta,
.latest-item .excerpt {
  text-align: center;
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

/* MOREボタン */
.latest-item .more-btn {
  display: inline-block;
  background: #00947a;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.3s;
  margin: 0.5rem auto 1rem;
  display: block;
  text-align: center;
}
.latest-item .more-btn:hover {
  background: #007a64;
}

/* タイトル */
.latest-title {
  text-align: center;
  font-size: 3rem;
  color: #00947a;
  font-weight: bold;
  margin-top: 3rem;
  animation: blink 1s step-start infinite;
}
/* latest-item 固有のスタイル */
.latest-item .date {
  font-size: 0.85rem;
  color: #777;
  margin: 0.4rem 0;
}
.latest-item .excerpt {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 1rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
}
.latest-item .more .more-btn {
  display: inline-block;
  background-color: #418B89;
  color: #fff;
  border-radius: 4px;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.latest-item .more .more-btn:hover {
  background-color: #346b6a;
}
/* 本文内の画像を中央寄せ */
.entry-content img,
.page-content img {
  display: block;
  margin: 1rem auto;
}
/* 点滅アニメーション */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
/* ▼ Yahooマップを中央揃え */
.custom-map-container {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  max-width: 100%;
}
.custom-map-container > div {
  max-width: 100%;
}
.custom-map-container iframe {
  width: 100%;
  height: auto;
}
/* スライダーを親要素でラップ */
.slider-wrap {
  position: relative;
/* スライダー全体を中央揃えにする */
  max-width: 1200px;
  margin: 0 auto;
}
/* テキストをスライダーに重ねる */
.slider-text {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  padding: 50px 60px;
  color: #fff;
  text-align: right;
 width: 50%;       /* 親要素の幅の50%にする */
  max-width: 1000px; /* ただし、最大でも1000pxまで */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  border-radius: 0;
  font-family: serif;
}

/* 見出し */
.slider-text h2 {
  font-size: 4.5rem !important;
  margin: 0 0 15px;
  line-height: 1.2;
}
/* サブテキスト */
.slider-text p {
  font-size: 2rem;
  line-height: 1.6;
  margin: 0;
}
/* ▼ コピーライト中央寄せ */
.copyright {
  text-align: center;
  margin: 10px 0;
  font-size: 0.9rem;
  color: #666;
}
/* =========================================================
 *  WORKS一覧ページヘッダー関連
 * ========================================================= */
.site-header {
  position: relative;
  z-index: 10;
  height: 400px; /* ← 600px から減らす */
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 600px; /* ← 同じく変更 */
  background: url('http://liberaria.co.jp/wp-content/uploads/2025/10/581292275720782287.jpg') center/cover no-repeat;
  z-index: 1;
}

.works-archive {
  position: relative;
  z-index: 5;
  padding-top: 420px; 
}

/* 投稿一覧ラッパー (.latest-posts と .works-grid を統合) */
.latest-posts,
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0;
  list-style: none;
}
/* サイト全体（固定ページも含む）を中央寄せ */
.site,
.site-main,
.entry-content,
.page,
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}
.page .entry-title {
  text-align: center;
}
/* === WORKS一覧ページ追加分 === */

/* 🔍 検索フォーム */
.works-search {
  text-align: center;
  margin: 2rem auto;
}

.works-search form {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.works-search input[type="search"] {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 250px;
  font-size: 1rem;
}

.works-search input[type="submit"] {
  background: #000;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
}

.works-search input[type="submit"]:hover {
  background: #333;
}

/* カード全体 */
.works-card {
  text-align: center;
  display: block;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease;
}

.works-card:hover {
  transform: translateY(-5px);
}
.post-type-archive-works .works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.post-type-archive-works .works-card {
  max-width: 360px;
  width: 100%;
}

/* アイキャッチ画像 */
.works-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}

/* 🔢 投稿番号デザイン */
.works-number {
  text-align: center;
  font-size: 1.5rem; 
  font-weight: bold;
  color: #000; /* 黒文字 */
  margin: 0.5rem 0;
}
/* タイトル */
.works-title {
  font-size: 1rem;
  color: #555;
  margin-top: 0.4rem;
  line-height: 1.4;
}


/* =========================================
   WORKS - Single（投稿詳細ページ）
========================================= */

/* 背景エリア全体 */
.works-single-wrapper {
 background: url('http://liberaria.co.jp/wp-content/uploads/2025/10/subtle-light-tile-pattern-vol5.jpg') no-repeat center/cover;
  padding: 8rem 1rem;
  display: flex;
  justify-content: center;
}

/* 白BOX（中央に表示） */
.works-single-box {
  background: #ffffff;           /* 白 BOX */
  max-width: 900px;              /* 幅 */
  width: 100%;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  text-align: center;            /* 文字中央 */
}

/* タイトル */
.works-single-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: center;
}


/* 本文内容 */
.works-single-content {
  margin-top: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
}

/* カテゴリー・タグ */
.works-category,
.works-tags {
  margin-top: 2rem;
  text-align: center;
}
/* WORKS カテゴリー・タグ共通 */
.works-category,
.works-tags {
  margin-top: 1.2em;
  font-size: 0.9rem;
  color: #555;
}

/* ラベル文字 */
.works-category strong,
.works-tags strong {
  margin-right: 0.5em;
  font-weight: 600;
  color: #222;
}

/* カテゴリー・タグのリンク */
.works-category a,
.works-tags a {
  display: inline-block;
  margin: 0 0.4em 0.4em 0;
  padding: 0.3em 0.8em;
  border: 1px solid #ddd;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8rem;
  color: #333;
  transition: all 0.3s ease;
}

/* ホバー */
.works-category a:hover,
.works-tags a:hover {
  background: #222;
  color: #fff;
  border-color: #222;
}/* WORKS カテゴリー・タグ共通 */
.works-category,
.works-tags {
  margin-top: 1.2em;
  font-size: 0.9rem;
  color: #555;
}

/* ラベル文字 */
.works-category strong,
.works-tags strong {
  margin-right: 0.5em;
  font-weight: 600;
  color: #222;
}

/* カテゴリー・タグのリンク */
.works-category a,
.works-tags a {
  display: inline-block;
  margin: 0 0.4em 0.4em 0;
  padding: 0.3em 0.8em;
  border: 1px solid #ddd;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8rem;
  color: #333;
  transition: all 0.3s ease;
}
.works-tags {
  padding-bottom: 1.5em;
  border-bottom: 1px solid #eee;
}

/* ホバー */
.works-category a:hover,
.works-tags a:hover {
  background: #222;
  color: #fff;
  border-color: #222;
}
/* WORKS の投稿詳細ページ → ヘッダー背景画像だけ非表示にする */
.single-works .header-bg {
  display: none;
}

/* ヘッダーが消えた分、上の余白を調整 */
.single-works .works-single-wrapper {
  margin-top: 120px; /* 好きな高さに調整してOK */
}
/* アーカイブ全体 */
.works-archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3em 1.5em;
}

/* ページタイトル */
.page-title {
  text-align: center;
  font-size: 2rem;
  letter-spacing: 0.12em;
  margin-bottom: 2.5em;
}

/* タグ・カテゴリ表示時だけ少し雰囲気変える */
.tag .page-title,
.category .page-title {
  font-size: 1.6rem;
  color: #555;
}

/* グリッド */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
}

/* カード */
.works-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 14px;
}


/* タイトル */
.works-title {
  margin-top: 0.8em;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}
/* =========================================================
 *  メディアクエリ
 * ========================================================= */
/* スマホ（768px以下）用：スライダーテキスト調整 */
@media screen and (max-width: 768px) {
  .slider-text {
    top: auto;
    bottom: 20px;
    left: 10px;
    right: 10px;
    transform: none;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 25px;
    border-radius: 10px;
  }
  .slider-text h2 {
    font-size: 2rem !important;
    line-height: 1.4;
    text-align: right !important;
  }
  .slider-text p {
    font-size: 1rem;
    text-align: right !important;
  }
}
/* スマホ（600px以下）対応 */
@media screen and (max-width: 600px) {
  .latest-posts {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem;
  }
  .latest-item {
    max-width: 100%;
    margin: 0 auto;
  }
  .latest-item .thumb img {
    height: 120px;
  }
  .latest-title {
    font-size: 2rem;
    color: #00947a;
    animation: blink 1s step-start infinite;
  }
}

/* ===== ハンバーガーボタン ===== */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  cursor: pointer;
  z-index: 300;
  position: fixed;
  top: 15px;
  right: 15px; /* ← 右上配置 */
  width: 30px;
  height: 25px;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: #333 !important;
  border-radius: 2px;
  transition: all 0.3s ease !important;
}

/* ✕ のアニメーション */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== メインナビ（スマホ用） ===== */
.main-nav {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(100, 100, 100, 0.85); /* グレー半透明 */
  border-radius: 6px;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  z-index: 200;
  width: 140px; /* 背景幅調整 */
  padding: 1rem 1.5rem;
}

/* 表示状態 */
.main-nav.is-open {
  display: flex;
 flex-direction: column;
 align-items: flex-end
}

/* ナビリスト */
.nav-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* 右寄せ */
  gap: 1.5rem;
  margin: 0;
  padding: 1rem 0;
  list-style: none;
}


.nav-list a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.nav-list a:hover {
  color: #00d6a3;
}

/* ===== PCレイアウト（769px以上） ===== */
@media screen and (min-width: 769px) {
  .hamburger {
    display: none !important;
  }

  .main-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    background: none;
    width: auto;
    height: auto;
  }

  .nav-list {
    flex-direction: row;
    gap: 2rem;
    align-items: center;
  }

  .nav-list a {
    color: #333;
    font-size: 1rem;
  }
}

/* 少し拡大するような動き（オプション） */
.hamburger.active {
  transform: scale(1.1);
}

/* ===== PC用レイアウト（769px以上） ===== */
@media screen and (min-width: 769px) {
  /* ハンバーガー非表示 */
  .hamburger {
    display: none !important;
  }

  /* メインナビ横並び */
  .main-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    background: none;
    height: auto;
  }

  .nav-list {
    flex-direction: row;
    gap: 2rem;
  }

  .nav-list a {
    color: #333;
    font-size: 1rem;
  }
}
/* メニュー（sticky header）を最前面に固定 */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999; /* メニューが常に最前面 */
  background: #ffffffee; /* 白＋半透明 / 好みで変更可 */
  backdrop-filter: blur(6px); /* ← オシャレ：ぼかし効果 */
}

/* 背景画像はメニューより下 */
.header-bg {
  position: relative;
  z-index: 1;
}

/* スライダー（MetaSlider）が背景より上に来るよう強制 */
.metaslider,
.metaslider .slides,
.metaslider .flexslider {
  position: relative;
  z-index: 2;
}

/* 固定ヘッダー分の余白を追加（スライダーが隠れないように） */
body {
  padding-top: 90px;
}
/* ▼ site-logo を中央揃え */
.site-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;     /* 中央に配置 */
  padding-top: 80px;  /* メニューと重ならないように余白（調整可） */
  text-align: center;
}

/* --- ナビメニューを右寄せ --- */
.sticky-header .main-nav {
  margin-left: auto;  /* 右へ押す */
}

.sticky-header .nav-list {
  display: flex;
  justify-content: flex-end;  /* 右寄せ */
  gap: 20px; /* メニュー間の余白 */
  align-items: center;
}
.footer-company-section {
  position: relative;
  background-image: url('https://liberaria.co.jp/wp-content/uploads/2025/11/footer-bg.jpg'); /* ←背景画像を差し替え */
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 120px 20px 80px;
  text-align: center;
  overflow: hidden;
}

.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45); /* 透明度調整：濃くしたければ 0.6 に */
  z-index: 1;
}

.footer-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Office情報 */
.footer-office h3 {
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  opacity: 0.8;
}

.footer-office h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.footer-office p {
  line-height: 1.8;
  font-size: 1rem;
  margin: 4px 0;
}

/* 社名部分 */
.footer-company h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.footer-company p {
  font-size: 0.95rem;
  opacity: 0.8;
  letter-spacing: 0.05em;
}

/* 背景画像が暗めのときに文字を見やすく */
.footer-company-section * {
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .footer-company-section {
    padding: 100px 15px 60px;
  }

  .footer-office h2 {
    font-size: 1.5rem;
  }

  .footer-company h2 {
    font-size: 1.4rem;
  }
}
/* --- カバー全般：背景画像とテキスト位置調整 --- */
.wp-block-cover,
.wp-block-cover-image,
.wp-block-cover.alignfull {
  background-size: cover !important;
  background-position: center center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 60vh !important;
}

/* --- カバー内テキスト（中央寄せ）--- */
.wp-block-cover__inner-container,
.wp-block-cover .wp-block-cover__inner-container {
  text-align: center !important;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
}

/* --- 文字が縦に並ぶ問題を防止 --- */
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3,
.wp-block-cover p {
  white-space: normal !important;
  word-break: keep-all !important;
  line-height: 1.4 !important;
}
/* --- スマホ：カバーの文字を11文字で折り返す --- */
@media screen and (max-width: 767px) {
  .wp-block-cover .wp-block-cover__inner-container h1,
  .wp-block-cover .wp-block-cover__inner-container h2,
  .wp-block-cover .wp-block-cover__inner-container p {
    width: 11em;               /* ← 11文字分の幅で折り返し */
    margin: 0 auto;            /* 中央配置 */
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center !important;
  }
}
/* --- スマホ時の調整 --- */
@media screen and (max-width: 767px) {
  .wp-block-cover,
  .wp-block-cover-image,
  .wp-block-cover.alignfull {
    min-height: 50vh !important;
    padding: 40px 0;
  }
  .wp-block-cover h1,
  .wp-block-cover h2,
  .wp-block-cover p {
    font-size: 1.3rem !important;
  }
}
.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 520px;
  margin: 0 auto 24px;
  font-size: 13px;
}

.post-nav a {
  color: #666;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.post-nav a:hover {
  color: #333;
}
.post-nav a {
  border-radius: 20px;
}

.post-nav a:hover {
  background: #f5f5f5;
}

figure figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
  text-align: center;
}
/* 動画キャプションを動画内に重ねる */
.wp-block-video {
  position: relative;
}

/* キャプション（画像と同じデザイン） */
.wp-block-video figcaption {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);

  display: inline-block;
  padding: 6px 14px;

  background: #fff;
  color: #666;            /* ← 黒じゃなくグレー */
  font-size: 13px;
  line-height: 1.4;

  border-radius: 9999px;  /* ← この丸さがポイント */
  text-align: center;
  white-space: nowrap;
}

