/* ========== Detail Page Layout Styles ========== */
/* 詳細ページ共通レイアウト用スタイル */
/* モデルハウス詳細・施工事例詳細・イベント詳細などで使用 */

/* ========== Content Sections ========== */
main .event_info {
  margin-bottom: 50px;
  width: 100%;
}
main .container .event_info .event_infoT {
  padding-top: 70px;
}

main .container .event_info .event_infoT::after {
  width: 120px;
}

main .container .e_data p {
  font-size: 14px;
}
main .container .e_data {
  padding-block: 12px;
  border-bottom: 1px solid #b3b3b3;
}
main .container .e_data p:nth-of-type(1) {
  width: 35%;
}
main .container .e_data p:nth-of-type(2) {
  width: 83%;
}

/* ========== VRB Section ========== */
main .vrb {
  width: 100%;
  padding-block: 16px;
  margin-bottom: 10px;
  border: 1px solid #989483;
  padding-inline: 8px;
  border-radius: 5px;
}
main .vrbT {
  width: 106px;
  height: 24px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  background-color: #8fc31f;
  border-radius: 3px;
  padding-inline: 4px;
  padding-block: 6px;
  margin-bottom: 12px;
}
main .vrb img {
  width: 100%;
  height: auto;
  margin-bottom: 12px;
}
main .vrb .vrb_txt p {
  font-size: 14px;
}
main .vrb .vrb_txt p:nth-of-type(1) {
  font-weight: bold;
  margin-bottom: 12px;
}

/* 共通セクションタイトルスタイル */
.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 2px;
    border-bottom: 1px solid #b3b3b3;
}

.section-title h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    margin: 0;
    padding-bottom: 2px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 130px;
    height: 2px;
    background-color: #6782ae;
}

/* 物件の特長セクション */
.feature {
    margin: 40px 0;
    padding-top: 30px;
    padding-bottom: 10px;
}

.featureT {
    margin-bottom: 50px;
}

.featureT::after {
    width: 100px;
}

.toggle-wrapper {
    margin: 0 auto 30px;
    position: relative;
    overflow: hidden;
}


.toggle-header {
    padding: 0;
    background-color: transparent;
    cursor: pointer;
    width: 100%;
    margin-bottom: 12px;
}

.toggle-header-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 12px 0 0;
}

.toggle-header-content p {
    flex: 1;
    margin: 0;
    font-weight: 700;
    font-size: 16px;
    color: #424031;
    line-height: 1.625;
}

.toggle-header-content img {
    width: 240px;
    height: 135px;
    object-fit: cover;
    flex-shrink: 0;
}

.toggle-content-wrapper {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
}

.toggle-content {
    padding: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.toggle-content.visible {
  opacity: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.featureC_gp {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
    width: 100%;
}

.featureTxt {
    flex: 1;
}

.featureTxt h4 {
    font-weight: 700;
    font-size: 16px;
    color: #424031;
    line-height: 1.625;
    margin: 0 0 20px 0;
}

.featureTxt p {
    margin-bottom: 15px;
    line-height: 1.75;
    font-size: 16px;
    color: #1c1a10;
    font-weight: 400;
}

.featureImg {
    width: 242px;
    height: 166px;
    flex-shrink: 0;
}

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

.toggle-button {
    padding: 12px 0 0;
    background-color: transparent;
    text-align: right;
    cursor: pointer;
    font-weight: 700;
    color: #175fff;
    font-size: 12px;
    line-height: 1.36;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    border: none;
}

.toggle-button:hover {
    opacity: 0.8;
}

main .featureBtn {
  width: 100%;
  height: 48px;
  background-color: #ff7c00;
  border-radius: 4px;
}
main .featureBtn a {
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* 間取りセクション */
.arrangement {
    margin: 40px 0;
    padding-top: 30px;
}

.arrangementT {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
}

.arrangement-label {
    background-color: #dddbd6;
    color: #424031;
    font-size: 14px;
    font-weight: 600;
    padding: 0 4px;
    height: 15px;
    display: flex;
    align-items: center;
    border-radius: 2.63px;
}

.plan-item {
    margin: 20px 0 10px;
    padding-top: 20px;
}

.plan-number {
    background-color: #3d3a39;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    display: inline-block;
    margin-bottom: 10px;
}

.plan-content {
    text-align: center;
}

.plan-image {
    margin-bottom: 12px;
    text-align: center;
}

.plan-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.plan-description {
    text-align: left;
}

.plan-description h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 12px 0;
    line-height: 1.5;
    text-align: left;
}

.plan-description p {
    font-size: 14px;
    font-weight: 300;
    color: #333333;
    line-height: 1.74;
    margin: 0;
    text-align: left;
}



/* ギャラリーセクション */
.gallery {
    margin: 60px 0 40px;
}



.gallery-item {
    border-bottom: 1px solid #000000;
    padding-bottom: 18px;
    margin-bottom: 30px;
}

.gallery-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.gallery-item-featured {
    position: relative;
}

.gallery-item-featured .gallery-image {
    width: 100%;
    margin-bottom: 18px;
    text-align: center;
}

.gallery-item-featured .gallery-content {
    width: 100%;
}

.gallery-item:not(.gallery-item-featured) .gallery-image {
    width: 100%;
    margin-bottom: 18px;
    text-align: center;
}

.gallery-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.gallery-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.gallery-content p {
    font-size: 14px;
    font-weight: 300;
    color: #333333;
    line-height: 1.74;
    margin: 0;
    overflow-wrap: break-word;
}

/* ========== Map Section ========== */

/* ========== Other Modelhouse Section ========== */
/* Blog Section - Figma Design Implementation (from event-assets) */
main .blogG {
  width: 100%;
  margin-bottom: 34px;
}

main .blogG .blogT {
  font-size: 20px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 30px;
  border-bottom: 1px solid #b3b3b3;
  position: relative;
  padding-top: 60px;
  padding-bottom: 2px;
}

main .blogG .blogT::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  content: "";
  width: 120px;
  height: 2px;
  background-color: #6782ae;
}

/* PC Layout - Figma Design */
main .blogG .blogList {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 960px;
  margin: 0 auto;
}

main .blogG .blogItem {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-self: stretch;
  width: 100%;
}

main .blogG .blogLink {
  display: flex;
  flex-direction: row;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

main .blogG .blogImg {
  width: 300px;
  height: 230px;
  position: relative;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  border-radius: 0;
}

main .blogG .blogImg .slider {
  position: relative;
  width: 300px;
  height: 200px;
  overflow: hidden;
  border-radius: 0;
}

main .blogG .blogImg .slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  border-radius: 0;
}

main .blogG .blogImg .slider img.active {
  opacity: 1;
  z-index: 1;
}

main .blogG .blogImg .dots {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 3px 125px 2px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300px;
  height: auto;
  pointer-events: none;
  z-index: 10;
}

main .blogG .blogImg .dots span {
  width: 10px;
  height: 10px;
  background: #6782ae;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.25;
  pointer-events: auto;
  z-index: 11;
}

main .blogG .blogImg .dots span.active {
  opacity: 0.75;
}

main .blogG .blogContent {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding: 12px 0px 0px 20px;
  flex: 1;
  gap: 12px;
}

main .blogG .blogHeader {
  display: flex;
  flex-direction: row;
  align-self: stretch;
  gap: 20px;
  padding-bottom: 0.75px;
}

main .blogG .blogTitle {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.36;
  color: #333333;
  margin-bottom: 0;
  flex: 1;
}

main .blogG .blogDetail {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-shrink: 0;
}

main .blogG .detailBtn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 20px;
  background: #ffffff;
  border: 1px solid #989483;
  border-radius: 20px;
  height: 40px;
  text-decoration: none;
  font-family: 'Hiragino Sans', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.42;
  color: #333333;
  white-space: nowrap;
}

main .blogG .detailBtn:hover {
  background: rgba(152, 148, 131, 0.1);
}

main .blogG .blogInfo {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 16px;
  padding-top: 9.25px;
}

main .blogG .blogTags {
  display: flex;
  flex-direction: row;
  gap: 4px;
}

main .blogG .tag {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2px;
  padding: 8px;
  background: #dddbd6;
  border-radius: 2.63px;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 0.75;
  text-align: center;
  color: #1c1a10;
}

main .blogG .blogMeta {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 8px;
}

main .blogG .metaItem {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

main .blogG .metaLabel {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.36;
  text-transform: uppercase;
  color: #333333;
  min-width: 50px;
}

main .blogG .metaValue {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.36;
  text-transform: uppercase;
  color: #e94b08;
}

main .blogG .metaItem:nth-child(3) .metaValue {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.07;
  text-transform: none;
  color: #1c1a10;
}

main .blogG .companyName {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.07;
  color: #1c1a10;
}

/* 汎用的な黒文字スタイル（companyNameと同様） */
main .blogG .darkText {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.07;
  color: #1c1a10;
}

/* PC版では保存アイコンを非表示 */
main .blogG .blogItem .blogContent .bookmark-icon {
  display: none;
}

/* ========== Blog Section ========== */
main .blog {
  margin-bottom: 20px;
}
main .blog .imgS {
  width: 300px;
}
main .blog .imgS img {
  width: 100%;
}
main .blog .blogE {
  position: relative;
  width: 70%;
  padding-left: 20px;
}
main .blog .blogName {
  margin-bottom: 5px;
}
main .blog .bName {
  font-size: 12px;
  padding-inline: 19px;
  padding-block: 7px;
  border: 1px solid #b3b3b3;
}
main .blog .bDate {
  font-size: 12px;
  margin-left: 19px;
}
main .blog .hStyle {
  color: #6782ae;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}
main .blog .bTxt {
  font-size: 15px;
  margin-bottom: 15px;
}
main .blog .blogE a {
  position: absolute;
  top: 0;
  right: 0;
  padding-inline: 34px;
  padding-block: 5px;
  border: 1px solid #6782ae;
}
main .blog .blogE a p {
  font-size: 13px;
  color: #6782ae;
  font-weight: bold;
}

main .blog .blogE a img {
  width: 11px;
  height: auto;
  margin-left: 13px;
}
main .blog .blogE .blogInfo {
  width: 100%;
  height: 77px;
  background-color: rgba(103, 130, 174, 0.1);
  padding: 15px;
}
main .blog .blogE .blogInfo p {
  font-size: 15px;
}
main .blog .blogE .blogInfo_t p {
  font-size: 13px;
  width: 50%;
}
main .bLeft {
  gap: 8px;
}
main .blogSort .sortRect {
  width: 97px;
  height: 52px;
  background-color: #ffffff;
  font-size: 10px;
  border: 1px solid #b3b3b3;
}
main .blogSort .bLeft button:nth-last-of-type(1) {
  margin-left: 120px;
}
main .b_history {
  width: 100%;
  padding-top: 60px;
}
main .b_history .b_historyT {
  font-size: 14px;
  font-weight: bold;
  padding-left: 18px;
  padding-block: 7px;
  border-left: 3px solid #2f689d;
}
main .b_history .h_slide {
  padding-block: 12px;
  margin-bottom: 34px;
  gap: 12px;
  overflow-x: scroll;
}
main .b_history .slideBlock {
  width: 150px;
  flex-shrink: 0;
  padding: 8px;
  font-size: 10px;
  font-weight: bold;
  box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}
main .b_history .slideBlock img {
  width: 134px;
  height: auto;
  margin-bottom: 4px;
}
main .footer_txt {
  width: 100%;
  font-size: 12px;
  color: #696652;
  padding-left: 15px;
}

/* ========== Mobile Components ========== */

main .blogG_sp {
  padding-inline: 19px;
  padding-top: 20px;
  background-color: #fafaf5;
  display: none;
}
main .blogG_sp .blogG_spT {
  color: #424031;
  font-size: 14px;
  font-weight: bold;
  padding-bottom: 12px;
}
main .blogList_sp {
  gap: 12px;
}
main .blogSp {
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.1);
  padding-inline: 45px;
  padding-block: 20px;
  gap: 15px;
  border-radius: 4px;
}
main .bImg_sp {
  width: 160px;
}
main .bImg_sp img {
  width: 100%;
  height: auto;
}
main .blogSp .blogSp_E {
  width: 63%;
  height: auto;
}
main .blogSp .blogSp_E .blogSp_ET {
  font-size: 12px;
  font-weight: bold;
  color: #175fff;
}

main .blogSp .b_infoG {
  gap: 4px;
}
main .blogSp .b_infoG p {
  font-size: 10px;
}
main .blogSp .b_info:nth-of-type(1) {
  font-weight: bold;
}
main .blogSp .b_info p:nth-of-type(1) {
  margin-right: 12px;
  font-weight: bold;
}
main .sideBar_sp {
  display: none;
  font-size: 10px;
  padding-inline: 19px;
  padding-block: 12px;
  background-color: #fafaf5;
}

/* レスポンシブ対応 */
@media (max-width: 965px) {
  main .blogSort .bLeft button:nth-last-of-type(1) {
    margin: 0;
  }
  main .blogSort .bLeft {
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
  }
  main .blogSort .sortRect {
    width: 25%;
    font-size: 12px;
    height: 60px;
  }
  main .bLeft {
    gap: 0;
  }
  main .blogSort {
    padding-block: 20px;
  }
  main .blog .blogE a p {
    display: none;
  }
  main .blog .blogE a img {
    margin-left: 0;
  }
  main .blog .blogE a {
    padding-inline: 10px;
    padding-block: 5px;
  }
}

@media (max-width: 768px) {
  main .event_info {
    background-color: #fafaf5;
  }
  main .vrb {
    margin: 0;
  }

  main .blogG {
    padding-inline: 0px;
    display: block;
    background-color: #fafaf5;
    margin-bottom: 30px;
  }
  main .blogG_sp {
    display: block;
  }
  main .b_history {
    padding-top: 30px;
  }
  main .blogSort {
    background-color: #fafaf5;
    display: block;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0px 1.5px 8.5px 0px rgba(0, 0, 0, 0.1);
  }

  main .blogSort .bLeft {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
    width: 100%;
    background-color: #ffffff;
  }

  main .blogSort .sortRect {
    width: 100%;
    height: 55px;
    background-color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    color: #696652;
    border: 0px solid #dddbd6;
    border-bottom: 1px solid #dddbd6;
    border-right: 1px solid #dddbd6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.36;
  }

  main .blogSort .sortRect:nth-child(1) {
    border-right: 1px solid #dddbd6;
  }

  main .blogSort .sortRect:nth-child(4) {
    border-right: 0px;
  }

  main .blogSort .sortRect:nth-child(5) {
    border-right: 1px solid #dddbd6;
    border-bottom: 0px;
  }

  main .blogSort .sortRect:nth-child(8) {
    border-right: 0px;
    border-bottom: 0px;
  }

  main .blogSort .sortRect:nth-child(6),
  main .blogSort .sortRect:nth-child(7) {
    border-bottom: 0px;
  }
  main .footer_txt {
    background-color: #fafaf5;
    padding-left: 34px;
    padding-right: 19px;
    padding-top: 40px;
    padding-bottom: 60px;
  }
  main .b_history .h_slide {
    margin: 0;
  }
  main .sideBar_sp {
    display: block;
  }
  main .featureBtn {
    display: none;
  }

  main .arrangement .plan .plan_num {
    display: none;
  }
  main .arrangement .plan .planImg {
    display: none;
  }
  main .arrangement .plan {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: #fafaf5;
  }
  main .arrangement .plan p {
    display: none;
  }
  main .arrangement .plan .arr_sp {
    display: block;
  }

  /* 共通セクションタイトル - スマホ版 */
  .section-title {
    padding-bottom: 8px;
  }

  .section-title h3 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    padding-bottom: 8px;
  }

  /* 各セクションの上の余白統一 - スマホ版 */
  .feature,
  .arrangement,
  .gallery {
    padding-top: 30px;
    margin-top: 0;
  }

  main .container .event_info .event_infoT {
    padding-top: 30px;
  }

  main .map .mapT {
    padding-top: 30px;
  }

  /* 物件の特長 - スマホ版 */
  .featureT {
    margin-bottom: 0px;
  }

  .toggle-header-content {
    flex-direction: column;
    gap: 12px;
    padding: 12px 0 0;
  }

  .toggle-header-content img {
    width: 100%;
    height: 197px;
    object-fit: cover;
  }

  .featureC_gp {
    flex-direction: column;
    gap: 20px;
  }

  .featureImg {
    width: 100%;
    height: 240px;
  }

  /* 間取り - スマホ版 */
  .arrangementT {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-start;
  }



  .arrangement-label {
    font-size: 10.5px;
  }

  .plan-item {
    display: block;
  }

  .plan-number {
    font-size: 12px;
    padding: 4px 12px;
  }

  .plan-image img {
    width: 100%;
    height: auto;
  }

  /* ギャラリー - スマホ版 */
  .galleryT h3 {
    line-height: 2.14;
  }

  .gallery-item-featured .gallery-image {
    width: 100%;
  }

  .gallery-item:not(.gallery-item-featured) .gallery-image {
    width: 100%;
  }

    .gallery-content {
    padding-bottom: 12px;
  }

  /* Mobile Layout - Figma Design for blogG */

  main .blogG .blogT {
    padding-top: 30px;
    font-size: 18px;
    padding-bottom: 8px;
  }

  main .blogG .blogT::after {
    width: 100px;
  }

  main .blogG .blogList {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  main .blogG .blogItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    width: 100%;
    background: #ffffff;
    box-shadow: 0px 1.5px 8.5px 0px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    padding: 0;
    gap: 12px;
  }

  main .blogG .blogLink {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
  }

  main .blogG .blogImg {
    width: 100%;
    height: 130px;
    background: #ffffff;
    flex-shrink: 0;
    border-radius: 0;
    position: relative;
    overflow: hidden;
  }

  main .blogG .blogImg .slider {
    width: 100%;
    height: 130px;
    border-radius: 0;
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
    position: relative;
    overflow: hidden;
  }

  main .blogG .blogImg .slider img {
    border-radius: 0;
    width: 50%;
    height: 130px;
    object-fit: cover;
    flex: 1;
    position: static;
    opacity: 1;
    transition: none;
  }

  main .blogG .blogImg .slider img:nth-child(n+3) {
    display: none;
  }

  main .blogG .blogImg .dots {
    display: none;
  }

  main .blogG .blogContent {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px 16px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    width: 100%;
  }

  main .blogG .blogHeader {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  main .blogG .blogItem .blogContent .bookmark-icon {
    display: block;
    width: 17px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    transition: filter 0.3s ease;
  }

  main .blogG .blogItem .blogContent .bookmark-icon.active {
    filter: brightness(0) saturate(100%) invert(42%) sepia(15%) saturate(1200%) hue-rotate(194deg) brightness(90%) contrast(90%);
  }

  main .blogG .blogTitle {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.36;
    color: #2b618f;
    margin-bottom: 0;
    flex: 1;
    width: 304px;
  }

  main .blogG .blogDetail {
    display: none;
  }

  main .blogG .blogItem .blogContent .bookmark-icon {
    display: block;
    width: 17px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    transition: filter 0.3s ease;
  }

  main .blogG .blogItem .blogContent .bookmark-icon.active {
    filter: brightness(0) saturate(100%) invert(42%) sepia(15%) saturate(1200%) hue-rotate(194deg) brightness(90%) contrast(90%);
  }

  main .blogG .blogInfo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 0;
    width: 100%;
    min-width: 0;
  }

  main .blogG .blogTags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    flex-shrink: 0;
  }

  main .blogG .tag {
    padding: 4px;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 10px;
    line-height: 1.36;
    text-align: center;
    color: #424031;
    height: auto;
    min-height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dddbd6;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  main .blogG .blogMeta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
  }

  main .blogG .metaItem {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 2px;
    width: 100%;
    min-width: 0;
  }

  main .blogG .metaItem:last-child {
    display: flex;
    flex-direction: row;
    width: 100%;
  }

  main .blogG .metaLabel {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.36;
    color: #333333;
    min-width: auto;
    flex-shrink: 0;
  }

  main .blogG .metaValue {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.36;
    color: #e94b08;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
  }

  main .blogG .metaItem:nth-child(3) .metaValue {
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
    color: #333333;
  }

  main .blogG .companyName {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
    color: #333333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
  }

  /* 汎用的な黒文字スタイル（スマホ版） */
  main .blogG .darkText {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
    color: #333333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 500px) {
  main .bImg_sp {
    width: 45%;
  }
  main .blogSp .blogSp_E {
    width: 63%;
    height: auto;
  }
  main .blogSp .blogSp_E .blogSp_ET {
    font-size: 12px;
    font-weight: bold;
    color: #175fff;
  }
  main .blogSp .b_infoG {
    gap: 4px;
  }
  main .blogSp .b_infoG p {
    font-size: 10px;
  }
  main .blogSp .b_info:nth-of-type(1) {
    font-weight: bold;
  }
  main .blogSp .b_info p:nth-of-type(1) {
    margin-right: 12px;
    font-weight: bold;
  }
  main .blogSp {
    padding: 8px;
    gap: 8px;
  }
}

/* 予約ボタンのスタイル調整 */
.featureBtn a:hover {
    background-color: #e56b00;
    transition: background-color 0.3s ease;
}

/* ========== Before After Section ========== */
.before-after-section {
    margin: 40px 0;
    padding-top: 30px;
}

.before-after-title {
    margin-bottom: 20px;
}

.before-after-item {
    margin: 20px 0;
}

.before-after-label {
    background-color: #3d3a39;
    color: #ffffff;
    font-family: 'Hiragino Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.1em;
    padding: 8px 12px;
    display: inline-block;
    margin-bottom: 10px;
}

.before-after-content {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
}

.before-after-image-wrapper {
    background-color: #f2f2f2;
    width: 240px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
    position: relative;
}

.before-after-image-container {
    position: relative;
    height: 100%;
}

.before-after-image-container img {
    width: 139px;
    height: 209px;
    object-fit: cover;
    display: block;
}

.image-label {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #4d4d4d;
    color: #ffffff;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    padding: 3px 4px;
    letter-spacing: 0.1em;
    display: none; /* PC版では非表示 */
}

.before-after-text {
    flex: 1;
    padding-left: 10px;
}

.before-after-text h4 {
    font-family: 'Hiragino Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.5;
    color: #333333;
    margin: 0 0 12px 0;
}

.before-after-text p {
    font-family: 'Hiragino Sans', sans-serif;
    font-weight: 300;
    font-size: 13.5px;
    line-height: 1.8;
    color: #333333;
    margin: 0;
}

.before-after-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.before-after-arrow svg {
    display: block;
}

/* PC版のレイアウト調整 */

/* アフターセクション専用スタイル */
.before-after-item:last-of-type .before-after-content {
    flex-direction: column;
    align-items: center;
}

.before-after-item:last-of-type .before-after-image-wrapper {
    background-color: transparent;
    width: 100%;
    padding: 0;
}

.before-after-item:last-of-type .before-after-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.before-after-item:last-of-type .before-after-text {
    padding-left: 0;
    width: 100%;
    text-align: left;
    margin-top: 12px;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .before-after-section {
        margin: 30px 0;
        padding-top: 20px;
    }

    .before-after-title h3 {
        font-family: 'Noto Sans', sans-serif;
        font-weight: 700;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .before-after-label {
        display: none; /* スマホ版では上のラベルを非表示 */
    }

    .before-after-item {
        margin: 24px 0;
    }

    /* ビフォーセクション：2カラムレイアウト */
    .before-after-item:first-of-type .before-after-content {
        flex-direction: row;
        gap: 16px;
        align-items: stretch;
    }

    /* アフターセクション：1カラムレイアウト */
    .before-after-item:last-of-type .before-after-content {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    /* ビフォーセクションの画像設定 */
    .before-after-section .before-after-item:first-of-type .before-after-image-wrapper {
        width: 35% !important;
        flex: 0 0 35% !important;
        max-width: 35% !important;
        background-color: transparent !important;
        padding: 0 !important;
        display: block !important;
        position: relative !important;
    }

    .before-after-item:first-of-type .before-after-image-container {
        width: 100%;
        height: 100%;
    }

    .before-after-item:first-of-type .before-after-image-container img {
        width: 100% !important;
        max-height: 170px !important;
        object-fit: cover;
        display: block;
    }

    /* アフターセクションの画像設定 */
    .before-after-item:last-of-type .before-after-image-wrapper {
        width: 100% !important;
        background-color: transparent !important;
        padding: 0 !important;
        display: block;
    }

    .before-after-item:last-of-type .before-after-image-container {
        width: 100%;
    }

    .before-after-item:last-of-type .before-after-image-container img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
        display: block;
    }

    .image-label {
        /* スマホ版では画像上のラベルを表示 */
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        background-color: #4d4d4d;
        color: #ffffff;
        font-family: 'Noto Sans', sans-serif;
        font-weight: 700;
        font-size: 12px;
        text-transform: uppercase;
        padding: 3px 4px;
        letter-spacing: 0.1em;
    }

    /* ビフォーセクションのテキスト設定 */
    .before-after-item:first-of-type .before-after-text {
        padding-left: 0;
        flex: 1;
        text-align: left;
    }

    .before-after-item:first-of-type .before-after-text h4 {
        font-family: 'Noto Sans', sans-serif;
        font-weight: 700;
        font-size: 18px;
        line-height: 1.36;
        color: #424031;
        margin: 0 0 16px 0;
        text-align: left;
    }

    .before-after-item:first-of-type .before-after-text p {
        font-family: 'Noto Sans', sans-serif;
        font-weight: 400;
        font-size: 16px;
        line-height: 1.75;
        color: #1c1a10;
        margin: 0;
        text-align: left;
    }

    /* アフターセクションのテキスト設定 */
    .before-after-item:last-of-type .before-after-text {
        padding-left: 0;
        width: 100%;
        text-align: left;
    }

    .before-after-item:last-of-type .before-after-text h4 {
        font-family: 'Noto Sans', sans-serif;
        font-weight: 700;
        font-size: 18px;
        line-height: 1.36;
        color: #424031;
        margin: 0 0 16px 0;
        text-align: left;
    }

    .before-after-item:last-of-type .before-after-text p {
        font-family: 'Noto Sans', sans-serif;
        font-weight: 400;
        font-size: 16px;
        line-height: 1.75;
        color: #1c1a10;
        margin: 0;
        text-align: left;
    }

    .before-after-item:last-of-type .before-after-text {
        margin-top: 0;
    }

    .before-after-arrow {
        margin: 20px 0;
    }
}

/* ========== Construction Detail Page Styles ========== */

/* 表示切り替え */
.pc-only {
    display: block;
}

.sp-only {
    display: none;
}


.signCom-left {
    flex: 1;
    max-width: 600px;
}

.company-name {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.625;
    color: #424031;
    margin: 0 0 15px 0;
}

.construction-title {
    font-family: 'Hiragino Sans', sans-serif;
    font-weight: 600;
    font-size: 25px;
    line-height: 1.2;
    color: #333333;
    margin: 0;
    padding-right: 20px;
}

.signCom-buttons {
    display: flex;
    gap: 17px;
    width: 379px;
    position: absolute;
    bottom: 0;
    right: 0;
}

.btn-catalog,
.btn-favorite {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.36;
    text-align: center;
    border-radius: 4px;
    padding: 9.6px 25.5px 11.4px 26.3px;
    cursor: pointer;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
    flex: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-catalog {
    background-color: #FF7C00;
    border: 1px solid #FF7C00;
    color: #ffffff;
}

.btn-favorite {
    background-color: #ffffff;
    border: 1px solid #989483;
    color: #696652;
}

/* メインコンテンツラッパー */
.main-content-wrapper {
    display: flex;
    gap: 19px;
    width: 960px;
    margin: 0 auto;
    align-items: flex-start;
}

.main-content {
    width: 434px;
    flex-shrink: 0;
}

.sidebar {
    width: 485px;
    padding-left: 80px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* CTAボタンスタイル */
.common-cta-buttons {
    margin: 30px 0;
}

.pc-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-primary {
    background-color: #FF7C00;
    border: 1px solid #FF7C00;
    color: #ffffff;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.36;
    text-align: center;
    border-radius: 4px;
    padding: 9.6px 25.5px 11.4px 26.3px;
    cursor: pointer;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-secondary-group {
    display: flex;
    gap: 12px;
}

.cta-secondary {
    background-color: #ffffff;
    border: 1px solid #989483;
    color: #696652;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.36;
    text-align: center;
    border-radius: 4px;
    padding: 9.6px 25.5px 11.4px 26.3px;
    cursor: pointer;
    flex: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-cta-buttons {
    display: none;
}

.cta-primary-group {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.cta-tel {
    background-color: #175FFF;
    border: 1px solid #175FFF;
    color: #ffffff;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.36;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
}

.cta-catalog {
    background-color: #FF7C00;
    border: 1px solid #FF7C00;
    color: #ffffff;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.36;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
}

/* サイドバーCTA */
.sidebar-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 物件情報（施工価格の色修正） */
.event_info .price {
    color: #E94B08 !important;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 18px !important;
    line-height: 1.36;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .pc-only {
        display: none !important;
    }

    .sp-only {
        display: block !important;
    }

    .signCom-left {
        max-width: none;
    }

    .company-name {
        font-size: 14px;
        text-transform: uppercase;
        margin-bottom: 15px;
    }

    .construction-title {
        font-size: 18px;
        line-height: 1.36;
        padding-right: 0;
    }

    .main-content-wrapper {
        display: block;
        width: 100%;
        margin: 0;
    }

    .main-content {
        width: 100%;
        padding: 0px;
    }

    .sidebar {
        display: none;
    }

    .sp-cta-buttons {
        display: block !important;
        padding: 30px 0 0;
        width: 100%;
        max-width: 351px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .pc-cta-buttons {
        display: none !important;
    }

    .event_info.sp-only .price {
        color: #E94B08 !important;
        font-family: 'Noto Sans', sans-serif;
        font-weight: 700;
        font-size: 18px;
        line-height: 1.36;
    }



    /* ページ下部にスペースを確保（固定メニュー用） */
    body {
        padding-bottom: 80px !important;
    }

    /* 固定メニューが表示される場合のみ余白を追加 */
    body:has(.fixed-bottom-menu.sp-only) {
        padding-bottom: 80px !important;
    }

    /* 物件情報の表を1カラムに変更 */
    main .edata-group {
        flex-direction: column;
    }

    main .edata-group .e_dataG {
        width: 100% !important;
        margin-bottom: 20px;
    }

    main .saler-companyInfo .e_dataG {
        width: 100% !important;
        margin-bottom: 20px;
    }
}

/* スマホ版固定メニュー */
.fixed-bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
}



/* スマホ版でのみ表示 */
@media (max-width: 768px) {
    .fixed-bottom-menu.sp-only {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
    }
}

.fixed-menu-buttons {
    display: flex;
    gap: 12px;
    padding: 15px 21px;
    max-width: 393px;
    margin: 0 auto;
    box-sizing: border-box;
}

.fixed-btn-tel,
.fixed-btn-catalog {
    flex: 1;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.36;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    color: #ffffff;
    border: none;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
    padding: 12px 8px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixed-btn-tel {
    background-color: #175FFF;
}

.fixed-btn-catalog {
    background-color: #FF7C00;
}

/* モデルハウス詳細ページ専用のスタイル */
@media (max-width: 768px) {
    /* モデルハウス詳細ページでのsignCom設定（テキスト左揃え） */
    body.modelhouse-detail main .container .signCom {
        display: flex;
        gap: 8px;
        padding-block: 24px;
        flex-direction: column;
        background-color: #fafaf5;
        position: relative;
        margin-bottom: 0px;
        text-align: left !important;
        align-items: flex-start !important;
    }

    body.modelhouse-detail main .container .signCom p,
    body.modelhouse-detail main .container .signCom .ring,
    body.modelhouse-detail main .container .signCom .tipG,
    body.modelhouse-detail main .container .signCom .bookBtn {
        text-align: left !important;
        align-self: flex-start !important;
    }

    body.modelhouse-detail main .container .signCom .ring p {
        text-align: left !important;
    }

    /* 施工事例ページ専用：ビフォーセクション画像幅設定 */
    .before-after-section .before-after-item:nth-child(2) .before-after-image-wrapper,
    .before-after-item:first-child .before-after-image-wrapper,
    .before-after-item:first-of-type .before-after-image-wrapper {
        width: 35% !important;
        flex: 0 0 35% !important;
        max-width: 35% !important;
        min-width: 35% !important;
    }
}

/* 周辺環境セクション */
.env-container {
    width: 100%;
    padding-bottom: 40px;
    position: relative;
}

.env-container .envT {
    width: 100%;
    position: relative;
    border-bottom: 1px solid #cccccc;
    color: #333333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.env-container .envT::after {
    position: absolute;
    content: "";
    width: 100px;
    height: 2px;
    background-color: #6782ae;
    left: 0;
    bottom: 0;
}

.env-slider {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    gap: 13px;
}

.env-slide {
    box-sizing: border-box;
    padding: 10px;
    transition: transform 0.3s ease-in-out;
}

.env-slide img {
    width: 230px;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}

.env-slide h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.env-slide p {
    font-size: 14px;
    color: #333;
}

.env-slide a {
    color: #007bff;
    text-decoration: underline;
}

.env-prev,
.env-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    z-index: 10;
    color: #ffffff;
}

.env-prev {
    left: 0;
}

.env-next {
    right: 0;
}

/* 物件情報関連のスタイル */
main .event_infoT {
    font-size: 20px;
    font-weight: bold;
}

main .e_dataG {
    padding-top: 20px;
    position: relative;
}

main .content-box .e_dataG::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 2px;
    background-color: #6782ae;
}

main .edata-group {
    width: 100%;
    position: relative;
    justify-content: space-between;
}

main .edata-group::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 2px;
    background-color: #6782ae;
}

main .edata-group .e_dataG {
    width: 48%;
}

main .saler-companyInfo {
    width: 100%;
    padding-bottom: 34px;
}

main .saler-companyInfo .e_dataG {
    position: relative;
    width: 48%;
    padding-block: 10px;
}

main .saler-companyInfo .e_dataG::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 2px;
    background-color: #6782ae;
}

main .event-bottom .e_data p:nth-of-type(1) {
    padding-right: 8px;
}

main .content-box .event_info {
    width: 100%;
}

/* ========== hタグ最適化用スタイル ========== */

/* 会社名をh2に変更する際のスタイル継承 */
h2.company-name {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.625;
    color: #424031;
    margin: 0 0 15px 0;
}

/* 物件情報タイトルをh2に変更する際のスタイル継承 */
h2.event_infoT {
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid #b3b3b3;
}

/* 新しいセクションタイトル用のスタイル */
h2.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333333;
    position: relative;
    padding-bottom: 2px;
    border-bottom: 1px solid #b3b3b3;
}

h2.section-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 130px;
    height: 2px;
    background-color: #6782ae;
}

/* 既存のh3, h4スタイルを保持 */
h3.facility-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333333;
}

h3.gallery-midashi{
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333333;
}

h3.feature-item {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333333;
}

/* 間取りセクションタイトルの位置調整 */
.arrangementT {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid #b3b3b3;
}

.arrangementT h2.section-title {
    margin-bottom: 0;
}

.arrangementT .arrangement-label {
    margin-bottom: 2px;
}

/* 土地・建売ページ 価格表示用スタイル */
.price-value .price {
    font-size: 24px;
    color: #e6541c;
    font-weight: bold;
    display: inline;
}

.price-value .unit {
    font-size: 16px;
    color: #e6541c;
    font-weight: bold;
    display: inline;
}

/* PC版とスマホ版での微調整 */
.price-section .price-value .price {
    font-size: 24px;
}

.mobile-price .price-value .price {
    font-size: 20px;
}

.mobile-price .price-value .unit {
    font-size: 14px;
}

@media (max-width: 768px) {
    .price-value .price {
        font-size: 18px;
    }

    .price-value .unit {
        font-size: 12px;
    }
}

