/* 共通スタイル */
section {
  width: 100%;
}

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

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

.inner-flex {
  display: flex;
  justify-content: center;
}

.breadcrumb {
  padding: 5px 0 15px 0;
}

.breadcrumb span {
  color: #666;
}

.breadcrumb span>a {
  position: relative;
  color: #666;
}

.breadcrumb span>a:after {
  content: '>';
  margin: 0 6px;
  color: #666;
}

.breadcrumb span:last-child:after {
  content: none;
}

@media screen and (max-width: 767px) {
  main {
    position: relative;
    padding-bottom: 80px;
  }
  
  .breadcrumb {
    position: absolute;
    overflow-x: scroll;
    background: #f6f6f6;
    bottom: 0;
    height: 80px;
    width: 100%;
    padding: 30px 10px;
  }
  
  .breadcrumb-inner {
    width: max-content;
  }
}

.shop-info-inner {
  padding-bottom: 10px;
}

.section-title {
  white-space: nowrap;
  padding-top: 40px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.6;
  padding: 0 0 0 30px;
  position: relative;
  text-align: left;
  margin-bottom: 20px;
}

.section-title h2::before {
  content: '';
  display: inline-block;
  position: absolute;
  width: 6px;
  height: 25px;
  background-color: #343e48;
  left: 15px;
  top: calc(100% - 28px);
}

@media screen and (max-width: 767px) {
  .shop-info-inner {
    margin-top: -10px;
  }
}

/* 店舗情報（左カラム） */
.shop-name h1 {
  font-size: 2.4rem;
  font-weight: 700;
}

.main-swiper-area {
  width: 480px;
  height: 392px;
  box-sizing: border-box;
  background-color: #fff;
  margin-top: 30px;
  margin-bottom: 30px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.main-swiper {
  height: 100%;
}

.main-swiper .swiper-wrapper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.thumb-swiper {
  width: 490px;
  margin-left: 10px !important;
}

.thumb-swiper .swiper-slide {
  width: 60px !important;
  height: 60px !important;
  cursor: pointer;
}

.thumb-swiper .swiper-slide img {
  width: 55px !important;
  height: 55px !important;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}

.thumb-swiper .swiper-slide-thumb-active {
  opacity: 1;
  border-radius: 3px;
}

.thumb-swiper .swiper-slide-thumb-active img {
  border: 2px solid #000;
}

.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: rgba(128, 128, 128, 0.5);
  border-radius: 50%;
  z-index: 10;
}

.swiper-button-next {
  right: 5px;
}

.swiper-button-prev {
  left: 5px;
}

.arrow-right,
.arrow-left {
  position: relative;
  display: inline-block;
  padding: 10px;
}

.arrow-right::before,
.arrow-left::before {
  content: '';
  width: 10px;
  height: 10px;
  border-top: solid 2px #FFF;
  border-right: solid 2px #FFF;
  position: absolute;
}
.arrow-right::before {
  transform: rotate(45deg);
  left: 2px;
  top: 5px;
}
.arrow-left::before {
  transform: rotate(-135deg);
  left: 6px;
  top: 5px;
}

@media screen and (max-width: 767px) {
  .shop-name {
    padding: 10px 0 0 10px;
  }

  .shop-name h1 {
    font-size: 1.9rem;
  }

  .main-swiper .swiper-wrapper .swiper-slide img {
    height: 100%;
  }

  .main-swiper-area {
    overflow: hidden;
    margin: 20px auto 0px;
    width: 95vw;
    height: 55vw;
    position: relative;
    padding: 10px 0;
  }

  .thumb-swiper {
    width: 360px;
  }
}

/* 店舗情報（右カラム） */
.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  width: 100%;
}

.shop-table {
  margin: 30px 20px 20px -20px;
  border-collapse: collapse;
}

.shop-table th,
.shop-table td {
  border: 1px solid #ccc;
}

.shop-table th {
  background-color: #eee;
  font-size: 1.4rem;
  text-align: left;
  padding: 15px;
  white-space: nowrap;
  border-right: none;
}

.shop-table td {
  padding: 15px;
  background-color: #FFF;
  border-left: none;
}

@media screen and (max-width: 767px) {
  .shop-table td p {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.45;
  }

  .shop-table {
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
  }

  .shop-table th,
  .shop-table td {
    border: 1px solid #ccc;
    border-left: none;
    border-right: none;
  }
  .shop-table td {
    padding: 10px;
  }
  .shop-table th {
    white-space: nowrap;
    width: 110px;
    padding: 10px 20px;
  }
}

/* 取扱い業務 */
.shop-budge-list {
  width: 105%;
  margin-left: -20px;
  display: flex;
  flex-wrap: wrap;
}

.shop-budge-list>li {
  padding: 3px 5px;
  line-height: 1;
  color: #b76b8b;
  min-width: 78px;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.3;
  font-size: 1.3rem;
  margin-right: 8px;
}

@media screen and (max-width: 767px) {
  .shop-budge-list {
    width: 90%;
    margin-left: 0px;
    margin: 10px 10px 10px 10px;
  }

  .shop-budge-list>li {
    min-width: 60px;
    font-size: 1.2rem;
    padding: 2px 4px;
  }
}

.shop-budge-list>li.color1 {
  border: none;
  color: #FFF;
  background-color: #E65D44;
}

.shop-budge-list>li.color2 {
  border: none;
  color: #FFF;
  background-color: #219825;
}

.shop-budge-list>li.color3 {
  border: none;
  color: #FFF;
  background-color: #333;
}

/* CTA（共通部品化したほうが良いかも） */
.cta-wrapper {
  display: flex;
  justify-content: center;
  padding: 50px 0 0 15px;
  margin-bottom: 35px;
}

.tracking-cta-wrapper {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 9999;
  padding: 10px 16px;
  display: flex;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.tracking-cta-wrapper.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sell-cta,
.buy-cta,
.rent-cta,
.shop-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-right: 20px;
  font-weight: 800;
  border-radius: 3px;
  text-align: center;
  position: relative;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.tracking-cta-wrapper .sell-cta {
  gap: 35px;
  background-color: #FF7E00;
  border: 2px solid #FF7E00;
  box-shadow: 0 6px #a35507;
  padding: 10px 50px;
}

.tracking-cta-wrapper .buy-cta {
  gap: 35px;
  background-color: #fff;
  border: 2px solid #017F9D;
  box-shadow: 0 6px #017F9D;
  padding: 16px 70px;
}

.tracking-cta-wrapper .rent-cta {
  gap: 35px;
  background-color: #219825;
  border: 2px solid #219825;
  box-shadow: 0 6px #1B560C;
  padding: 16px 50px;
}

.shop-cta {
  gap: 35px;
  background-color: #E65D44;
  padding: 16px 50px;
}

.sell-cta:hover,
.buy-cta:hover,
.rent-cta:hover,
.shop-cta:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sell-cta::before,
.buy-cta::before,
.rent-cta::before,
.shop-cta::before {
  content: "";
  position: absolute;
  display: inline-block;
  top: calc(50% - 5px);
  right: 20px;
  width: 10px;
  height: 10px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  z-index: 8;
}

.sell-cta::before,
.rent-cta::before,
.shop-cta::before {
  border-top: 1.8px solid #FFF;
  border-right: 1.8px solid #FFF;
}

.buy-cta::before {
  border-top: 1.8px solid #017F9D;
  border-right: 1.8px solid #017F9D;
}

.sell-cta p,
.rent-cta p,
.shop-cta p {
  color: #fff;
}

.buy-cta p {
  color: #017F9D;
}

.sell-cta .free-icon {
  background-color: #FFF;
  border-radius: 3px;
  text-align: center;
  margin-left: -25px;
  padding: 5px;
  width: 70px;
}

.shop-cta .free-icon {
  background-color: #FFF;
  border-radius: 3px;
  text-align: center;
  margin-left: -25px;
  padding: 2px;
  width: 50px;
}

.shop-cta .mail-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("/trend/img/icon_mail_white.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 5px
}

.sell-cta .free-icon p {
  font-size: 1.3rem;
  letter-spacing: 0;
  line-height: 1.2;
}

.sell-cta .free-icon p {
  color: #222;
}

.shop-cta .free-icon p {
  color: #E65D44;
}

.sell-cta .free-icon span {
  color: #FF7E00;
}

.sell-cta-txt p,
.buy-cta-txt p,
.rent-cta-txt p,
.shop-cta-txt p {
  line-height: 1.2;
  font-size: 2.4rem;
  letter-spacing: 0.2rem;
}

@media screen and (min-width: 768px) {
  .sell-cta-txt p,
  .buy-cta-txt p,
  .rent-cta-txt p,
  .shop-cta-txt p {
    padding: 4px 0 0 0;
  }
}

.gift-campaign {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  padding: 5px 20px 5px 50px;
  border-radius: 30px;
  font-size: 14px;
  white-space: nowrap;
  filter: drop-shadow(2px 2px 1px #707070);
}

.gift-campaign::before {
  content: '';
  position: absolute;
  background: url(/trend/img/img_giftIcon_gold.png) no-repeat top;
  background-size: 100%;
  width: 30px;
  height: 35px;
  bottom: -4px;
  left: 15px;
}

.gift-campaign::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

.gift-campaign p {
  font-size: 1.2rem;
  line-height: 1.2;
  color: #222;
  font-weight: 400;
}

.gift-campaign span {
  color: #BB0000;
}

@media screen and (max-width: 767px) {
  .cta-wrapper {
    padding: 30px 0 0 15px;
  }

  .tracking-cta-wrapper {
    gap: 10px;
    padding: 7px 10px;
  }

  .tracking-cta-wrapper .sell-cta,
  .tracking-cta-wrapper .buy-cta {
    padding: 11px 0 12px 0;
    box-shadow: none;
    border-radius: 0;
  }

  .tracking-cta-wrapper block,
  .tracking-cta-wrapper.visible block {
    width: calc(100vw / 2);
  }
  .tracking-cta-wrapper .sell-cta {
    border: #FF7E00 2px solid;
  }

  .tracking-cta-wrapper .rent-cta {
    gap: 20px;
    padding: 18px 60px;
  }

  .shop-cta {
    padding: 12px 40px 12px 20px;
  }

  .sell-cta,
  .buy-cta {
    padding: 0;
    margin-right: 0;
  }

  .sell-cta::before,
  .buy-cta::before {
    right: 10px;
  }

  .shop-cta::before {
    top: calc(50% - 3px);
    width: 6px;
    height: 6px;
  }

  .sell-cta::before,
  .buy-cta::before,
  .rent-cta::before {
    content: none;
  }

  .sell-cta-txt p,
  .buy-cta-txt p,
  .shop-cta-txt p {
    font-size: 1.8rem;
    line-height: 1;
  }

  .rent-cta-txt p {
    font-size: 2rem;
  }

  .shop-cta .free-icon p {
    font-size: 1.4rem;
  }

  .gift-campaign {
    padding: 4px 6px;
  }

  .gift-campaign::before {
    background: url();
    width: 20px;
    height: 29px;
    left: 30px;
  }

  .gift-campaign p {
    font-size: 1rem;
  }
}

/* Google Map */
.map-wrapper {
  text-align: center;
}

.map-wrapper iframe {
  width: 1080px;
  height: 600px;
  border: none;
  padding-bottom: 40px;
}

@media screen and (max-width: 767px) {
  .map-wrapper iframe {
    width: 95%;
    height: 370px;
  }
}

/* スタッフコメント */
.staff-detail {
  gap: 30px;
  padding-bottom: 40px;
}

.staff-img img {
  width: 300px;
  height: auto;
  border-radius: 8px;
}

.staff-comment-inner {
  gap: 30px;
  padding-bottom: 20px;
}

.staff-comment {
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  line-height: 2em;
}

@media screen and (max-width: 767px) {
  .staff-img {
    text-align: center;
  }

  .staff-comment {
    font-size: 1.4rem;
    padding: 0 20px 0 20px;
    text-align: justify;
    display: -webkit-box;
    line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .staff-comment.open-comment {
    overflow: visible;
    display: block;
  }
  .staff-comment-inner {
    position: relative;
  }
  .staff-more-wapper {
    position: absolute;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(250, 252, 252, 0) 0%, rgba(250, 252, 252, 0.95) 100%);
    width: 100%;
    padding: 40px 40px 20px;
  }
  .more-button-wrapper.staff-more-wapper {
    margin-bottom: 0;
  }
  .staff-more-wapper.hidden {
    display: none;
  }
}

/* 店舗お知らせ */
.shop-info {
  box-shadow: 1px 1px 8px rgb(0 0 0 / 20%);
  padding: 22px 30px;
  width: 600px;
  margin: 50px auto 0;
  text-align: center;
}

.info-title {
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.6;
  letter-spacing: 1rem;
  position: relative;
  margin-bottom: 15px;
}

.info-title::before {
  content: "";
  width: 100%;
  height: 1px;
  background-color: #c8c8c8;
  position: absolute;
  left: 0;
  bottom: -4px;
  transition: .5s all;
}

.info-content {
  margin-top: 8px;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  font-weight: 400;
}

@media screen and (max-width: 767px) {
  .shop-info {
    width: 90%;
    padding: 15px 13px;
  }

  .info-content {
    margin-top: 10px;
    font-size: 1.4rem;
    line-height: 1.7;
    text-align: left;
  }
}

/* 会社情報テーブル */
.company-info-wrapper {
  padding: 50px 0 15px;
  margin-bottom: 35px;
}

.company-table {
  margin-left: 15px;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  border: 1px solid #ccc;
}

.company-table th {
  background-color: #eee;
  font-size: 1.4rem;
  text-align: left;
  padding: 15px;
  white-space: nowrap;
  min-width: 100px;
  border-right: none;
}

.company-table td {
  padding: 15px;
  background-color: #FFF;
  width: 370px;
  border-left: none;
}

.company-table td p {
  font-weight: 400;
  line-height: 1.45;
}

@media screen and (max-width: 767px) {
  .company-table {
    margin-left: 0;
  }

  .company-table th,
  .company-table td {
    border-right: none;
    border-left: none;
    padding: 10px 10px;
  }
  .company-table th {
    white-space: nowrap;
    width: 110px;
    font-size: 1.4rem;
    border-right: none;
    padding: 10px 20px;
    font-weight: 500;
  }
  
  .company-table td p {
    font-size: 1.4rem;
  }
}

/* 店舗スタッフリスト */
.shop-staff-list {
  padding-bottom: 20px;
  margin-left: 30px;
}

.shop-staff-list ul {
  display: flex;
  max-width: 960px;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.shop-staff-list li {
  flex: 0 0 220px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 10px;
  box-sizing: border-box;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.shop-staff-list figure {
  width: 80%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
}

.shop-staff-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-staff-post {
  font-size: 14px;
  color: #666;
  line-height: 3;
}

.shop-staff-name,
.shop-staff-license {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
  line-height: 1.2;
}

.shop-staff-license {
  font-size: 1.2rem;
}

@media screen and (max-width: 767px) {
  .shop-staff-list li {
    flex: 0 0 175px;
  }
}

/* 物件レコメンド */
.recommend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  padding-bottom: 20px;
}

.recommend-items li {
  flex: 0 0 190px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.recommend-items li.hidden {
  display: none;
}

.recommend-items li:hover {
  opacity: 0.7;
}

.building-link {
  text-decoration: none;
}

.building-img figure {
  margin: 0 0 12px;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
}

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

.building-info .building-name {
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 4px;
  text-decoration: underline;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.building-info .price-row {
  margin-bottom: 6px;
}

.building-info .price {
  color: #E65D44;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 2px;
}

.building-info .building-type {
  display: inline-block;
  background-color: #666;
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.building-info .access {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}

.more-button-wrapper {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.more-button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 16px;
  color: #000;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
}

.more-button:hover {
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.more-button.hidden {
  display: none;
}

.toggle-label {
  flex: 1;
  text-align: center;
}

.toggle-icon {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 767px) {
  .building-link {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
  }

  .recommend-items {
    gap: 20px;
    justify-content: center;
  }

  .recommend-items li {
    flex: 0 0 340px;
    padding: 10px 10px 10px 15px;
  }

  .building-img {
    flex: 0 0 40%;
    margin: 0;
  }

  .building-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .building-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
