/* ===============================================
   テーマ独自のカスタムスタイル
   =============================================== */

/* 共通カラー・背景 */
.p-headline,
.p-pager__item span,
.p-portfolio__headline,
.p-page-links>span,
.c-pw__btn,
.p-widget__title,
.p-search__submit,
.p-staff-blog__headline,
.p-readmore__btn {
   background: #111111;
}

.p-pager__item span,
.p-page-links>span {
   border-color: #111111;
}

.p-nav02__item a:hover,
.p-index-content__btn:hover,
.c-pw__btn:hover,
.p-search__submit:hover,
.p-readmore__btn:hover {
   background: #664735;
}

.p-article01__title a:hover,
.p-article01__cat a:hover,
.p-article02__title a:hover,
.p-article03__title a:hover,
.p-breadcrumb a:hover,
.p-entry__cat a:hover,
.p-article04 a:hover .p-article04__title,
.p-article06 a:hover .p-article06__name,
.p-profile__social-item a:hover,
.p-style-author__body:hover .p-style-author__portrait-name,
.p-style-author__body:hover .p-style-author__comment::after,
.p-news-ticker__item-date,
.p-news-ticker__list-item-title:hover,
.p-article05 a:hover .p-article05__title,
.p-news-ticker__list-item-date,
.p-author__name a:hover,
.p-profile__table a:hover,
.p-style__table a:hover {
   color: #664735;
}

.p-entry__body a {
   color: #422414;
}

.p-entry__title {
   font-size: 28px;
}

.p-entry__body,
.p-entry__body p {
   font-size: 14px;
}

/* タイポグラフィ */
body,
.p-global-nav .sub-title,
.p-page-header__sub,
.p-index-content__header-title span {
   font-family: "Segoe UI", Verdana, "游ゴシック", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.l-header__tel,
.c-logo,
.p-global-nav>ul>li>a,
.p-page-header__title,
.p-banner-list__item-catch,
.p-profile__table caption,
.p-search__title,
.p-style__data-item-headline,
.p-index-content__header-title,
.p-header-slider__item-title,
.p-header-video__title,
.p-header-youtube__title {
   font-family: "Times New Roman", "游明朝", "Yu Mincho", "游明朝体", "YuMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "HiraMinProN-W3", "HGS明朝E", "ＭＳ Ｐ明朝", "MS PMincho", serif;
   font-weight: 500;
}

/* ホバーエフェクト */
.p-hover-effect--type2:hover img {
   opacity: 0.7;
}

.p-hover-effect--type2 img {
   margin-left: 15px;
   -webkit-transform: scale(1.3) translate3d(-15px, 0, 0);
   transform: scale(1.3) translate3d(-15px, 0, 0);
}

.p-author__img.p-hover-effect--type2 img {
   margin-left: 5px;
   -webkit-transform: scale(1.3) translate3d(-5px, 0, 0);
   transform: scale(1.3) translate3d(-5px, 0, 0);
}

/* ヘッダー・ナビゲーション */
.l-header {
   background: #111111;
   /* ヘッダー固定 */
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   z-index: 2000;
}

.l-header__inner {
   justify-content: space-between;
}

body {
   padding-top: 100px;
   /* ヘッダーの高さ分調整 */
}

@media screen and (max-width: 991px) {
   body {
      padding-top: 80px;
   }
}

.p-global-nav__header-actions {
   display: none;
}

.p-global-nav .sub-menu a {
   background: #111111;
   color: #ffffff;
}

.p-global-nav .sub-menu a:hover {
   background: #664735;
   color: #ffffff;
}

.p-contact__appointment {
   background: #333333;
   color: #ffffff;
}

.p-contact__appointment:hover {
   background: #664735;
   color: #ffffff;
}

/* フッター */
.l-footer__info,
.p-copyright {
   background: #111111;
}

.p-copyright {
   border-color: #333333;
}

/* メインスライダー */
.p-header-slider__item1 .p-header-slider__item-title,
.p-header-slider__item2 .p-header-slider__item-title,
.p-header-slider__item3 .p-header-slider__item-title {
   color: #ffffff;
   font-size: 52px;
}

.p-header-slider__item2 .p-header-slider__item-btn {
   background: #5d6665;
   color: #ffffff;
}

.p-header-slider__item2 .p-header-slider__item-btn:hover {
   background: #9ea3a3;
   color: #ffffff;
}

/* ニュースティッカー */
.p-news-ticker__btn {
   background: #111111;
   color: #ffffff;
}

.p-news-ticker__btn:hover {
   background: #664735;
   color: #ffffff;
}

/* ローダー */
#site_loader_animation.c-load--type3 i {
   background: #111111;
}

/* ページビルダー関連 */
.pb-widget-headline {
   padding: 14px 24px;
   background: #000;
}

.pb_headline {
   color: #fff;
}

.pb-widget-catchcopy h4 {
   font-weight: 500;
}

.tcd-pb-row.row3 .pb-widget-editor p,
.tcd-pb-row.row5 .pb-widget-editor p,
.tcd-pb-row.row7 .pb-widget-editor p {
   margin-top: -4px !important;
}

.p-entry__body {
   margin-bottom: 0;
}

.l-contents {
   margin-bottom: 80px;
}

.tcd-pb-row.row1,
.tcd-pb-row.row2 {
   margin-bottom: 50px;
   background-color: #ffffff;
}

.tcd-pb-row.row3 {
   margin-bottom: 0px;
   background-color: #ffffff;
}

.tcd-pb-row .tcd-pb-col.col1 {
   width: 100%;
}

.tcd-pb-row .tcd-pb-widget.widget1 {
   margin-bottom: 20px;
}

.tcd-pb-row .tcd-pb-widget.widget2 {
   margin-bottom: 40px;
}

.tcd-pb-row .tcd-pb-widget.widget3 {
   margin-bottom: 30px;
}

.tcd-pb-row.row1 .tcd-pb-col.col1 .tcd-pb-widget.widget3 .pb-pricemenu__list-title,
.tcd-pb-row.row2 .tcd-pb-col.col1 .tcd-pb-widget.widget3 .pb-pricemenu__list-title,
.tcd-pb-row.row3 .tcd-pb-col.col1 .tcd-pb-widget.widget3 .pb-pricemenu__list-title {
   color: #7d5833;
}

.tcd-pb-row.row1 .tcd-pb-col.col1 .tcd-pb-widget.widget2 .pb_googlemap_footer_button {
   border: none;
}

.pb_googlemap_footer_button {
   color: #fff !important;
}

/* フォーム関連 */
.wpcf7 {
   box-sizing: border-box;
}

.wpcf7 input,
.wpcf7 textarea {
   width: 100%;
}

/* SNSアイコン */
.p-social-nav {
   display: flex;
   list-style: none;
   padding: 0;
   margin: 10px 0;
}

.p-social-nav__item {
   margin-right: 15px;
}

.p-social-nav__item a {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 32px;
   height: 32px;
   font-size: 18px;
   color: #fff;
   transition: 0.3s;
}

.p-social-nav__item a:hover {
   color: #664735;
}

.p-social-nav__item a::before {
   display: none !important;
}

/* パンくずリストアイコン */
.c-breadcrumb__item--home a::before {
   content: "\f015" !important;
   font-family: "Font Awesome 6 Free" !important;
   font-weight: 900 !important;
   margin-right: 8px;
   font-size: 14px;
   vertical-align: middle;
}

.c-breadcrumb__item::after {
   content: "\f105" !important;
   font-family: "Font Awesome 6 Free" !important;
   font-weight: 900 !important;
   display: inline-block;
   margin: 0 8px;
   font-size: 10px;
   color: #999;
   vertical-align: baseline;
}

.c-breadcrumb__item:last-child::after {
   content: none !important;
}

.c-breadcrumb__item::before {
   content: none !important;
   display: none !important;
}

/* レスポンシブ対応 */
@media screen and (max-width: 991px) {
   .p-global-nav__inner {
      background: #111111;
      color: #ffffff;
   }

   .p-global-nav ul li a {
      font-family: "Segoe UI", Verdana, "游ゴシック", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
      color: #ffffff !important;
   }

   .c-logo img {
      height: 100%;
   }

   /* ハンバーガーメニューボタン */
   .p-menu-btn {
      display: flex !important;
      align-items: center;
      justify-content: center;
      position: absolute;
      top: 0;
      right: 0;
      width: 60px;
      height: 100%;
      background: #111111;
      color: #fff;
      z-index: 2001;
      text-decoration: none;
      border-left: 1px solid #333;
   }

   .p-menu-btn::before {
      content: "\f0c9" !important;
      font-family: "Font Awesome 6 Free" !important;
      font-weight: 900 !important;
      font-size: 24px;
   }

   .p-menu-btn.is-active::before {
      content: "\f00d" !important;
      font-family: "Font Awesome 6 Free" !important;
      font-weight: 900 !important;
   }

   /* ナビゲーション本体 */
   .p-global-nav {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      padding-top: 50px;
      background: #111111;
      z-index: 1999;
      overflow-y: auto;
      border-top: none;
   }

   .p-global-nav.is-active {
      display: block !important;
   }

   .p-global-nav__inner {
      flex-direction: column;
      padding: 20px 0;
   }

   .p-global-nav__inner li {
      width: 100%;
      border-bottom: none;
      margin-bottom: 20px;
   }

   /* メニューリンクスタイル */
   .p-global-nav__inner li a {
      padding: 10px 40px;
      display: block;
      font-size: 18px;
      font-weight: bold;
      line-height: 1.4;
      position: relative;
   }

   /* サブタイトル（日本語）表示 */
   .p-global-nav .sub-title {
      display: block !important;
      font-size: 12px;
      font-weight: normal;
      margin-top: 8px;
      color: #fff;
      opacity: 0.8;
   }

   /* サブメニュー（常時展開） */
   .p-global-nav .sub-menu {
      display: block;
      background: transparent;
      padding: 0;
      margin-top: 10px;
   }

   .p-global-nav .sub-menu li a {
      padding-left: 40px;
      font-size: 14px;
      border-left: 2px solid #333;
   }

   /* ハンバーガーメニュー内のヘッダーアクション */
   .l-header__contact {
      display: none !important;
   }

   .p-global-nav__header-actions {
      display: flex;
      align-items: center;
      justify-content: end;
      gap: 15px;
      padding: 20px;
      border-bottom: 1px solid #333;
   }

   .p-global-nav__header-actions a {
      color: #fff;
      position: relative;
      height: auto;
      line-height: 35px;
   }

   .p-global-nav__sns {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 25px !important;
      color: #fff;
      transition: color 0.3s;
   }

   .p-global-nav__reservation-btn {
      display: inline-block;
      font-size: 20px;
      padding: 12px 24px;
      background: #333333;
      color: #fff;
      font-weight: bold;
      text-decoration: none;
      transition: background 0.3s;
   }
}



@media screen and (max-width: 767px) {
   .p-style+.p-nav02 {
      display: none;
   }

   .l-header__logo img,
   .l-footer__logo img {
      width: 85%;
      height: auto;
   }

   .pb-widget-headline {
      padding: 13px 17px;
   }

   .tcd-pb-row.row1,
   .tcd-pb-row.row2 {
      margin-bottom: 10px;
   }

   .tcd-pb-row .tcd-pb-col.col1 .tcd-pb-widget.widget2 {
      margin-bottom: 20px;
   }

   .p-entry__body p {
      margin-bottom: 30px;
   }

   .row2 .pb-widget-editor p {
      margin-bottom: 23px;
   }

   .p-entry__body .p-access__address {
      margin-bottom: 15px;
   }

   .tcd-pb-row.row3 .pb-widget-editor p,
   .tcd-pb-row.row5 .pb-widget-editor p,
   .tcd-pb-row.row7 .pb-widget-editor p {
      margin-top: 0 !important;
   }

   .tcd-pb-row.row3 .tcd-pb-col.col1,
   .tcd-pb-row.row5 .tcd-pb-col.col1,
   .tcd-pb-row.row7 .tcd-pb-col.col1 {
      margin-bottom: 15px !important;
   }

   .s_title {
      display: inline-block;
      margin-top: 10px;
   }

   .p-entry__body,
   .l-primary {
      margin-bottom: 0;
   }
}

@media only screen and (min-width: 500px) {
   .p-address br {
      display: none;
   }

   .p-address br:nth-child(2) {
      display: inline;
   }
}

@media screen and (max-width: 640px) {
   .pconly {
      display: none;
   }

   .sub-title {
      display: none !important;
   }
}

@media screen and (min-width: 639px) {
   .sponly {
      display: none;
   }

   .titlesp-img {
      display: none !important;
   }
}

/* スライダーの矢印 */
.p-header-slider .slick-arrow {
   position: absolute;
   top: 50% !important;
   z-index: 100;
   width: 60px;
   height: 60px;
   margin-top: -30px;
   padding: 0;
   cursor: pointer;
   color: #fff;
   border: none;
   outline: none;
   background: rgba(0, 0, 0, 0.2);
   transition: background 0.3s;
   font-size: 0;
   display: flex !important;
   align-items: center;
   justify-content: center;
}

.p-header-slider .slick-arrow:hover {
   background: rgba(0, 0, 0, 0.5);
}

.p-header-slider .slick-prev {
   left: 20px;
}

.p-header-slider .slick-next {
   right: 20px;
}

.p-header-slider .slick-arrow::before {
   font-family: "Font Awesome 6 Free" !important;
   font-weight: 900 !important;
   font-size: 32px;
   color: #fff;
}

.p-header-slider .slick-prev::before {
   content: "\f104" !important;
   /* angle-left */
}

.p-header-slider .slick-next::before {
   content: "\f105" !important;
   /* angle-right */
}

@media screen and (max-width: 767px) {
   .p-header-slider .slick-arrow {
      display: none !important;
   }
}

/* ページトップへ戻るボタン */
.p-pagetop {
   position: fixed;
   bottom: 20px;
   right: 20px;
   z-index: 1000;
}

.p-pagetop a {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 50px;
   height: 50px;
   background: #111111;
   color: #fff;
   text-decoration: none;
   transition: background 0.3s;
}

.p-pagetop a::before {
   content: "\f077";
   font-family: "Font Awesome 6 Free";
   font-weight: 900;
   font-size: 20px;
}

.p-pagetop a::after {
   display: none;
}

/* ===============================================
   ブログページスタイル
   =============================================== */

.l-contents--blog {
   display: flex;
   gap: 40px;
   margin-bottom: 0;
}

.p-blog__main {
   flex: 1;
   min-width: 0;
}

.p-blog__sidebar {
   width: 300px;
   flex-shrink: 0;
}

/* ブログカード */
.p-blog__list {
   display: flex;
   flex-direction: column;
   gap: 25px;
}

.p-blog-card {
   background: #fff;
   border-radius: 4px;
   overflow: hidden;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
   transition: box-shadow 0.3s;
}

.p-blog-card:hover {
   box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.p-blog-card__link {
   display: flex;
   text-decoration: none;
   color: inherit;
}

.p-blog-card__thumbnail {
   width: 200px;
   flex-shrink: 0;
   overflow: hidden;
}

.p-blog-card__thumbnail img {
   width: 100%;
   height: auto;
   object-fit: cover;
   aspect-ratio: 4/3;
   transition: transform 0.3s;
}

.p-blog-card:hover .p-blog-card__thumbnail img {
   transform: scale(1.05);
}

.p-blog-card__content {
   flex: 1;
   padding: 20px;
   display: flex;
   flex-direction: column;
   width: 100%;
}

.p-blog-card__category {
   display: inline-block;
   padding: 4px 12px;
   background: #111111;
   color: #fff;
   font-size: 11px;
   font-weight: bold;
   border-radius: 3px;
   margin-bottom: 8px;
   align-self: flex-start;
}

.p-blog-card__date {
   font-size: 12px;
   color: #999;
   margin-bottom: 8px;
}

.p-blog-card__title {
   font-size: 16px;
   font-weight: bold;
   color: #333;
   line-height: 1.5;
   margin: 0 0 10px;
}

.p-blog-card__excerpt {
   font-size: 13px;
   color: #666;
   line-height: 1.7;
   margin: 0;
   display: -webkit-box;
   -webkit-line-clamp: 3;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

/* ページネーション */
.p-blog__pagination {
   margin-top: 40px;
}

.p-pagination {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 8px;
   list-style: none;
   padding: 0;
   margin: 0;
}

.p-pagination__item a,
.p-pagination__item span {
   display: flex;
   align-items: center;
   justify-content: center;
   min-width: 36px;
   height: 36px;
   padding: 0 10px;
   background: #fff;
   border: 1px solid #ddd;
   color: #333;
   font-size: 14px;
   text-decoration: none;
   transition: all 0.3s;
}

.p-pagination__item a:hover {
   background: #111111;
   border-color: #111111;
   color: #fff;
}

.p-pagination__item span.current {
   background: #111111;
   border-color: #111111;
   color: #fff;
}

/* サイドバーウィジェット */
.p-sidebar-widget {
   background: #fff;
   margin-bottom: 25px;
   border-radius: 4px;
   overflow: hidden;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.p-sidebar-widget__title {
   background: #111111;
   color: #fff;
   font-size: 14px;
   font-weight: bold;
   padding: 12px 15px;
   margin: 0;
}

/* カテゴリーリスト */
.p-sidebar-widget__category-list {
   list-style: none;
   padding: 0;
   margin: 0;
}

.p-sidebar-widget__category-item {
   border-bottom: 1px solid #eee;
}

.p-sidebar-widget__category-item:last-child {
   border-bottom: none;
}

.p-sidebar-widget__category-item a {
   display: flex;
   justify-content: space-between;
   padding: 12px 15px;
   color: #333;
   font-size: 13px;
   text-decoration: none;
   transition: background 0.3s;
}

.p-sidebar-widget__category-item a:hover {
   background: #f9f9f9;
}

.p-sidebar-widget__category-count {
   color: #999;
   font-size: 12px;
}

/* 最新記事リスト */
.p-sidebar-widget__recent-posts {
   list-style: none;
   padding: 15px;
   margin: 0;
}

.p-sidebar-widget__recent-post {
   margin-bottom: 15px;
   padding-bottom: 15px;
   border-bottom: 1px solid #eee;
}

.p-sidebar-widget__recent-post:last-child {
   margin-bottom: 0;
   padding-bottom: 0;
   border-bottom: none;
}

.p-sidebar-widget__recent-post-link {
   display: flex;
   gap: 12px;
   text-decoration: none;
   color: inherit;
}

.p-sidebar-widget__recent-post-thumbnail {
   width: 70px;
   height: 50px;
   flex-shrink: 0;
   overflow: hidden;
   border-radius: 3px;
}

.p-sidebar-widget__recent-post-thumbnail img {
   width: 100%;
   height: auto;
   object-fit: cover;
}

.p-sidebar-widget__recent-post-content {
   flex: 1;
   min-width: 0;
}

.p-sidebar-widget__recent-post-date {
   display: block;
   font-size: 11px;
   color: #999;
   margin-bottom: 4px;
}

.p-sidebar-widget__recent-post-title {
   font-size: 12px;
   font-weight: normal;
   color: #333;
   line-height: 1.5;
   margin: 0;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.p-sidebar-widget__recent-post-link:hover .p-sidebar-widget__recent-post-title {
   color: #664735;
}

/* ブログ詳細ページ */
.p-blog-single {
   background: #fff;
   border-radius: 4px;
   overflow: hidden;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.p-blog-single__thumbnail {
   width: 100%;
   max-height: 400px;
   overflow: hidden;
}

.p-blog-single__thumbnail img {
   width: 100%;
   height: auto;
   object-fit: cover;
}

.p-blog-single__header {
   padding: 30px;
   border-bottom: 1px solid #eee;
}

.p-blog-single__categories {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   margin-bottom: 10px;
}

.p-blog-single__category {
   display: inline-block;
   padding: 4px 12px;
   background: #111111;
   color: #fff;
   font-size: 11px;
   font-weight: bold;
   border-radius: 3px;
   text-decoration: none;
   transition: background 0.3s;
}

.p-blog-single__category:hover {
   background: #664735;
}

.p-blog-single__date {
   display: block;
   font-size: 13px;
   color: #999;
   margin-bottom: 15px;
}

.p-blog-single__title {
   font-size: 24px;
   font-weight: bold;
   color: #333;
   line-height: 1.5;
   margin: 0;
}

.p-blog-single__content {
   padding: 30px;
   word-wrap: break-word;
   overflow-wrap: break-word;
}

.p-blog-single__content p {
   line-height: 1.8;
   margin-bottom: 1.5em;
}

.p-blog-single__content img {
   max-width: 100%;
   height: auto;
}

.p-blog-single__footer {
   padding: 20px 30px;
   border-top: 1px solid #eee;
}

.p-blog-single__tags {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
}

.p-blog-single__tag {
   font-size: 12px;
   color: #111111;
   text-decoration: none;
}

.p-breadcrumb__item a {
   color: #111111;
   text-decoration: none;
}

.p-blog-single__tag:hover {
   text-decoration: underline;
}

/* 前後記事ナビゲーション */
.p-blog-nav {
   display: flex;
   justify-content: space-between;
   gap: 20px;
   margin-top: 30px;
}

.p-blog-nav__prev,
.p-blog-nav__next {
   flex: 1;
   max-width: 48%;
}

.p-blog-nav__link {
   display: block;
   padding: 20px;
   background: #fff;
   border-radius: 4px;
   text-decoration: none;
   color: inherit;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
   transition: box-shadow 0.3s;
}

.p-blog-nav__link:hover {
   box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.p-blog-nav__label {
   display: block;
   font-size: 12px;
   color: #111111;
   margin-bottom: 8px;
}

.p-blog-nav__title {
   font-size: 14px;
   color: #333;
   line-height: 1.5;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.p-blog-nav__next {
   text-align: right;
}

/* レスポンシブ対応 */
@media screen and (max-width: 991px) {
   .l-contents--blog {
      flex-direction: column;
   }

   .p-blog__sidebar {
      width: 100%;
   }
}

@media screen and (max-width: 767px) {
   .p-blog-card__link {
      flex-direction: column;
   }

   .p-blog-card__thumbnail {
      width: 100%;
      height: auto;
   }

   .p-blog-card__content {
      padding: 15px;
   }

   .p-blog-card__title {
      font-size: 15px;
   }

   .p-blog-single__header {
      padding: 20px;
   }

   .p-blog-single__title {
      font-size: 20px;
   }

   .p-blog-single__content {
      padding: 20px;
   }

   .p-blog-nav {
      flex-direction: column;
   }

   .p-blog-nav__prev,
   .p-blog-nav__next {
      max-width: 100%;
   }
}

/* ===============================================
   ギャラリーページスタイル
   =============================================== */

.l-contents--gallery {
   display: flex;
   gap: 40px;
   margin-bottom: 0;
}

.p-gallery__main {
   flex: 1;
   min-width: 0;
}

.p-gallery__sidebar {
   width: 250px;
   flex-shrink: 0;
}

/* ギャラリーグリッド */
.p-gallery__grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 20px;
}

.p-gallery-item {
   background: #fff;
   overflow: hidden;
}

.p-gallery-item__link {
   display: block;
   text-decoration: none;
   color: inherit;
}

.p-gallery-item__thumbnail {
   position: relative;
   overflow: hidden;
   background: #f5f5f5;
}

.p-gallery-item__thumbnail img {
   width: 100%;
   height: auto;
   aspect-ratio: 1 / 1;
   object-fit: cover;
   transition: transform 0.3s;
}

.p-gallery-item:hover .p-gallery-item__thumbnail img {
   transform: scale(1.05);
}

.p-gallery-item__info {
   padding: 10px 0;
}

.p-gallery-item__title {
   font-size: 13px;
   font-weight: normal;
   color: #333;
   line-height: 1.4;
   margin: 0;
   display: block;
   text-align: center;
}

.p-gallery-item__staff {
   font-size: 13px;
   color: #b8860b;
   margin-left: 8px;
   font-weight: normal;
}

/* ギャラリーサイドバー */
.p-gallery-sidebar-widget {
   background: #fff;
   border-radius: 0;
   box-shadow: none;
}

.p-gallery-sidebar-widget .p-sidebar-widget__title {
   background: #fff;
   color: #333;
   font-size: 14px;
   font-weight: bold;
   padding: 15px 0px;
   letter-spacing: 0.1em;
   font-family: '游明朝体', 'Yu Mincho Light', 'YuMincho', 'MS Mincho', 'MS明朝', serif;
}

.p-gallery-category__list {
   list-style: none;
   padding: 0;
   margin: 0;
   border: 1px solid #ddd;
}

.p-gallery-category__item {
   border-bottom: 1px solid #eee;
}

.p-gallery-category__item:last-child {
   border-bottom: none;
}

.p-gallery-category__item a {
   display: block;
   padding: 12px 15px;
   color: #666;
   font-size: 13px;
   text-decoration: none;
   transition: all 0.3s;
   text-align: center;
   font-style: italic;
}

.p-gallery-category__item a:hover,
.p-gallery-category__item.is-active a {
   background: #f9f9f9;
   color: #b8860b;
}

/* ギャラリーページネーション */
.p-gallery__pagination {
   margin-top: 25px 0;
   text-align: center;
}

.p-gallery__pagination .page-numbers {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   min-width: 36px;
   height: 36px;
   padding: 0 10px;
   background: #fff;
   border: 1px solid #ddd;
   color: #333;
   font-size: 14px;
   text-decoration: none;
   margin: 0 3px;
   transition: all 0.3s;
}

.p-gallery__pagination .page-numbers:hover {
   background: #111111;
   border-color: #111111;
   color: #fff;
}

.p-gallery__pagination .page-numbers.current {
   background: #111111;
   border-color: #111111;
   color: #fff;
}

/* 投稿なしメッセージ */
.p-gallery__no-posts {
   text-align: center;
   color: #666;
   padding: 60px 20px;
   font-size: 14px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 991px) {
   .l-contents--gallery {
      flex-direction: column;
   }

   .p-gallery__sidebar {
      width: 100%;
   }

   .p-gallery__grid {
      grid-template-columns: repeat(3, 1fr);
   }
}

@media screen and (max-width: 767px) {
   .p-gallery__grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
   }

   .p-gallery-item__info {
      padding: 8px 0;
   }

   .p-gallery-item__title {
      font-size: 12px;
   }

   .p-gallery-item__staff {
      font-size: 12px;
      display: block;
      margin-left: 0;
      margin-top: 4px;
   }
}

@media screen and (max-width: 480px) {
   .p-gallery__grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
   }
}

/* ギャラリー詳細ページ */
.p-gallery-single {
   background: #fff;
   margin-bottom: 30px;
}

.p-gallery-single__thumbnail {
   text-align: center;
   background: #f5f5f5;
}

.p-gallery-single__thumbnail img {
   max-width: 100%;
   height: auto;
}

.p-gallery-single__content {
   padding: 20px 0;
}

.p-gallery-single__title {
   font-size: 18px;
   font-weight: bold;
   color: #333;
   margin: 0 0 15px;
}

.p-gallery-single__meta {
   margin-bottom: 20px;
}

.p-gallery-single__category,
.p-gallery-single__subcategory {
   display: inline-block;
   padding: 4px 12px;
   background: #111111;
   color: #fff;
   font-size: 11px;
   border-radius: 3px;
   margin-right: 8px;
}

.p-gallery-single__subcategory {
   background: #666;
}

.p-gallery-single__staff {
   font-size: 13px;
   color: #b8860b;
}

.p-gallery-single__body {
   font-size: 14px;
   line-height: 1.8;
   color: #333;
}

.p-gallery-single__body p {
   margin-bottom: 1.5em;
}

/* ギャラリー前後ナビゲーション */
.p-gallery-nav {
   display: flex;
   justify-content: space-between;
   gap: 20px;
   margin-top: 30px;
}

.p-gallery-nav__prev,
.p-gallery-nav__next {
   flex: 1;
   max-width: 48%;
}

.p-gallery-nav__link {
   display: block;
   padding: 15px;
   background: #fff;
   border: 1px solid #ddd;
   text-decoration: none;
   color: inherit;
   transition: border-color 0.3s;
}

.p-gallery-nav__link:hover {
   border-color: #111;
}

.p-gallery-nav__label {
   display: block;
   font-size: 12px;
   color: #999;
   margin-bottom: 5px;
}

.p-gallery-nav__title {
   font-size: 13px;
   color: #333;
   line-height: 1.4;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.p-gallery-nav__next {
   text-align: right;
}

@media screen and (max-width: 767px) {
   .p-gallery-nav {
      flex-direction: column;
   }

   .p-gallery-nav__prev,
   .p-gallery-nav__next {
      max-width: 100%;
   }
}