/* CSS Document */
.modaal-content-container img {
  width: 100%;
}
.modaal-content-container figcaption {
  display: none;
}

.modaal-container {
  max-width: 800px;
}

.reform {
  background: url("../images/reform/reform_bg.jpg") no-repeat top left/cover;
}
.reform h1 {
  z-index: 1;
}

main article h1 {
  margin: 6% 0 3%;
}

#reform section {
  padding: 3% 0;
}
#reform section p {
  text-align: center;
  font-size: 1.4rem;
}
#reform section p.en {
  font-size: 1.2rem;
  color: #7c7c7c;
  margin-bottom: 5em;
}
#reform section.reform_top {
  width: 1200px;
}
#reform section.reform_top figure {
  display: flex;
  align-items: center;
  justify-content: center;
}
#reform section.reform_top figure figcaption {
  width: 50%;
  text-align: center;
  font-size: 1.6rem;
}
#reform section.reform_top figure div {
  width: 50%;
}
#reform section.reform_top figure div.size {
  width: 80%;
}
#reform section.reform_top figure div img {
  width: 100%;
}
#reform section.list {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
#reform section.list a {
  display: block;
  width: 360px;
  height: 360px;
  box-shadow: 0.5px 0.5px 2px #999999;
}
#reform section.list a img {
  width: 100%;
}
#reform section.list figure {
  display: none;
}

#reform_menu {
  padding: 5% 0;
}
#reform_menu section {
  margin: 0 auto;
  padding: 3% 0;
}
#reform_menu section h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 50px;
  position: relative;
}
#reform_menu section h2:before, #reform_menu section h2:after {
  content: "";
  width: 40%;
  position: absolute;
  display: block;
  border-top: 1px solid #000000;
  top: 50%;
  z-index: 1;
}
#reform_menu section h2:before {
  left: 0;
}
#reform_menu section h2:after {
  right: 0;
}
#reform_menu section.menu ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px 10px;
}
#reform_menu section.menu ul li {
  width: 24%;
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url(../images/reform/interior/kitchen/kitchen.jpg) no-repeat right/contain;
}
#reform_menu section.menu ul.menu_01 li:nth-child(1) {
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url(../images/reform/interior/kitchen/kitchen_bg.jpg) no-repeat right/contain;
}
#reform_menu section.menu ul.menu_01 li:nth-child(2) {
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url(../images/reform/interior/bathroom/bathroom_bg.jpg) no-repeat right/contain;
}
#reform_menu section.menu ul.menu_01 li:nth-child(3) {
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url(../images/reform/interior/powderroom/powderroom.jpg) no-repeat right/contain;
}
#reform_menu section.menu ul.menu_01 li:nth-child(4) {
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url(../images/reform/interior/toilet/toilet_bg.jpg) no-repeat right/contain;
}
#reform_menu section.menu ul.menu_01 li:nth-child(5) {
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url(../images/reform/interior/wallpaper/wallpaper_bg.jpg) no-repeat right/contain;
}
#reform_menu section.menu ul.menu_01 li:nth-child(6) {
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url(../images/reform/interior/floor/floor.jpg) no-repeat right/contain;
}
#reform_menu section.menu ul.menu_01 li:nth-child(7) {
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url(../images/reform/interior/doors_interior/doors_interior_bg.jpg) no-repeat right/contain;
}
#reform_menu section.menu ul.menu_01 li:nth-child(8) {
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url(../images/reform/interior/storage/storage_bg.jpg) no-repeat right/contain;
}
#reform_menu section.menu ul.menu_01 li:nth-child(9) {
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url("../images/reform/interior/tile_interior/tile_bg.jpg") no-repeat right/contain;
}
#reform_menu section.menu ul.menu_01 li:nth-child(10) {
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url(../images/reform/interior/light/light.jpg) no-repeat right/contain;
}
#reform_menu section.menu ul.menu_01 li:nth-child(11) {
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url(../images/reform/interior/curtain/curtain_bg.jpg) no-repeat right/contain;
}
#reform_menu section.menu ul.menu_01 li:nth-child(12) {
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url(../images/reform/interior/blind/blind_bg.jpg) no-repeat right/contain;
}
#reform_menu section.menu ul.menu_02 li:nth-child(1) {
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url(../images/reform/exterior/doors_exterior/doors_bg.jpg) no-repeat right/contain;
}
#reform_menu section.menu ul.menu_02 li:nth-child(2) {
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url(../images/reform/exterior/fence/fence_bg.jpg) no-repeat right/contain;
}
#reform_menu section.menu ul.menu_02 li:nth-child(3) {
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url(../images/reform/exterior/garage/garage.jpg) no-repeat right/contain;
}
#reform_menu section.menu ul.menu_02 li:nth-child(4) {
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url(../images/reform/exterior/garden/garden.jpg) no-repeat right/contain;
}
#reform_menu section.menu ul.menu_02 li:nth-child(5) {
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url(../images/reform/exterior/roof/roof_bg.jpg) no-repeat right/contain;
}
#reform_menu section.menu ul.menu_02 li:nth-child(6) {
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url(../images/reform/exterior/outer_wall/outer_wall_bg.jpg) no-repeat right/contain;
}
#reform_menu section.menu ul.menu_02 li:nth-child(7) {
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url(../images/reform/exterior/painting/painting_bg.jpg) no-repeat right/contain;
}
#reform_menu section.menu ul.menu_02 li:nth-child(8) {
  background: repeating-linear-gradient(-90deg, rgba(164, 194, 192, 0) 0%, white 50%, white 100%), url(../images/reform/exterior/tile_exterior/tile_exterior_bg.jpg) no-repeat right/contain;
}
#reform_menu section.menu ul a {
  width: 100%;
  display: block;
  padding: 1em 2em;
  transition: 0.3s;
  position: relative;
}
#reform_menu section.menu ul a span {
  display: block;
  font-size: 1.1rem;
}
#reform_menu section.menu ul a::before, #reform_menu section.menu ul a::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: -7px;
  background-color: #bbbbbb;
}
#reform_menu section.menu ul a::before {
  width: 100%;
  height: 1px;
  transition: 0.2s ease 0s;
}
#reform_menu section.menu ul a::after {
  width: 1px;
  height: 100%;
  transition: 0.2s ease 0.2s;
}
#reform_menu section.menu ul a:hover {
  background: #d23c6457;
  color: #ffffff;
  opacity: 1;
}
#reform_menu section.menu ul a:hover::before {
  width: 0%;
}
#reform_menu section.menu ul a:hover::after {
  height: 0%;
}
#reform_menu section.sub {
  text-align: center;
}
#reform_menu section.sub h3, #reform_menu section.sub h4 {
  margin: 2% 0;
  font-size: 1.5rem;
}
#reform_menu section.sub h4 + ul {
  margin-bottom: 80px;
}
#reform_menu section.sub ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 20px;
}
#reform_menu section.sub ul + ul {
  margin-top: 50px;
  margin-bottom: 80px;
}
#reform_menu section.sub ul li {
  position: relative;
  padding-left: 11px;
}
#reform_menu section.sub ul li:before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  background: #000000;
  border-radius: 50px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
}

@media only screen and (max-width: 768px) {
  #reform {
    padding: 5% 3%;
  }
  #reform section {
    width: 100%;
  }
  #reform section.reform_top {
    width: 100%;
  }
  #reform section.reform_top figure {
    flex-wrap: wrap;
  }
  #reform section.reform_top figure figcaption {
    width: 100%;
  }
  #reform section.reform_top figure div {
    width: 100%;
    max-width: 280px;
  }
  #reform section.list {
    flex-wrap: wrap;
    gap: 4vw;
  }
  #reform section.list a {
    width: 45vw;
    height: 45vw;
  }
  #reform section.list a img {
    position: static;
    transform: translate(0);
  }

  #reform_menu {
    padding: 5% 3%;
  }
  #reform_menu section {
    width: 100%;
    padding: 3% 0;
  }
  #reform_menu section h2:before, #reform_menu section h2:after {
    width: 35%;
  }
  #reform_menu section.menu ul {
    justify-content: center;
  }
  #reform_menu section.menu ul li {
    width: 45%;
  }
  #reform_menu section.sub ul {
    justify-content: flex-start;
  }
  #reform_menu section.sub ul li {
    width: 45%;
    padding-left: 15px;
    text-align: left;
    font-size: 1.4rem;
  }
  #reform_menu section.sub ul li:before {
    top: 11px;
  }
}
