@charset "UTF-8";
/*---------------------------------------------------------
Theme Name: 福岡人事
Author URI: G2
Theme URI: 
Version: 1.0
Description: 2026年リニューアル
---------------------------------------------------------*/


/* ==================================================
   ベース設定（全体・スマホ対応）
================================================== */
:root{
    --moji: #333333;
    --dred: #a03d3c;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;

    min-width: 320px;
    overflow-wrap: break-word;
    min-height: 100vh;
    /* フッターを下に固定するための準備（Flexbox） */
    display: flex;
    flex-direction: column;
}

/* メインコンテンツ部分が自動的に伸びて、フッターを押し下げる設定 */
main {
    flex: 1;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 10px 0;
    width: 100%;
}

.fcr{
  color: #ff0000;
}


/* スマホ対応 */
.sp-br {
    display: none;
}
@media screen and (max-width: 767px) {
    .sp-br {
        display: inline;
    }
}

/* ==================================================
   レイアウト用の共通クラス
================================================== */
.container {
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
    width: 100%;
}
.full-width {
    width: 100%;
}

/* ==================================================
   リンクとメディアの基本スタイル
================================================== */
a {
    color: var(--moji);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--dred);
}
/* 画像、動画、埋め込みコンテンツのレスポンシブ設定 */
img, video, object, iframe {
    max-width: 100%;
    height: auto; /* 元の縦横比を維持する */
    vertical-align: bottom; /* 画像の下にできる謎の隙間を消す */
}
/* 特定の画像を文字と同じ行に並べたい時用の便利クラス */
.inline-img img {
    display: inline;
}

a img {
    transition: opacity 0.3s ease;
}
a:hover img {
    opacity: 0.8;
}

/* ==================================================
   ヘッダー＆ナビゲーション（レスポンシブ対応）
================================================== */

/* 基本リセット */
ul { list-style: none; padding: 0; margin: 0; }
a { text-decoration: none; color: #333; }

.site-header {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
  height: 130px;
}
.header-top-line {
  height: 5px;
  background-color: #4CAF50;
  width: 100%;
  margin-bottom: 20px;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-logo img {
  height: 68px;
  width: auto;
}



/* ====================================================
   グローバルナビゲーション (PC用)
==================================================== */
.global-nav {
  display: block;
  color: #ff0000 !important;
}

.global-nav .menu {
  display: flex;
  gap: 30px;
}

.global-nav .menu-item-has-children > a {
  position: relative; /* 透明な橋の基準点 */
  text-decoration: none;
  color: #333;
}
.global-nav .menu-item-has-children > a::before {
  content: "";
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 60px; /* ヘッダーの余白に合わせて調整 */
}

/* ==========================================
   2. サブメニュー
========================================== */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  z-index: 100;
  padding: 40px max(20px, calc((100% - 1000px) / 2));
  box-sizing: border-box;
  
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.global-nav .menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu .menu-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 14px;
  padding: 0;
  transition: opacity 0.3s;
}

.sub-menu .menu-item a:hover {
  opacity: 0.6;
}

.sub-menu .menu-item img {
  width: 100%;
  max-width: 140px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 12px;
  border-radius: 4px;
}

/* -------------------------------------------
   スマホ版のレスポンシブ対応 (768px以下)
------------------------------------------- */
@media screen and (max-width: 768px) {
  
  /* --- 1. ハンバーガーボタン --- */
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1001;
    padding: 0;
  }

  .hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    margin: 6px auto;
    transition: all 0.3s ease;
  }

  /* --- 2. メニュー画面のベース設定 --- */
  .global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
  }

  .global-nav .menu {
    flex-direction: column;
    text-align: center;
    gap: 32px;
    width: 100%;
    padding: 100px 20px 60px;
    margin: 0 auto;
  }

  .global-nav a {
    font-size: 1.5rem;
    text-decoration: none;
    color: #333;
  }

  /* メニューが開いた状態 */
  .global-nav.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  /* ハンバーガーボタンの「×」アニメーション */
  .menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* ==========================================
     3. スマホ用サブメニュー（アコーディオン）
  ========================================== */

  .global-nav .menu-item-has-children > a::before {
    display: none !important;
  }

  .global-nav .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
    .global-nav .menu-item-has-children > a::after {
    content: "\f107"; /* fa-angle-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900; /* Font Awesome 6 でアイコンを表示させるために必須 */
    font-size: 0.9rem;
    color: #a4c639;
    transition: transform 0.3s ease;
    display: block;
  }

  .global-nav .menu-item-has-children.is-open > a::after {
    transform: rotate(180deg);
  }

  .sub-menu {
    position: static;
    transform: none !important;
    width: 100%;
    padding: 20px 15px;
    box-shadow: none;
    background-color: #f7f9f2;
    border-radius: 8px;
    margin-top: 16px;
    
    display: none;
    grid-template-columns: 1fr;
    gap: 20px;
    
    opacity: 1;
    visibility: visible;
  }

  .global-nav .menu-item-has-children.is-open .sub-menu {
    display: grid;
  }

  .sub-menu .menu-item a {
    font-size: 1rem;
    padding: 5px 0;
  }

  .sub-menu .menu-item img {
    display: none;
  }
}

/* PC表示時（画面幅769px以上）はハンバーガーボタンを非表示にする */
@media screen and (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }
}



/* ====================================================
   CTAセクション
==================================================== */
.cta-section {
  background: linear-gradient(to right, #2ec990 0%, #086543 100%);
  padding: 80px 0;
  text-align: center; /* 全体を中央寄せ */
}
.cta-title {
  font-size: 2.8rem;
  font-weight: normal;
  font-family: "Noto Serif JP", serif;
  color: #fff;
  margin-bottom: 24px;
}
.cta-text {
  display: inline-block;
  text-align: left;
  font-size: 1rem;
  line-height: 1.8;
  color: #fff;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-width: 300px;
}
.btn-cta:hover {
  opacity: 0.8;
  transform: translateY(-3px);
}
.btn-web {
  background-color: #ffffff;
  color: #2e7d32;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.btn-tel {
  color: #ffffff;
  border: #fff 1px solid;
}
.btn-tel .tel-time {
  font-size: 0.85rem;
  font-weight: normal;
  margin-left: 8px;
}


/* ====================================================
   フッターセクション
==================================================== */
.site-footer {
  background-color: #ffffff; /* 背景白 */
  padding: 60px 0 20px 0;
}

.footer-top {
  display: flex;
  justify-content: space-between; /* 左端と右端に配置 */
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-company-info {
  text-align: left;
}
.footer-logo {
  margin-bottom: 16px;
}
.footer-address {
  font-style: normal; /* addressタグのデフォルトの斜体を解除 */
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
}

.footer-nav-wrap {
  text-align: right;
}
.footer-menu-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-menu-list li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}
.footer-menu-list li:not(:last-child)::after {
  content: "・";
  margin: 0 12px;
  color: #999;
}
.footer-menu-list a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}
.footer-menu-list a:hover {
  color: #a4c639;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #eee;
  padding-top: 20px;
}
.copyright small {
  font-size: 0.85rem;
  color: #999;
}

/* --- トップへ戻るボタンの基本スタイル --- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  background-color: #a4c639;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 99;
  
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background-color: #333; /* 少し暗くする */
  transform: translateY(-5px); /* 少し上に浮かす */
}
.back-to-top i {
  font-size: 1.2rem;
}


/* -------------------------------------------
   スマホ対応（メディアクエリ）
------------------------------------------- */
@media screen and (max-width: 768px) {
  .cta-title {
    font-size: 1.5rem;
  }


  .footer-top {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-nav-wrap {
    text-align: left;
  }

  .footer-menu-list {
    justify-content: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  /* 縦並びにする場合は「・」を消す */
  .footer-menu-list li:not(:last-child)::after {
    display: none;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}



/* -------------------------------------------
   ページトップへ戻るボタン
------------------------------------------- */
/* 1. ボタン全体の配置と動き */
#page-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999; /* 他の要素より必ず上に表示 */
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

/* 2. ボタンのデザイン（丸い土台） */
#page-top a {
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: var(--dred);
    color: #ffffff !important;
    width: 50px;
    height: 50px;
    text-decoration: none !important;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 3. Font Awesomeアイコンの強制設定 */
#page-top a i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif !important;
    font-weight: 900 !important;
    font-size: 20px !important;
    font-style: normal !important;
    display: inline-block !important;
    line-height: 1 !important;
}

/* 4. ホバーした時の動き */
#page-top a:hover {
    background: #333333;
    transform: translateY(-5px); /* 少し上に浮く */
    color: #ffffff !important;
}

/* 5. スマホでのサイズ調整（少し小さくする） */
@media screen and (max-width: 767px) {
    #page-top {
        right: 15px;
        bottom: 15px;
    }
    #page-top a {
        width: 44px;
        height: 44px;
    }
}




/* ==================================================
   フロントページ
================================================== */

/* ヒーローコンテンツ全体 */
.hero-section {
    width: 100%;
    margin-bottom: 80px;
    position: relative;
    font-family: "Noto Serif JP", serif;
}
.hero-slider {
    width: 100%;
    height: 800px; /* デスクトップの高さ */
    overflow: hidden;
}
.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
}
/* 画像の設定とオーバーレイ */
.hero-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-image-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* テキスト配置（左寄せ・1100px幅） */
.hero-content {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
}
.hero-content-inner {
    max-width: 1100px; /* 1100pxの中に収める */
    margin: 0 auto;
    padding: 0 40px;
    text-align: left;
}
.hero-title {
    font-size: 52px;
    font-weight: normal;
    color: #000;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 
    0 0 10px rgba(255, 255, 255, 1),
    0 0 20px rgba(255, 255, 255, 0.8);
}
.hero-text {
    font-size: 18px;
    color: #fff;
    line-height: 1.8;
    margin-bottom: 40px;
    background-color: #47803c;
    display: inline-block;
    padding: 10px 15px;
}

/* ボタンデザイン */
.btn-view-more {
    display: inline-block;
    padding: 15px 45px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}
.btn-view-more:hover {
    background: #fff;
    color: #333;
}

/* 矢印・ドットのカスタマイズ */
.hero-button-prev,
.hero-button-next {
    color: #fff !important;
}
.hero-slider .swiper-pagination-bullet {
    background: #fff;
}

/* スマホ対応 */
@media screen and (max-width: 767px) {
    .hero-slider { height: 450px; }
    .hero-title { font-size: 28px; }
    .hero-text { font-size: 14px; }
    .hero-content-inner { padding: 0 20px; }
}

/* -------------------------------------------
   セクションタイトル
------------------------------------------- */
.section-title {
    text-align: center;
    margin-bottom: 50px;     /* セクション下の余白 */
    font-family: "Noto Serif JP", serif;
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    line-height: 1.4;
}


/* -------------------------------------------
   コンセプト（concept）セクション
------------------------------------------- */
.concept-section {
    margin: 60px auto;
    max-width: 1200px;
    overflow: hidden;
}


/* -------------------------------------------
   サービスセクション
------------------------------------------- */
.services-section {
  background: linear-gradient(to right, #f1fbf8 0%, #a3e7ce 100%);
  padding: 80px 0;
}

/* --- タイトル（左寄せ・改行） --- */
.section-title.left-align {
  text-align: left;
  margin-bottom: 40px;
}
.section-title.left-align span {
  display: block;
}
.title-en {
  font-size: 2rem;
  color: #13855b;
  margin-bottom: 5px;
}
.title-ja {
  font-size: 2rem;
  font-weight: bold;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-item {
  position: relative;
  display: block;
}
.service-item::after {
  content: "\f061";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  bottom: 20px;
  right: 20px;
  
  font-size: 1.2rem;
  color: #a4c639;
  transition: transform 0.3s ease;
}
.service-item:hover::after {
  transform: translateY(-5px);
}

.service-link {
  display: block;
  background-color: #fff;
  border-radius: 8px;
  padding: 30px 20px 50px;
  text-decoration: none;
  color: inherit; /* テキスト色を親から継承 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
  margin-bottom: 15px;
}
.service-name {
  font-family: "Noto Serif JP", serif;
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #333;
}
.service-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
}

@media screen and (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr; /* スマホでは1列にする */
  }
}


/* -------------------------------------------
   お知らせセクション
------------------------------------------- */
.news-section {
  background-color: #ffffff;
  padding: 80px 0;
}

/* --- お知らせリストの枠組み --- */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  border-top: 1px dotted #ccc;
}
.news-item {
  border-bottom: 1px dotted #ccc;
}
.news-link {
  display: block;
  padding: 24px 10px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s ease;
}
.news-link:hover {
  background-color: #fcfcfc; 
}

/* --- 横1列に並べるレイアウト（Flexbox） --- */
.news-article {
  display: flex;
  align-items: center;
  gap: 24px;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0; /* 日付とカテゴリが潰れないようにする */
}

.news-date {
  font-size: 1rem;
  color: #333;
}
.news-category {
  background-color: #e8f5e9;
  color: #2e7d32;
  padding: 4px 12px;
  font-size: 0.85rem;
  border-radius: 4px;
  display: inline-block;
}
.news-article-title {
  font-size: 1rem;
  font-weight: normal;
  margin: 0;
  color: #333;
  line-height: 1.5;
}

.news-archive-link-wrap {
  text-align: right;
}
.news-archive-link {
  display: inline-block;
  font-size: 1rem;
  color: #333;
  text-decoration: underline;
  transition: opacity 0.3s;
}
.news-archive-link:hover {
  opacity: 0.7;
}

@media screen and (max-width: 768px) {
  .news-article {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}



/* ==================================================
   固定ページ（page.php）
================================================== */
.page-header {
  background-color: #f7f9f2;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 24px;
}

.page-title {
  font-size: 2rem;
  color: #333;
  margin: 0;
  font-weight: bold;
}

/* --- パンくずリスト --- */
.breadcrumbs {
  margin-bottom: 40px;
  font-size: 0.9rem;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: #666;
}

.breadcrumbs a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumbs a:hover {
  color: #a4c639;
}

.breadcrumb-separator {
  margin: 0 10px;
  color: #999;
  font-size: 0.8rem;
}

/* --- アイキャッチ画像 --- */
.page-thumbnail {
  margin: 0 0 40px 0;
  text-align: center;
}

.page-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 8px; /* 少し角丸に */
}

/* ====================================================
   エディタコンテンツ（.entry-content）のタイポグラフィ
==================================================== */
.entry-content {
  max-width: 1200px;
  margin: 0 auto 80px auto;
  color: #333;
  font-size: 1rem;
  line-height: 1.8;
}

/* 段落間の余白 */
.entry-content p {
  margin-bottom: 1.5rem;
}

/* 見出しの共通設定 */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: #2e7d32;
  font-weight: bold;
  line-height: 1.4;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.entry-content h2 {
  font-size: 1.75rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #a4c639;
}
.entry-content h2.no-border {
  border-bottom: none;
  padding-bottom: 0;
}
.entry-content h3 {
  font-size: 1.4rem;
  padding-left: 12px;
  border-left: 4px solid #a4c639;
}
.entry-content h3.no-border {
  border-left: none;
  padding-left: 0;
}
.entry-content h4 {
  font-size: 1.15rem;
}
.entry-content h2.black,
.entry-content h3.black,
.entry-content h4.black {
  color: #333;
}

/* リストの設定 */
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.entry-content ul {
  list-style-type: disc; 
}
.entry-content ol {
  list-style-type: decimal;
}
.entry-content ul ul,
.entry-content ol ul {
  list-style-type: circle;
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.entry-content ol ol {
  list-style-type: lower-latin;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* リンクの設定 */
.entry-content a {
  color: #0056b3;
  text-decoration: underline;
}
.entry-content a:hover {
  text-decoration: none;
}



/* ====================================================
   個別投稿（single.php） ＆ 2カラムレイアウト
==================================================== */
.two-column-layout {
  display: flex;
  gap: 40px; /* メインとサイドバーの隙間 */
  margin-top: 40px;
  margin-bottom: 80px;
  align-items: flex-start; /* サイドバーがメインに合わせて無駄に伸びるのを防ぐ */
}

.primary-content {
  flex: 1;
  min-width: 0;
}

.secondary-content {
  width: 300px;
  flex-shrink: 0;
}

.single-header {
  margin-bottom: 24px;
}
.single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.single-date {
  color: #666;
  font-size: 0.95rem;
}

.single-category {
  background-color: #e8f5e9;
  color: #2e7d32;
  padding: 4px 12px;
  font-size: 0.85rem;
  border-radius: 4px;
  display: inline-block;
}
.single-title {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.4;
  color: #333;
  margin: 0;
}
.single-thumbnail {
  margin: 0 0 40px 0;
  text-align: center;
}
.single-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* --- 前後の記事ナビゲーション --- */
.post-navigation {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}
.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.nav-previous a,
.nav-next a {
  display: inline-block;
  padding: 12px 24px;
  background-color: #f7f9f2;
  color: #333;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: background-color 0.3s;
}
.nav-previous a:hover,
.nav-next a:hover {
  background-color: #eaf2b1;
}
.nav-next {
  margin-left: auto;
}

/* -------------------------------------------
   スマホ対応（画面が狭い場合）
------------------------------------------- */
@media screen and (max-width: 992px) {
  /* 2カラムをやめて縦並びにする */
  .two-column-layout {
    flex-direction: column;
  }
  
  /* サイドバーの幅を100%にする */
  .secondary-content {
    width: 100%;
    margin-top: 60px;
  }
  
  .single-title {
    font-size: 1.5rem;
  }
}


/* ====================================================
   サイドバー (ウィジェット対応版)
==================================================== */
.sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 40px; /* ウィジェット間の余白 */
}

.sidebar-widget {
  background-color: #fcfcfc;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 24px;
}
.widget-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #a4c639;
}
.sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-widget ul li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dotted #ccc;
}
.sidebar-widget ul li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.sidebar-widget ul li a {
  display: block;
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: color 0.3s;
}
.sidebar-widget ul li a:hover {
  color: #a4c639;
}
.sidebar-widget ul li .count,
.sidebar-widget ul li .post-date {
  color: #888;
  font-size: 0.85rem;
  margin-left: 4px;
  display: block;
  margin-top: 4px;
}



/* ====================================================
   アーカイブ・一覧ページ (index.php / archive.php)
==================================================== */
.archive-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #a4c639;
}
.archive-title {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}
.archive-description {
  margin-top: 16px;
  color: #666;
  line-height: 1.6;
}

/* --- 記事リスト（カードレイアウト） --- */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 32px; /* カード同士の縦の余白 */
  margin-bottom: 60px;
}
.post-card-link {
  display: flex;
  gap: 24px;
  text-decoration: none;
  color: inherit;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.post-card-link:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}
.post-card-thumb {
  width: 240px;
  flex-shrink: 0;
  margin: 0;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card-body {
  padding: 24px 24px 24px 0;
  flex: 1;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.post-category {
  background-color: #e8f5e9;
  color: #2e7d32;
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 4px;
}
.post-card-title {
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.4;
  margin: 0 0 12px 0;
  color: #333;
}
.post-card-excerpt {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* --- ページネーション --- */
.pagination-wrap {
  text-align: center;
}

/* the_posts_pagination() が出力するクラスに対するスタイル */
.pagination-wrap .nav-links {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #f7f9f2;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
}

/* 現在のページ */
.pagination-wrap .page-numbers.current {
  background-color: #a4c639;
  color: #fff;
}

/* 前へ / 次へ ボタンを少し広くする */
.pagination-wrap .page-numbers.prev,
.pagination-wrap .page-numbers.next {
  width: auto;
  padding: 0 16px;
}
.pagination-wrap a.page-numbers:hover {
  background-color: #eaf2b1;
}

/* アクセシビリティ用テキスト（画面上は見えなくする） */
.pagination-wrap .screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}


/* -------------------------------------------
   スマホ対応（画面が狭い場合）
------------------------------------------- */
@media screen and (max-width: 768px) {
  /* カードを縦並びに変更 */
  .post-card-link {
    flex-direction: column;
    gap: 0;
  }

  .post-card-thumb {
    width: 100%;
    height: 200px;
  }

  .post-card-body {
    padding: 20px;
  }
}



/* ====================================================
   404 Not Found (404.php)
==================================================== */
.error-404-main {
  padding: 80px 0 120px 0;
  text-align: center;
}
.error-body {
  max-width: 600px;
  margin: 0 auto;
}
.error-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 40px;
}

/* --- 検索フォームエリア --- */
.error-search-wrap {
  background-color: #f7f9f2;
  padding: 40px 24px;
  border-radius: 8px;
  margin-bottom: 40px;
}
.search-lead {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
}
.search-form {
  display: flex;
  justify-content: center;
  max-width: 100%;
}
.search-form label {
  width: 100%;
  max-width: 400px;
}
.search-form .screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.search-field {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  outline: none;
  transition: border-color 0.3s;
}
.search-field:focus {
  border-color: #a4c639;
}
.search-submit {
  padding: 12px 24px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}
.search-submit:hover {
  background-color: #a4c639;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  background-color: #2e7d32;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: opacity 0.3s, transform 0.3s;
}
.btn-back-home:hover {
  opacity: 0.9;
  transform: translateY(-3px);
}

/* -------------------------------------------
   スマホ対応
------------------------------------------- */
@media screen and (max-width: 768px) {
  .error-404-main {
    padding: 60px 0 80px 0;
  }
  
  .search-form {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .search-field,
  .search-submit {
    border-radius: 4px;
    width: 100%;
  }
}


/* ====================================================
   GoogleマップやYouTube（iframe）のレスポンシブ対応
==================================================== */
.entry-content iframe {
  height: auto;        /* 埋め込みコードに直接書かれている height="450" などを一旦リセット */
  aspect-ratio: 16 / 9;
  border: none;
}


/* ====================================================
   Contact Form 7 カスタマイズ
==================================================== */

.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #fcfcfc;
  font-size: 1rem;
  box-sizing: border-box;
  max-width: 100%;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* 入力欄にフォーカスした時（入力中）のスタイル */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: #a4c639;
  background-color: #ffffff;
  outline: none;
}

.wpcf7 textarea {
  min-height: 240px;
  resize: vertical;
}


/* --- 送信ボタン --- */
.wpcf7-submit {
  display: block;
  margin: 40px auto 0;
  width: 100%;
  max-width: 320px;
  padding: 18px 32px;
  background-color: #2e7d32;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-align: center;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
  transition: all 0.3s ease;
}
/* マウスオーバー（ホバー）時のぬるっとしたエフェクト */
.wpcf7-submit:hover {
  background-color: #a4c639;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(164, 198, 57, 0.3);
}
/* クリックした瞬間の押し込みエフェクト */
.wpcf7-submit:active {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 必須項目の「*」をテーマカラーにする */
.wpcf7-form-control-wrap + .wpcf7-validates-as-required,
.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required + span {
}
.wpcf7-list-item {
  margin-left: 0; /* ラジオボタンやチェックボックスのズレを修正 */
}



/* ====================================================
   Service装飾
==================================================== */

.service-box > .wp-block-column {
  padding: 20px 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 10px;
}

.service-box .wp-block-column.empty{
  box-shadow: none !important;
}

@media screen and (max-width: 768px) {
  .service-box .wp-block-column{
    margin-bottom: 0;
  }
}

.shosai{
  border-left: none !important;
  border-bottom: 1px dotted #a4c639;
  padding-bottom: 10px;
}
.wp-block-accordion-heading{
  border-left: none !important;
  background: #edfcee;
  border-bottom: 2px solid #fff;
  margin: 0 !important;
}
.wp-block-accordion-heading:hover, .wp-block-accordion-heading:hover span {
  text-decoration: none !important;
}
.wp-block-accordion-heading:hover{
  border-bottom: 2px solid #a4c639;
}
.wp-block-accordion-item .wp-block-table{
  background: #fdfdfd;
}

