@charset "utf-8";

/*
Theme Name: Listing Theme
Theme URI: https://kogma.work/
Author: Kogma
Author URI: https://kogma.work/
Description: 不動産・リスティング投稿を想定した、絞り込み検索対応の WordPress テーマです。
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: listing-theme
*/

/* 全体のリセットと基本設定 */
/* ========================= */

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  margin: 0;
  padding: 0;
  font-size: 16px;
  color: var( --text-color);
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  color: var(--text-light);
}

.container {
  max-width: 1280px;
  width: 90%;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

img {
  transition: all 500ms ease-out;
}

:root {
  --primary-color: #b69e84;
  /* メインカラー */
  --secondary-color: #111;
  /* サブカラー（CTAボタンなど） */
  --link-color: #795548;
  --text-color: #111;
  /* 主要なテキストカラー */
  --text-light: #666;
  /* サブテキスト */
  --background-color: #fff;
  /* メイン背景色 */
  --body-background: #f6f8f9;
  --border-color: lightgray;
  /* 境界線 */
  --navi-bg: #f5f5f5;
  /* ナビ選択時やthなどの背景 */
  /* オーバーレイ背景 */
  /* ボックスシャドウ */
  --color-gray: gray;
  --color-wh: #fff;
}

.primary {
  background: var(--primary-color);
}


/* メインカラー*/

.secondary {
  background: var(--primary-color);
}


/* サブカラー*/

h1,
h2,
h3,
h4 {
  font-weight: normal;
  letter-spacing: .1em;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.center-title {
  text-align: center;
}

.lum-lightbox.lum-open {
  display: block;
  z-index: 9999;
}

.lum-lightbox-inner img {
  max-height: 1000px;
  width: auto;
  height: 90%;
  object-fit: cover;
}
@media (max-width: 767px) {
h1{font-size: 1.1em;}
h2,h3{font-size: 1em;}
}
/* ヘッダー */
/* ========================= */

.site-header {
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  height: 158px;
  width: 100%;
  box-shadow: rgba(0, 0, 0, 0.0509803922) 0px 5px 5px;
  z-index: 100;
  background-color: #fff;
}

.site-header .container {
  height: 158px;
}

.site-header .site-title {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

.site-header .site-title a {
  text-decoration: none;
}

.site-header .site-logo img {
  max-width: 250px;
  height: auto;
}

.site-branding {
  padding: 50px 0 10px;
}

.site-top-text {
  position: absolute;
  top: 2px;
  color: var(--primary-color);
  padding: 0;
}

.otherlink {
  position: absolute;
  right: 0;
  top: 5px;
  padding: 0;
  margin: 0;
}

.otherlink li {
  display: inline-block;
  margin-left: 10px;
  position: relative;
}

.otherlink li a {
  text-decoration: none;
  font-size: .9em;
  letter-spacing: 0.15em;
  vertical-align: middle;
  padding: 3px 10px;
  display: block;
}

.otherlink li:hover {
  opacity: .85;
}

.otherlink li.secondary a {
  color: var(--color-wh);
  padding: 3px 20px 3px 25px;
}

.otherlink li.secondary a:before {
  left: 7px;
}

.otherlink li.secondary a:hover {}

.otherlink li a:before {
  font-family: "dashicons";
  content: "\f345";
  left: -3px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.site-phone-number {
  font-size: 30px;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  right: 0;
  top: 55px;
  position: absolute;
  align-items: center;
}

.site-phone-number .dashicons-phone {
  font-size: 28px;
  margin-right: 15px;
  color: var(--primary-color);
}

/* ヘッダー画像のスタイル */

.header-image {
  background-size: cover;
  background-position: center;
  min-height: 75vh;
  margin-top: 155px;
  position: relative;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.header-image.loaded {
  opacity: 1;
}

/* メインテキストのスタイル */

.header-main-text {
  position: absolute;
  top: 260px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 60px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transition: opacity 1s ease-in-out 0.5s;
}

.header-main-text.loaded {
  opacity: 1;
}

/* サブテキストのスタイル */

.header-sub-text {
  position: absolute;
  top: 440px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transition: opacity 1s ease-in-out 1s;
}

.header-sub-text.loaded {
  opacity: 1;
}

.header-slider {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
  margin-top: 158px;
}

.header-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fade 12s infinite;
}

.header-slider .s1 {
  animation-delay: 0s;
}

.header-slider .s2 {
  animation-delay: 4s;
}

.header-slider .s3 {
  animation-delay: 8s;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  45% {
    opacity: 1;
  }
  65% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.content-scroll {
  position: absolute;
  right: 50%;
  bottom: 5%;
}

.content-scroll a span {
  position: absolute;
  bottom: 13%;
  left: 50%;
  width: 30px;
  height: 50px;
  margin-left: -15px;
  border: 2px solid #fff;
  border-radius: 50px;
  box-sizing: border-box;
  z-index: 2;
}

.content-scroll a span::before {
  position: absolute;
  top: 10px;
  left: 50%;
  content: '';
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background-color: #fff;
  border-radius: 100%;
  -webkit-animation: sdb 2s infinite;
  animation: sdb 2s infinite;
  box-sizing: border-box;
}

@keyframes sdb {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  80% {
    transform: translate(0, 20px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@media (max-width: 1023px) {
.site-header,.site-header .container {height: 100px;position: unset;}
  .header-slider {margin-top: 0;height: 500px;}
  .site-branding {
    padding: 40px 0 10px;
}

  .header-main-text {
    top: 150px;
    font-size: 40px;
}
  .header-sub-text {
    top: 270px;
    font-size: 20px;
}
.otherlink .dashicons {position: absolute;bottom: 30px;left: 5%;font-size: 30px;}
.otherlink {
  position: fixed;
  left: 0;
  height: 50px;
  background: #fff;
  bottom: 0px;
  top: unset;
  padding: 0 10px 20px;
  border-top: 1px solid var(--border-color);
  margin: 0;
}
.otherlink {
  position: fixed;
  left: 0;
  height: 65px;
  background: #fff;
  bottom: 0px;
  top: unset;
  padding: 0;
  border-top: 1px solid var(--border-color);
  margin: 0;
}
.menu-top-container ul {
    padding-left: 14%;
}
  .otherlink li {
    border-radius: 20px;
    margin-left: 3%;
}
.otherlink li a{
  border-radius: 20px;
  padding: 3px 15px 3px 28px;
  border: 1px solid var(--primary-color);
    }
  .otherlink li.secondary a {
    color: var(--color-wh);
    border: none;
}
  .otherlink li a:before {
    left: 10px;
}
  .otherlink.shrink {
  height: 60px;
}
.site-phone-number {
  position: fixed;
  right: 18px;
  bottom: 10px;
  top: unset;
}
.site-phone-number .dashicons-phone {
  font-size: 30px;
  width: 30px;
  padding-top: 10px;
  height: 40px;
}
}
@media (max-width: 767px) {
.site-phone-number {
  font-size: 0;
  bottom: 20px;
  right: 6%;
}
.site-phone-number .dashicons-phone {
  font-size: 28px;
  width: 30px;
  height: 30px;
  margin-right: 0;
  color: var(--link-color);
}
}
/* パンくず */
/* ========================= */

.breadcrumb {
  background: var(--navi-bg);
  margin-top: 160px;
}

.breadcrumb ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: .85em;
  max-width: 1280px;
  width: 90%;
  margin: 10px auto;
}

.breadcrumb li::after {
  content: " > ";
  margin: 0 5px;
}

.breadcrumb li:last-child::after {
  content: "";
}
@media (max-width: 1023px) {
  .breadcrumb {
    margin-top: 0;
}
  }
@media (max-width: 767px) {
.breadcrumb ul{font-size:12px;margin: 5px auto;width: 96%;}
.breadcrumb li::after {margin: 0 1px;}
}
/* ナビゲーションメニュー */
/* ========================= */

.site-navigation {
  margin-top: 19px;
}

ul.nav-menu {
  margin-bottom: 0;
  display: table;
  margin-top: 0;
  width: 100%;
  border: 1px solid var(--border-color);
  border-width: 0 1px 0 0;
  border-collapse: collapse;
}

.nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: table;
  width: 100%;
  border: 1px solid var(--border-color);
  border-width: 0 1px 0 0;
}

.nav-menu li {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  border-left: 1px solid var(--border-color);
}

.nav-menu a {
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  font-size: .85em;
  color: var(--text-color);
  letter-spacing: 0.15em;
  transition: background 0.3s ease;
}

.nav-menu .current_page_item a,
.nav-menu a:hover {
  background-color: var(--primary-color);
  color: var(--color-wh);
}

#menu-btn-check {
  display: none;
}

.nav-menu li {
  position: relative;
}

/* ▼ サブメニュー（デフォルトで非表示） */

.nav-menu .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  padding: 0;
  margin: 0;
  display: none;
  z-index: 1000;
}

/* サブメニュー内のリンク */

.nav-menu .sub-menu li {
  width: 100%;
  display: block;
  border-left: none;
}

.nav-menu .sub-menu a {
  padding: 15px;
  background-color: var(--navi-bg);
  color: var(--text-color);
  display: block;
  min-width: 150px;
  border-top: 1px solid var( --color-wh);
  border-bottom: 1px solid var( --border-color);
}

.nav-menu .sub-menu a:hover {
  background-color: var(--primary-color);
  color: var(--color-wh);
}

/* ▼ ホバーでサブメニューを表示 */

.nav-menu li:hover>.sub-menu {
  display: block;
}

/* ▼ モバイル対応（最大幅767pxでクリック時に表示） */

@media (max-width: 767px) {
  .nav-menu {
    flex-direction: column;
  }
  .nav-menu li {
    position: static;
  }
  .nav-menu .sub-menu {
    position: static;
    display: none;
    width: 100%;
  }
  
  /* JavaScript でクラスを追加したときに表示する */
  .nav-menu .sub-menu.open {
    display: block;
  }
}

/* 1023px以下でメニューを非表示に */

@media (max-width: 1023px) {
  .nav-menu a:hover {
  background-color: unset;
  color: var(--text-color);
}

  .site-navigation {
    margin-top: 0;
  }
  /* ハンバーガーメニューのボタン */
  .menu-btn {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    height: 58px;
    width: 58px;
    padding: 20px;
    justify-content: center;
    align-items: center;
    z-index: 90;
    background: color(srgb 1 1 1 / 0.61);
    cursor: pointer;
    border-radius: 0 0 0 5px;
  }
	
  /* ハンバーガーメニューの3本線 */
  .menu-btn span,
  .menu-btn span::before,
  .menu-btn span::after {
    content: '';
    display: block;
    height: 3px;
    width: 30px;
    border-radius: 3px;
    background-color: var(--text-color);
    position: absolute;
    transition: 0.3s;
  }
  .menu-btn span::before {
    bottom: 10px;
  }
  .menu-btn span::after {
    top: 10px;
  }

  #menu-btn-check:checked~.menu-btn span::before {
    bottom: 0;
    transform: rotate(45deg);
  }
  #menu-btn-check:checked~.menu-btn span{
   background-color: color(srgb 1 1 1 / 0);
   }
  #menu-btn-check:checked~.menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
  }
  #menu-btn-check:checked~.menu-content {
    left: 20%;
  }
  .menu-close-overlay {
  display: none;
}

#menu-btn-check:checked ~ .menu-close-overlay {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
  .menu-content {
    width: 80%;
    height: 100%;
    position: fixed;
    padding-top: 50px;
    top: 0;
    left: 100%;
    z-index: 99;
    background-color: color(srgb 1 1 1);
    transition: all 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .menu-content ul {
    padding: 20px;
    list-style: none;
    text-align: center;
  }
  .menu-content ul li {
    display: block;
    border-bottom: 1px solid var(--border-color);
  }
  .menu-content ul li a {
    display: block;
    font-size: 1em;
    text-decoration: none;
    padding: 5%;
    transition: 0.3s;
  }
   .menu-item-has-children .sub-menu {
    display: none;
    padding-left: 20px;
  }
   .submenu-toggle:checked + .submenu-label + .sub-menu {
    display: block;
  }
  .submenu-label {
    display: block;
    cursor: pointer;
    padding: 5% 5%;
    font-weight: bold;
    background: transparent;
    color: #fff;
  }

  /* オプション：矢印変化なども可能 */
  .submenu-toggle:checked + .submenu-label::after {
    content: '▲';
    float: right;
  }
  .submenu-label::after {
    content: '▼';
    float: right;
  }
.nav-menu .menu-item-has-children>a::after {
    content: " ▼";
    font-size: 14px;
  }
}
@media (max-width: 767px) {
  .content-scroll{
    display: none;
  }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after {
        height: 2px;
        width: 25px;
    }
  .site-top-text{display: none;}
  .menu-btn {
    height: 28px;
    width: 28px;
    padding: 10px;
    z-index: 999;
  }
  .menu-btn span::before {
    bottom: 9px;
  }
  .menu-btn span::after {
    top: 9px;
  }
  .site-header, .site-header .container {
        height: 50px;
        position: unset;
    }
.site-branding {
        padding: 15px 0 10px;
        text-align: center;
    }
  .site-header .site-logo img{
        max-width: 35%;
    }
  .header-slider {height: 250px;}
  .header-main-text {
    top: 70px;
    font-size: 24px;
}
  .header-sub-text {
    top: 140px;
    font-size: 13px;
}
}
/* 帯 */
/* ========================= */

.listing-banner {
  text-align: center;
}

.single-tagset {
  display: flex;
  gap: 2px;
  text-align: center;
  align-items: center;
}

.single-tagset .post-main-category {
  border-radius: unset;
  font-size: 1em;
  padding: 10px 2%;
  min-width: 130px;
  margin: 0;
  background-color: var(--primary-color);
}

span .edit-post-button {
  border-radius: unset;
  font-size: 1em;
  white-space: nowrap;
  padding: 10px 30px;
  color: var(--color-wh);
  width: 130px;
  margin: 0;
  background-color: var(--color-gray);
}

.single-tagset .listing-banner {
  display: block;
  font-size: 1em;
  padding: 10px 2%;
  min-width: 130px;
}

body:not(.single) .listing-banner {
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  height: 30px;
  left: -33px;
  padding: 5px 0 0;
  position: absolute;
  text-transform: uppercase;
  top: 12px;
  transform: rotate(-45deg);
  width: 125px;
  z-index: 2;
}
.content .listing-fields-single {
    margin: 0 auto;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    }
.listing-fields-single .field-value {
   margin-right: 2%;
   }
@media screen and (max-width: 767px) {
  .single-tagset .listing-banner,.single-tagset .post-main-category,span .edit-post-button {
    font-size: .8em;
    padding: 5px 5%;
    min-width: unset;
    }
.content .listing-fields-single {
    font-size: .85em;
    }
  .listing-fields-single .field-value{white-space: nowrap;}
.single-listing .content>* {margin-top: 0;}}

/* トップページ */
/* ========================= */

.custom-fixed-pages-section {
  padding: 60px 0 150px;
  animation: fadeIn 1s ease-in-out;
}

.bg-white {
  background-color: #fff;
}

.bg-gray {
  background-color: #f7f7f7;
}

.section-title {
  font-size: 3em;
  text-align: center;
  margin: 30px 0;
}

.section-description {
  text-align: center;
  margin: 60px 0;
}

.fixed-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.fixed-page-item {
  padding: 0;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
}

.fixed-page-thumb:hover {
  opacity: .85;
}

.fixed-page-thumb img {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  border-radius: 8px;
}

.fixed-page-title {
  font-size: 1.2em;
  0: AUTO 100PX;
  position: absolute;
  margin: 0;
  bottom: 5px;
  left: 0;
  border-radius: 0 0 8px 8px;
  padding: 30px 0;
  color: var(--color-wh);
  background: rgb(0 0 0 / 32%);
  right: 0;
}

.custom-post-section {
  padding: 60px 20px;
}
.custom-post-readmore,
.read-more-link {
  margin-top: 60px;
  text-align: center;
}

.custom-post-readmore a,
.read-more-link a {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--color-wh);
  padding: 20px 10%;
  border-radius: 4px;
  text-decoration: none;
}

.custom-post-readmore a:hover,
.read-more-link a:hover {
  background-color: var(--secondary-color);
}

.new-posts-section {
  padding: 60px 0;
}

.new-posts-section .post-grid,
.archive .post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.post-item {
  background: var(--navi-bg);
  padding-bottom: 20px;
  border-radius: 10px;
}

.bg-gray .post-item {
  background: var(--background-color);
}

.post-thumb img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.post-item p {
  width: 90%;
  margin: 10px 5%;
}

.post-item:hover {
  opacity: .8;
}

.post-meta {
  color: #888;
  width: 90%;
  margin: 20px 5% 10px 5%;
}

.post-cat {
  margin-right: 10px;
}

.post-title {
  font-size: 16px;
  font-weight: bold;
  width: 90%;
  margin: 10px 5%;
}
@media screen and (max-width: 1023px) {
.custom-fixed-pages-section .container {
 width: 90%;
}

  }
/* モバイル時のみカルーセル化 */

@media screen and (max-width: 767px) {
  .custom-post-readmore, .read-more-link {
    margin-top: 10px;
}
  .custom-post-readmore a, .read-more-link a {
    padding: 10px 10%;
}
  .custom-fixed-pages-section {
    padding: 30px 0;
}
  .container {
    width: 90%;
  }
  .section-title {
    font-size: 1.4em;
    margin: 10px 0;
}
  .section-description {
    margin: 20px auto;
    width:80%
}
  .fixed-page-thumb img {
    max-height: 150px;
}
  .fixed-page-grid {
    display: grid;
    max-width: 250px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin:0 auto;
    gap: 20px;
}
  .new-posts-section .post-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-right: 20px;
    padding-bottom: 16px;
  }
  .post-item {
    max-width: 200px;
    flex: 0 0 auto;
    font-size: .8em;
    scroll-snap-align: start;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  .post-thumb img {
    width: 100%;
    height: 150px;
  }
  .post-meta,
  .post-title,
  .post-excerpt {
    padding: 0;
  }
  .post-item p {
    margin: 10px auto;
  }
  .post-title {
    margin: 10px auto 5px;
    font-size: 1em;
  }
}

/* メインコンテンツ */
/* ========================= */

.content>* {
  max-width: 1280px;
  margin: 20px auto;
  width: 90%;
}

.content>.alignfull,.single-post .content>.alignfull {
  max-width: 100%;
  width: 100%;
}

.content>.alignwide {
  max-width: 1366px;
  width: 90%;
}

.single-post .content>* {
  max-width: 840px;
  margin: 20px auto;
  width: 90%;
}
.post-thumbnail img {
  width: 100%;height: auto;
}
.content {
  padding-top: 30px;
  padding-bottom: 60px;
  flex: 1;
}
.single-postnavi {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 1.5em auto;
  color: var(--primary-color);
  font-size: 0.95em;
}
.single-postnavi li::after {
  content: "/";
  margin: 0 0.6em;
  color: var(--primary-color);
}
.single-postnavi li:last-child::after {
  content: "";
}
.news-section {
  padding: 60px 20px 150px;
}

.news-section .container {
  max-width: 900px;
}

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

.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.news-date {
  white-space: nowrap;
}

.news-cat {
  display: inline-block;
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 4px;
}

.news-title {
  flex: 1;
  text-decoration: none;
}

.news-title:hover {
  text-decoration: underline;
}

.news-readmore {
  text-align: right;
  margin-top: 20px;
}

.news-readmore a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  position: relative;
  text-decoration: none;
}

.news-readmore a:before {
  font-family: "dashicons";
  content: "\f345";
  left: -5px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.content.listing-archive .archive-title {
  text-align: center;
}

.listing-archive .archive-title a {
  font-size: 16px;
  position: absolute;
  right: 0;
  top: 50%;
  letter-spacing: normal;
  transform: translateY(-50%);
}

.listing-archive .archive-title a:before {
  font-family: "dashicons";
  content: "\f345";
  left: -15px;
  position: absolute;
  top: 5px;
}

.content h1 {
  margin: 40px auto;
  position: relative;
  word-break: break-word;
  white-space: normal;
}
.single-listing .content h1 {
  margin: 40px auto 10px;
}
.about-section {
  padding: 60px 0;
  text-align: center;
}

.about-section .section-title span {
  display: block;
  font-size: 14px;
  letter-spacing: 2px;
  color: #aaa;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.about-section .section-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  display: block;
  margin: 20px auto 0;
  border-radius: 2px;
}

.about-section .section-description {
  white-space: pre-line;
  padding: 0 20px;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-flm {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.about-flm-button {
  display: inline-block;
}

.about-flm-button .btn-default {
  display: inline-block;
  padding: 40px 0;
  width: 400px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 1.2em;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgb(136 136 136 / 20%);
}

.about-flm-button .btn-default:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

@media screen and (max-width: 767px) {
  .content h1 {
    margin: 10px auto;
}
  .about-flm-button {
    width: 100%;
}
  
.about-flm {
    margin-top: 30px;
}
  .about-flm-button .btn-default {
    width: 100%;
    padding: 20px 0;
    font-size: .8em;
}
  .news-item {
    flex-wrap: wrap;
    gap: 10px;
}
  .news-title {
    flex: unset;
    width: 100%;
}
.news-section, .custom-post-section, .about-section,.new-posts-section {
    padding: 30px 0;
}}
/* ログイン時表示 */
/* ========================= */
.logged-in .wrapper {
  padding-top: 50px;
}

.logged-in .site-header {
  padding-top: 35px;
}
.logged-in .breadcrumb {
  padding-top: 110px;
  margin-top: 0;
}

.home.logged-in .content {
  padding-top: 0;
}

.logged-in .header-image,
.logged-in .header-slider {
  margin-top: 110px;
}

.home.logged-in .content {
  padding-top: 0;
}
@media screen and (max-width: 1023px) {
 .logged-in .wrapper,.logged-in .site-header,.logged-in .breadcrumb {
    padding-top: 0;
}
.logged-in .header-image,
.logged-in .header-slider {
  margin-top: 0;
}
.logged-in .menu-btn {
    margin-top: 45px;
    }
  }
/* カスタムフィールドリスト */
/* ========================= */

.listing-template-default .listing-meta {
  margin: 0 auto;
}

.listing-template-default .listing-custom-fields {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--border-color);
  border-top: none;
  margin-top: 0;
  padding: 0;
}

.listing-custom-fields {
  padding: 5px 0;
  border-bottom: none;
}

.listing-template-default .listing-custom-fields li {
  display: flex;
  width: 50%;
  border-top: 1px solid var(--border-color);
}

.listing-template-default .listing-th {
  width: 195px;
  letter-spacing: .1em;
  padding: 10px;
  background-color: var(--body-background);
}

.listing-template-default .listing-td {
  width: 50%;
  padding: 10px;
  background-color: var(--background-color);
}
.listing-td .text-value {
  font-size: .8em;
  margin-left: 5px;
}
.listing-template-default .listing-custom-fields li.wide-cats,.listing-template-default .listing-custom-fields li.is-full {
  width: 100%;
}

.listing-template-default .listing-custom-fields li.wide-cats .listing-td {
  width: 73%;
  padding: 10px;
}

.seven-td {
  padding: 10px 1.5%;
  width: auto;
}

.seven-td a:hover {
  text-decoration: underline;
}
@media screen and (max-width: 1179px) {
.listing-template-default .listing-th {
  width: 185px;
}
}
@media screen and (max-width: 1023px) {
.listing-template-default .listing-th {
  width: 140px;
}
}
/* Contact form 7 */
/* ========================= */

.wpcf7 form {
  padding: 80px 10%;
  border-radius: 15px;
  margin: 50px auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.wpcf7 input[type="text"], .wpcf7 input[type="url"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"] {
  background-color: var(--body-background);
  line-height: 1.5;
  padding: 8px 12px;
  width: 85%;
  border-radius: 4px;
  border: none;
}

table.CF7_table,table {
  width: 100%;
  margin: 0 auto;
}

.single .entry-content table.CF7_table,
.page .entry-content table.CF7_table {
  display: table;
}

.CF7_table ::placeholder {
  color: #797979;
}

.CF7_req {
  font-size: .7em;
  padding: 2px 10px;
  letter-spacing: .1em;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50px;
  margin-right: 1em;
}

.CF7_unreq {
  font-size: .9em;
  padding: 5px;
  background: #bdbdbd;
  color: #fff;
  border-radius: 3px;
  margin-right: 1em;
}
.wpcf7 input.wpcf7-submit {
  background-color: var(--primary-color);
  border: 0;
  color: #fff;
  padding: 10px 10%;
  border-radius: 5px;
  font-size: 1.2em;
  margin: 0 auto;
}

.wpcf7 input.wpcf7-submit:hover {
  opacity: .8;
}

.CF7_btn {
  text-align: center;
  margin-top: 20px;
}

.wpcf7-spinner {
  width: 0;
  margin: 0;
}
@media screen and (min-width: 768px) {
  .CF7_table th {
    width: 25%;
    /*横幅*/
    text-align: left;
    border-bottom: 1px solid var(--border-color);
  }
  .CF7_table td {
    border-bottom: 1px solid var(--border-color);
    padding: 28px 0;
  }
}

@media screen and (max-width: 767px) {
  .wpcf7 form {
    padding: 0;
    border-radius: 15px;
    margin: 50px auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}
.CF7_req, .oto_req {margin-right: 5px;}
  .CF7_table tr, .CF7_table td, .CF7_table th {
    display: block;
    line-height: 2em;
  }
  .CF7_table td {
    padding: 5%;
    width: 90%;
  }
  .CF7_table th {
    background: var(--navi-bg);
    text-align: left;
    padding-left: 10px;
    font-size: .8em;
  }
  .wpcf7 input[type="text"], .wpcf7 input[type="url"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
    width: 90%;
    border: 1px solid var(--border-color);
  }
  .CF7_btn {
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
}
  .wpcf7 input.wpcf7-submit {
    padding: 10px 15%;
    font-size: .8em;
}
}
/* フッター */
/* ========================= */

.site-footer {
  text-align: center;
  padding: 60px 0 0;
  position: relative;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  border-top: none;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  right: 45px;
  bottom: 50px;
  z-index: 100;
}

.back-to-top .dashicons {
  font-size: 34px;
}

.copy {
  padding: 10px 0;
  background: var(--navi-bg);
}

.footer-widgets {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1280px;
  z-index: 100;
  margin: 0 auto 60px;
}

.footer-column {
  flex: 1 1 26%;
  min-width: 250px;
  padding: 0 2%;
  text-align: left;
}

.footer-column h3 {
  margin-bottom: 50px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 10px;
  font-size: 15px;
}

/* カテゴリウィジェット */

.widget_categories ul.wp-block-categories {
  padding-left: 0;
  margin: 0 auto;
}

.widget_categories ul.wp-block-categories li {
  background: var(--navi-bg);
  padding: 5%;
  border-radius: 8px;
}

.widget_categories ul.wp-block-categories li ul li {
  margin-bottom: 0;
  padding: 5px 5px 5px 15px;
}

.widget_categories ul.wp-block-categories li ul.children {
  padding: 5px 5px 5px 15px;
}

.widget_categories ul.wp-block-categories li ul.children ul.children {
  padding: 0 0 0 15px;
}

.widget_categories ul.wp-block-categories li ul.children ul.children li {
  padding: 5px 0 0 15px;
}

/* 最新記事ウィジェット */

.widget_recent_entries ul.wp-block-latest-posts__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.wp-block-latest-posts__post-title {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.wp-block-latest-posts__featured-image {
  float: left;
  margin-right: 10px;
}

.wp-block-latest-posts__featured-image img {
  border-radius: 4px;
  max-width: 75px;
  max-height: 75px;
}
@media (max-width: 1023px) {
  .back-to-top {
    right: 28px;
    bottom: 70px;
}}
@media (max-width: 768px) {
  .footer-widgets {
    flex-direction: column;
    padding: 15px;
  }
  .footer-column {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }
  }
@media (max-width: 767px) {
  .site-footer {
    padding: 30px 0 0;
}
}

/* カスタム投稿ページ */
/* ========================= */

.single-listing .post-tags span a {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  padding: 2px 10px;
  color: var(--text-color);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 2.2;
  border-radius: 5px;
  margin: 0 2px;
  white-space: nowrap;
}
.single-listing .post-tags span a:hover {
  background: var(--navi-bg);
  border: 1px solid var(--navi-bg);
}
.single-listing .content>* {
  max-width: 1000px;
}

.custom-text-content,
.listing-honbun {
  margin: 50px auto 80px;
}

#toiawasesaki {
  margin: 20px 0;
  width: 100%;
}

.contact-box {
  margin: 0 auto 20px auto;
  text-align: center;
}

.contact-box-in {
  margin: 30px auto 0;
  text-align: center;
}

.contact-box-title {
  font-size: 2rem;
  text-align: center;
  margin-top: 40px;
  padding-bottom: 10px;
  font-weight: 500;
  width: 100%;
}

.contact-box-left {
  width: 100%;
}

.contact-box-tel {
  font-size: 2rem;
  margin-top: 10px;
  padding-bottom: 10px;
}

.contact-box-right {
  width: 100%;
  padding-top: 5%;
}

.single-listing .content .listing-map-flame {
  margin: 50px auto;
  padding: 20px 0;
  background: var(--body-background);
  max-width: 100%;
  width: 100%;
}

.single-listing .content .listing-map-container {
  margin: 50px auto;
  padding: 0;
  max-width: 1000px;
  width: 90%;
}

#listing_map_single {
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.05);
}

.listing-map-container p {
  margin: 0 auto;
  padding: 10px 0;
}

.listing-map-container h3 {
  background: var(--primary-color);
  color: var(--color-wh);
  padding: 5px 10px;
  max-width: 100px;
  text-align: center;
  font-size: 1em;
  border-radius: 3px;
  margin: 0;
}
.swiper-slide {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.swiper-slide-active {
  opacity: 1;
}
.slide-media,
.thumb-media {
  position: relative;
  overflow: hidden;
}

.slide-media img {
  width: 100%;
  height: 500px;
  object-fit: contain;
}

.swiper-button-prev,
.swiper-button-next {
  display: grid;
  place-content: center;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  width: .7rem;
  height: .7rem;
  content: "";
  border: solid var(--color-gray);
  border-width: 1px 1px 0 0;
}

.swiper-button-prev::after {
  margin-left: 0.4rem;
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
}

.swiper-button-next::after {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.swiper-button-disabled {
  pointer-events: none;
  opacity: 0;
}

.single-listing .swiper-container {
  overflow: hidden;
  background: linear-gradient(transparent 25%, rgba(213, 221, 228, 0.2) 20%);
  padding: 20px 0 80px;
  border-radius: 15px;
  width: 100%;
  margin-bottom: 80px;
  max-width: 100%;
  position: relative;
  z-index: 0;
}

.swiper-container .swiper,
.swiper-container .thumb-wrapper {
  max-width: 860px;
  margin: auto;
  width: 90%;
}

.swiper-container .swiper {
  overflow: visible;
  position: relative;
}

.swiper-container .swiper-fade .swiper-slide {
  -webkit-transition-property: opacity, -webkit-transform !important;
  transition-property: opacity, -webkit-transform !important;
  transition-property: opacity, transform !important;
  transition-property: opacity, transform, -webkit-transform !important;
  pointer-events: none;
}

.swiper-container .swiper-fade .swiper-slide-active {
  pointer-events: auto;
}

.swiper-container .swiper-controller {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 65%;
}

.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  z-index: 9;
  top: 0;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
  bottom: 0;
  background-color: var(--background-color);
  border-radius: 50%;
  margin: auto;
}

.swiper-container .swiper-button-prev {
  right: calc(100% + .5rem);
}

.swiper-container .swiper-button-next {
  left: calc(100% + .5rem);
}

.swiper-container .slide-media {
  display: block;
  border-radius: 4px;
}

.swiper-container .slide-title {
  padding: 10px 0 5px;
  text-align: center;
  font-size: 1em;
}

.swiper-container .slide-type {
  padding: 0 10px;
  border-radius: 15px;
  margin-right: 5px;
  font-size: .85em;
  color: var(--color-wh);
  background: var(--primary-color);
}

.swiper-container .thumb-wrapper {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.swiper-container .thumb-media {
  padding-top: 100%;
  cursor: pointer;
  -webkit-transition: var(--transition);
  transition: var(--transition);
  border-radius: 4px;
}

.swiper-container .thumb-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-container .thumb-media-active {
  -webkit-transform: scale(0.9);
  transform: scale(0.9);
  opacity: 0.3;
  background: var(--text-color);
}

.swiper-container .thumb-media-active img {
  transform: scale(1.1);
}

.swiper-pagination.swiper-pagination-fraction {
  background: rgba(0, 0, 0, 0.41);
  color: var(--background-color);
  border-radius: 20px;
  font-size: 14px;
  left: 45%;
  margin: 0 auto;
  position: absolute;
  text-align: center;
  width: 10% !important;
  min-width: 65px;
  top: 83%;
  z-index: 1;
}

.custom-category-title {
  letter-spacing: .1em;
  border-radius: 3px;
  width: 195px;
  padding: 10px;
  background-color: var(--body-background);
}

.checkbox-value {
  border: 1px solid var(--border-color);
  /* background: var(--navi-bg); */
  line-height: 2.3;
  margin: 0 3px 15px 0;
  font-size: 0.8em;
  padding: 2px 10px;
  white-space: nowrap;
}

ul.single-shozaichi,
ul.listing-three-category-info {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  border: 1px solid var(--border-color);
  border-bottom: none;
}

ul.single-shozaichi li,
ul.listing-three-category-info li {
  display: inline-block;
}

.three-koutu:nth-child(2) {
  margin: 10px 0;
  display: block;
}

.ensen a {
  background: var(--navi-bg);
  font-size: .85em;
  padding: 0 10px;
  margin-right: 5px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.custom-quote {
  padding: 10px 1.5%;
}

@media screen and (max-width: 1179px) {
.seven-td {
    width: 64%;
}
  .custom-category-title{
    width: 185px;
}
}
@media (max-width: 1023px) {
  .swiper-container {
    padding: 2% 5% 3%;
    width: 90%;
  }
  .listing-template-default .listing-custom-fields li.wide-cats .listing-th,.custom-category-title{width: 140px;}
}

@media (max-width: 767px) {
  .single-listing .swiper-container {
    padding: 20px 0 50px;
    margin-bottom: 20px;
}
  .single-listing .post-tags span a {
 font-size: 12px;
}
      .listing-map-flame .listing-map-container #listing_map_single {
 height: 300px !important;
}
  .single-listing .content .listing-map-container {
    margin: 20px auto;
}
  .listing-template-default .listing-th{width: 120px;padding: 10px;font-size: 12px;}
  .custom-category-title{width: 100%;}
  .listing-template-default .listing-custom-fields li.wide-cats .listing-th{width: 120px;}
  .listing-template-default .listing-td,.listing-template-default .listing-custom-fields li.wide-cats .listing-td{width: 65%;padding: 10px;}
  .seven-td{width: 100%;}
  ul.single-shozaichi, ul.listing-three-category-info,.listing-meta {
    font-size: .85em;
}
  ul.single-shozaichi, ul.listing-three-category-info {
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
  .listing-template-default .listing-custom-fields li {
    width: 100%;
}
  .ensen{/* display:block; *//* margin-bottom:6px; */}
  .three-koutu:nth-child(2) {
    margin: 10px 0 0;
}
  .swiper-container .thumb-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }
  .slide-media img {
    height: 200px;
    margin: 0 auto;
    object-fit: contain;
  }
  .swiper-container .swiper-button-prev {
    right: calc(94%);
  }
  .swiper-container .swiper-button-next {
    left: calc(94%);
  }
  .swiper-container {
    padding: 8% 5% 3%;
  }
  .listing-custom-fields li {
    grid-column: span 2;
  }

}

@media (max-width: 460px) {
  .lum-lightbox-inner img {
    width: 100%;
  }
  .lum-gallery-button:after {
    height: 20px !important;
    width: 20px !important;
  }
}

/* お気に入り、閲覧履歴 */
/* ========================= */

.favorite-wrap {
  position: absolute;
  display: inline-block;
  right: 0;
  top: 150px;
  width: 50px;
  z-index: 1;
}

.favorite-btn {
  font-family: "Dashicons";
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
  color: #ffcc00;
}

.favorite-btn[aria-pressed="false"]::before {
  content: "\f154";
}

.favorite-btn[aria-pressed="true"]::before {
  content: "\f155";
}

.favorite-message {
  position: absolute;
  top: -55px;
  right: 10px;
  text-align: center;
  width: 190px;
  background: var(--secondary-color);
  color: #fff;
  padding: 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  font-size: .85em;
  transition: opacity 10.5s ease;
  z-index: 100000;
}

.favorite-message:before {
  content: "";
  position: absolute;
  bottom: -13px;
  right: -2px;
  border: 10px solid transparent;
  border-left: 30px solid var(--secondary-color);
  z-index: 0;
  transform: rotate(90deg);
}

.favorite-message.show {
  opacity: 1;
}

.single-favorite {
  position: relative;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.single-favorite .favorite-wrap {
  position: absolute;
  top: 50px;
  right: 0;
  width: 200px;
}

.single-favorite .favorite-btn {
  font-size: 1em;
  border-radius: 10px;
  padding: 5px 20px 5px 10px;
  vertical-align: middle;
}

.single-favorite .favorite-btn[aria-pressed="false"] {
  background: var(--navi-bg);
}

.single-favorite .favorite-btn[aria-pressed="true"] {
  background: var(--navi-bg);
}

.single-favorite .favorite-btn::before {
  vertical-align: middle;
  font-size: 2.1em;
}

.single-favorite .favorite-btn[aria-pressed="false"]::after {
  content: "お気に入りに登録";
  font-size: .9em;
  color: var(--text-color);
}

.single-favorite .favorite-btn[aria-pressed="true"]::after {
  content: "お気に入り済み";
  color: var(--text-color);
  font-size: .9em;
}

.single-favorite .favorite-message {
  right: 30px;
}

/* ⭐️ ランキング */
ul.listing-shortcode {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  z-index: 1;
}

ul.listing-shortcode li {
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 0;
  position: relative;
  background: var(--background-color);
  transition: box-shadow 0.3s;
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.05);
}

ul.listing-shortcode li:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

ul.listing-shortcode .listing-link {
  display: flex;
  align-items: center;
  width: 100%;
  color: var(--text-color);
}

ul.listing-shortcode .listing-thumbnail {
  flex: 0 0 75px;
  height: 75px;
}

ul.listing-shortcode .listing-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 0 0 8px;
}

ul.listing-shortcode .listing-title {
  margin: 0 15% 0 5%;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

ul.listing-shortcode li::before {
  font-family: "dashicons";
  content: "\f313";
  /* dashicons-awards */
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 3em;
  padding: 3px;
  border-radius: 50%;
  z-index: 2;
}

ul.listing-shortcode li:nth-child(1)::before {
  color: gold;
}

ul.listing-shortcode li:nth-child(2)::before {
  color: silver;
}

ul.listing-shortcode li:nth-child(3)::before {
  color: #cd7f32;
}
@media (max-width: 767px) {
  .single-favorite .favorite-btn[aria-pressed="false"]::after {
  content: "";
}
.favorite-message {
    right: 2px;
    width: 150px;
    padding: 15px 5px;
    font-size: 11px;
}
  body:not(.home) .favorite-message {
    top: -25px;
    padding: 5px;
}
  .single-favorite .favorite-message {
    right: 3px;
}
  .favorite-message:before {
  display: none;
}
}
/* アーカイブページ */
/* ========================= */
.ajax-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 0;
  list-style: none;
}
.ajax-pagination .page-numbers {
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none;
}
.ajax-pagination .page-numbers.current {
  background: var(--secondary-color);
  color: #fff;
  font-weight: bold;
}
.listing-sort {
    text-align: center;
}
.listing-count {
    text-align: center;
    font-weight: bold;
}
.sort-item {
    margin-right: 5px;
    position: relative;
    padding: 5px 20px;
    flex-direction: column;
}
.sort-item:last-child .sort-label-text {
    margin-right: 3px;
}
.sort-arrows {
    display: inline-flex;
    position: absolute;
    flex-direction: column;
    width: 20px;
    top: 2px;
    right: 5px;
}
.sort-arrows .dashicons {
    font-size: 22px;
    padding: 0;
    margin: 0;
    height: 8px;
    width: 10px;
}
.sort-arrows .dashicons.active {
    color: #f60;
}
.category-featured-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 10px;
}

.category-featured-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  animation: fadeSlide 15s infinite;
}

.category-featured-slider .slide:nth-child(1) {
  animation-delay: 0s;
}

.category-featured-slider .slide:nth-child(2) {
  animation-delay: 5s;
}

.category-featured-slider .slide:nth-child(3) {
  animation-delay: 10s;
}

@keyframes fadeSlide {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  45% {
    opacity: 1;
  }
  65% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.slide-left {
  width: 50%;
  height: 100%;
}

.slide-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-right {
  width: 50%;
  padding: 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--navi-bg);
}

.slide-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.slide-date {
  font-size: 0.9em;
  color: #666;
}

.slide-excerpt {
  font-size: 1em;
  margin-top: 10px;
}

/* カスタム投稿アーカイブページ */
/* ========================= */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 27px;
}

.listing-archive .listing-grid {
  margin-top: 40px;
}

.listing-item {
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative;
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.listing-item:hover {
  transform: scale(1.01);
}
.listing-thumbnail {position: relative;}
.listing-thumbnail img {
  height: 190px;
  transform: scale(1);
  object-fit: cover;
  width: 100%;
}
.post-categories {position: absolute;bottom: 5px;margin: 0;text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);left: 5px;line-height: 1.8;white-space: nowrap;width: 75%;overflow: hidden;color: #fff;font-size: .85em;}
.post-category{
  margin-left: 10px;
}
.listing-three-loop {
  line-height: 1.8;
}
.listing-details {
  padding: 0 15px;
  margin: 10px 0 0;
  font-size: .85em;
}
.listing-details .field-value {
  white-space: nowrap;
}
.listing-custom-fields .field-value:not(:first-child)::before {
    content: " / ";
    margin: 0 4px; 
}
.listing-details .post-tags span a {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  padding: 2px 10px;
  color: var(--text-color);
  font-size: .8em;
  border-radius: 5px;
  margin: 0 2px;
  white-space: nowrap;
}

.listing-details .post-tags {
  line-height: 2;
  margin: 2px;
  display: block;
}

.post-main-category {
  border-radius: 50px;
  background-color: color(srgb 0 0 0 / 0.55);
  color: var(--color-wh);
  font-size: .85em;
  padding: 5px 8px;
}
  .post-main-category::after {
        content: "\A";
        white-space: pre;
    }
.listing-details p.listing-title {
  margin-bottom: 10px;
  line-height: 1.3;
}

.listing-date {
  font-size: 0.9em;
  color: #666;
}

.listing-custom-fields ul {
  margin: 5px 0;
  font-size: 0.9em;
}

.detail-button {
  display: inline-block;
  width: 100%;
  position: relative;
  text-align: right;
  padding: 10px 0;
}
.detail-button:before {
    font-family: "dashicons";
    content: "\f345";
    right: 70px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.field-value .unit {
  font-size: 16px;
  margin-left: 3px;
}

.listing-details p {
  margin: 0 0 10px;
}
@media (max-width: 1366px) {
  .new-posts-section .post-grid, .archive .post-grid{
  max-width: 950px;
  margin: 0 auto;
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 27px;
  max-width: 950px;
  margin: 0 auto;
}}

@media (max-width: 1023px) {
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 625px;
  }
      .new-posts-section .post-grid, .archive .post-grid {
        gap: 27px;
    }
}

@media (max-width: 767px) {
  .listing-grid {
    grid-template-columns: repeat(1, 1fr);
    max-width: 300px;
  }
  .home .listing-grid {
    display: flex;
    font-size: .85em;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-right: 20px;
    padding-bottom: 16px;
  }
  .home .listing-item {
    flex: 0 0 98%;
    display: unset;
    scroll-snap-align: start;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }
.listing-thumbnail img {
    width: 100%;
    height: 175px;
  }
.favorite-wrap {
        top: 130px;
        right: 25px;
    }
.listing-details {
    margin: 10px 0 20px;
}
  .single-favorite .favorite-wrap {
    right: 5px !important;
    width: 50px !important;
    height: 50px !important;
    position: fixed;
    bottom: 95px !important;
    padding: 2px;
    top: unset;
    border: 2px solid var(--border-color);
    background: var(--background-color);
    border-radius: 50px;
    z-index: 9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
     /* 柔らかい影 */
}
  .single-favorite .favorite-btn {
    padding: 5px;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    background: unset !important;!i;!;
    box-shadow: 0 5px 5px rgb(0 0 0 / 1%);
    z-index: 999999;
}
  .single-favorite .favorite-btn[aria-pressed="true"]::after {
    content: "";
}
}

.listing-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: .9em;
  align-items: center;
  max-width: 1240px;
  padding: 0;
  margin: 20px auto;
  transition: all 0.3s ease-in-out;
  width: 87%;
}

.dropdown-btn:focus,
.dropdown-btn:hover {
  border-color: var(--primary-color);
  box-shadow: 0px 3px 8px var(--border-color);
}

.listing-form button {
  padding: 15px 0;
  border: none;
  background: var(--primary-color);
  color: var(--color-wh);
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100px;
}

.listing-form button:hover {
  opacity: .8;
}

.listing-form button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.5s ease;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
}

.custom-dropdown {
  position: relative;
  flex: 1;
  background: var(--background-color);
}

#rent-range-section,
#price-range-section {
  width: 29%;
  animation: fadeUp 0.8s ease-out forwards;
  opacity: 0;
  /* 初期は透明 */
  z-index: 9;
}

#rent-range-section .custom-dropdown,
#price-range-section .custom-dropdown {
  width: 47.7%;
  margin-right: 3.3%;
  display: inline-block;
}

#rent-range-section .custom-dropdown:last-child,
#price-range-section .custom-dropdown:last-child {
  width: 48%;
  margin-right: 0;
  display: inline-block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-btn {
  text-align: center;
  padding: 15px 15px 15px 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  transition: all 0.3s ease;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000000" d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

@media (max-width: 1365px) {
  .custom-dropdown {
    position: relative;
    width: 13%;
  }
  #rent-range-section,
  #price-range-section {
    width: 31%;
  }

}
@media (max-width: 1200px) {
  #rent-range-section,
  #price-range-section {
    width: 30%;
  }
#rent-range-section .custom-dropdown:last-child,
#price-range-section .custom-dropdown:last-child {
  width: 47.5%;
}
.listing-form {
    padding: 20px 1%;
    width: 98%;
}
}
.dropdown-menu {
  display: none;
  position: absolute;
  background: var(--background-color);
  left: 0;
  top: 100%;
  list-style: none;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border-color);
  border-top: none;
  overflow: hidden;
}

.dropdown-menu li {
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s;
}

.dropdown-menu li.child-category {
  padding-left: 31px;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li:hover {
  background: var(--navi-bg);
}

.custom-dropdown.open .dropdown-menu {
  display: block;
  z-index: 99;
}
@media screen and (min-width: 1024px) {
  .toggle-search-button {
    display: none;
  }
  .mobile-search-form {
    display: block !important;
    background: var(--navi-bg);
  }
}
@media (max-width: 1023px) {
  .listing-form {
    flex-direction: column;
    gap: 8px;
    width: 83%;
  }
  .custom-dropdown {
    width: 100%;
  }
  .listing-form button {
    padding: 10px 0;
    margin-top: 20px;
    width: 250px;
}
  #rent-range-section, #price-range-section {
        width: 100%;
    }
      #rent-range-section .custom-dropdown, #price-range-section .custom-dropdown {
        width: 48.8%;
        margin-right: 2%;
    }
        #rent-range-section .custom-dropdown:last-child, #price-range-section .custom-dropdown:last-child {
        width: 48.7%;
    }
  .mobile-search-form {
    display: none;
  }

  .toggle-checkbox:checked + .toggle-search-button + .mobile-search-form {
    display: block;
    margin-top: 25px;
  }

  .toggle-search-button {
    position: relative;
    width: 100%;
    display: inline-block;
  }
  .toggle-search-button .dashicons{
    position: absolute;
    right: 85px;
    top: 30px;
    font-size: 26px;
  }
.toggle-checkbox:not(:checked) + .toggle-search-button::after {
  content: "開く";
  position: absolute;
  right: 43px;
  top: 30px;
}
.toggle-checkbox:checked + .toggle-search-button::after {
  content: "閉じる";
  position: absolute;
  right: 28px;
  top: 30px;
}
.listing-form{
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15);
    padding: 5%;
    width: 85%;
    margin-top: 0;
    }
}
@media (max-width: 767px) {
      #rent-range-section .custom-dropdown, #price-range-section .custom-dropdown {
        width: 48.2%;
        margin-right: 2%;
    }
        #rent-range-section .custom-dropdown:last-child, #price-range-section .custom-dropdown:last-child {
        width: 48.3%;
    }
  .toggle-search-button .dashicons{
    right: 68px;
    top: 5px;
  }
.toggle-checkbox:not(:checked) + .toggle-search-button::after {
  right: 28px;
  top: 5px;
}
.toggle-checkbox:checked + .toggle-search-button::after {
  right: 13px;
  top: 5px;
}
      .listing-form {
        box-shadow: unset;
        width: 76%;
        margin-top: 0;
    }
}

.search-section {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 0;
}
.search-section.last {border-bottom: 1px solid var(--border-color);}

#price-selects {
  width: 100%;
  flex-wrap: wrap;
}

.search-section-left {
  padding: 10px 2%;
  margin: 0;
  width: 26%;
  display: flex;
  align-items: center;
  background: var(--navi-bg);
}

.search-section-right {
  padding: 15px;
  width: 67%;
}

.listing-advanced-search-form label {
  display: inline-block;
  margin: 8px;
  cursor: pointer;
}

.listing-advanced-search-form input[type="checkbox"] {
  transform: scale(1.4);
  margin-right: 6px;
}

.listing-advanced-search-form input[type="radio"] {
  transform: scale(1.5);
  margin-right: 6px;
}

.cat-group {
  padding: 3% 0;
  margin-bottom: 5px;
  border-bottom: 1px dotted var(--color-gray);
}

.cat-group:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.cat-group h3 {
  margin-top: 0;
  margin-bottom: 5px;
}

.three-child {
  margin: 10px 0 0;
  font-weight: 600;
  padding-left: 10px;
}

.listing-advanced-search-form select {
  padding: 15px 25px;
  margin-right: 10px;
  font-size: 1em;
}

.listing-advanced-search-form button[type="submit"] {
  background-color: var(--primary-color);
  color: var(--color-wh);
  display: block;
  padding: 25px;
  width: 90%;
  font-size: 1.2em;
  letter-spacing: 5px;
  max-width: 500px;
  margin: 5% auto;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}
@media (max-width: 1200px) {
  .search-section-right {
    padding: 1.5%;
}
}
@media (max-width: 767px) {
.search-section-left {
    padding: 2%;
    width: 100%;
}
.search-section-left p{
    padding: 0;
    margin: 0;
    width: 100%;
    font-size: 1em;
}
 .search-section-right {
   font-size: .9em;
   padding: 1.5%;
   width: 97%;
    }
  .three-child {
   font-size: .9em;
    }
  .listing-advanced-search-form input[type="radio"],.listing-advanced-search-form input[type="checkbox"] {
    transform: scale(1.3);
    margin-right: 4px;
}
  .cat-group h3{
   font-size: 1em;
   }
  .listing-advanced-search-form select {
    padding: 3% 5%;
    font-size: 1em;
    margin: 10px;
}
  .listing-advanced-search-form button[type="submit"] {
    padding: 10px 0;
    width: 50%;
    font-size: 1em;
    margin: 25px auto 0 auto;
}
  }