/* line 2, sass/index.scss */
.part1 {
  color: #eb610e;
  margin-bottom: 20px;
}

/* line 7, sass/index.scss */
.part1 svg {
  font-size: 16px;
  margin-right: 0.5em;
}

/* line 12, sass/index.scss */
.part1 li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* line 18, sass/index.scss */
.part1 li:nth-child(2) {
  margin: 0.5em 0;
}

/* line 22, sass/index.scss */
.part1 li span:last-child {
  font-size: 18px;
  background: #eb610e;
  color: #fff;
  text-align: center;
  width: 80px;
  display: inline-block;
}

/* line 31, sass/index.scss */
.search-condition {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  background: rgba(76, 76, 76, 0.7);
  padding: 20px 30px;
  width: 100%;
  z-index: 10;
}

/* トップページの検索条件セクションの背景を削除 */
.home-page .search-condition {
  background: none;
  box-shadow: none;
  position: relative;
  top: auto;
  transform: none;
  /* margin-top: -60px;
  margin-bottom: 40px; */
}

/* 構造アコーディオンスタイル */
.structure-accordion {
  position: relative;
}

.structure-accordion dd {
  position: relative;
}

.structure-selected-display {
  padding: 6px 40px 6px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  min-height: 38px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #333;
}

.structure-selected-display:hover {
  border-color: #999;
}

.structure-selected-display::after {
  content: '▼';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #666;
  transition: transform 0.3s ease;
}

.structure-accordion.active .structure-selected-display::after {
  transform: translateY(-50%) rotate(180deg);
}

.structure-accordion.active .structure-selected-display {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #999;
}

/* 価格範囲のスタイル */
.price-range {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 768px) {
    .price-range {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .price-range span {
        display: none;
    }
}

.price-range select {
  flex: 1;
}

.price-range span {
  color: #666;
  font-size: 14px;
  flex-shrink: 0;
}

.structure-accordion-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  margin-top: 4px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.structure-accordion-content .checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.structure-accordion-content .checkbox-item {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-radius: 4px;
}

.structure-accordion-content .checkbox-item:hover {
  background: #f5f5f5;
}

.structure-accordion-content .checkbox-item input[type="checkbox"] {
  margin-right: 6px;
}

.structure-accordion-content .checkbox-item span {
  font-size: 14px;
  white-space: nowrap;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .structure-accordion-content .checkbox-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* メインバナーと検索フォームのレスポンシブ対応 */
@media (max-width: 1200px) {
  .yield__section {
    padding: 30px;
  }
  
  .home-page .search-condition {
    /* margin-top: -50px; */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .yield__section {
    padding: 20px;
  }
  
  .home-page .search-condition {
    margin-top: 0;
    margin-bottom: 20px;
    position: static;
  }
  
  .main-banner {
    min-height: auto;
  }
  
  .main-banner img {
    display: none; /* スマホでバナー画像を非表示 */
  }
  
  .banner-img {
    min-height: 0;
  }
  
  .yield__ttl {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .yield__list {
    flex-direction: column;
    margin-bottom: 15px;
  }
  
  .yield__list dt {
    width: 100%;
    margin-bottom: 8px;
    font-size: 14px;
  }
  
  .yield__list dd {
    width: 100%;
  }
  
  /* 価格の範囲選択を縦並びに */
  .yield__list dd[style*="display: flex"] {
    flex-direction: column;
  }
  
  .yield__list dd[style*="display: flex"] select {
    margin-bottom: 8px;
  }
  
  .yield__list dd[style*="display: flex"] span {
    margin-bottom: 8px;
    text-align: center;
  }
  
  .yield__body {
    margin-bottom: 20px;
  }
  
  .yield__foot {
    flex-direction: column;
    padding-top: 15px;
    text-align: center;
  }
  
  .yield__cnt {
    margin-bottom: 15px;
  }
  
  .yield__btn {
    width: 100%;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .yield__section {
    padding: 15px;
    border-radius: 8px;
  }
  
  .yield__ttl {
    font-size: 18px;
  }
  
  .home-page .search-condition {
    margin-top: 0;
    margin-bottom: 15px;
  }
  
  .main-banner {
    min-height: 0;
  }
  
  .main-banner img {
    display: none; /* スマホでもバナー画像を非表示 */
  }
  
  .index-title {
    font-size: 20px;
    padding: 10px;
  }
  
  .index-title span {
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 4px;
  }
  
  .yield__list dt {
    font-size: 13px;
  }
  
  .yield__list select,
  .structure-selected-display {
    font-size: 14px;
    padding: 8px 30px 8px 12px;
  }
  
  .yield__cnt {
    font-size: 14px;
  }
  
  .yield__cnt .bknCnt {
    font-size: 20px;
  }
  
  .yield__btn {
    font-size: 14px;
  }
}

/* line 41, sass/index.scss */
.search-condition form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* line 47, sass/index.scss */
.search-condition input,
.search-condition select {
  background: #fff;
  padding: 10px;
  width: 30%;
}

/* 検索フォームの白背景スタイル統一 */
.yield__section {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.yield__ttl {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

.yield__list {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.yield__list dt {
  width: 120px;
  font-weight: bold;
  color: #555;
}

.yield__list dd {
  flex: 1;
}

.yield__list select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  transition: all 0.3s ease;
}

.yield__list select:hover {
  border-color: #eb610e;
}

.yield__list select:focus {
  outline: none;
  border-color: #eb610e;
  box-shadow: 0 0 0 2px rgba(235, 97, 14, 0.1);
}

.yield__body {
  margin-bottom: 30px;
}

.yield__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.yield__cnt {
  font-size: 16px;
  color: #666;
}

.yield__cnt .bknCnt {
  font-size: 24px;
  font-weight: bold;
  color: #eb610e;
  margin: 0 4px;
  display: inline-block;
  min-width: 3em;
  text-align: center;
  transition: opacity 0.3s ease;
}

.yield__btn {
  padding: 12px 40px;
  background: #eb610e;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.yield__btn:hover {
  background: #d55410;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(235, 97, 14, 0.3);
}

/* ダークモードでも白背景を維持 */
@media (prefers-color-scheme: dark) {
  .yield__section {
    background: #fff;
    color: #333;
  }
  
  .yield__section select,
  #inv-search-form select {
    background-color: #fff;
    color: #333;
    border-color: #ddd;
  }
  
  .yield__section select:hover,
  #inv-search-form select:hover {
    border-color: #eb610e;
  }
  
  .yield__list dt {
    color: #555;
  }
  
  .structure-selected-display {
    background: #fff;
    color: #333;
    border-color: #ddd;
  }
  
  .structure-accordion-content {
    background: #fff;
    color: #333;
  }
  
  .structure-accordion-content .checkbox-item:hover {
    background: #f5f5f5;
  }
}

/* line 54, sass/index.scss */
#seach-new {
  background: #eb610e;
  color: #fff;
  height: 35px;
  border-radius: 5px;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  border: 1px solid #eb610e;
  transition: 0.3s;
  align-self: center;
}

/* line 71, sass/index.scss */
#seach-new:hover {
  color: #eb610e;
  background: #fff;
}

/* line 77, sass/index.scss */
.new-info-title {
  padding: 20px;
  color: #eb610e;
  background: #fff;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* line 87, sass/index.scss */
.new-info-title h3 {
  font-size: 20px;
  display: flex;
  align-items: center;
}

/* line 102, sass/index.scss */
.new-info-title a {
  color: #fff;
  background: #eb610e;
  padding: 3px 20px;
  border-radius: 31px;
  font-size: 12px;
}

/* line 110, sass/index.scss */
.new-info-title a svg {
  margin-left: 10px;
}

/* line 114, sass/index.scss */
.new-info-list {
  padding-top: 20px;
}

/* line 118, sass/index.scss */
.new-info-list ul {
  margin-left: -30px;
  display: flex;
  flex-wrap: wrap;
}

/* line 124, sass/index.scss */
.new-info-list ul li {
  padding-left: 30px;
  margin-bottom: 30px;
  width: 33.33%;
  position: relative;
}

/* line 131, sass/index.scss */
.new-info-list .pic {
  width: 100%;
  height: 0;
  padding-top: 80%;
  position: relative;
  cursor: pointer;
}

/* line 139, sass/index.scss */
.house-shape {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: none;
}

/* line 150, sass/index.scss */
.house-shap-show {
  display: block;
}

/* line 154, sass/index.scss */
.new-info-list .pic img {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* line 166, sass/index.scss */
.favour {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 30px;
  color: #fff;
  z-index: 9;
  cursor: pointer;
}

/* line 176, sass/index.scss */
.info-intr {
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.5);
}

/* line 181, sass/index.scss */
.info-intr-part1 {
	display: flex;
	flex-wrap:wrap;/*  濱田追加 */
}

/* line 185, sass/index.scss */
.info-intr-part1 a {
	/*   width: 100px; *//*  濱田削除 */
	padding:0px 5px;
	display: block;
	text-align: center;
	color: #fff;
	border-radius: 5px;
	/*   margin-right: 10px; *//*  濱田削除 */
	margin-right: 3px;/*  濱田追加 */
	margin-bottom: 3px;/*  濱田追加 */
}

/* line 193, sass/index.scss */
.info-intr-part1 a:hover {
  text-decoration: none;
}

/* line 198, sass/index.scss */
.info-intr-part1 a {
  background: #3c3c3c;
  cursor: default;
}


/* line 213, sass/index.scss */
.info-intr-part2 .row {
  margin-bottom: 7px;
}

/* line 217, sass/index.scss */
.info-intr-part2 .row2 {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

/* line 223, sass/index.scss */
.info-intr-part2 .row2 > .col:first-child .item-value {
  margin-right: 7px;
}

/* line 229, sass/index.scss */
.info-intr-part2 .cell {
  display: inline-block;
}

/* line 233, sass/index.scss */
.info-intr-part2 .item-label {
  margin-bottom: 7px;
  background: #606060;
  color: #fff;
  padding: 3px 6px;
  margin-right: 5px;
}

/* line 241, sass/index.scss */
.info-intr-part2 .item-value {
  margin-bottom: 7px;
}

/* line 286, sass/index.scss */
.info-intr h3 {
  font-size: 20px;
  margin-top: 10px;
}

/* line 291, sass/index.scss */
.info-intr > span {
  font-size: 28px;
  color: #eb610e;
  margin: 4px 0 15px;
  display: flex;
  align-items: center;
  line-height: 1.2;
}

/* line 300, sass/index.scss */
.info-intr > span span {
  font-size: 14px;
  margin-left: 4px;
}

/* line 316, sass/index.scss */
.info-intr .kakaku-row {
  margin-bottom: 15px;
}

/* line 320, sass/index.scss */
.info-intr .kakaku-label {
  padding: 0 6px;
  border: 1px solid #eb610e;
  color: #eb610e;
  margin-right: 5px;
  font-size: 18px;
  display: inline-block;
}

/* line 329, sass/index.scss */
.info-intr .kakaku-label + span {
  font-size: 28px;
  color: #eb610e;
  display: inline-block;
  line-height: 1.2;
  vertical-align: middle;
}

/* line 338, sass/index.scss */
.info-intr .kakaku-label + span span {
  font-size: 14px;
  margin-left: 4px;
}

/* line 345, sass/index.scss */
.info-intr > a {
  display: block;
  text-align: center;
  border: 1px solid #eb610e;
  color: #eb610e;
  position: relative;
  text-decoration: none;
  padding: 5px 0;
  margin-top: 20px;
}

/* line 356, sass/index.scss */
.info-intr > a:hover {
  background-color: #eb610e;
  color: white;
}

/* line 361, sass/index.scss */
.info-intr > a::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
  display: inline-block;
  border: 6px solid #eb610e;
  border-right: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* line 374, sass/index.scss */
.info-intr > a:hover:after {
  border-left-color: white;
}

/* 新着物件セクションのレスポンシブ対応 */
@media (max-width: 1200px) {
  .new-info-title {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .new-info-title h3 {
    font-size: 18px;
  }
  
  .new-info-list ul {
    margin-left: -20px;
  }
  
  .new-info-list ul li {
    padding-left: 20px;
    margin-bottom: 20px;
    width: 33.33%;
  }
  
  .info-intr {
    padding: 20px 15px;
  }
  
  .info-intr h3 {
    font-size: 18px;
  }
  
  .info-intr > span {
    font-size: 20px;
  }
  
  .info-intr-part2 span {
    font-size: 12px;
  }
  
  .info-intr > a {
    padding: 5px 0;
    font-size: 14px;
  }
  
  .info-intr > a::after {
    right: 12px;
  }
}

@media (max-width: 1000px) {
  /* line 407, sass/index.scss */
  .part1 ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  /* line 412, sass/index.scss */
  .part1 ul li {
    width: 31%;
  }
  /* line 415, sass/index.scss */
  .part1 li {
    justify-content: flex-start;
  }
  /* line 418, sass/index.scss */
  .part1 li span:last-child {
    margin-left: 0.7em;
    font-size: 16px;
  }
  /* line 422, sass/index.scss */
  .search-condition input, .search-condition select {
    padding: 3px 2px;
  }
  /* line 425, sass/index.scss */
  .search-condition {
    padding: 7px 20px 10px;
  }
  /* line 428, sass/index.scss */
  .common-part ul {
    border: none;
  }
}

@media (max-width: 800px) {
  /* line 434, sass/index.scss */
  .part1 ul li {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .new-info-list ul li {
    width: 50%;
  }
  
  .info-intr h3 {
    font-size: 16px;
    margin: 5px 0;
  }
  
  .kakaku-row {
    margin-bottom: 10px;
  }
  
  .kakaku-label {
    font-size: 14px;
  }
  
  .kakaku-label + span {
    font-size: 20px;
  }
  
  .info-intr-part1 {
    /* margin-bottom: 10px; */
  }
  
  .info-intr-part1 a {
    font-size: 11px;
    padding: 2px 4px;
  }
}

@media (max-width: 650px) {
  /* line 459, sass/index.scss */
  .ul-list ul {
    width: 50%;
    margin-bottom: 14px;
    padding-left: 10px;
  }
}

@media (max-width: 550px) {
  /* line 467, sass/index.scss */
  .search-condition input, .search-condition select, #seach-new {
    width: 48%;
    font-size: 12px;
  }
  /* line 471, sass/index.scss */
  .search-condition {
    padding: 5px 10px 10px;
  }
  /* line 474, sass/index.scss */
  #seach-new {
    height: 26px;
    align-self: center;
  }
  /* line 478, sass/index.scss */
  .menu {
    font-size: 16px;
  }
}

@media (max-width: 500px) {
  /* line 484, sass/index.scss */
  .new-info-title h3 {
    font-size: 18px;
  }
  /* line 487, sass/index.scss */
  .new-info-title a {
    padding: 3px 8px;
  }
}

@media (max-width: 500px) {
  .new-info-list ul {
    margin-left: -10px;
  }
  
  .new-info-list ul li {
    padding-left: 10px;
    width: 100%;
    margin-bottom: 15px;
  }
  
  .new-info-list .pic {
    padding-top: 60%;
    overflow: hidden;
  }
  
  .new-info-list .pic img {
    height: auto;
  }
  
  .info-intr {
    padding: 10px;
  }
  
  .info-intr h3 {
    font-size: 15px;
    margin: 5px 0;
  }
  
  .info-intr .kakaku-row {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
  }
  
  .info-intr .kakaku-label {
    font-size: 12px;
    padding: 0 4px;
  }
  
  .info-intr .kakaku-label + span {
    font-size: 18px;
  }
  
  .info-intr .kakaku-label + span span {
    font-size: 12px;
  }
  
  .info-intr > a {
    margin-top: 10px;
    font-size: 13px;
    padding: 5px 0;
  }
  
  .info-intr-part2 .row,
  .info-intr-part2 .row2 {
    margin-bottom: 3px;
  }
  
  .info-intr-part2 .item-label {
    font-size: 11px;
    padding: 2px 4px;
    margin-bottom: 3px;
  }
  
  .info-intr-part2 .item-value {
    font-size: 12px;
    margin-bottom: 3px;
  }
  
  .favour {
    font-size: 24px;
    right: 5px;
    top: 5px;
  }
}

/* ===== FAQ Section Styles (TOP) ===== */
.faq-section {
  padding: 80px 0;
  margin-top: 60px;
  background: #fff;
  position: relative;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #e0e0e0 20%, #e0e0e0 80%, transparent);
}

.faq-container {
  max-width: 1200px;
  margin: 0 auto;
}

.faq-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
  position: relative;
  padding-bottom: 20px;
}

.faq-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
}

.faq-title i {
  margin-right: 12px;
  font-size: 28px;
}

.faq__wrap {
  max-width: 900px;
  margin: 0 auto;
}

.faq__list {
  margin-bottom: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow .3s ease, transform .3s ease;
  overflow: hidden;
}

.faq__list:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.faq__list:last-child { margin-bottom: 0; }

.faq__list dt {
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden; /* ボタンがdtからはみ出ないように */
}

.faq__button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 70px 24px 24px; /* 右パディングを調整 */
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: background-color .3s ease, color .3s ease;
  display: flex;
  align-items: center;
  margin: 0;
  border-radius: 0;
  word-break: break-word;
  box-sizing: border-box;
}

.faq__button:hover { background: transparent; }

.faq__toggle-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  overflow: hidden;
  flex-shrink: 0;
}

.faq__toggle-icon .plus,
.faq__toggle-icon .minus {
  position: absolute;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__toggle-icon .minus {
  opacity: 0;
  transform: rotate(90deg);
}

.faq__button.active .faq__toggle-icon {
  background: currentColor;
  color: #fff !important;
}

.faq__button.active .faq__toggle-icon .plus {
  opacity: 0;
  transform: rotate(-90deg);
}

.faq__button.active .faq__toggle-icon .minus {
  opacity: 1;
  transform: rotate(0);
}

.faq__icn--q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  border-radius: 8px;
  margin-right: 16px;
  margin-top: 2px;
  font-weight: bold;
  flex-shrink: 0;
  font-size: 18px;
}

.faq__list dd { margin: 0; }

/* ===== 開閉本体：displayは切り替えず max-height をアニメーション ===== */
.faq-section dd.faq__answer {
  display: block;               /* ← これが重要：display切替しない */
  overflow: hidden;
  max-height: 0;
  transition: max-height .5s cubic-bezier(.4,0,.2,1);
  will-change: max-height;
  --h: 1200px;                  /* フォールバック。JSが実高さで上書き */
}
.faq-section dd.faq__answer.is-open   { max-height: var(--h); }
.faq-section dd.faq__answer.is-closed { max-height: 0; }

.faq__answer-inner {
  display: flex;
  align-items: flex-start;
  padding: 20px 24px 24px 56px;
  opacity: 1;
  transform: translateY(0);
}

.faq__icn--a {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-right: 16px;
}

.faq__answer-text { flex: 1; }

.faq__answer p {
  line-height: 1.8;
  color: #555;
  margin: 0 0 12px 0;
  font-size: 15px;
}
.faq__answer p:last-child { margin-bottom: 0; }

/* もっと見る：トップは隠し項目を最初非表示に */
.faq-section .faq__list--hidden { display: none; }


/* TOPページでindex-titleを非表示 */
.home-page .index-title {
  display: none;
}

/* スマホ表示でトップページのレイアウトを調整 */
@media (max-width: 768px) {
  .banner.main-banner {
    display: flex;
    flex-direction: column;
    position: static;
    height: auto;
  }
  
  .home-page .main-content-container {
    margin-top: 20px;
  }
}

/* メインバナーと検索ボックスの配置 */
.banner.main-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.banner-img {
  position: relative;
  width: 100%;
  min-height: 600px;
}

.banner-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* 検索ボックススタイル */
.search-condition {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin: 0 auto;
  z-index: 10;
}

/* 検索フォームのスタイル調整 */
.yield__section {
  text-align: left;
}

.yield__ttl {
  font-size: 24px;
  margin-bottom: 25px;
  color: #333;
  font-weight: bold;
  text-align: center;
}

.yield__body {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.yield__list {
  flex: 1;
  min-width: 180px;
  margin-bottom: 15px;
}

.yield__list:first-child {
  width: 100%;
  flex: 0 0 100%;
  margin-bottom: 10px;
}

/* 都道府県と築年数を同じ行に */
.yield__list:nth-child(3),
.yield__list:nth-child(4) {
  flex: 0 0 calc(50% - 10px);
}

/* 積算と構造を同じ行に */
.yield__list:nth-child(5),
.yield__list:nth-child(6) {
  flex: 0 0 calc(50% - 10px);
}

.yield__sub-ttl {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
  display: block;
  white-space: nowrap;
}

.yield__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  gap: 20px;
}

.yield__cnt {
  font-size: 16px;
  color: #666;
}

.bknCnt {
  font-size: 22px;
  font-weight: bold;
  color: #e6002d;
  margin: 0 5px;
}

.yield__btn {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  background: #e6002d;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.yield__btn:hover {
  background: #d00024;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 0, 45, 0.3);
}


/* 検索ボックスのレスポンシブ対応 */
@media (max-width: 1200px) {
  .search-condition {
    padding: 30px;
  }
  
  .yield__ttl {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  /* タブレットでは各項目を全幅に */
  .yield__list:nth-child(3),
  .yield__list:nth-child(4),
  .yield__list:nth-child(5),
  .yield__list:nth-child(6) {
    flex: 0 0 100%;
  }
}

@media (max-width: 768px) {
  .banner-img {
    min-height: auto;
    height: auto;
  }
  
  .banner-img > img {
    position: static;
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
  }
  
  .search-condition {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 20px 15px;
    background: #f8f8f8;
  }
  
  .yield__ttl {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .yield__body {
    display: block;
  }
  
  /* すべての項目を横並びレイアウトに */
  .yield__list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    width: 100%;
    flex: none;
  }
  
  .yield__list dt {
    flex: 0 0 80px;
    margin: 0;
  }
  
  .yield__list dd {
    flex: 1;
    margin: 0;
  }
  
  /* セレクトボックスのサイズを統一 */
  .yield__list select,
  .structure-selected-display {
    width: 100%;
    height: 40px;
    padding: 8px 35px 8px 12px;
    font-size: 14px;
    box-sizing: border-box;
  }
  
  .yield__sub-ttl {
    font-size: 13px;
    margin-bottom: 0;
  }
  
  /* 価格の特別なレイアウト */
  .yield__list:nth-child(2) dd {
    display: flex !important;
    gap: 8px;
    align-items: center;
  }
  
  .yield__list:nth-child(2) dd select {
    flex: 1;
  }
  
  .yield__list:nth-child(2) dd span {
    flex: 0 0 auto;
    font-size: 13px;
  }
  
  /* ボタンとカウント */
  .yield__foot {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
  }
  
  .yield__cnt {
    font-size: 14px;
  }
  
  .bknCnt {
    font-size: 18px;
  }
  
  .yield__btn {
    width: auto;
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .banner-img {
    min-height: auto;
  }
  
  .banner-img > img {
    max-height: 200px;
  }
  
  .search-condition {
    padding: 15px 10px;
  }
  
  .yield__ttl {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  /* より小さいデバイス用の調整 */
  .yield__list dt {
    flex: 0 0 70px;
  }
  
  .yield__sub-ttl {
    font-size: 12px;
  }
  
  .yield__list select,
  .structure-selected-display {
    height: 36px;
    padding: 6px 30px 6px 10px;
    font-size: 13px;
  }
  
  .yield__btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* FAQセクションのレスポンシブ対応 */
@media (max-width: 1200px) {
  .faq-section {
    padding: 60px 0;
    margin-top: 40px;
  }
  
  .faq-container {
    padding: 0 20px;
  }
  
  .faq__wrap {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .faq-section {
    padding: 40px 0;
    margin-top: 30px;
  }
  
  .faq-title {
    font-size: 22px;
    margin-bottom: 30px;
    padding-bottom: 15px;
  }
  
  .faq-title i {
    font-size: 20px;
    margin-right: 8px;
  }
  
  .faq__list {
    margin-bottom: 12px;
    border-radius: 8px;
  }
  
  .faq__button {
    padding: 16px 60px 16px 16px;
    font-size: 14px;
  }
  
  .faq__toggle-icon {
    right: 12px;
    width: 26px;
    height: 26px;
    font-size: 16px;
  }
  
  .faq__answer-inner {
    padding: 0.3em 2.5em 1.2em;
  }
  
  .faq__answer-inner::before {
    left: 0.8em;
    font-size: 1.2em;
  }
  
  .faq__answer p {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .faq__more-wrapper {
    margin-top: -40px;
  }
  
  .faq__more-wrapper.active {
    margin-top: 30px;
  }
  
  .faq__more-btn {
    padding: 10px 30px;
    font-size: 15px;
  }
  
  /* モバイルでも4番目のFAQをぼやけて表示 */
  .faq__wrap .faq__list:nth-child(4) {
    max-height: 60px;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding: 30px 0;
    margin-top: 20px;
  }
  
  .faq-container {
    padding: 0 15px;
  }
  
  .faq-title {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .faq-title i {
    display: none;
  }
  
  .faq__list {
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  }
  
  .faq__button {
    padding: 14px 50px 14px 14px;
    font-size: 13px;
  }
  
  .faq__toggle-icon {
    right: 10px;
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
  
  .faq__answer-inner {
    padding: 0.2em 2.2em 1em;
  }
  
  .faq__answer-inner::before {
    left: 0.6em;
    font-size: 1.1em;
  }
  
  .faq__answer p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
  }
  
  .faq__more-wrapper {
    margin-top: -30px;
  }
  
  .faq__more-wrapper.active {
    margin-top: 20px;
  }
  
  .faq__more-btn {
    padding: 8px 24px;
    font-size: 14px;
    width: 100%;
    max-width: 200px;
  }
  
  /* スマホでも4番目のFAQをぼやけて表示 */
  .faq__wrap .faq__list:nth-child(4) {
    max-height: 50px;
    opacity: 0.3;
  }
}

/* Dynamic theme color styles from _top-content.php */
/* These styles use PHP variables from the theme settings */
/* FAQ Section Dynamic Colors */
.faq-title {
  color: var(--main-color, #eb610e);
}

.faq-title::after {
  background: var(--main-color, #eb610e);
}

.faq__icn--q {
  background: var(--main-color, #eb610e);
}

.faq__toggle-icon {
  color: var(--main-color, #eb610e);
}

.faq__button.active .faq__toggle-icon {
  background: var(--main-color, #eb610e);
}

.faq__list:hover .faq__icn--q {
  box-shadow: 0 4px 12px rgba(235, 97, 14, 0.25);
}

.faq__icn--a {
  color: var(--main-color, #eb610e);
  border: 2px solid var(--main-color, #eb610e);
}

/* FAQ Hover effects */
.faq__list:hover .faq__button {
  color: var(--main-color, #eb610e);
}

/* FAQ Hidden items */
.faq__list--hidden {
  display: none;
}

/* 4番目のFAQアイテムを部分的に表示（最初の隠れた要素） */
.faq__wrap .faq__list:nth-child(4) {
  display: block !important;
  position: relative;
  opacity: 0.4;
  filter: blur(2px);
  max-height: 80px;
  overflow: hidden;
  pointer-events: none;
}

/* グラデーションマスクを追加 */
.faq__wrap .faq__list:nth-child(4)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.9));
  pointer-events: none;
  z-index: 1;
}

/* すべて表示した時のスタイル */
.faq__list--hidden.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* 4番目のFAQを通常表示に戻す */
.faq__wrap .faq__list:nth-child(4).show {
  opacity: 1 !important;
  filter: none !important;
  max-height: none !important;
  pointer-events: auto !important;
}

.faq__wrap .faq__list:nth-child(4).show::after {
  display: none !important;
}

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

/* FAQ More button */
.faq__more-wrapper {
  text-align: center;
  margin-top: -60px;
  position: relative;
  z-index: 10;
  transition: margin-top 0.3s ease;
}

/* 開いた後のマージン */
.faq__more-wrapper.active {
  margin-top: 40px;
}

.faq__more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 40px;
  background: #fff;
  color: var(--main-color, #eb610e);
  border: 2px solid var(--main-color, #eb610e);
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.faq__more-btn:hover {
  background: var(--main-color, #eb610e);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(235, 97, 14, 0.3);
}

.faq__more-btn:hover .faq__more-icon {
  color: #fff;
}

.faq__more-btn.active .faq__more-text {
  content: 'もっと見る';
}

.faq__more-btn.active .faq__more-icon {
  transform: rotate(180deg);
}

.faq__more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

/* FAQ Section gradient background */
.faq-section::after {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}

/* Footnav Section Dynamic Colors */
.footnav__section::before {
  background: linear-gradient(90deg, transparent, var(--main-color, #eb610e), transparent);
}

.footnav__ttl::after {
  background: var(--main-color, #eb610e);
}

.footnav__btn {
  background: var(--main-color, #eb610e);
}

.footnav__btn:hover {
  box-shadow: 0 8px 24px rgba(235, 97, 14, 0.25);
}

/* Footnav Section Styles */
.footnav-section {
  padding: 80px 0;
  background: #f8f8f8;
  position: relative;
  background-image: url('https://timelab-sample.work/aomachi-demo/wp-content/uploads/2025/06/2.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* 全幅対応 */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.footnav-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.footnav {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footnav__section {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.footnav__section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footnav__section:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.footnav__section:hover::before {
  opacity: 1;
}

.footnav__inner {
  padding: 50px 40px;
  text-align: center;
}

.footnav__ttl {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 12px;
}

.footnav__ttl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4.5em; /* 約3文字分 */
  height: 3px;
  background: currentColor;
  border-radius: 2px;
}

.footnav__ttl span {
  position: relative;
  display: inline-block;
}

.footnav__desc {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 32px;
}

.footnav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 200px;
}

.footnav__btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.footnav__btn:hover::before {
  left: 100%;
}

.footnav__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Footnavセクションのレスポンシブ対応 */
@media (max-width: 1200px) {
  .footnav-section {
    padding: 60px 0;
  }
  
  .footnav {
    padding: 0 20px;
    gap: 30px;
  }
  
  .footnav__inner {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .footnav-section {
    padding: 50px 0;
  }
  
  .footnav {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
  }
  
  .footnav__section {
    border-radius: 12px;
  }
  
  .footnav__inner {
    padding: 35px 25px;
  }
  
  .footnav__ttl {
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  .footnav__desc {
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
  }
  
  .footnav__btn {
    padding: 14px 30px;
    font-size: 15px;
    min-width: 160px;
    border-radius: 40px;
  }
}

@media (max-width: 480px) {
  .footnav-section {
    padding: 40px 0;
    margin-left: calc(50% - 50vw);
    width: 100vw;
  }
  
  .footnav {
    padding: 0 15px;
    gap: 15px;
  }
  
  .footnav__section {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }
  
  .footnav__inner {
    padding: 30px 20px;
  }
  
  .footnav__ttl {
    font-size: 20px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }
  
  .footnav__ttl::after {
    width: 3em;
    height: 2px;
  }
  
  .footnav__desc {
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
  }
  
  .footnav__btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    min-width: auto;
  }
  
  .footnav__btn:hover {
    transform: none;
  }
}
