/*
 Theme Name:   e_ver004 Child
 Description:  e_ver004の子テーマ
 Author:       adminadmin
 Template:     e_ver004
 Version:      1.0.0
*/

/* =============================================
COLOR OPTION（カラーオプション） 
==============================================*/
:root {
    --white: #ffffff;
    --black: #333333;
    --main-black: #313131;
    --main-blue: #7FAAD0;
    --main-beige: #c1b78c;
    --main-green: #249D57;
    --main-navy: #01355C;
    --main-apricot: #fcbb4e;
    --main-pink: #f3bdbf;
    --main: #9E2328;
}

/* =============================================
3BOX（TOP3BOX） 
==============================================*/
/* おすすめポイントの高さ調整 */

.sec-3box .wrapper .box .name {
    /* 	min-height: 70px; */
}

.sec-3box .wrapper .box .point {
    /*     min-height: 125px; */
}

.sec-3box .wrapper .box .name {
    /* 	min-height: 70px; */
}

.sec-3box .wrapper .box .content {
    /* 	min-height: 50px; */
    min-height: unset;
}


/* =============================================
検索機能装飾
==============================================*/
.nxrc-search-form table tr th,
.search .nxrc-fields th {
    background-color: var(--main-navy) !important;
    /*検索ボックステーブルの見出しの背景色*/
    color: white !important;
    /*検索ボックステーブルの見出しテキストの色*/
}

.nxrc-search-button button {
    background-color: #32b16c !important;
    /*ボタンから*/
    color: #ffffff !important;
    /*ボタンテキストのカラー*/
}

/*********************************
3BOX(セレクション)
*********************************/
/* ボタンカラー */
/* [class*="is-BrSearchContents-style_selectBoxes_"] .select-box .select-btn_1 a {
	background-color: red !important; 
	border-color: red !important; 
    color: #fff;
}

[class*="is-BrSearchContents-style_selectBoxes_"] .select-box .select-btn_1 a {
	background-color: red !important; 
	border-color: red !important; 
    color: #fff;
}

[class*="is-BrSearchContents-style_selectBoxes_"] .select-box .select-btn_1 a:hover {
    background: #fff !important;
    color: red !important;
} */
/* 概要高さ調整 */

/* [class*="is-BrSearchContents-style_selectBoxes_"] .select-box .select-txt {
	min-height: 150px !important;
} */



.svg-icon {
    height: 45px !important;
    width: auto;
}

@media screen and (max-width:768px) {
    .pr-bottom a.btn-c {
        font-size: 1.8rem;
        padding-left: 3rem;
        letter-spacing: 0.1rem;
    }

    .pr-bottom a.btn-c span {
        font-size: 1.2rem;
    }
}

@media screen and (min-width: 768px) {
    .header-logo .main-icon {
        height: 60px;
    }
}

table#tablepress-12 {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    /*   table-layout: fixed; */
}

table#tablepress-12 td {
    border: 1px solid #ddd !important;
    padding: 8px;
    background: white;
    vertical-align: middle;
    text-overflow: ellipsis;
    min-width: 0 !important;
    width: auto;
}

table#tablepress-12 td.column-1 {
    position: sticky;
    left: 0px;
    z-index: 2;
    background: white;
    border-right: 1px solid #bbb;
    width: 151px;
}

@media screen and (max-width: 600px) {
    table#tablepress-12 td.column-1 {
        width: 120px !important;
    }
}

table#tablepress-12 td.column-2 {
    /* position: sticky; */
    position: static;
    left: 152px;
    z-index: 1;
    background: white;
    border-right: 1px solid #bbb;
    width: 105px;
}

@media screen and (max-width: 600px) {
    table#tablepress-12 td.column-2 {
        left: 120px;
    }
}

/* 年齢確認ポップアップ用 */
/* ポップアップの背景 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* ポップアップの本体 */
.popup-content {
    background: white;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 640px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
    font-family: "Noto Sans JP", "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
}

.popup-content--in {
    padding: 2rem;
}

.popup-content--btn {
    background: #eee;
    border: 1px solid #ddd;
}

.popup-lg {
    font-weight: 700;
    font-size: 2rem;
}

.popup-content strong {
    background: #eee;
    font-weight: 700;
    display: block;
    text-align: center;
    border: 1px solid #ddd;
    padding: 0.5rem;
    font-size: 1.4rem;
}

/* ボタンデザイン */
.popup-content button {
    margin: 1rem;
    padding: 0.6rem 8rem;
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
}

#yesBtn {
    background: #66BB6A;
    color: white;
    border-radius: 5px;
    font-weight: 700;
}

#yesBtn small {
    display: block;
    font-size: 1rem;
    font-weight: 400;
}

#noBtn {
    background: #f5f5f5;
    color: #333;
    border-radius: 5px;
    font-weight: 700;
}

#noBtn small {
    display: block;
    font-size: 1rem;
    font-weight: 400;
}

.popup-content--in small {
    font-size: 1.2rem;
    margin-top: 1rem;
}

.point-wrap p {
    position: relative;
    padding-left: 26px;
}

.point-wrap p:before {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
}

.sec-bottomContent h4,
.single .recommend-box h4 {
    display: block !important;
}

#sidebar .sidebar-list.design2 .sidebar-title {
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--main);
    font-weight: 700;
}

#sidebar .sidebar-list.design3 .sidebar-title {
    position: relative;
    padding-bottom: 1.4rem;
    font-size: 16px;
}

#sidebar .sidebar-list.design3 .sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-image: repeating-linear-gradient(45deg, var(--main) 0px, var(--main) 2px, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 50%);
    background-size: 8px 8px;
}

.sec-faq.design2.bg-base .faq-item::before,
.sec-faq.design2.bg-base .faq-item::after {
    display: none;
}

.sec-tablepress.row_table.bg-gray .tablepress td:first-child {
    background: #ddd !important;
}

.cat-list .cat-item .img-wrap img {
    height: auto;
}

/* 新テーブルCSS */
.sec-tablepress.column_table #tablepress-15.tablepress td:first-child {
    background: transparent;
    color: var(--text-color);
    font-weight: 400;
    width: 185px;
    min-width: 185px;
    padding: 1rem 0.7rem;
    vertical-align: top;
    font-size: 14px;
    word-break: break-all;
    box-sizing: border-box;
    border: 1px solid #efefef !important;
    text-align: left;
    position: static;
}

#tablepress-15.tablepress td strong {
    display: block;
    text-align: center;
    line-height: 1;
}

@media screen and (max-width:768px) {
    .tb-count #tablepress-15.tablepress {
        width: 100% !important;
        min-width: 100% !important;
    }

    .tb-count2 #tablepress-15.tablepress {
        min-width: initial !important;
        width: calc(100% * (var(--col-count, 3) / 3)) !important;
    }

    .tb-count2 #tablepress-15 tr td,
    .tb-count #tablepress-15 tr td {
        width: calc(100% / 3);
        min-width: calc(100% / 3);
        padding: 1rem 0.4rem;
        font-size: 12px;
    }

    .sec-tablepress.column_table #tablepress-15.tablepress td:first-child {
        width: calc(100% / 3);
        min-width: calc(100% / 3);
        padding: 1rem 0.4rem;
        font-size: 12px;
    }

    .tb-count #tablepress-15 tr td:not(.column-1):not(.column-2):not(.column-3) {
        display: none;
    }

    .tablepress tr td .tp_btn-1,
    .tablepress tr td .tp_btn-2 {
        padding-right: 2.4rem;
        padding-left: 1rem;
    }
}

.footerNav ul {
	padding: 0 !important;
}
.footer .footer-list {
 margin-top: 2.4rem;
}
.footer h3.footer-title {
	font-size: 1.6rem;
	display: block!important;
	color: #fff;
	position: relative;
    padding: 1rem 0;
    padding-left: 2.4rem;
	border-bottom: 2px solid #fff;
	margin-bottom: 1.6rem;
}

.footer h3.footer-title::before {
    content: "\f5fd";
    position: absolute;
    top: 1rem;
    left: 0;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #fff;
}

.footer .footer-item {
    display: inline-block;
    font-size: 1.4rem;
    position: relative;
    padding: .5rem 0;
    padding-left: 1.25rem;
    margin-right: 1rem;
    line-height: 1.4;
}
  
[class*=is-BrSearchContents-style_selectBoxes_selection] .select-box .select-txt {
	min-height:155px;
}

:root {
  --constructions-before-after-case-color: #ff3300;
}

/*********************************
  全体レイアウトと横スクロール設定
 *********************************/
.constructions .exScrollArea {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 25px;
  scroll-snap-type: x mandatory;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .constructions .exScrollArea {
    padding-bottom: 15px;
  }
}

/* スクロールバーのデザイン */
.constructions .exScrollArea::-webkit-scrollbar {
  height: 8px;
}
.constructions .exScrollArea::-webkit-scrollbar-track {
  background-color: #efefef;
  border-radius: 50px;
}
.constructions .exScrollArea::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 50px;
}

/* リスト全体の初期化 */
.constructions .ex-list {
  display: flex;
  flex-wrap: nowrap;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  gap: 40px; /* スライド同士の隙間 */
}

/* スライド1つあたりの設定 */
.constructions.beforeAfter .ex-list li {
  flex: 0 0 100%; /* 横幅100%から絶対に縮まない・広がらないよう固定 */
  width: 100%;
  min-width: 100%;
  list-style: none;
  margin: 0 !important;
  padding-bottom: 0 !important;
  line-height: unset !important;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.constructions .ex-list li + li {
  margin-left: 0 !important; /* はみ出し防止のため古いマージンをリセット */
}

/*********************************
  タイトル（CASE）のデザイン
 *********************************/
.constructions.beforeAfter .ex-list li .ex-title {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.35;
}

.constructions.beforeAfter .ex-list li .ex-title .case-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 11px;
  color: #fff;
  background: var(--constructions-before-after-case-color);
  box-sizing: border-box;
  line-height: 1.2;
  margin-right: 15px;
  flex-shrink: 0; /* 丸数字がつぶれるのを防ぐ */
}

.constructions.beforeAfter .ex-list li .ex-title .case-wrap .case-name {
  font-size: 16px;
  font-weight: bold;
}

/*********************************
  コンテンツBOX（PC表示：横並び）
 *********************************/
.constructions.beforeAfter .ex-list li .constructions-box {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
	padding:4px;
}

/* Before/After共通の画像ラップ */
.constructions.beforeAfter .ex-list li .img-wrap {
  position: relative;
  width: 100%;
	max-height:300px;
  overflow: hidden;
	text-align:center;
}

.constructions.beforeAfter .ex-list li .img-wrap a {
	    object-fit: cover;
    object-position: center center;
}

.constructions.beforeAfter .ex-list li img {
  display: block;
  width: 100%;
  height: 250px !important; /* 画像の高さを統一 */
  object-fit: cover; /* 枠いっぱいに隙間なく表示 */
  object-position: center center; /* 画像を上下左右「中央」を基準に配置 ★追加 */
}

/* BeforeとAfterの配置比率調整 */
.constructions.beforeAfter .ex-list li .imgBefore {
  width: 44%;
  flex-shrink: 0;
}

.constructions.beforeAfter .ex-list li .imgAfter {
  width: 44%;
  flex-shrink: 0;
}

/* 中央の矢印（つぶれ・歪み徹底対策版） */
.constructions.beforeAfter .imgArrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8%;
  height: 300px; /* 画像の高さに合わせる */
  flex-shrink: 0; /* 矢印エリアが横から圧迫されて潰れるのを防ぐ */
}

.constructions.beforeAfter .imgArrow svg {

  border-radius: 50%;
  padding: 5px;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important; /* 横幅を強制固定 */
  min-height: 40px !important; /* 縦幅を強制固定 */
  box-sizing: border-box;
}


.constructions.beforeAfter .imgArrow svg path {
	fill: #333 !important;
}

main .constructions.beforeAfter .ex-list li img {
	height:auto!important;
}

/*********************************
  Before/After バッジのデザイン
 *********************************/
.constructions.beforeAfter .ex-list .img-name {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  background-color: rgba(51, 51, 51, 0.85);
  color: #fff;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
}

.constructions.beforeAfter .ex-list .img-name.after {
  font-size: 13px;
  padding: 6px 16px;
  background-color: var(--constructions-before-after-case-color);
}

/*********************************
  所在地テーブル
 *********************************/
.constructions .ex-list li table.recommend-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
}

.constructions .ex-list li .recommend-table td {
  border: 1px solid #e9e9e9 !important;
  font-size: 12px;
  padding: 6px 10px;
  vertical-align: middle;
}

.constructions .ex-list li .recommend-table td:first-child {
  width: 25% !important;
  background-color: #efefef;
  font-weight: bold;
  text-align: center;
}

/*********************************
  引用テキスト
 *********************************/
.constructions .ex-quote {
  display: block;
  text-align: right;
  font-size: 10px;
  color: #999;
  margin: 5px 0 0;
  white-space: nowrap;
  overflow-x: auto;
}

/*********************************
  レスポンシブ表示（スマートフォン対応）
 *********************************/
@media screen and (max-width: 768px) {
  /* スマホ時は隙間を少し狭く */
  .constructions .ex-list {
    gap: 20px; 
  }

  .constructions.beforeAfter .ex-list li .constructions-box {
    display: block; /* 縦並びに変更 */
  }

  .constructions.beforeAfter .ex-list li .imgBefore,
  .constructions.beforeAfter .ex-list li .imgAfter {
    width: 100%;
  }

  .constructions.beforeAfter .ex-list li img {
    height: 180px !important; /* スマホ用に画像を低くして見やすく */
    object-position: center center; /* スマホでも中央を基準にする ★追加 */
  }

  /* スマホでの矢印は下向きにして中央配置 */
  .constructions.beforeAfter .imgArrow {
    width: 100%;
    height: auto;
    padding: 15px 0;
  }
  
  .constructions.beforeAfter .imgArrow svg {
    transform: rotate(90deg); /* 右向きから下向きに回転 */
    /* スマホ時に余計な収縮が起きないようリセット */
    width: 40px !important;
    height: 40px !important;
  }

  .constructions.beforeAfter .ex-list li .ex-title {
    font-size: 18px;
  }

  .constructions.beforeAfter .ex-list li .ex-title .case-wrap {
    width: 50px;
    height: 50px;
    font-size: 10px;
    margin-right: 12px;
  }

  .constructions.beforeAfter .ex-list li .ex-title .case-wrap .case-name {
    font-size: 14px;
  }
}