/* ページタイトル */
.main-ttl-wrap {
  margin-bottom: 120px;
  margin-top: var(--header-height, 0px);
}

.main_ttl {
  position: relative;
  margin-bottom: 100px;
}

.main_ttl>.bg {
  width: 100%;
  height: 580px;
}

.main_ttl h2 {
  display: block;
  left: calc(15px + 50 * (100vw - 320px) / 1180);
  transform: translateY(-50%);
  top: 64%;
  align-items: center;
  position: absolute;
  justify-content: center;
  z-index: 2;
}

.main_ttl>.bg img {
  max-width: inherit;
  width: 100%;
  height: 100%;
  object-position: top center;
  object-fit: cover;
}

.shop .main_ttl>.bg img {
  object-position: center center;
  object-fit: cover;
}

.main_ttl_text_box {
  height: 100%;
  z-index: 100;
}

.main-ttl-box {
  height: 100%;
  display: block;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  top: 50%;
  align-items: center;
  position: absolute;
  justify-content: center;
}

.main-ttl-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 400px;
  height: auto;
  margin: 0 auto;
}

.main_ttl>.bg::before {
  content: '';
  position: absolute;
  width: 169px;
  height: 200px;
  background-size: contain;
  right: 0;
  background-repeat: no-repeat;
}

.main_ttl>.bg::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 300px;
  background-size: contain;
  left: 0;
  background-repeat: no-repeat;
}

.main_ttl .fs-en {
  font-weight: 500;
  display: block;
  color: #fff;
  font-family: "Fjalla One", sans-serif;
  font-size: 70px;
  white-space: nowrap;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #fff;
  padding: 5px 20px;
  background-color: rgba(229, 0, 39, 0.8);
}

.main_ttl .fs-en span {
  opacity: 0.5;
}

.main_ttl .txt {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  display: table;
  padding: 15px;
  white-space: nowrap;
  color: #fff;
  background-color: rgba(229, 0, 39, 0.8);
}

.section-box .sec-title {
  font-weight: 700;
  color: var(--main-color);
  font-size: 72px;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 60px;
}

.section-box .sub-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--main-color);
  margin-bottom: 5px;
  display: table;
}

.detail-btn-list .flex-box {
  display: flex;
  justify-content: center;
  gap: 0 20px;
}

@media (max-width: 1200px) {
  .main_ttl>.bg {
    width: 100%;
    height: 480px;
  }
}

@media (max-width: 1200px) {
  .main-ttl-wrap {
    margin-bottom: min(calc(80px + (100 - 80) * (100vw - 992px) / (1500 - 992)),
        100px);
  }

  .main_ttl .fs-en {
    font-size: min(calc(50px + (70 - 50) * (100vw - 992px) / (1500 - 992)),
        70px);
    margin-bottom: 15px;
  }

  .main_ttl .txt {
    font-size: min(calc(22px + (30 - 22) * (100vw - 992px) / (1500 - 992)),
        30px);
  }

  .main-ttl-bg {
    width: min(calc(300px + (400 - 300) * (100vw - 992px) / (1500 - 992)),
        400px);
  }

  .main_ttl>.bg {
    width: 100%;
    height: min(calc(300px + (380 - 300) * (100vw - 992px) / (1500 - 992)),
        380px);
  }

  .section-box .sec-title {
    font-weight: 700;
    color: #00b98f;
    font-size: min(calc(48px + (72 - 48) * (100vw - 992px) / (1500 - 992)),
        72px);
    line-height: 1;
    letter-spacing: 0;
    margin-bottom: min(calc(40px + (60 - 40) * (100vw - 992px) / (1500 - 992)),
        60px);
  }

  .section-box .sub-title {
    font-size: min(calc(16px + (20 - 16) * (100vw - 992px) / (1500 - 992)),
        20px);
  }

}

@media (max-width: 991px) {
  .main_ttl {
    margin-bottom: 80px;
  }

  .main-ttl-wrap {
    margin-bottom: min(calc(60px + (80 - 60) * (100vw - 320px) / (991 - 320)),
        80px);
  }

  .main_ttl .fs-en {
    font-size: 40px;
  }

  .main_ttl .txt {
    font-size: 24px;
  }

  .main-ttl-bg {
    width: min(calc(260px + (300 - 260) * (100vw - 320px) / (991 - 320)),
        260px);
  }

  .main_ttl>.bg {
    width: 100%;
    height: 300px;
  }

  .main_ttl h2 {
    display: block;

  }

  .section-box .sec-title {
    font-size: min(calc(40px + (60 - 40) * (100vw - 320px) / (991 - 320)),
        60px);
    margin-bottom: min(calc(20px + (40 - 20) * (100vw - 320px) / (991 - 320)),
        40px);
  }

  .section-box .sub-title {
    font-size: min(calc(16px + (20 - 16) * (100vw - 320px) / (991 - 320)),
        20px);
  }

  .detail-btn-list .flex-box {
    display: block;
  }

  .main_ttl>.bg::before {
    width: min(calc(100px + (169 - 100) * (100vw - 320px) / (991 - 320)),
        169px);
    height: min(calc(120px + (200 - 120) * (100vw - 320px) / (991 - 320)),
        200px);
  }

  .main_ttl>.bg::after {
    width: min(calc(250px + (400 - 250) * (100vw - 320px) / (991 - 320)),
        400px);
    height: min(calc(200px + (300 - 200) * (100vw - 320px) / (991 - 320)),
        300px);
  }
}

@media (max-width: 768px) {
  .main_ttl {
    margin-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .main_ttl {
    margin-bottom: 50px;
  }
}

/* =======================================
パンくず
======================================== */
.breadcrumb_wrap {
  position: static;
  padding-right: min(2.5vw, 50px);
  margin-top: 20px;
  bottom: 20px;
  right: calc(15px + 50 * (100vw - 320px) / 1180);
}

.breadcrumb_wrap .panlist {
  font-weight: 500;
  font-size: 11px;
  line-height: 1.2;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow-y: hidden;
  overflow-x: auto;
}

.breadcrumb_wrap .panlist>li {
  display: flex;
  align-items: center;
}


.breadcrumb_wrap .panlist>li {
  font-size: 11px;
  text-align: right;
}

.breadcrumb_wrap .panlist>li>a {
  color: var(--main-color);
  white-space: nowrap;
  font-size: 11px;
}

.breadcrumb_wrap .panlist>li.active {
  color: var(--main-color);
  text-decoration: none;
  pointer-events: none;
}

.breadcrumb_wrap .panlist>li+li:before {
  content: ">";
  letter-spacing: normal;
  display: block;
  padding: 0 0.5em;
}

.breadcrumb_wrap .panlist>li+li:before {
  transform: translateY(-0.1em);
}

/* =======================================
店舗紹介/よくあるご質問
======================================== */

.shop-head-area {
  padding-bottom: 100px;
}

h3.page-sec-ttl {
  font-size: 28px;
  text-align: center;
  font-weight: 700;
  position: relative;
  padding-bottom: 20px;
  white-space: normal;
  /* 改行OK（これが基本） */
  word-break: break-all;
  /* 日本語＋長い英単語も途中で折り返す */
  margin-bottom: 60px;
}

h3.page-sec-ttl::after {
  position: absolute;
  height: 5px;
  bottom: 0;
  background-color: var(--red-color);
  left: 50%;
  width: 100px;
  content: '';
  transform: translateX(-50%);
}

.shop-head-text {
  font-size: 18px;
  line-height: 1.8;
}

.info-table-wrap {
  border: 2px solid var(--red-color);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

/* ===== ãƒ†ãƒ¼ãƒ–ãƒ« ===== */
.info-table {
  border-collapse: collapse;
  /* â† ã“ã‚ŒãŒãƒã‚¤ãƒ³ãƒˆ */
  width: 100%;
  border-spacing: 0;
  /* å¿µã®ãŸã‚ */
  background: #fff;
}

.about-overview-area .indent dd {
  text-indent: -1em;
  padding-left: 1em;
}

.about-overview-area dl>div+div {
  margin-top: 15px;
}

.about-overview-area dl dt {
  color: var(--red-color);
}

.info-table th,
.info-table td {
  padding: 22px 20px;
  line-height: 1.8;
}

/* å·¦åˆ—ï¼ˆè¦‹å‡ºã—ï¼‰ */
.info-table th {
  width: 180px;
  background: var(--red-color);
  color: #fff;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.05em;
}

/* å³åˆ—ï¼ˆæœ¬æ–‡ï¼‰ */
.info-table td {
  color: #0c0d0d;
  font-size: 16px;
  background: #fff;
}

/* è¡Œã®åŒºåˆ‡ã‚Šç·š */
.info-table tr+tr th,
.info-table tr+tr td {
  border-top: 1px solid #999999;
}

.info-table tr+tr th {
  border-top: 1px solid #ffffff;
}

.info-table tr:nth-child(even) td {
  background-color: rgb(247, 241, 237);
}

.overview-area,
.shop-info-area {
  margin-bottom: 100px;
}

.shop-info-area h4 {
  font-size: 24px;
  margin-top: 10px;
  font-weight: 700;
  text-align: center;
}

.shop-info-area h4 span {
  color: var(--red-color)
}

.shop-info-area,
.parking-area {
  padding: 100px 0;
  background-color: #ebe6e7;
}

.shop-info-area .row {
  gap: 40px 0;
}

.map-area {
  padding-bottom: 100px;
}

.map iframe {
  width: 100%;
  height: 340px;
}

.parking-area .container {
  max-width: 980px;
  width: 100%;
}

.parking-area .container .row {
  align-items: center;
}

.parking-area .container p {
  font-size: 18px;
  line-height: 1.8;
}
.map-area {
    text-align: center;
}
.map-area .more-btn {
  margin-top: 30px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: inline-flex; /* ★ 横幅が中身にフィットする */
  width: auto;
  justify-content: center;
  font-weight: 500;
  align-items: center;
  font-size: 18px;
  gap: 0 20px;
  color: var(--main-color);
}

.faq-area {
  padding: 100px 0 220px;
}

.faq-item.open .faq-ttl {
  background-color: var(--red-color);
  color: #fff;
}

.faq-ttl {
  background-color: var(--red-color);
  padding: 15px 70px 15px 60px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  position: relative;
  cursor: pointer;
  display: flex;
  transition: 0.7s;
}

.q-icon {
  position: absolute;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  left: 10px;
  top: 0.55em;
  padding: 4px 10px 8px 10px;
  color: var(--red-color);
  background-color: #fff;
  border-radius: 10px;
  margin-right: 10px;
}


.faq-ttl::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(var(--red-color) 0 0) center / 2px 16px no-repeat,
    /* ç¸¦ç·š */
    linear-gradient(var(--red-color) 0 0) center / 16px 2px no-repeat;
}

.faq-item.open .faq-ttl::before {
  background-size: 0 16px, 16px 2px;
}

.faq-ttl::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.faq-answer {
  display: flex;
  font-size: 16px;
  gap: 0 20px;
}

.faq-ttl-text {
  font-size: 20px;
  color: #fff;
}

.faq-content {
  display: none;
  padding: 30px;
  border: 2px solid var(--red-color);
}

.faq-label {
  display: flex;
  /* ← これが一番強力 */
  justify-content: center;
  align-items: center;

  width: 35px;
  height: 35px;

  font-weight: 700;
  font-size: 28px;

  background-color: var(--red-color);
  color: #fff;
  flex-shrink: 0;
  /* ← つぶされないように */
}

.faq-item+.faq-item {
  margin-top: 50px;
}

.parking-area p.parking-text {
  margin-top: 20px;
  font-size: 16px;
}

.tel-text {
  color: var(--main-color);
}

@media (max-width: 991px) {

  .shop-head-text {
    font-size: 16px;
    line-height: 1.8;
  }

  .shop-info-area h4 {
    font-size: 20px;
    margin-top: 5px;
    font-weight: 700;
    text-align: center;
  }

  .shop-info-area .row {
    gap: 30px 0;
  }
}

@media (max-width: 768px) {

  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    color: #fff;
    padding: 10px 16px;
  }

  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }
}

@media (max-width: 480px) {

  .shop-info-area,
  .parking-area {
    padding: 80px 0;
  }

  .shop-head-area {
    padding-bottom: 80px;
  }

  h3.page-sec-ttl {
    font-size: 22px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
  }

  h3.page-sec-ttl::after {
    position: absolute;
    height: 4px;
    bottom: 0;
    background-color: var(--red-color);
    left: 50%;
    width: 80px;
    content: '';
    transform: translateX(-50%);
  }

  .shop-head-text {
    font-size: 14px;
    line-height: 1.8;
  }

  .parking-area p.parking-text {
    margin-top: 10px;
    font-size: 14px;
  }

  .overview-area,
  .shop-info-area {
    margin-bottom: 80px;
  }

  .map-area {
    padding-bottom: 60px;
  }

  .shop-info-area h4 {
    font-size: 18px;
    margin-top: 5px;
    font-weight: 700;
    text-align: center;
  }
}

/* =======================================
施工事例/金額目安（詳細ページ）
======================================== */
.works-detail-area {
  padding-bottom: 180px;
}

.before,
.after {
  z-index: 1000;
  position: relative;
  display: table;
  width: 100%;
  max-width: 160px;
  padding: 10px 20px;
  line-height: 1;
  font-family: "Fjalla One", sans-serif;
  font-size: 30px;
  text-align: center;
  margin-left: -15px;
  margin-bottom: -20px;
  color: #fff;
  font-weight: 700;
  background-color: rgba(229, 0, 39, 0.8);
}

.before-box img,
.after-box img {
  width: 100%;
  height: auto;         
  max-height: 400px;
  object-fit: contain;
  display: block;
}

.before-after-img-box {
  align-items: center;
}

.works-detail-area .date {
  display: table;
  color: #fff;
  padding: 10px;
  margin-bottom: 20px;
  margin-left: auto;
  background-color: var(--red-color);
}

h3.works-ttl {
  font-size: 28px;
  text-align: center;
  font-weight: 700;
  position: relative;
  padding-bottom: 20px;
  white-space: normal;
  /* 改行OK（これが基本） */
  word-break: break-all;
  /* 日本語＋長い英単語も途中で折り返す */
  margin-bottom: 60px;
}

h3.works-ttl::after {
  position: absolute;
  height: 5px;
  bottom: 0;
  background-color: var(--red-color);
  left: 50%;
  width: 100px;
  content: '';
  transform: translateX(-50%);
}

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

.works-head-text {
  line-height: 1.8;
  font-size: 16px;
}

.works-detail-area .attached-btn {
  position: relative;
  color: var(--red-color);
  max-width: 300px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 2px 12px rgba(143, 133, 134, 0.35);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  background-color: #fff;
  padding: 20px 0;
  border-radius: 16px;
  border: 2px solid var(--red-color);
}

.attached-btn::after {
  position: absolute;
  right: 20px;
  content: '';
  display: block;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 26px;
  background-repeat: no-repeat;
  background-size: contain;
}

.attached-btn.pdf::after {
  background-image: url(../images/page/works/pdf-icon.svg);
}

.attached-btn.word::after {
  background-image: url(../images/page/works/word-icon.svg);
}

.attached-btn.excel::after {
  background-image: url(../images/page/works/excel-icon.svg);
}

.attached-btn-list .flex-box {
  margin-top: 50px;
  gap: 0 20px;
  justify-content: center;
}

.works-detail-area .back-btn {
  color: rgb(255, 255, 255);
  max-width: min(240.924px + 5.96125vw, 300px);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-size: 16px;
  line-height: 1;
  padding: 20px 0;
  margin: 40px auto 0;
  background-color: var(--red-color);
  border-radius: 16px;
  transition: 0.7s !important;
  border: 1px solid var(--sub-color);
  position: relative;
}

.back-red-circle-icon {
  width: 24px;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-content {
  margin: 70px 0 1rem;
}

.gallery-content .text {
  margin-top: 30px;
  font-size: 16px;
  line-height: 1.5;
  word-break: break-all;
}


.gallery-content .container {
  max-width: 1200px;
}

.gallery-main {
  background: var(--blue-color);
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}

.main-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* ← これだけで縦長も横長もOK */
  display: block;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.main-image-wrap img.is-fading {
  opacity: 0;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.thumb {
  cursor: pointer;
  border: 4px solid transparent;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.gallery-thumbs .thumb.is-selected{
    border-color: var(--red-color);
}

.thumb {
  height: 100px;          /* サムネ枠の高さ */
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb img {
  max-height: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.arrow-sp {
  display: none;
}


.gallery-main {
  background: var(--blue-color);
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}

/* ここを追加 */
.main-image-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;   /* 縦中央 */
  justify-content: center; /* 横中央 */
}

.main-image-wrap img {
  height: 100%;      /* 枠の高さに合わせる */
  width: auto;       /* アスペクト比維持で横幅を自動計算 */
  display: block;
  transition: opacity 0.2s ease;
}

/* フェード用はそのまま */
.main-image-wrap img.is-fading {
  opacity: 0;
}
@media (max-width: 1100px) {
  .before-box img,
  .after-box img {
    width: 100%;
    height: auto;         
    max-height: 320px;
    object-fit: contain;
    display: block;
  }

}


@media (max-width: 991px) {

  .attached-btn-list .flex-box {
    display: block;
  }

  .works-detail-area .attached-btn+.attached-btn {
    margin-top: 25px;
  }

  .works-detail-area .back-btn {
    padding: min(calc(14px + (20 - 14) * (100vw - 320px) / (991 - 320)),
        20px) 0;
    color: #fff;
    max-width: min(calc(260px + (300 - 260) * (100vw - 320px) / (991 - 320)),
        300px);
    width: 100%;
    display: flex;
    margin: min(calc(40px + (60 - 40) * (100vw - 320px) / (991 - 320)),
        60px) auto 0;
    justify-content: center;
    align-items: center;
    position: relative;
    font-size: 16px;
    line-height: 1;
  }

  .works-detail-area .attached-btn {
    position: relative;
    width: 100%;
    display: flex;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    position: relative;
    font-size: 16px;
    line-height: 1;
    padding: min(calc(14px + (20 - 14) * (100vw - 320px) / (991 - 320)),
        20px) 0;
    max-width: min(calc(260px + (300 - 260) * (100vw - 320px) / (991 - 320)),
        300px);
  }

  .faq-ttl {
    font-size: min(calc(18px + (22 - 18) * (100vw - 320px) / (991 - 320)), 22px);
  }

}

@media (max-width: 768px) {
  .works-detail-area {
    padding-bottom: 160px;
  }

  .arrow-pc {
    display: none;
  }

  .arrow-sp {
    display: block;
    width: 70px;
    margin: 25px auto;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-thumbs {
    gap: 8px;
  }

  .back-red-circle-icon {
    width: 20px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .before,
  .after {
    z-index: 1000;
    position: relative;
    display: table;
    width: 100%;
    max-width: 140px;
    padding: 10px 20px;
    line-height: 1;
    font-family: "Fjalla One", sans-serif;
    font-size: 26px;
    text-align: center;
    margin-left: -10px;
    margin-bottom: -15px;
    color: #fff;
    font-weight: 700;
    background-color: rgba(229, 0, 39, 0.8);
  }

  .before-box img,
  .after-box img {
    width: 100%;
    height: auto;         
    max-height: 380px;
    object-fit: contain;
    display: block;
  }

.gallery-content {
    margin: 50px 0 1rem;
}
}

@media (max-width: 480px) {
  .works-detail-area {
    padding-bottom: 120px;
  }

  h3.works-ttl {
    font-size: 22px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
  }

  h3.works-ttl::after {
    position: absolute;
    height: 4px;
    bottom: 0;
    background-color: var(--red-color);
    left: 50%;
    width: 80px;
    content: '';
    transform: translateX(-50%);
  }

  .works-head-text {
    line-height: 1.8;
    font-size: 14px;
  }

  .works-detail-area .date {
    padding: 5px;
    margin-bottom: 20px;
    font-size: 14px;
  }

  .arrow-sp {
    display: block;
    width: 50px;
    margin: 25px auto;
  }

  .before-box img,
  .after-box img {
    width: 100%;
    height: auto;         
    max-height: 320px;
    object-fit: contain;
    display: block;
  }

  .faq-content {
    display: none;
    padding: 20px;
    border: 2px solid var(--red-color);
  }

  .faq-text {
    font-size: 14px;
    line-height: 1.8;
  }

  .faq-ttl-text {
    font-size: 18px;
    color: #fff;
  }

  .q-icon {
    position: absolute;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    left: 10px;
    top: 0.75em;
    padding: 4px 10px 8px 10px;
    color: var(--red-color);
    background-color: #fff;
    border-radius: 10px;
    margin-right: 10px;
  }

  .faq-label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    font-weight: 700;
    font-size: 24px;
    background-color: var(--red-color);
    color: #fff;
    flex-shrink: 0;
  }

  .faq-ttl::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(var(--red-color) 0 0) center / 2px 16px no-repeat,
      /* ç¸¦ç·š */
      linear-gradient(var(--red-color) 0 0) center / 16px 2px no-repeat;
  }

  .faq-ttl::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
  }

  .faq-item+.faq-item {
    margin-top: 30px;
  }

  .faq-area {
    padding: 100px 0 120px;
  }
  .gallery-content {
    margin: 40px 0 1rem;
  }
  .thumb {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

}

/* =======================================
施工事例/金額目安
======================================== */
.category-link-area {
  position: relative;
}

.category-link-area::after {
  content: '';
  width: 100%;
  background-size: cover;
  height: 800px;
  display: block;
  position: absolute;
  background-position: right top;
  top: -40px;
  right: 0;
  z-index: -1;
  background-image: url('../images/common/feature-bg.png');
}

.category-link-area .flex-box {
  margin: 0 -15px;
  gap: 20px 0;
  flex-wrap: wrap;
}

.category-link-area .category-list {
  width: 20%;
  padding: 0 15px;
}

.category-link-area p.text {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.circle-right {
  width: 25px;
  display: block;
  font-size: 0;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.category-link-area .category-list {
  font-size: 16px;
}

.category-link-box {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

/* ▼ 通常の背景 */
.category-link-box::before,
.category-link-box::after {
  content: "";
  position: absolute;
  inset: 0;
  transition: opacity 0.7s;
}

/* ▼ ノーマル状態のグラデ */
.category-link-box::before {
  background: linear-gradient(to bottom, #cf001b 0%, #cf001b 60%, #ff8888 100%);
  opacity: 1;
}

/* ▼ ホバー時に見せたいグラデ */
.category-link-box::after {
  background: linear-gradient(to bottom, #cf001b 0%, #ff8888 60%, #cf001b 100%);
  opacity: 0;
}

/* ▼ hoverで切り替え */
.category-link-box:hover::after {
  opacity: 1;
}

/* a タグに入っているテキストのため */
.category-link-box a {
  position: relative;
  z-index: 2;
  width: 100%;
  font-size: 20px;
  padding: 20px 0;
  display: flex;
  gap: 0 20px;
  align-items: center;
  justify-content: center;
}

.category-link-area p.text {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.circle-right {
  width: 20px;
  display: block;
  font-size: 0;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.works-list-area {
  margin-top: 80px;
  position: relative;
}

.works-list-area {
  padding-bottom: 200px;
}

.works-list-wrap {
  padding-bottom: 70px;
}

.works-list-wrap .row {
  gap: 50px 0;
}


.works-list-area a {
  display: block;
  transition: 0.7s;
  cursor: pointer;
}

.works-list-area a:hover {
  opacity: 0.8;
}

.works-list-area .cat-name {
  color: #fff;
  padding: 5px;
  margin-left: -10px;
  margin-top: -10px;
  display: table;
  position: relative;
  z-index: 2;
  font-size: 14px;
  margin-bottom: 10px;
  background-color: var(--red-color);
}

.works-list-area .works-img img {
  width: 100%;
  height: auto;          /* 縦を切らない */
  max-height: 200px;     /* 縦だけ制限 */
  object-fit: contain;  /* 絶対に切らない */
  display: block;
}

.works-text-box h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.works-text-box .text {
  font-size: 16px;
  margin-bottom: 10px;
}

.amount {
  font-size: 16px;
  color: var(--red-color);
}

.amount span {
  color: var(--main-color);
  font-weight: 700;
}

div.paging {
  text-align: center;
  font-size: 90%;
  margin-top: 20px;
  line-height: 1.4em;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
}

div.paging span.current,
div.paging span.paging-text {
  margin: 0px 0.5px;
  color: #333;
  display: inline;
  zoom: 1;
  display: inline-block;
  overflow: hidden;
  text-decoration: none;
}

div.paging span.current,
div.paging span.paging-text {
  margin: 0px 0.5px;
  color: #333;
  display: inline;
  zoom: 1;
  display: inline-block;
  overflow: hidden;
  text-decoration: none;
}

div.paging span.paging-text a {
  padding: 5px 8.5px;
  display: block;
  color: #333;
  background-color: #eff2f4;
  border-radius: 5px;
}

div.paging span.current {
  background-color: var(--red-color);
  color: #fff;
  zoom: 1;
  padding: 5px 8.5px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border-radius: 5px;
}

div.paging a,
div.paging a:visited {
  text-decoration: underline !important;
}

div.paging a:hover {
  background-color: var(--blue-color) !important;
  color: #fff !important;
}


@media (max-width: 1450px) {

  .category-link-area .category-list {
    width: 25%;
    padding: 0 15px;
  }
}

@media (max-width: 1200px) {
  .category-link-area .category-list {
    width: 33.33333%;
  }

  .category-link-area::after {
    content: '';
    width: 100%;
    background-size: cover;
    height: 600px;
    display: block;
    position: absolute;
    background-position: right top;
    right: 0;
    z-index: -1;
    background-image: url('../images/common/feature-bg.png');
  }
}

@media (max-width: 850px) {
  .category-link-area .category-list {
    width: 50%;
    padding: 0 15px;
  }

  .category-link-box a {
    width: 100%;
    padding: 15px 0;
    display: flex;
    gap: 0 15px;
    position: relative;
    align-items: center;
    justify-content: center;
  }

}

@media (max-width: 768px) {

  .works-list-area .works-img img {
    width: 100%;
    max-height: 300px;
  }

}

@media (max-width: 550px) {

  .category-link-area p.text {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
  }

  .category-link-area .category-list {
    width: 50%;
    padding: 0 10px;
  }

  .category-link-area .flex-box {
    margin: 0 -10px;
    gap: 20px 0;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .works-list-area {
    padding-bottom: 120px;
  }

  .works-list-wrap {
    padding-bottom: 30px;
  }

  .works-list-area h3 {
    font-size: 24px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 50px;
  }

  .works-list-area h3::after {
    position: absolute;
    height: 4px;
    bottom: 0;
    background-color: var(--red-color);
    left: 50%;
    width: 80px;
    content: '';
    transform: translateX(-50%);
  }

  .works-list-area .works-img img {
    width: 100%;
    height: 220px;
    max-height: 220px;
  }

  .category-link-area .flex-box {
    display: block;
  }

  .category-link-area .category-list {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .category-link-area .category-list+.category-list {
    margin-top: 20px;
  }

  .category-link-box a {
    width: 100%;
    padding: 15px 0;
    display: flex;
    gap: 0 15px;
    position: relative;
    align-items: center;
    justify-content: center;
  }

  .works-text-box h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .works-text-box .text {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .amount {
    font-size: 14px;
    color: var(--red-color);
  }

  .works-list-wrap .row {
    gap: 40px 0;
  }
}

/* =======================================
業務内容
======================================== */

.page-link-area {
  padding: 0 0 80px;
}

.page-link-area .row {
  gap: 20px 0;
}

.page-link-box {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 16px;
}

.page-link-box::before,
.page-link-box::after {
  content: "";
  position: absolute;
  inset: 0;
  transition: opacity 0.7s;
}

.page-link-box a {
  position: relative;
  z-index: 2;
}

.page-link-box .circle-bottom {
  z-index: 2;
}

/* 通常状態 */
.page-link-box::before {
  background: linear-gradient(to bottom, #cf001b 0%, #cf001b 60%, #ff8888 100%);
  opacity: 1;
}

/* hover状態の背景 */
.page-link-box::after {
  background: linear-gradient(to bottom, #cf001b 0%, #ff8888 60%, #cf001b 100%);
  opacity: 0;
}

/* hoverでafterの透明度を上げる */
.page-link-box:hover::after {
  opacity: 1;
}

.page-link-box a {
  width: 100%;
  padding: 20px 0;
  display: flex;
  gap: 0 20px;
  position: relative;
  align-items: center;
  justify-content: center;
}

.page-link-box p.text {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.circle-bottom {
  width: 25px;
  display: block;
  font-size: 0;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.service-list-area {
  padding-bottom: 200px;
}

.service-box {
  padding: 30px 0 0;
  margin-top: 100px;
}

.service-inner {
  max-width: 1670px;
  /* コンテンツ幅 */
  margin: 0 auto;
  padding-bottom: 30px;
  display: flex;
  position: relative;
  /* 背景疑似要素の基準 */
}

/* 背景（右側だけビュー幅へブリード） */
.service-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #ebe6e7;
  border-radius: 40px 0 0 40px;
  z-index: -1;
  /* 背景を後ろへ */
}

.service-box:nth-child(even) .service-inner::before {
  border-radius: 0 40px 40px 0;
}

.service-box .sec-ttl {
  color: #fff;
  margin-top: -25px;
  padding: 15px 20px;
  font-size: 34px;
  font-weight: 700;
  background-color: var(--red-color);
  margin-bottom: 30px;
  display: table;
}

.service-box h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--red-color);
}

/* 左テキスト */
.service-left {
  width: 420px;
  margin-left: 100px;
  /* 左余白 */
  margin-right: 83px;
  /* テキストと画像の間 */
}

.service-box:nth-child(even) .service-left {
  width: auto;
  margin-left: 0;
  /* 左余白 */
  margin-right: 0;
  /* テキストと画像の間 */
}

.service-box:nth-child(even) .service-right {
  width: 420px;
  margin-right: 100px;
  /* 左余白 */
  margin-left: 83px;
  /* テキストと画像の間 */
  flex: none;
  min-width: auto;
  position: static;
}

.service-text {
  font-size: 18px;
  line-height: 1.8;
}

/* 右画像（角丸も継承） */
.service-right,
.service-box:nth-child(even) .service-left {
  flex: 1;
  min-width: 0;
  border-radius: 40px 0 0 40px;
  position: relative;
}

/* 画像を少し上に持ち上げるラッパー */
.service-img-wrap {
  width: 100%;
  transform: translateY(-30px);
}

/* 実際の画像 */
.service-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 40px 0 0 40px;
}

.service-box:nth-child(even) .service-img-wrap img {
  border-radius: 0 40px 40px 0;
}

/* 1670px 以上 → 右へビュー幅いっぱいにブリード  */
@media (min-width: 1670px) {

  /* 背景を右へ伸ばす */
  .service-inner::before {
    right: calc((100vw - 1670px) / -2);
  }

  /* 画像も右方向へ伸ばす */
  .service-right {
    margin-right: calc((100vw - 1670px) / -2);
  }

  .service-box:nth-child(even) .service-left {
    margin-right: 0;
    margin-left: calc((100vw - 1670px) / -2);
  }
}

@media (max-width: 1700px) {

  .service-box {
    padding-left: calc(15px + 50 * (100vw - 320px) / 1180);
    position: relative;
  }

  .service-box:nth-child(even) {
    padding-left: 0;
    padding-right: calc(15px + 50 * (100vw - 320px) / 1180);
  }
}

@media (max-width: 1150px) {

  /* 左テキスト */
  .service-left {
    width: 420px;
    margin-left: 80px;
    margin-right: 40px;
  }

  .service-box:nth-child(even) .service-right {
    width: 420px;
    margin-right: 80px;
    /* 左余白 */
    margin-left: 40px;
    /* テキストと画像の間 */
    flex: none;
    min-width: auto;
    position: static;
  }
}

@media (max-width:991px) {

  .service-left {
    width: 320px;
    margin-left: 40px;
    margin-right: 40px;
  }

  .service-box:nth-child(even) .service-right {
    width: 320px;
    margin-left: 40px;
    margin-right: 40px;
  }

  .service-list-area .more-btn {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
    font-weight: 500;
    font-size: 16px;
    gap: 0 20px;
    color: var(--main-color);
  }

  .page-link-box p.text {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
  }
}

@media (max-width:768px) {
  .service-list-area .sec-ttl-box {
    margin-bottom: 30px;
    margin-left: 0;
  }

  .service-box:nth-child(even) .sec-ttl-box {
    margin-bottom: 30px;
    margin-left: 40px;
  }

  .service-left {
    width: 100%;
    margin-left: 40px;
    margin-right: 0;
  }

  .service-box:nth-child(even) .service-right {
    width: 100%;
    margin-left: 0;
    padding-right: 40px;
    margin-right: 40px;
  }

  .service-img-wrap {
    width: 100%;
    margin-bottom: 30px;
    transform: translateY(0);
  }

  .service-left .service-text {
    margin-right: 40px;
  }

  .service-right .service-text,
  .service-right h4 {
    margin-right: 0;
    margin-left: 40px;
  }

  .service-inner {
    max-width: 1670px;
    margin: 0 auto;
    display: flex;
    padding-bottom: 40px;
    position: relative;
    /* 疑似要素の基準 */
  }

  .service-list-area .more-btn {
    margin-right: 40px;
  }

  .service-box:nth-child(even) .more-btn {
    margin-right: 0;
  }

  .service-box .sec-ttl {
    color: #fff;
    margin-top: -25px;
    padding: 10px 20px;
    font-size: 30px;
    font-weight: 700;
    background-color: var(--red-color);
    margin-bottom: 30px;
    display: table;
  }

  .service-box h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--red-color);
  }

  .service-text {
    font-size: 16px;
    line-height: 1.8;
  }
}

@media (max-width:480px) {
  .page-link-box a {
    padding: 15px 0;
    display: flex;
    gap: 0 15px;
    align-items: center;
    justify-content: center;
  }

  .page-link-box p.text {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
  }

  .service-left {
    width: 100%;
    margin-left: 20px;
    margin-right: 0;
  }

  .service-left .works-text {
    margin-right: 20px;
    font-size: 14px;
  }


  .service-box .more-btn {
    margin-right: 20px;
  }

  .service-box .sec-ttl {
    color: #fff;
    margin-top: -25px;
    padding: 10px 20px;
    font-size: 26px;
    font-weight: 700;
    background-color: var(--red-color);
    margin-bottom: 30px;
    display: table;
  }

  .service-box h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--red-color);
  }

  .service-text {
    font-size: 14px;
    line-height: 1.8;
  }

  .service-img-wrap img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 40px 0 0 40px;
  }

  .service-box {
    padding: 30px 0 0;
    margin-top: 60px;
  }

  .service-list-area {
    padding-bottom: 120px;
  }
}


/* =======================================
お問い合わせ
======================================== */
.tel-fax-area .sec-ttl-box h3,
.entry-form-area .sec-ttl-box h3 {
  line-height: 1.75;
  text-align: center;
  position: relative;
  margin-bottom: 30px;
  font-weight: 700;
  text-align: center;
  font-size: 30px;
}

.tel-fax-area .sp {
  display: none;
}

.tel-fax-area .icon {
  width: 100%;
  margin-right: 15px;
  max-width: 40px;
  height: 40px;
}

.tel-fax-wrap {
  padding: 25px;
  background: linear-gradient(to right, #cf001b 0%, #cf001b 60%, #ff8888 100%);
}

.tel-fax-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tel-fax-area .number-text {
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-size: 40px;
  transform: translateY(-3px);
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

.tel-fax-area .number-text a {
  font-size: 40px;
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

.tel-fax-area .text {
  text-align: center;
  font-size: 22px;
  color: #fff;
  margin-top: 5px;
}

.tel-fax-box .icon {
  margin-right: 12px;
  color: #fff;
  line-height: 1;
  display: flex;
  justify-content: center;
  font-size: 38px;
}

.tel-fax-box .icon i {
  display: block;
}

.entry-form-area {
  margin-top: 100px;
  padding: 100px 0;
  background-color: rgb(247, 241, 237);
  position: relative;
}

.entry-form-area input[type=checkbox],
.entry-form-area input[type=radio] {
  box-sizing: border-box;
  padding: 0;
  vertical-align: middle;
}

.entry-form-area .text-center {
  text-align: center;
  line-height: 2;
  font-size: 18px;
}

.contactform {
  margin-top: 50px;
}

.optional {
  color: #fff;
  font-weight: 400;
  background: #999;
  font-size: 12px;
  padding: 0.2em 0.5em;
}

.required {
  font-weight: 400;
  font-size: 12px;
  padding: 0.2em 0.5em;
  transform: translateY(-0.1em);
  color: #fff;
  display: inline-block;
  background-color: var(--red-color);
}

.entry-form-area .text-center .required {
  margin-right: 5px;
}

.entry-form-area .area-ttl-box {
  margin-bottom: 40px;
}

.entry-form-area .area-ttl-box .ttl-en {
  margin: 0 auto;
}

.entry-form-area .area-ttl-box h3 {
  text-align: center;
}


input[type="radio" i] {
  transform: translateY(-0.1em);
}

.radio-line .row {
  gap: 8px 0;
}

.notes {
  margin-top: 5px;
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: #999;
}

#policy h4 {
  font-size: 25px;
  color: var(--main-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.buttons {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

textarea.form-control {
  height: auto;
}

#policy {
  margin-top: 50px;
}

#policy a span {
  color: #000;
  font-size: 18px;
}

#policy .contents {
  padding: 1.5% 3.5%;
  border: solid 1px #ccc;
  max-height: 300px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: auto;
  background-color: #fff;
}

#policy .contents h5 {
  font-size: 18px;
  font-weight: bold;
  margin: 2em 0 0;
}

#policy .contents p,
#policy .contents ol {
  font-size: 18px;
  margin: 1em 0;
}

#policy a.url {
  color: #212121;
  text-decoration: underline;
}

#policy .contents>ol {
  counter-reset: number;
  /* カウンター初期化 */
}

#policy .contents>ol>li {
  position: relative;
  font-size: 18px;
  margin-bottom: 5px;
  padding-left: 2.5em;
  /* 番号分の余白 */
}

#policy .contents>ol>li::before {
  position: absolute;
  top: 0;
  left: 0;
  counter-increment: number;
  content: "(" counter(number) ") ";
  /* ← カッコで囲む */
}

.confirm-only {
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  justify-content: center;
  display: flex;
  gap: 0 20px;
}

.buttons {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/*
.buttons .fa-arrow-right,
.confirm-only .send-btn .fa-arrow-right,
.confirm-only .return-btn .fa-arrow-right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
*/
.agree {
  text-align: center;
  margin-top: 20px;
}

.agree label {
  font-size: 18px;
  display: inline-block;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;

}

.agree input[type="checkbox"] {
  margin-right: 5px;
}

.sei {
  padding-right: 20px;
}

.contactform .name-box {
  display: flex;
  /* divを横並びに */
  gap: 20px;
  /* 間隔 */
}

.contactform .name-box div {
  display: flex;
  align-items: center;
  /* ラベルと入力欄を縦位置そろえ */
  gap: 5px;
}

.table-contact {
  line-height: 1.75;
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  border-top: 1px solid #BCBEBF;
  margin-bottom: 30px;
}

.table-contact>tbody>tr {
  border-bottom: 1px solid #ccc;
}

.table-contact>tbody>tr>th {
  width: 16em;
  padding-left: 1em;
}

.table-contact>tbody>tr>td {
  padding-left: 2em;
}

/* テーブルの基本 */
.table-contact {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  /* 線のズレ防止 */
  border-spacing: 0;
}

.table-contact a {
  color: #271b1d;;
}

/* th / td の揃えと余白を統一 */
.table-contact th,
.table-contact td {
  vertical-align: top;
  /* ← ここが肝（Safari対策） */
  padding: 12px 16px;
  line-height: 1.6;
}

/* 任意：左の見出し幅 */
.table-contact th {
  width: 15em;
  /* 使っているなら固定幅はここで */
  white-space: nowrap;
}

.table-contact tr:last-child th,
.table-contact tr:last-child td {
  border-bottom: none;
}

.table-contact th,
.table-contact td {
  vertical-align: top;
  /* ← Safariでも確実に上揃え */
}

.table-contact>tbody>tr>th,
.table-contact>tbody>tr>td {
  padding: 1em 0;
  font-size: 18px;
}

.form-control {
  display: block;
  width: 100%;
  height: calc(2em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  color: #000;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0;
}

#element {
  border: 1px solid #ced4da;
  padding: 0.375rem 0.75rem;
  font-weight: 500;
}

/* inputを非表示にして自作UIに置き換える */
.file-upload input[type="file"] {
  display: none;
}

.file-upload {
  display: inline-flex;
  align-items: center;
  border: 1px solid #000;
  padding: 12px 12px;
  cursor: pointer;
  gap: 10px;
}

/* 本物のファイル入力は非表示にして label 経由でクリック */
.file-upload input[type="file"] {
  display: none;
}

.file-btn {
  background-color: #eee;
  border: 1px solid #000;
  padding: 4px 8px;
  white-space: nowrap;
}

#statusMsg {
  color: #999;
  font-size: 16px;
  font-weight: 400;
}

/* 共通 */
.entry-form-area ::placeholder {
  color: #ccc !important;
  font-weight: 400;
}

.p-postal-code {
  width: 30%;
}

.input-name {
  display: block;
  width: 100%;
}

.input-name {
  margin-bottom: 10px;
}

.contactform {
  font-size: 18px;
}

.form-line+.form-line {
  margin-top: 20px;
}

.send-btn {
  position: relative;
}

.send-btn .more-white-icon,
.btn-primary .more-white-icon {
  position: absolute;
  right: 16px;
  width: 24px;
  height: 24px;
  justify-content: center;
}

.btn-primary .more-white-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.send-btn:hover,
.btn-primary:hover {
  color: var(--main-color);
}
/*
.send-btn:hover .more-white-icon,
.btn-primary:hover .more-white-icon {
  background-color: var(--dark-red-color);
}
*/
.btn-primary .fa-arrow-right,
.send-btn .fa-arrow-right {
  color: var(--main-color);
  font-size: 16px;
}

.btn-primary:hover .fa-arrow-right,
.send-btn:hover .fa-arrow-right {
  color: #fff;
}

.send-btn .more-white-icon {
  top: 50%;
  transform: translateY(-50%);
}

.return-btn .more-white-icon {
  position: absolute;
  left: 16px;
  width: 24px;
  height: 24px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.return-btn .fa-arrow-right {
  color: #999999;
  font-size: 16px;
}

.return-btn:hover .fa-arrow-right {
  color: #333333;
}

.btn-primary,
.send-btn,
.return-btn,
.user-add-btn {
  position: relative;
  margin: 0 auto;
  max-width: 300px;
  width: 100%;
  display: block;
  width: 100%;
  text-align: center;
  color: #fff;
  padding: 20px 0;
  font-weight: 400;
  line-height: 1;
  overflow: hidden;
  color: #fff;
  border: none;
  line-height: 1.5;
  background: var(--red-color);
  border-radius: 16px;
  font-size: 18px;
  transition: 0.7s !important;
}

.btn-primary {
  max-width: 500px;
}

.user-add-btn {
  margin: 0;
}

.send-btn,
.return-btn {
  margin: 0;
}

.btn-primary:hover,
.send-btn:hover {
  color: #fff;
  background-color: var(--dark-red-color);
}

.return-btn {
  border: 1px solid #999999;
  background: #999999;
}

.return-btn:hover {
  border: 1px solid #333333;
  background-color: #333333;
}

.more-btn {
  position: relative;
  /* アイコン分の余白 */
}

/*
.btn-primary::after {
  content: "\f061"; 
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color:var(--main-color);
  position: absolute;
  right: 0.8em;
  width: 30px;
  height: 30px;
  line-height: 2;
  background-color: #fff;
  top: 50%;
  border-radius: 50% 50%;
  transform: translateY(-50%);
}
*/
/* 既存の .custom-select に“追記”するだけでOK */
.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid #ced4da;
  color: #222;
  padding: 0.375rem 2.5rem 0.375rem 0.75rem;
  font-weight: 500;
  line-height: 1.75;
  width: auto;
}

/* 状態別（任意） */
.custom-select:hover {
  border-color: #999;
}

.custom-select:focus {
  outline: none;
  border-color: #333;
}

/* 無効時は文字色を薄く → 矢印も自動で薄くなる（currentColor連動） */
.custom-select:disabled {
  color: #999;
  background-color: #f8f9fa;
  border-color: #e1e5ea;
}

.entry-form-area .sec-ttl {
  text-align: center;
  margin-bottom: 30px;
}

.img-upload-wrap .flex-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 20px;
}

.note {
  font-size: 14px;
  margin-top: 15px;
  line-height: 2;
  color: var(--red-color);
}

.entry-form-area label {
  margin-bottom: 0;
}

select.custom-select.placeholder {
  color: #999;
}

@media (max-width: 1500px) {

  .tel-fax-area .container,
  .entry-form-area .container {
    padding-left: calc(15px + 50 * (100vw - 320px) / 1180);
    padding-right: calc(15px + 50 * (100vw - 320px) / 1180);
  }
}

@media (max-width: 991px) {

  .tel-fax-area h3,
  .entry-form-area h3 {
    font-size: 30px;
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {

  .tel-fax-area h3,
  .entry-form-area h3 {
    line-height: 1.5;
    font-size: 26px;
    margin-bottom: 20px;
  }

  .tel-fax-area .sp {
    display: block;
  }
}

@media (max-width: 1500px) {
  .tel-fax-ttl {
    font-size: min(calc(22px + (26 - 22) * (100vw - 992px) / (1500 - 992)),
        26px);
    background-color: #fff;
    padding: min(calc(8px + (10 - 8) * (100vw - 992px) / (1500 - 992)),
        10px);
    margin-bottom: 20px;
  }


  .tel-fax-area .number-text {
    font-size: 38px;
  }

  .tel-fax-area .number-text a {
    font-size: 38px;
  }

  .tel-fax-area .text {
    font-size: min(calc(18px + (22 - 18) * (100vw - 992px) / (1500 - 992)),
        22px);
    margin-top: min(calc(5px + (10 - 5) * (100vw - 992px) / (1500 - 992)),
        10px);
  }

  .tel-fax-area .container,
  .entry-form-area .container {
    padding-left: calc(15px + 50 * (100vw - 320px) / 1180);
    padding-right: calc(15px + 50 * (100vw - 320px) / 1180);
  }

  .entry-form-area .text-center {
    font-size: min(calc(16px + (18 - 16) * (100vw - 992px) / (1500 - 992)),
        18px);
  }

  .entry-form-area .table-contact label {
    font-size: min(calc(16px + (18 - 16) * (100vw - 992px) / (1500 - 992)),
        18px);
  }

  .required {
    font-size: min(calc(14px + (16 - 14) * (100vw - 992px) / (1500 - 992)),
        16px);
  }

  .table-contact>tbody>tr>th,
  .table-contact>tbody>tr>td {
    font-size: min(calc(16px + (18 - 16) * (100vw - 992px) / (1500 - 992)),
        18px);
  }

  .form-control {
    font-size: min(calc(16px + (18 - 16) * (100vw - 992px) / (1500 - 992)),
        18px);
  }

  .flex-box input[type="file"] {
    font-size: min(calc(16px + (18 - 16) * (100vw - 992px) / (1500 - 992)),
        18px);
  }

  .table-contact>tbody>tr>th {
    width: 17em;
  }

  /* 共通 */
  .entry-form-area ::placeholder {
    font-size: min(calc(16px + (18 - 16) * (100vw - 992px) / (1500 - 992)),
        18px);
  }

  #policy h4 {
    font-size: min(calc(22px + (25 - 22) * (100vw - 992px) / (1500 - 992)),
        25px);
    margin-bottom: min(calc(15px + (20 - 15) * (100vw - 992px) / (1500 - 992)),
        20px);
  }

  #policy .contents p,
  #policy .contents ol {
    font-size: min(calc(16px + (18 - 16) * (100vw - 992px) / (1500 - 992)),
        18px);
  }

  #policy .contents h5 {
    font-size: min(calc(16px + (18 - 16) * (100vw - 992px) / (1500 - 992)),
        18px);
    margin: 2em 0 0;
  }

  #policy .contents>ol>li {
    font-size: min(calc(16px + (18 - 16) * (100vw - 992px) / (1500 - 992)),
        18px);
    margin-bottom: 5px;
  }

  .agree label {
    font-size: min(calc(16px + (18 - 16) * (100vw - 992px) / (1500 - 992)),
        18px);
  }

  .btn-primary,
  .send-btn,
  .return-btn {
    font-size: 16px;
    padding: 15px 0;
  }
}

@media (max-width: 991px) {

  .tel-fax-area h3 {
    font-size: min(calc(24px + (28 - 24) * (100vw - 320px) / (991 - 320)),
        28px);
  }

  .tel-fax-area h3::after {
    width: min(calc(60px + (80 - 60) * (100vw - 320px) / (991 - 320)),
        80px);
  }

  .tel-fax-ttl {
    padding: min(calc(6px + (10 - 6) * (100vw - 320px) / (991 - 320)),
        10px);
  }

  .fax-box {
    margin-top: 20px;
  }

  .fax-wrap {
    margin-top: min(calc(20px + (30 - 20) * (100vw - 320px) / (991 - 320)),
        30px);
  }

  .tel-fax-area {
    margin-bottom: 0
  }

  .tel-fax-area .icon {
    line-height: 1;
  }

  .tel-fax-area .number-text {
    font-size: min(calc(26px + (50 - 26) * (100vw - 320px) / (991 - 320)),
        50px);
  }

  .tel-fax-area .number-text a {
    font-size: min(calc(26px + (50 - 26) * (100vw - 320px) / (991 - 320)),
        50px);
  }

  .entry-form-area .text-center {
    font-size: min(calc(14px + (16 - 14) * (100vw - 320px) / (991 - 320)),
        16px);
  }

  .required {
    font-size: min(calc(12px + (14 - 12) * (100vw - 320px) / (991 - 320)),
        14px);
  }

  .notes {
    font-size: min(calc(14px + (16 - 14) * (100vw - 320px) / (991 - 320)),
        16px);
  }

  .entry-form-area ::placeholder {
    font-size: min(calc(14px + (16 - 14) * (100vw - 320px) / (991 - 320)),
        16px);
  }

  #policy h4 {
    line-height: 1.5;
    font-size: min(calc(18px + (22 - 18) * (100vw - 320px) / (991 - 320)),
        22px);
    margin-bottom: 20px;
  }

  #policy .contents p,
  #policy .contents ol,
  #policy .contents a,
  #policy .contents a span {
    font-size: min(calc(14px + (16 - 14) * (100vw - 320px) / (991 - 320)),
        16px);
  }

  #policy .contents h5 {
    font-size: min(calc(14px + (16 - 14) * (100vw - 320px) / (991 - 320)),
        16px);
    margin: 2em 0 0;
  }

  #policy .contents>ol>li {
    font-size: min(calc(14px + (16 - 14) * (100vw - 320px) / (991 - 320)),
        16px);
    margin-bottom: 5px;
  }

  .agree label {
    font-size: min(calc(14px + (16 - 14) * (100vw - 320px) / (991 - 320)),
        16px);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .entry-form-area .table-contact label {
    font-size: min(calc(14px + (16 - 14) * (100vw - 320px) / (991 - 320)),
        16px);
  }



  .btn-primary .fa-arrow-right,
  .send-btn .fa-arrow-right {
    color: var(--main-color);
    font-size: 12px;
  }

  .confirm-only .send-btn,
  .confirm-only .return-btn {
    margin-left: 0;
    margin-right: 0;
  }

  .confirm-only {
    gap: 0 min(calc(15px + (20 - 15) * (100vw - 320px) / (991 - 320)),
        20px);
  }

  .table-contact>tbody>tr>th,
  .table-contact>tbody>tr>td {
    font-size: min(calc(14px + (16 - 14) * (100vw - 320px) / (991 - 320)),
        16px);
  }

  .flex-box input[type="file"] {
    font-size: min(calc(14px + (16 - 14) * (100vw - 320px) / (991 - 320)),
        16px);
  }

  .form-control {
    display: block;
    width: 100%;
    height: calc(1.75em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: min(calc(14px + (16 - 14) * (100vw - 320px) / (991 - 320)),
        16px);
    font-weight: 500;
    line-height: 1.75;
    color: #222222;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0;
  }

  .form-control.p-postal-code {
    width: 200px;
  }

  .custom-select {
    width: 200px;
  }

  #element {
    display: block;
    width: 100%;
    height: calc(1.75em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
  }

  .entry-form-area {
    padding: 100px 0;
    position: relative;
  }
}

@media (max-width: 768px) {
  .entry-form-area {
    padding: 80px 0 150px;
    position: relative;
  }

  .entry-form-area {
    margin-top: 80px;
  }

  .entry-form-area .text-center {
    text-align: left !important;
  }

  .fa-arrow-right:before {
    font-size: 14px;
  }

  .table-contact>tbody>tr {
    width: 100%;
    display: block;
    padding: 1em 0.5em;
  }

  .table-contact>tbody>tr>th,
  .table-contact>tbody>tr>td {
    width: 100%;
    display: block;
    padding: 0;
  }

  .table-contact>tbody>tr>th+td,
  .table-contact>tbody>tr>td+td {
    margin-top: .5em;
  }

  .tel-fax-box .icon {
    font-size: 30px;
    margin-right: 7px;
  }

  .send-btn .more-white-icon,
  .btn-primary .more-white-icon {
    position: absolute;
    right: 16px;
    width: 20px;
    height: 20px;
    justify-content: center;
  }

  .return-btn .more-white-icon {
    width: 20px;
    height: 20px;
  }

  .tel-fax-area .text {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {

  .tel-fax-area .sec-ttl-box h3,
  .entry-form-area .sec-ttl-box h3 {
    line-height: 1.75;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    font-size: 22px;
  }

  .tel-fax-area .icon {
    width: 100%;
    max-width: 32px;
    height: 32px;
  }

  .note {
    font-size: 13px;
    margin-top: 12px;
  }
}