ul#front_service__list .service_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

ul#front_service__list .service_box::before {
  content: unset;
}

.service_box img:hover {
  transform: scale(1.1);
}

ul#front_reason__list .reason_list__img {
  background-image: unset;
}

ul#front_reason__list .reason_list__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media(min-width:1024px) {
  header#front_header {
    background: rgba(255, 255, 255, .5);
    backdrop-filter: blur(8px);
    position: fixed;
  }

  dd#header_nav__inner {
    flex-direction: unset;
  }

  .scroll .site_header {
    position: fixed !important;
    top: -10rem !important;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, .5);
    backdrop-filter: blur(8px);
    padding: 1rem 0 !important;
    opacity: 0;
    align-items: center;
  }

  a#header_logo {
    margin: 0.5rem auto 0 2rem;
  }

  header#front_header .main_navigation li a {
    color: #333;
  }

  a.site_logo {
    width: 200px;
  }

  .site_header {
    display: flex;
    background: rgba(255, 255, 255, .5);
    backdrop-filter: blur(8px);
    position: fixed;
    width: 100%;
  }

  #fixed_nav__tel {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1280px) {
  header.site_header .main_navigation li a {
    font-size: 11px;
  }
}

.koujicat h3 {
  background: #fff;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  line-height: 1.4;
  display: inline-block;
  padding: .5rem 1rem;
}

.koujicat h4 {
  display: inline-block;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.koujip {
  display: flex;
  flex-wrap: wrap;
}

.koujip p {
  font-size: 1.1rem;
  margin-right: 30px;
  margin-bottom: 15px;
  width: 250px;
  padding-left: 15px;
  text-indent: -15px;
}

.koujip p:before {
  content: "▶︎";
  font-size: 0.6rem;
  vertical-align: middle;
  margin-right: 5px;
}

.innercatkouji {
  margin-bottom: 30px;
}

@media(max-width:768px) {
  .koujip p {
    width: 340px;
  }
}

@media screen and (min-width: 768px) {
  ul#breadcrumbs {
    position: static;
    margin: 0 auto;
    max-width: 1000px;
    margin-bottom: 3rem;
  }

  div.page_header {
    margin-bottom: 0rem;
  }

  div.header_img__wrap {
    margin-bottom: 2rem;
  }
}

#header_top__tel {
  color: #000;
}

@media screen and (min-width: 1024px) {
  div#header_tel__txt .small {
    text-align: center;
  }

  div#fixed_nav__tel__icon {
    display: block;
    text-align: center;
  }

  div#header_top .btn_link {
    margin-left: 10px;
  }

  ul.main_navigation li a {
    font-size: 0.8rem;
    padding: 0;
  }

  ul#header_top li {
    font-size: 0.8rem;
    margin-left: 10px;
  }

  div#header_tel__txt span {
    display: block;
    font-size: 0.9em;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1400px) {
  div#fixed_nav__tel__icon {
    transform: none;
  }

  div#header_tel__txt {
    font-size: 1rem;
  }

  div#header_tel__txt .small {
    font-size: 70%;
    text-align: center;
  }

  ul#header_top li {
    font-size: 0.7rem;
    margin-left: 8px;
  }

  ul.main_navigation {
    padding: .5rem 10px 1rem;
  }

  li#header_top__tel {
    width: 150px;
  }

  .main_navigation li a {
    font-size: 0.8rem;
    padding: 0;
  }
}

@media screen and (max-width: 768px) {
  #header_top__tel {
    display: none;
  }
}

.serviceflowdiv {
  margin-bottom: 60px;
}

.serviceflowdiv h3 {
  background: #fff;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  line-height: 1.4;
  display: inline-block;
  padding: .5rem 1rem;
}

.serviceflowdiv img {
  width: 100%;
  max-width: 600px;
  margin-bottom: 30px;
  margin-right: 30px;
}

.innerflowdiv p {
  font-size: 18px;
  margin-bottom: 30px;
}

.innerflowdiv {
  display: flex;
  flex-wrap: wrap;
}

.innerflowdiv h4 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

.innerflowdiv div {
  max-width: 340px;
}

@media screen and (max-width: 768px) {
  .innerflowdiv p {
    font-size: 16px;
  }

  .innerflowdiv h4 {
    font-size: 18px;
  }
}

div.currentdiv {
  margin-top: 100px;
}

.currentdiv h3 {
  font-size: 24px;
  margin-bottom: 40px;
}

.currentdiv ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8%;
}

.currentdiv ul li {
  width: 46%;
}

.currentdiv img {
  margin-bottom: 10px;
}

.currentdiv ul li p {
  color: #3393D5;
  font-weight: 800;
}

.currentdiv ul li:hover {
  opacity: 0.7;
}

.case_select__inner label a {
  display: inline;
}

#case_select__wrap .search-btn {
  text-align: center;
}

/* 監修者ボックス */
.supervisor-box {
  max-width: 600px;
  margin: 2rem auto;
  background: linear-gradient(to bottom right, #e6f3ff, #f0f4ff);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.supervisor-label {
  background-color: #3b82f6;
  color: white;
  font-weight: bold;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  text-align: center;
}

.supervisor-header {
  display: flex;
  align-items: center;
  padding: 1rem;
}

.supervisor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #3b82f6;
  margin-right: 1rem;
}

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

.supervisor-info {
  flex-grow: 1;
}

.supervisor-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: bold;
  color: #1e40af;
}

.supervisor-title {
  margin: 0;
  font-size: 0.875rem;
  color: #4b5563;
}

.supervisor-content {
  padding: 0 1rem 1rem;
}

.supervisor-profile {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.supervisor-social {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .supervisor-header {
    flex-direction: column;
    text-align: center;
  }

  .supervisor-avatar {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

.post_thumbnail {
  margin: 0 0 3rem;
}

/* under column */
.column_related_case_wrap {
  flex-direction: column;
}

/* case to service - Basic Style (Shared) */
.case_to_service_lists {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style-type: none;
  margin: 0.5em 0 0;
  padding: 0;
}

.case_to_service_list {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #3393D5;
  border-radius: 15px;
  color: #3393d5;
  font-weight: bold;
  font-size: 14px;
  box-sizing: border-box;
  text-decoration: none;
  transition: .3s;
}

.case_to_service_list:hover {
  opacity: 0.7;
}

/* --- 下部の工事メニュー限定：目立つボタンデザイン --- */
.case_bot_service .case_to_service_lists {
  gap: 15px;
  margin: 1.5em 0 0;
}

.case_bot_service .case_to_service_list {
  padding: 14px 28px;
  border-radius: 40px;
  color: #fff;
  background-color: #3393D5;
  border: none;
  font-size: 15px;
  /* 3D的な厚み */
  box-shadow: 0 5px 0 #2678b8;
  position: relative;
  top: 0;
  min-width: 160px;
  opacity: 1;
  /* hover時のopacity変化を上書き */
}

.case_bot_service .case_to_service_list::after {
  content: '→';
  margin-left: 10px;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.case_bot_service .case_to_service_list:hover {
  background-color: #3b9cdc;
  top: 2px;
  /* 少し沈む */
  box-shadow: 0 3px 0 #2678b8;
  color: #fff;
  opacity: 1;
}

.case_bot_service .case_to_service_list:hover::after {
  transform: translateX(3px);
}

.case_bot_service .case_to_service_list:active {
  top: 5px;
  /* 完全に沈む */
  box-shadow: 0 0 0 #2678b8;
}

@media (max-width: 768px) {
  .case_bot_service .case_to_service_list {
    padding: 12px 20px;
    font-size: 14px;
    min-width: calc(50% - 8px);
    box-shadow: 0 4px 0 #2678b8;
  }
}

/* contact banner */
.micro-text {
  font-family: 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  line-height: 1.4;
  max-width: 90%;
  margin: 0 auto;
}

.micro-text.micro-text-top {
  font-size: 0.8em;
  font-weight: 500;
  color: #333333;
  margin-bottom: 8px;
  text-align: center;
}

.micro-text.micro-text-bottom {
  font-size: 0.7em;
  color: #666666;
  margin-top: 8px;
  text-align: center;
}

.micro-text-highlight {
  font-weight: bold;
  color: #FF6600;
}

@media screen and (max-width: 768px) {
  .micro-text.micro-text-top {
    margin-bottom: 6px;
  }

  .micro-text.micro-text-bottom {
    margin-top: 6px;
  }
}

.micro-text {
  animation: fadeIn 0.8s ease-in-out;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media(max-width:1349px) {
  .sidebardiv {
    display: none;
  }
}

@media(min-width:1350px) {
  .single_flex {
    display: flex;
    flex-wrap: wrap;
    /* margin: 0 auto; */
    justify-content: center;
  }

  .sidebardiv {
    max-width: 320px;
  }

  .sidebardiv {
    position: sticky;
    top: 100px;
    width: 320px;
    height: fit-content;
  }

  .sidebardiv a {
    margin-bottom: 20px;
    display: block;
  }

  .sidebardiv a:hover {
    opacity: 0.7;
  }
}

.custom-post img {
  margin-bottom: 20px;
}

.custom-post a:hover {
  opacity: 0.7;
}

.add_mgb20 {
  margin-bottom: 20px;
}

.relatecase {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "item1 item1 item1"
    "item2 item3 item4";
}

.relatecase h3 {
  grid-area: item1;
  font-size: 20px;
  margin: 0;
}

.relatecase div.item1 {
  grid-area: item2;
}

.relatecase div.item2 {
  grid-area: item3;
}

.relatecase div.item3 {
  grid-area: item4;
}

@media screen and (max-width: 768px) {
  .relatecase {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    justify-content: center;
    grid-template-areas:
      "item1"
      "item2"
      "item3"
      "item4";
  }

  .relatecase div.innercaserelate {
    width: 100%;
  }
}

.relatecase img {
  margin-bottom: 10px;
  object-fit: cover;
  width: 300px;
  height: 200px;
}

.relatecase p {
  color: #3393D5;
  font-weight: 800;
}

.relatecase a:hover {
  opacity: 0.7;
}

/* btn_request */
.btn_request {
  display: block;
  color: #fff;
  text-decoration: underline;
  margin: 12px auto;
}

.case_after span.afterleft {
  left: 0.5rem;
  right: unset;
}

.case_after span.afterright {
  right: 0.5rem !important;
  left: unset;
}

/* complete pdf btn css */
.font_red {
  color: #ff0000;
  font-weight: bold;
}

#complete_pdf_btn {
  background-color: #3393D5;
  color: #fff;
}

#complete_pdf_btn:hover {
  background-color: #fff;
  color: #3393D5;
}

/* column fix right bottom banner */
.fix_cta_rb_wrap {
  position: fixed;
  bottom: 3%;
  right: 3%;
  max-width: 300px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.fix_cta_rb_link:hover {
  opacity: 0.7;
}

.img_mgtb3r {
  margin: 2rem 0;
  display: block;
}

.column-bottom-widget a,
.case-bottom-widget a {
  display: block;
  margin-bottom: 20px;
}

.column-bottom-widget a:hover,
.case-bottom-widget a:hover {
  opacity: 0.7
}

.column-top-widget a {
  display: block;
  margin-bottom: 30px;
}

.column-top-widget a:hover {
  opacity: 0.7
}

a.arealink {
  text-decoration: underline;
  color: #3393D5;
  margin-top: 20px;
  font-size: 18px;
  display: block;
  width: fit-content;
}

a.arealink:hover {
  text-decoration: none;
}

.pdf_btn_links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* --- ポップアップ基本デザイン --- */
.exit-popup.hidden {
  display: none;
}

.exit-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.exit-popup-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #fff;
  padding: 30px;
  padding-top: 50px;
  padding-bottom: 50px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 970px;
  z-index: 100000000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: all 0.3s ease;
}

.exit-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.exit-popup-btn {
  display: inline-block;
  padding: 12px 20px;
  background: #06C755;
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  width: 100%;
  max-width: 390px;
}

.exit-popup-text {
  font-size: 18px;
  margin-bottom: 20px;
}

.exit-popup-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.tel-btn {
  background: #F7AB00;
}

.exit-popup-content a:hover {
  color: #fff;
  filter: alpha(opacity=65);
  -moz-opacity: 0.65;
  opacity: 0.65;
}

/* --- 表示時のアニメーション --- */
.exit-popup.show .exit-popup-overlay {
  opacity: 1;
}

.exit-popup.show .exit-popup-content {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media(max-width:500px) {
  .exit-popup-btn {
    font-size: 14px;
    max-width: 300px;
  }

  .exit-popup-text {
    font-size: 16px;
  }
}

@media screen and (min-width: 768px) {
  .exit-popup-content a[href*="tel:"] {
    pointer-events: auto !important;
    cursor: default !important;
  }
}

/* New styles from inline */
.exit-popup-btn-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  width: 70%;
  margin: 0 auto;
}

.exit-popup-btn.line-btn {
  text-align: center;
  width: auto;
  padding: 6px 15px;
}

.exit-popup-btn.line-btn img {
  width: 45px;
  height: auto;
  vertical-align: middle;
}

.exit-popup-btn.tel-btn {
  padding: 12px 15px;
  text-align: center;
  width: auto;
}

.exit-popup-btn.tel-btn i {
  margin-right: 8px;
}

.case_bot_service {
  margin-bottom: 100px;
  margin-top: 50px;
}

div.entry_content .case_bot_service h2 {
  margin-top: 20px;
}

div.entry_content .case_bot_service ul {
  margin: 0;
}

div.entry_content .case_bot_service ul li {
    padding-left: 0;
    width: 48%;
}
@media(max-width:768px){
  div.entry_content .case_bot_service ul li {
    width: 100%;
}
}

.entry_content .case_bot_service p {
  margin-bottom: 1rem;
}

.entry_content .case_bot_service ul li::before {
  content: unset;
  width: auto;
  height: auto;
  border-radius: 50%;
  position: relative;
  top: unset;
  left: unset;
}

div.entry_content .case_bot_service ul li a {
  padding: 8px 20px;
  border: 1px solid #3393D5;
  border-radius: 0px;
  background: #3393D5;
  color: #fff;
  font-weight: normal;
  font-size: 20px;
  width: 100%;
  text-align: center;
}

@media(max-width:500px) {
  .exit-popup-btn-container {
    display: block;
    width: 95%;
  }

  .case_bot_service {
    margin-bottom: 60px;
  }

  .exit-popup-btn.line-btn {
    padding: 8px;
    width: 100%;
    margin-bottom: 10px;
  }

  .exit-popup-btn {
    max-width: 265px;
  }

  .exit-popup-btn.tel-btn {
    padding: 17px 15px;
    width: 100%;
  }

  .fa-phone-alt:before {
    font-size: 20px;
    top: 3px;
    position: relative;
  }

}

ul#header_top li#header_top__shiryou {
  margin-left: 0;
}

@media screen and (min-width: 1024px) {
  #header_top .btn_link {
    flex-direction: column;
  }
}

ul#header_top .btn_shiryou {
  background-color: #4bb052;
  border: 2px solid #4bb052;
}

ul#header_top .btn_link .icon {
  margin-bottom: 5px;
  margin-right: 0rem;
}

@media(max-width:768px) {
  ul#header_top .btn_link .icon {
    margin-right: 1rem;
  }
}

.case_bot_service .case_to_service_list::after {
  content: '>';
  position: absolute;
  right: 15px;
  top: 14%;
}
/* 防水コラム用施工事例セクション */
.column-waterproof-cases {
  margin-top: 50px;
  padding-top: 50px;
  border-top: 1px solid #eee;
  clear: both;
}

.column-waterproof-cases__title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.currentdiv .column-waterproof-cases__list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.currentdiv .column-waterproof-cases__list li {
  width: calc(33.333% - 14px) !important;
  margin-bottom: 30px !important;
  list-style: none !important;
}

@media screen and (max-width: 1024px) {
  .currentdiv .column-waterproof-cases__list li {
    width: calc(50% - 10px) !important;
  }
}

@media screen and (max-width: 768px) {
  .currentdiv .column-waterproof-cases__list li {
    width: 100% !important;
  }
}
