@charset "UTF-8";

.works__title {
  margin-top: -100px;
}
.vertical__top__group {
  width: 5%;
}

.vertical__top__group h2 {
  writing-mode: vertical-rl;
  -ms-writing-mode: bt-lr;
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: 1.5rem;
}

.vertical__top__title {
  writing-mode: vertical-rl;
  -ms-writing-mode: bt-lr;
  color: #85450a;
  font-family: "Quattrocento";
  font-size: 2rem;
  position: absolute;
  right: -2rem;
  top: 0.5rem;
}

/* spタイトル */
@media screen and (max-width: 769px) {
  .vertical__top__group {
    margin-left: 0;
    width: 100%;
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .vertical__top__group h2 {
    writing-mode: unset;
    -ms-writing-mode: unset;
    font-size: 2.4rem;
    font-weight: bold;
    letter-spacing: normal;
  }

  .vertical__top__title {
    writing-mode: unset;
    -ms-writing-mode: unset;
    font-size: 1.4rem;
    position: static;
    right: 0;
    top: 0;
    margin-top: 11%;
  }
  .works__title {
    margin-top: 0;
  }
}

/* sp 769px */

/* 施工事例 */
.works__containar {
  width: 62%;
  margin: 0 auto;
}

.works__containar .vertical__top__group {
  left: -12%;
}

.item__left {
  display: flex;
  justify-content: center;
  margin: 13% 0 0;
  position: relative;
}

.item__left.reverse {
  flex-direction: row-reverse;
}

#work01 {
  margin-top: 32px;
}

.item__left::after {
  content: "";
  width: 80%;
  height: 1px;
  background-color: #85450a;
  position: absolute;
  bottom: -5%;
  left: 0;
}
.reverse::after {
  left: unset;
  right: 0;
}

.reverse:last-child::after {
  display: none;
}

.item__left h3,
.item__right h3 {
  font-weight: bold;
  padding-left: 1.6rem;
  position: relative;
}

.item__left h3::before,
.item__right h3::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #85450a;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.img__main {
  min-width: 350px;
  width: 50%;
  position: relative;
  margin-right: 10%;
}

.reverse .img__main {
  margin-right: 0;
  margin-left: 10%;
}

.img__main img {
  width: 100%;
  max-width: 550px;
}

.fig {
  display: flex;
}

.figtxt {
  margin-left: 16px;
  margin-top: -1.8em;
}

.item__txt {
  text-align: center;
  margin-top: 80px;
  margin-left: 32px;
  width: 350px;
}

.reverse .item__txt {
  margin-left: 0;
  margin-right: 32px;
}

.item__txt p {
  display: inline-block;
  text-align: left;
}

.item__img {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin: 7.2rem 0;
  gap: 12%;
  max-width: 550px;
}

table {
  table-layout: fixed;
  width: 100%;
}
table,
th,
td {
  border: 1px solid #85450a;
  padding: 8px 3%;
  min-width: 50%;
  text-align: left;
}

table th {
  background-color: #4d2805;
  color: #fff;
}

/* 施工事例 */
@media screen and (max-width: 768px) {
  #work01 {
    margin-top: 0;
  }
  .works__containar {
    width: 91%;
    margin: 32px auto;
  }

  .item__left {
    display: block;
    margin: 32px 0 0;
    position: relative;
    padding: 32px 0 64px;
  }

  .item__left::after {
    content: "";
    width: 100%;
    height: 1px;
    background-color: #85450a;
    position: absolute;
    bottom: 0;
  }

  .reverse .item__txt {
    margin-left: auto;
    margin-right: auto;
  }

  .img__main {
    min-width: auto;
    width: 100%;
    position: relative;
    margin-right: 0;
  }

  .img__main img {
    width: 100%;
  }

  .fig {
    justify-content: center;
  }

  .figtxt {
    margin-left: 5px;
    margin-top: -1.8em;
    font-size: 1.6rem;
    writing-mode: vertical-rl;
    -ms-writing-mode: bt-lr;
    letter-spacing: 0.6rem;
  }

  .item__txt {
    text-align: center;
    margin: 32px auto;
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    max-width: 550px;
  }

  .item__img {
    display: flex;
    width: 80%;
    justify-content: space-between;
    align-items: center;
    margin: 8% auto;
  }

  .item__txt p {
    font-size: 1.6rem;
    text-align: left;
    margin: 32px 0 0 7%;
  }

  .reverse .img__main {
    margin-right: 0;
    margin-left: 0;
  }
}

/* sp 769px */

/* itemright */
.item__right {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: flex-start;
  margin: 114px 2% 0 0;
  position: relative;
}

.item__right::after {
  content: "";
  width: 35%;
  height: 1px;
  background-color: #85450a;
  position: absolute;
  bottom: 0;
}

.item__right:last-child:after {
  display: none;
}

.fig__right {
  display: flex;
  flex-direction: row-reverse;
}

.figtxt__right {
  margin-right: 16px;
  margin-top: -1.8em;
}

.item__txt__right {
  text-align: center;
  margin-top: 80px;
  margin-right: 3%;
}

.item__txt__right p {
  display: inline-block;
  text-align: left;
}

.item__img--right {
  width: 100%;
  margin: 16.2rem auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* itemright */
@media screen and (max-width: 769px) {
  .item__right {
    display: block;
    flex-direction: unset;
    margin: 32px 0;
    padding: 32px 0 64px;
    position: relative;
  }

  .item__right::after {
    content: "";
    width: 100%;
    height: 1px;
    background-color: #85450a;
    position: absolute;
    bottom: 0;
  }

  .fig__right {
    flex-direction: unset;
    justify-content: center;
  }

  .figtxt__right {
    margin-right: 0;
    margin-left: 5px;
    font-size: 1.6rem;
    writing-mode: vertical-rl;
    -ms-writing-mode: bt-lr;
    letter-spacing: 0.6rem;
  }

  .item__txt__right {
    text-align: center;
    margin-top: 32px;
    margin-right: 0;
    display: flex;
    flex-direction: column-reverse;
  }

  .item__txt__right p {
    font-size: 1.6rem;
    margin: 32px 0 0 7%;
  }

  .item__img--right {
    display: flex;
    width: 80%;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 0 7%;
  }
}

/* sp 769px */

/*==========================
fadeIn
==========================*/
.fadeIn_work {
  transform: translate(0, 50px);
  opacity: 0;
  transition: 0.8s;
}

.fadeIn_work.animated {
  transform: translate(0, 0);
  opacity: 1;
}

/*==========================
modal
==========================*/
/* .modal__item {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  box-shadow: 2px 5px 12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  z-index: -10;
  transition: 0.8s;
  width: 0;
}

.modal__item.open {
  z-index: 10;
  opacity: 1;
  width: 80%;
  max-width: 768px;
} */

/* 背景 */
/* .works__containar::after{
  display: none;
content: "";
background-color: rgba(0, 0, 0, 0.3);
width: 100%;
height: 100vh;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}

.works__containar.open::after {
  display: block;
} */

/* 閉じるボタン */
/* .modal__close {
  display: none;
  position: fixed;
  width: 30px;
  height: 30px;
  right: 3%;
    top: 3%;
}
 
.modal__close::before, .modal__close::after { 
 content:"";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px; 
  height: 30px; 
  background: #333;
}
 
.modal__close::before {
  transform: translate(-50%,-50%) rotate(45deg);
}
 
.modal__close::after {
  transform: translate(-50%,-50%) rotate(-45deg);
}

.modal__close.open{
  display: block;
} */

/* ここまで */
