@charset "UTF-8";
@import url("./loop-item-gallery.css");

.vk_posts {
  margin: 0;
}
.gallery-filter-title,
.archive-header-title {
  font-size: 40px;
  letter-spacing: 0.08em;
  margin: 20px 0;
  text-align: center;
  font-weight: 500;
}
.archive-header-title {
  font-family: "Noto Serif JP", "Times New Roman", "游明朝", "Yu Mincho",
    "游明朝体", "YuMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro",
    "HiraMinProN-W3", "HGS明朝E", "ＭＳ Ｐ明朝", "MS PMincho", serif;
}
.filter-search {
  margin: 40px auto 60px;
  padding: 0 0;
}

.filter-search__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border: none;
  background: none;
  padding: 8px 12px 25px 0;
  width: 100%;
  cursor: pointer;
  border-bottom: 1px solid #000;
}

.filter-search__reset {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-search__reset a {
  font-size: 14px;
  color: #666;
  text-decoration: underline;
}

.filter-search__toggle-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
}

.filter-search__toggle-icon::before,
.filter-search__toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background-color: #000;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.filter-search__toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.filter-search__top[aria-expanded="true"] .filter-search__toggle-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.filter-search__form {
  border-bottom: 1px solid #000;
  padding: 0 0 20px;
}

.filter-search__group {
  padding: 24px 0;
}

.filter-search__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
  color: #000;
}

.filter-search__heading img {
  width: 32px;
  height: auto;
}
.filter-search__term-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.filter-search__term {
  display: block;
  cursor: pointer;
}

.filter-search__term input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.filter-search__term span {
  display: block;
  border: 1px solid #666;
  padding: 4px 5px;
  text-align: center;
  font-size: 14px;
  color: #666;
  transition: background-color 0.25s ease, border-color 0.25s ease,
    color 0.25s ease;
}

.filter-search__term input:checked + span {
  background-color: #000;
  border-color: #000;
  color: #fff;
}

.filter-search__actions {
  margin-top: 24px;
  text-align: center;
}

input.filter-search__submit {
  border: 1px solid #000;
  background-color: #000;
  color: #fff;
  padding: 12px 50px;
  font-size: 16px;
  letter-spacing: 0.1em;
  border-radius: 0;
}
input.filter-search__submit:not(:disabled):hover {
  background: #000;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.entry-header {
  text-align: center;
}
.entry-header .entry-title {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 20px;
  margin-top: 4rem;
}
.works-summary {
  font-size: 18px;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.works-summary__left {
  position: relative;
  padding-right: 1.5em;
  margin-right: calc(1.5em - 2px);
}

.works-summary__left::after {
  content: "";
  width: 1px;
  height: 15px;
  background: var(--vk-color-text-body);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.works-summary__right {
  display: inline-flex;
  align-items: center;
}

.works-summary__item--madori::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 15px;
  margin: 0 0.5em;
  background-color: currentColor;
  transform: rotate(25deg);
  transform-origin: center;
}

.works_main_image {
  margin-bottom: 40px;
  text-align: center;
}

@media (max-width: 767.98px) {
  .entry-header .entry-title {
    font-size: 24px;
  }
  .works-summary {
    display: block;
    font-size: 16px;
  }

  .works-summary__left {
    display: block;
    padding-right: 0;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .works-summary__left::after {
    content: "";
    width: 80px;
    height: 1px;
    display: block;
    margin-top: 2px;
    left: 50%;
    transform: translateX(-50%);
    top: 27px;
  }

  .works-summary__right {
    display: block;
  }

  .works-summary__item {
    display: block;
  }

  .works-summary__item--madori::after {
    content: "";
    margin: 0;
  }
}

.works-sections {
  margin-top: 80px;
}

.works-section {
  margin-bottom: 80px;
}

.works-section__inner {
  display: block;
}

.works-section__images {
  margin-bottom: 24px;
}

.works-section__image {
  margin: 0;
  overflow: hidden;
}

.works-section__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works-section__title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
}

.works-section__text {
  line-height: 1.8;
}

.works-section__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-direction: column;
}

.works-section__images {
  flex: 0 0 60%;
}

.works-section__texts {
  flex: 0 0 40%;
}

/* 1枚レイアウト：テキスト左・画像右 */
.works-section--img1 .works-section__inner {
  flex-direction: row;
}

.works-section--img1 .works-section__images {
  order: 2;
  flex-basis: 50%;
}

.works-section--img1 .works-section__texts {
  order: 1;
  flex-basis: 50%;
}

/* 2枚レイアウト：左メイン／右サブ1枚 */
.works-section--img2 .works-section__images {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-auto-rows: 1fr;
  gap: 4px;
}

.works-section--img2 .works-section__image--main {
  grid-column: 1;
  grid-row: 1 / 3;
}

.works-section--img2 .works-section__image--sub {
  grid-column: 2;
  grid-row: 1 / 3;
}

/* 3枚レイアウト：左にサブ2枚縦並び／右メイン1枚 */
.works-section--img3 .works-section__images {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
}

.works-section--img3 .works-section__image--main {
  grid-column: 2;
  grid-row: 1 / 3;
}

.works-section--img3 .works-section__image--sub {
  grid-column: 1;
}

@media (max-width: 1024px) {
  .filter-search__term-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .works-section__inner {
    display: block;
  }

  .works-section__images {
    margin-bottom: 24px;
  }

  .works-section__image {
    margin-bottom: 0;
  }

  .works-section__image:last-child {
    margin-bottom: 0;
  }
}
@media (max-width: 767.98px) {
  .gallery-filter-title {
    font-size: 32px;
  }

  .filter-search__top {
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0px 20px;
  }

  .filter-search__reset {
    width: 100%;
    justify-content: space-between;
  }

  .filter-search__term-list {
    /* grid-template-columns: repeat(3, minmax(0, 1fr)); */
    display: flex;
    flex-wrap: wrap;
  }
  .filter-search__term {
    display: inline-block;
  }
  .filter-search__term span {
    padding: 4px 8px;
  }
  .filter-search__heading img {
    width: 20px;
  }
  .filter-search__heading {
    gap: 8px;
  }

  .post-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .works-sections {
    margin-top: 60px;
  }

  .works-section {
    margin-bottom: 60px;
  }
  .works-section--img3 .works-section__images,
  .works-section--img2 .works-section__images{
    gap: 2px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .works-section--img1 .works-section__images,
  .works_main_image{
        margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

  }
}
article table :is(th,td) {
    border: 0.5px solid rgba(203, 203, 202, 0.5)}

.Gallery-buildingdata:first-of-type {
  margin-top: 40px;
}

.Gallery-buildingdata:last-of-type {
  margin-bottom: 140px;
}

.Gallery-buildingdata h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0 0 24px;
      border-left: 4px solid;
    padding-left: 8px;
}

.Gallery-table {
  width: 100%;
  border-spacing: 0;
  font-size: 16px;
  border: none;
}
.Gallery-table tbody{
      width: 100%;
    display: table;
}

.Gallery-table th,
.Gallery-table td {
  padding: 16px 24px;
  border-bottom: 0.5px solid rgba(203, 203, 202, 0.5);
  background-color: #fff;
  line-height: 1.7;
}

.Gallery-table th {
  width: 160px;
  letter-spacing: 0.08em;
  text-align: left;
  background-color: rgba(203, 203, 202, 0.2);
}

/* .Gallery-table tr:last-child th {
  border-bottom: none;
} */

/* .Gallery-table tr:last-child td {
  border-bottom: none;
} */

.Gallery-buildingdata + .Gallery-buildingdata {
  margin-top: 32px;
}

.Gallery-staff{
 padding: 30px 40px;
    background: rgba(203, 203, 202, 0.2);
    margin-bottom: 80px;
}
.Gallery-staff h2{
  font-size: 22px;
}
.Gallery-staff p{
  margin-bottom: 0;
}
@media (max-width: 767.98px) {

  .Gallery-buildingdata h2 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .Gallery-table,
  .Gallery-table th,
  .Gallery-table td {
    display: block;
    width: 100%;
  }
  .Gallery-buildingdata:last-of-type {
  margin-bottom: 80px;
}
.Gallery-staff {
    padding: 30px 20px;
  }
  .Gallery-staff h2 {
    font-size: 20px;
}
}
.works-related{
    background-color: #f7f7f7;
    padding: 4em 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.works-related__title{
      font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin: 0 0 40px;
    text-align: center;
}
.works-related .gallery-card__tags,
.works-related .gallery-card__text{
  display: none;
}
.works-related .gallery-card__title{
  font-size: 16px;
}
@media (max-width: 767.98px) {
.works-related__title {
    font-size: 20px;
    text-align: left;
}
}