@charset "utf-8";

/*------------------------------------------------
   すまい造りギャラリー
------------------------------------------------*/

/* archive */

#gallery {
  width: 100%;
}

.galleryBlock {
  width: 100%;
  margin-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}


.galleryBox {
	width: calc((100% - 10px) / 2);
  background: #fff;
  box-shadow: 0 10px 10px -6px rgba(0,0,0,.3);
	transition: all 0.3s ease-in-out;
  margin-bottom: 40px;
}

.galleryBox a {
  display: block;
  text-decoration: none;
}

.galleryBox:hover {
  box-shadow: 0 6px 10px -6px rgba(0,0,0,.3);
}

.galleryBox .image {
	width: 100%;
	position: relative;
  overflow: hidden;
	transition: all 0.3s ease-in-out;
}

.galleryBox a:hover .image {
  background-color: #fff;
  opacity: 0.8;
}

.galleryBox .image img {
	width: 100%;
  transform: scale(1);
	transition: all 0.3s ease-in-out;
}

.galleryBox a:hover .image img {
  transform: scale(1.05);
}

.galleryBox .textBlock {
  position: relative;
  padding: 0.6em;
}

.galleryBox .ctgry {
  position: absolute;
  top: -20px;
  right: 0;
  height: 20px;
  line-height: 20px;
  padding: 0 0.4em;
	font-size: 1.2rem;
}

.galleryBox.reform .ctgry {
  background: var(--gallery01-color);
  color: #FFF;
}

.galleryBox.care .ctgry {
  background: var(--gallery02-color);
  color: #FFF;
}

.galleryBox .ctgry::after {
	content: '';
	position: absolute;
	top: 0;
	right: 100%;
	border-top: 10px solid transparent;
	border-left: 6px solid transparent;
}

.galleryBox.reform .ctgry::after {
  border-right: 6px solid var(--gallery01-color);
	border-bottom: 10px solid var(--gallery01-color);
}

.galleryBox.care .ctgry::after {
  border-right: 6px solid var(--gallery02-color);
	border-bottom: 10px solid var(--gallery02-color);
}


.galleryBox .title {
  font-size: 1.3rem;
  font-weight: 500;
}

@media print, screen and (min-width: 601px) {

  .galleryBlock {
    width: 940px;
    margin: 0 auto 80px;
  }

  .galleryBlock::after {
    display: block;
    content:"";
    width: 300px;
  }

  .galleryBox {
    width: 300px;
  }

  .galleryBox .image {
  }

  .galleryBox .textBlock {
  }

  .galleryBox .ctgry {
    font-size: 1.3rem;
  }

  .galleryBox .title {
    font-size: 1.4rem;
  }

}


/*------------------------------------------------
   個別ページ
------------------------------------------------*/

.gallerySingleBlock {
  width: 100%;
  margin-bottom: 40px;
}


.gallerySingleBox {
  margin-bottom: 40px;
}

.gallerySingleBox .title {
	font-size: 1.6rem;
  font-weight: 500;
  position: relative;
  padding: 0.6em 0.4em;
  margin-bottom: 1em;
}

.gallerySingleBox.reform .title {
	border-top: 1px solid var(--gallery01-color);
	border-bottom: 2px solid var(--gallery01-color);
}

.gallerySingleBox.care .title {
	border-top: 1px solid var(--gallery02-color);
	border-bottom: 2px solid var(--gallery02-color);
}

.gallerySingleBox .ctgry {
  position: absolute;
  top: -23px;
  right: 0;
  height: 24px;
  line-height: 24px;
  font-size: 1.3rem;
  color: #FFF;
  text-align: right;
  padding-right: .4em;
}

.gallerySingleBox.reform .ctgry {
  background: var(--gallery01-color);
  width: 6em;
}

.gallerySingleBox.care .ctgry {
  background: var(--gallery02-color);
  width: 9em;
}

.gallerySingleBox .ctgry::after {
	content: '';
	position: absolute;
	top: 0;
	right: 100%;
	border-top: 12px solid transparent;
	border-left: 6px solid transparent;
}

.gallerySingleBox.reform .ctgry::after {
  border-right: 6px solid var(--gallery01-color);
	border-bottom: 12px solid var(--gallery01-color);
}

.gallerySingleBox.care .ctgry::after {
  border-right: 6px solid var(--gallery02-color);
	border-bottom: 12px solid var(--gallery02-color);
}

.gallerySingleBox .imageBlock {
	width: 100%;
	margin-bottom: 40px;
}

.gallerySingleBox .imageBlock .image {
	width: 100%;
}

.gallerySingleBox .imageBlock .image img {
	width: 100%;
	height: auto;
}

.gallerySingleBox .gallerySubBox {
	width: 100%;
	margin-bottom: 40px;
}

.gallerySingleBox .gallerySubBox:last-child {
	margin-bottom: 0;
}

.gallerySingleBox .galleryTitle {
  position: relative;
  padding: 0.4em 0.8em;
	font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #fff;
  border-radius: 0.4em;
	margin-bottom: 1.4em;
}

.gallerySingleBox.reform .galleryTitle {
  background: var(--gallery01-color);
}

.gallerySingleBox.care .galleryTitle {
  background: var(--gallery02-color);
}

.gallerySingleBox .galleryTitle:after {
  position: absolute;
  content: '';
  top: 100%;
  left: 30px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.gallerySingleBox.reform .galleryTitle:after {
  border-top: 15px solid var(--gallery01-color);
}

.gallerySingleBox.care .galleryTitle:after {
  border-top: 15px solid var(--gallery02-color);
}

.gallerySingleBox .galleryImageBlock {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
}

.gallerySingleBox .galleryImage {
	width: 48%;
	margin: 1.0%;
	position: relative;
}

.gallerySingleBox .galleryImage::after {
	position: absolute;
	top: 0;
	left: 0;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size : 1.2rem;
  letter-spacing: 0.04em;
  color: #fff;
  padding: .2em .4em;
  border-radius: 0 0 4px 0;
	background: var(--sub-color);
}

.gallerySingleBox .galleryImage.bef::after {
	content: 'Before';
}

.gallerySingleBox .galleryImage.aft::after {
	content: 'After';
}

.gallerySingleBox .galleryImage .image {
	width: 100%;
}

.gallerySingleBox .galleryImage .image img {
	width: 100%;
  height: auto;
}

.gallerySingleBox .galleryImage .text {
	font-size: 1.3rem;
  line-height: 1.5;
}

.gallerySingleBox .outline p,
.gallerySingleBox .voice,
.gallerySingleBox .memo {
	font-size: 1.4rem;
  line-height: 1.8;
}

@media print, screen and (min-width: 601px) {

  .gallerySingleBlock {
    width: 700px;
    margin: 0 auto;
  }



.gallerySingleBox {
    margin-bottom: 80px;
  }

.gallerySingleBox .ctgry {
	font-size: 1.4rem;
}

.gallerySingleBox .title{
	font-size: 1.8rem;
}

.gallerySingleBox .galleryTitle {
	font-size: 1.6rem;
}

.gallerySingleBox .galleryImage::after {
  font-size : 2.0rem;
}

.gallerySingleBox .galleryImage .text {
	font-size: 1.4rem;
}

.gallerySingleBox .outline p,
.gallerySingleBox .voice,
.gallerySingleBox .memo {
	font-size: 1.5rem;
}

}


